V15 telit HTTP ok!

Home Forums M2M Support Forum V15 telit HTTP ok!

This topic contains 15 replies, has 2 voices, and was last updated by   6 years, 1 month ago.

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #5340 Reply

    Riqui

    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.

    thanks

    #5506 Reply

    Riqui

    there is something done wrong to anybody answer me?

    #5510 Reply

    Admin
    Keymaster

    Hi,
    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..

    #5816 Reply

    Admin
    Keymaster

    Hi,
    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.

    • This reply was modified 6 years, 2 months ago by  Admin.
    • This reply was modified 6 years, 2 months ago by  Admin.
    • This reply was modified 6 years, 2 months ago by  Admin.
    • This reply was modified 6 years, 2 months ago by  Admin.
    #6152 Reply

    Riqui

    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.

    #6160 Reply

    Admin
    Keymaster

    Hi Riqui,
    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?

    #6164 Reply

    Riqui

    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: 217.216.66.131\r\n");
          putsUART1("Connection: keep-alive\r\n");
          putsUART1(" \r\n\r\n");
    

    or this:

    
    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.

    #6165 Reply

    Admin
    Keymaster

    Did you try below?
    putsUART1(“\r\nGET http://217.216.66.131/datos.php?ID=1&LAT=40 HTTP/1.1\r\n”);

    #6166 Reply

    Riqui

    Does not work, N is well capitalized together with GET “\r\Nget”? . You have to enter a blank line after?

    #6168 Reply

    Admin
    Keymaster

    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?

    #6169 Reply

    Riqui

    if, recognize when they are in lowercase. I will prove in writing tab Tester AT command and tell you.

    #6170 Reply

    Riqui

    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>
    
    #6174 Reply

    Admin
    Keymaster

    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>
    Host:www.m2msupport.net<cr><lf>
    Connection:keep-alive<cr><lf>

    #6194 Reply

    Riqui

    if, so if it works, but not with my server. I tried other servers and it works.

    #6196 Reply

    Riqui

    It would be interesting to incorporate the program the ability to test continuous shipments get /. It is a simple proposition.
    thanks

Viewing 15 posts - 1 through 15 (of 16 total)
Reply To: V15 telit HTTP ok!
Your information: