AT Command

Description

AT+SHCONN command is used to setup the HTTP connection in the Simcom modules.


Support

Simcom Module Tutorial

Examples

KeywordsAT+SHCONN syntax, examples, parameters, error, input, response.

Try the below script in the AT Command Tester tool

//Script: at+shconn - HTTP connection
//The AT commands in this script are applicable for Simcom modules only
//Check SIMCOM Module AT Command documentation

//Get the support for the commands
AT+SHCONF=?

//Wait
WAIT=1

//Verify that network bearer is active
AT+CNACT?

//Wait
WAIT=1

//Get the current configured values for HTTP
AT+SHCONF="URL","http://www.google.com"

//Wait
WAIT=1

//Setup HTTP body length
AT+SHCONF="BODYLEN",1024

//Wait
WAIT=1

//Setup HTTP head length
AT+SHCONF="HEADERLEN",350

//Wait
WAIT=1

//Make  the HTTP connection
AT+SHCONN


Output of the above script in the AT Command Tester tool

AT+SHCONF=?

+SHCONF: "URL",512

+SHCONF: "TIMEOUT",(30-1800)

+SHCONF: "BODYLEN",(0-4096)

+SHCONF: "HEADERLEN",(0-350)

+SHCONF: "POLLCNT",(1-100)

+SHCONF: "POLLINTMS",(500-5000)

+SHCONF: "IPVER",(0,1)

OK
AT+CNACT?

+CNACT: 0,1,"10.153.58.89"
+CNACT: 1,0,"0.0.0.0"
+CNACT: 2,0,"0.0.0.0"
+CNACT: 3,0,"0.0.0.0"

OK
AT+SHCONF="URL","http://www.google.com"

OK
AT+SHCONF="BODYLEN",1024

OK
AT+SHCONF="HEADERLEN",350

OK
AT+SHCONN

OK