I have connected an arduino gsm/gprs shield on arduino uno. I want to send the data to a server(ip & port). They are not HTTP requests. What are the appropriate AT commands sequence to send data to a server ? (not HTTP) Highly appreciate if the AT commands are with their meanings. Thanks in advance !!!
1
votes
1 Answers
3
votes
I have used an Arduino to connect to a website(xively.com) and send it data over a TCP socket.
I used the following sequence of AT commands:
AT+CGATT=1
AT+CSTT=[APN]
AT+CIICR
AT+CIFSR
AT+CIPSPRT=0
AT+CIPSTART=\"tcp\",\"api.xively.com\",\"8081\
AT+CIPSEND (followed by '\r' and message)
AT+CIPCLOSE
You can find the meanings of these AT commands at ftp://imall.iteadstudio.com/IM120417009_IComSat/DOC_SIM900_AT%20Command%20Manual_V1.03.pdf
The following link might help: http://www.cooking-hacks.com/documentation/tutorials/arduino-gprs-gsm-quadband-sim900