mrid
mrid

Reputation: 5796

Sim900A cannot configure to use SSL

I'm using a gsm module Sim900A. I want to make a web request to a https api but it doesn't work.

Anything I write in the line AT+HTTPSSL gives an error, be it AT+HTTPSSL=? or AT+HTTPSSL=1...

Without this line, it works fine for HTTP requests but doesn't work with HTTPS urls.

This is the code I'm using:

AT+SAPBR=3,1,"Contype","GPRS"
OK
AT+SAPBR=3,1,"APN","www"
OK
AT+SAPBR =1,1
OK
AT+SAPBR=2,1
+SAPBR: 1,1,"xx.xx.xx.xx"

OK
AT+HTTPINIT
OK

AT+HTTPSSL=1         <-- this keeps on giving ERROR
ERROR

AT+HTTPPARA="CID",1
OK
AT+HTTPPARA="URL","http://my-api-url/xxx/yyy/zzz"
OK
AT+HTTPACTION=0
OK

+HTTPACTION:0,200,1819

AT+HTTPREAD
+HTTPREAD:1819
....CONTENT.....
OK

AT+HTTPTERM
OK

BTW, I'm using a Vodafone sim

Upvotes: 0

Views: 1327

Answers (1)

Roberto Caboni
Roberto Caboni

Reputation: 7490

If you get ERROR issuing AT+HTTPSSL=? (which is the test command, that should answer with the range of the parameters), I'm afraid that specific command is not supported in your particular module.

You can check this also issuing AT+CMEE=2 before 'AT+HTTPSSL=1', in order to enable verbose errors.

If you are sure that the module variant you are using does support SSL, verify that the FW version your module is running (check it by issuing AT+CMGR command) is the most recent one (you should find it out consulting the vendor site).

Upvotes: 2

Related Questions