AT-commands

Unsolicited result codes
Sim908 sends a number of URC messages autonomously. There is no central table in datasheet so we collect those here.

NOTE: Uart must be configured to fixed speed for all URC messages to appear.

Datasheet

 * Datasheet can be found from Datasheets page.

Firmware

 * -> Module's FW version

SIMCOM_Ltd SIMCOM_SIM908 Revision:1137B02SIM908M64_ST

SIM

 * -> Network information

GSM

 * -> Remove automatic audio source identification (default = on)
 * -> Audio source to MIC1
 * -> Call  number. For example:
 * -> Answer if someone is calling (RING indicator once in 2 second)
 * -> End voice call

HTTP

 * HTTP service on and off


 * Setup bearer profile. Profile's ID is going to be 1.
 * HTTP GET


 * HTTP POST


 * Tested, works:


 * Server sees this:

GPS

 * -> Power up GPS engine (and 2V8 antenna power)
 * -> Cold start (after this NMEA data starts to flow from USART2
 * -> Warm start (after this NMEA data starts to flow from USART2
 * -> Power down GPS engine (and 2V8 antenna power)

Logs
AT+SAPBR=3,1,"CONTYPE","GPRS" OK AT+SAPBR=3,1,"APN","internet.saunalahti" OK AT+SAPBR=1,1 OK AT+HTTPINIT OK AT+HTTPPARA="CID","1" OK AT+HTTPPARA="URL","http://ruuvi-server.herokuapp.com:80/api/v1-dev/events" OK AT+HTTPPARA="UA","RuuviTracker" OK AT+HTTPPARA="REDIR","1" OK AT+HTTPACTION=0 OK AT+HTTPTERM ERROR
 * Tried to produce HTTP GET and POST. GET delayed a bit because of the server and produced ERROR because we tried to use AT+HTTPTERM too soon. POST's data is given to module after DOWNLOAD answer. Module answers OK.

+HTTPACTION:0,200,13 AT+HTTPTERM OK

AT+HTTPINIT OK AT+HTTPPARA="CID","1" OK AT+HTTPPARA="URL","http://ruuvi-server.herokuapp.com/api/v1-dev/events" OK AT+HTTPPARA="UA","RuuviTracker test/0.1" OK AT+HTTPPARA="CONTENT","application/x-www-form-urlencoded" OK AT+HTTPPARA="REDIR","1" OK AT+HTTPDATA=158,5000 DOWNLOAD

OK AT+HTTPACTION=1 OK

+HTTPACTION:1,200,8 AT+HTTPTERM OK

Some GPS NMEA data from USART2 bus: $GPGGA,172558.000,6457.934248,N,02536.100084,E,1,9,0.89,-17.089,M,21.438,M,,*41 $GPGLL,6457.934248,N,02536.100084,E,172558.000,A,A*5A $GPGSA,A,3,09,17,15,28,01,22,12,11,14,,,,1.26,0.89,0.89*01 $GPGSV,3,1,10,09,59,269,25,17,49,112,24,15,40,215,24,28,39,077,38*71 $GPGSV,3,2,10,01,22,042,36,22,21,316,27,12,17,236,31,11,15,025,20*78 $GPGSV,3,3,10,18,14,274,19,14,04,331,40*79 $GPRMC,172558.000,A,6457.934248,N,02536.100084,E,0.000,0,310312,,,A*71 $GPVTG,0,T,,M,0.000,N,0.000,K,A*13 $GPZDA,172558.000,31,03,2012,,*5A