Hi,
I try to pass lat, long and alt parameters thru GPRS. Any kind soul can tell me how to do it in AT command?
Below is a sample of the parameters i am trying to pass in the URL.
http://xxxx/xxx?longitude=103.72&latitu … 123445.234
Thanks in advance
trenade
2
Have you tried passing these parameters directly from the terminal to the module it? How do you do it?
GET/HTTP/1.0
(my server IP addr)/(GPS coordinates)
CONNECTION:CLOSE
where in the above code do you add the coordinates?
say you want to send data to this URL:
http://domain.com/directory/endpoint.ph … aram2=more
You need to first attach to the GPRS network:
AT#SGACT=1,1
Then open a socket to your server on port 80:
AT#SD=1,0,80,“domain.com”,0
Now you have a raw socket connection to your server and need to start talking HTTP to it:
GET /directory/endpoint.php?param1=data¶m2=more HTTP/1.1\r\n
Host: domain.com\r\n
\r\n
Your server should then reply to the module based on your query
asmithmd1:
say you want to send data to this URL:
http://domain.com/directory/endpoint.ph … aram2=more
You need to first attach to the GPRS network:
AT#SGACT=1,1
Then open a socket to your server on port 80:
AT#SD=1,0,80,“domain.com”,0
Now you have a raw socket connection to your server and need to start talking HTTP to it:
GET /directory/endpoint.php?param1=data¶m2=more HTTP/1.1\r\n
Host: domain.com\r\n
\r\n
Your server should then reply to the module based on your query
Orh okay, I will give it a go soon. Keep everyone updated will my progress. I hope it works.
Thanks everyone