AT Command

Description

AT+SHCONF command is used to setup the HTTP parameters in the Simcom modules.


Support

Simcom Module Tutorial

Examples

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

Try the below script in the AT Command Tester tool

//Script: at+shconf - Setup server URL on Simcom modules
//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

//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

//Setup HTTP timeout in sec
AT+SHCONF="TIMEOUT",60

//Wait
WAIT=1

//Setup HTTP try connect times
AT+SHCONF="POLLCNT",2

//Wait
WAIT=1

//Setup HTTP timeout for each attempt in ms
AT+SHCONF="POLLINTMS",200

//Wait
WAIT=1

//Setup HTTP IPVer 0->IPv4, 1->IPv6
AT+SHCONF="IPVER",0

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+SHCONF="URL","http://www.google.com"

OK
AT+SHCONF="BODYLEN",1024

OK
AT+SHCONF="HEADERLEN",350

OK
AT+SHCONF="TIMEOUT",60

OK
AT+SHCONF="POLLCNT",2

OK
AT+SHCONF="POLLINTMS",200

ERROR
AT+SHCONF="IPVER",0

OK