Dear friends,
i am trying to create my own web server using arduino uno and GSM sim900. i am trying to see my data on hercules tcp client but i don't see any kind of data on tcp server. i defined my ip address as well as port number in program but i don't receive any kind of data. so please help me as soon as possible. i attached my program.
i check this command on serial communication software.
but i don't receive any data on hercules tcp client and i am using stick for internet
=>AT+CGATT? /Check if GPRS is attached or not/
<=+CGATT: 1 /A response containing this string indicates GPRS is attached/
=>AT+CIPSHUT /“Reset the IP session if any**/
<=SHUT OK /This string in the response represents all IP sessions shutdown./
=>AT+CIPSTATUS /Check if the IP stack is initialized/
<=STATE: IP INITIAL /“This string in the response indicates IP stack is initializecl**/
=>AT+CIPMUX=0 /To keep things simple, I'm setting up a single connection mode/ https://vsb|ogs.wordpress.com/2013/1 1/28/tcp-connection-over-gprs-usi ng-si m900-and-at-com mandsl 2/2112/9/2015 TCP Connection over GPRS using SIM900 and AT Commands | Vishnu's Blogs
<=OK /“This string indicates single connection mode set successfully at SIM 900**/
=>AT+CSTT= ”APN", "UNAME”, ”PWD” /Start the task, based on the SIM card you are using, you need to know the APN,
username and password for your service provider/
<= OK /This response indicates task started successfully/
=> AT+CIICR /Now bring up the wireless. Please note, the response to this might take some time/
<=OK /This text in response string indicates wireless is up/
=>AT+CIFSR /“Get the local IP address. Some people say that this step is not required, but if I do not issue this, it was not
working for my case. So I made this mandatory, no harm./
<= xxx.xxx.xxx.xxx /If previous command is successful, you should see an IP address in the response/
=>AT+CIPSTART= "TCP” , "www.vishnusharma.com”, "80" /Start the connection, TCP, domain name, port”*/
<= CONNECT OK /“This string in the response indicates TCP connection established/
=>AT+CIPSEND /“Request initiation of data sending (the request)/
<= > /The response should be the string ”>” to indicate, type your data to sencl/
=> xxxxxx /]ust type anything for now/
=>#026 /Now type the sequence #026. This tells the terminal.exe to send the hex code Oxla (which is Ctrl+Z) to indicate end of
data sending/
<= xxxxxxxxxx /You should get some response back from the server. . .it would generally be a complain that the request string
was not valid...but that is a different subject. . .you have established the connection/
/To close the connection/
=>AT+CIPSHUT /“Request shutting down of the current connections**/
<=SHUT OK /“Indicates shutdown successful**/