4 Replies Latest reply: Nov 21, 2011 1:18 PM by Harald Naumann RSS

Help with Telit GM862-Quad http Get

Newbie

Hy everyone

 

I'm Felipe from Chile. Currently i'm working on my tesis project and i devoloping a telemetry application, to send data form gprs modem to a web server.

 

In that way i'm doing some tests with the module Telit GM862-quad 07.02.605, i'm using a rs-232 shield to talk with the module via hyperTerminal.

 

I can get a successfull connection to the server:

 

at+ipr=115200

at+cmee=2

at+cgdcont=1,"ip","mycellphoneapn"

at#scfg=1,1,0,0,600,0

at#sgact=1,1,usserID,PassW

at#sktd=0,80,"www.google.com"

 

But after the CONNECT, I can't write anything because the modem is in socket mode, so i try with hyperterminal opption "send text file" but i cant't get any response from the server.

 

I'm sending this .txt file through the hyperterminal:

 

GET / HTTP/1.1

Host: www.google.cl
Connection: keep-alive
I need Help please
Regards
  • Re: Help with Telit GM862-Quad http Get
    Harald Naumann Expert

    You just forget to support the flow control? Deactive it by AT@K=0 and send the GET again plus "Enter".

  • Re: Help with Telit GM862-Quad http Get
    Harald Naumann Expert

    http://tinkerlog.com/2009/05/15/interfacing-arduino-with-a-telit-gm862/

     

    1.     } 
    2.   } 

    Log

    Here is a log, that I recorded within the Arduino IDE. You can see, how

    • the modem gets switched on
    • the modem gets initialized
    • the version info is requested
    • it waits until the network is reachable
    • a GPS position is requested
    • a SMS gets send
    • how a HTTP GET is issued over GPRS, it searches for gm862 on twitter
    GM862 monitor
    switching on
    done
    initializing modem ...
    AT
    ->ok
    AT+IPR=19200
    ->ok
    AT+CMEE=2
    ->ok
    AT+CPIN=XXXX
    ->ok
    done
    version info ...
    AT+GMI
    ->buf: AT+GMI
    Telit
    OK
    AT+GMM
    ->buf: AT+GMM
    GM862-GPS
    OK
    AT+GMR
    ->buf: AT+GMR
    07.02.403
    OK
    AT+CSQ
    ->buf: AT+CSQ
    +CSQ: 0,0
    OK
    done
    
    checking network ...
    AT+CREG?
    ->buf: AT+CREG?
    +CREG: 0,2
    OK
    done
    
    checking network ...
    AT+CREG?
    ->buf: AT+CREG?
    +CREG: 0,2
    OK
    done
    
    checking network ...
    AT+CREG?
    ->buf: AT+CREG?
    +CREG: 0,1
    OK
    done
    
    ---------------------
    ready
    
    requesting GPS position ...
    AT$GPSACP
    ->buf: AT$GPSACP
    $GPSACP: 110621.999,5333.9477N,00954.8735E,1.4,66.3,3,22.21,0.10,0.05,150509,08
    OK
    3
    GPS position: 53.565794, 9.914568, 66
    
    sending SMS ...
    AT+CMGF=1
    ->ok
    AT+CMGS="6245"
    ->not ok: AT+CMGS="6245"
    >
    your@email.com hello from arduino
    done
    
    initializing GPRS ...
    AT+CGDCONT=1,"IP","internet","0.0.0.0",0,0
    ->buf:
    +CMGS:  35
    OK
    AT+CGDCONT=1,"IP","internet","0.0.0.0",0,0
    OK
    AT#USERID=""
    ->buf: AT#USERID=""
    OK
    AT#PASSW=""
    ->buf: AT#PASSW=""
    OK
    done
    
    switching GPRS on ...
    AT#GPRS=1
    ->buf: AT#GPRS=1
    +IP: 10.37.146.251
    OK
    done
    
    opening socket ...
    AT#SKTD=0,80,"search.twitter.com",0,0
    ->buf: AT#SKTD=0,80,"search.twitter.com",0,0
    buf:
    buf:
    CONNECT
    sending request ...
    receiving ...
    buf:HTTP/1.1 200 OK
    Date: Fri, 15 May 2009 11:07:19 GMT
    Server: hi
    Status: 200 OK
    Cache-Control: ma
    buf:x-age=20, must-revalidate, max-age=1800
    Content-Type: application/atom+xml; charset=utf-8
    X-Serve
    buf:d-By: searchweb005.twitter.com
    Expires: Fri, 15 May 2009 11:37:18 GMT
    Content-Length: 4757
    Vary:
    buf: Accept-Encoding
    X-Varnish: 218274860
    Age: 0
    Via: 1.1 varnish
    X-Cache-Svr: searchweb005.twitter
    buf:.com
    X-Cache: MISS
    Connection: close
    
    <?xml version="1.0" encoding="UTF-8"?>
    [...]
        </author>
      </entry>
    </feed>
    
    NO CARRIER
    done
    
    switching GPRS off ...
    AT#GPRS=0
    ->buf: AT#GPRS=0
    OK
    done