This topic contains 15 replies, has 2 voices, and was last updated by 6 years, 1 month ago.
August 19, 2013 at 12:10 pm #5340
Finally with this version I have seen the 200 OK response from the server. After 15 days I’ve managed to see it, but I can not do it from “script mode” always wrong. I need help please.
this is my script:
AT+CGREG? AT#SCFG? AT#SGACT? AT#SD=1,0,80, "www.m2msupport.net" GET /m2msupport/http_get_test.php HTTP/1.1<cr><lf> Host: www.m2msupport.net<cr><lf> Connection: keep-alive<cr><lf><cr><lf>
and the response:
AT+CGREG? +CGREG: 0,5 OK AT#SCFG? #SCFG: 1,1,300,90,600,50 #SCFG: 2,1,300,90,600,50 #SCFG: 3,1,300,90,600,50 #SCFG: 4,2,300,90,600,50 #SCFG: 5,2,300,90,600,50 #SCFG: 6,2,300,90,600,50 OK AT#SGACT? #SGACT: 0,0 #SGACT: 1,1 #SGACT: 2,0 OK AT#SD=1,0,80, "www.m2msupport.net" CONNECT NO CARRIER NO Carrier: Call dis-connected
I want to work with after pic.
thanksAugust 21, 2013 at 6:55 am #5506
there is something done wrong to anybody answer me?August 21, 2013 at 11:45 am #5510
I’m suspecting the issue is because of timing.. After AT#SD is sent, it could take few seconds for the modem to connect to the remote server.. May be “GET /m2msupport/http_get_test.php HTTP/1.1
” is being sent too soon.. I might have to implement a WAIT command in the script so that dealys can be executed between AT commands..August 25, 2013 at 1:30 pm #5816
I’ve implemented WAIT command in the script. Also script will process cr & lf tags required for HTTP data.
Updates are in AT Command Tester Ver 16.
Look at the ‘Telit – HTTP’ script in the ‘Script Mode’ tab.August 31, 2013 at 4:36 am #6152
ok, now also goes with the script perfect. I have a question, as I send get command every two seconds without closing the connection?
Thank you.September 1, 2013 at 8:16 am #6160
You should be able to send GET requests. There is a ‘maxTo’ timeout value which is set to 90 sec.
Are you have issues sending GET command every 2 sec?September 1, 2013 at 8:54 am #6164
When he accepted the first get / which I have to repeat commands to send the second. I have to send it:
putsUART1("GET /datos.php?ID=1&LAT=40 HTTP/1.1\r\n"); putsUART1("Host: 188.8.131.52\r\n"); putsUART1("Connection: keep-alive\r\n"); putsUART1(" \r\n\r\n");
putsUART1("GET /datos.php?ID=1&LAT=40 HTTP/1.1\r\n");
as would command in correct order? I’ve tried a thousand ways.’s very important to me. Thank you for your help.September 1, 2013 at 10:02 am #6165
Did you try below?
putsUART1(“\r\nGET http://184.108.40.206/datos.php?ID=1&LAT=40 HTTP/1.1\r\n”);September 1, 2013 at 11:20 am #6166
Does not work, N is well capitalized together with GET “\r\Nget”? . You have to enter a blank line after?September 1, 2013 at 1:46 pm #6168
I’m not familiar with the putsUART1 function? Does it recognise the \r\n special characters?
Have you tried it in the script tab of the AT Command Tester?September 1, 2013 at 2:14 pm #6169
if, recognize when they are in lowercase. I will prove in writing tab Tester AT command and tell you.September 1, 2013 at 4:09 pm #6170
the script that works ok I’ve added the last line to forward, stops working. What am I doing wrong?
//Check registration status AT+CREG? //Get the configuration of the sockets AT#SCFG? //Check if any socket has been activated AT#SGACT? //Activate the socket 1 AT#SGACT=1,1 //Wait for socket activation WAIT=4 //Dial the socket. Port 80 is TCP connection. AT#SD=1,0,80,"www.m2msupport.net" //Wait for the CONNECT message WAIT=4 //Send the HTTP formatted data <cr><lf>GET /m2msupport/http_get_test.php HTTP/1.1<cr><lf> Host:www.m2msupport.net<cr><lf> Connection:keep-alive<cr><lf> <cr><lf>GET https://www.m2msupport.net/m2msupport/http_get_test.php HTTP/1.1<cr><lf>September 1, 2013 at 5:13 pm #6174
I tested on my Telit module,
<cr><lf>GET https://www.m2msupport.net/m2msupport/http_get_test.php HTTP/1.1<cr><lf>
is NOT working.. Only this works..
<cr><lf>GET /m2msupport/http_get_test.php HTTP/1.1<cr><lf>
Connection:keep-alive<cr><lf>September 3, 2013 at 10:46 pm #6194
if, so if it works, but not with my server. I tried other servers and it works.September 4, 2013 at 3:58 am #6196
It would be interesting to incorporate the program the ability to test continuous shipments get /. It is a simple proposition.