Posts by iotah

    Hi,

    My legacy app, collects data and posts to a remote server. When it is ready to upload data to the server having already performed various housekeeping functions:


    AT#GPRS=1

    AT#SKTD=0,80,www.myremoterserver, 0

    I get the CONNECT response


    I then send a HTTP POST request:

    POST /post.php HTTP/1.1

    Host: www.myhost

    etc.


    via MDM.send


    I then send a '+++' sequence to close the socket.


    The app returns to the start of the loop and happens to check for SMS messages:


    AT+CMGF=1

    I don't get an 'OK' and it goes onto the next AT command

    AT+CNMI=2,1

    Here I don't get OK I get :


    HTTP/1.0 400 Bad request

    Cache-Control: no-cache

    Connection: close

    Content-Type: text/html


    <html><body><h1>400 Bad request</h1>

    Your browser sent an invalid request.

    </body></html>


    NO CARRIER


    Which implies the socket connection has timed out


    After that, any AT commands seem to execute correctly.


    All AT commands are send via MDM.send


    My '+++' sequence is bracked by time.sleep(3) .


    Is there a solution to this? Is there an explicit close socket?


    We are using the GE910-GNSS s/w revision 13.00.106


    Any adice would be much appreciated

    Hi Mazen,


    Thank you for responding. Sorry for my lateness of my response, I had given up on getting any response at all.


    I used MDM.Send to issue the relavant AT commands:


    AT#SSLEN=1,0 ; I did this just to make sure it wasn't enabled

    AT#SGACT=1,1

    AT#HTTPCFG= 0, "myseveradd",443,0,,,1,120,1


    Similarly :

    AT#HTTPSND=0,0,"/services/.............../post.php?mode=save&key=.............."


    Now I am not sure a) how I pick up the '>>>' prompt, my serial port is connected to a data logger so I can't use this, and I am assuming the I use the MDM.Send to transmit the data string:


    "data=<date><time> etc"


    I am trying to implement this in a Python applicaton running on the TER=GN910.


    Regards

    Hi,


    I am investigating HTTPSND to post data to a web server. I am not sure how to interpret the definition regarding the output of the '>>>' and how to set the data string. It implies that the the '>>>' is output to a serial device (USB0)? rather than the AT controller to allow the user to input a data string. Can I send the data string to the AT controller having received the '>>'>' on the serial port?


    Could someone please clarify,


    Many thanks

    Hi,


    I am having issues trying to get HTTP/POST to work via the Python script. I am executing the following commands:


    AT+CGDCONT=1,"ip","internet"

    AT#SGACT=1,1

    AT#SSLEN=1,1

    AT#SSLCFG=1,1,300,90,100,50,0,0,0,0

    AT#SSLSECCFG=1,0,0

    AT#SSLD=1,443,"www.xyz.com",0,0// This returns CONNECT

    Then using MDM.Send(senddata,10)

    where senddata contains:


    "POST /test0/post.php?mode=save&key=somekey&imei=someimei HTTP/1.1

    Host: www.xyx.com

    Content-Length: 45


    data=29/03/2019T15:42:00Z;22.20;1023.88;0.00;

    "

    When I read the response via MDM.Read I get NO CARRIER


    Would appreciate any advice on where I might be going wrong,

    Many thanks

    Hi,


    Thank-you for your response. I'm afraid I don't quite know how to interpret what you have stated.


    I used http://www.mywebsite.com as a generic web name, it is not the name of the web site I am trying to access. Also I have masked out some of the sensitive data in the HTTPQRY string.


    We are using the TER-GN910 terminal (GE910-GNSS), will it interact with an HTTPS web site?


    Regards

    I am trying to get to grips with sending data to our HTTPS server. I have been guided by the Telit AT commander and documentation. I am using the ArrLogic TER-GN910


    I have entered the following commands:

    AT+CGMM

    GE910-GNSS


    OK

    AT+CGMR

    13.00.106




    AT+CGDCONT=1,"IP","internet"

    OK

    AT_+CMEE=2

    ERROR

    AT+CMEE=2

    OK

    AT#SGACT=1,1


    #SGACT: 10.17.170.186


    OK

    AT#HTTPCFG=0,"www.mywebsite.com",443,0,,,1,120,1

    OK

    AT#HTTPQRY=0,0,"/aws.php?&i=xxxxxxxxxxxxxxxx&p=xxxxxxxx&f=1&r=02.01.00&t=2019-03-05%2011:54:00&s01=21.61&s02=21.34&s03=0.00&s04=999.59&s05=97.64&s06=7100&s07=7050&s08=7030&s09=7020&s10=7010&s11=7005&s12=6000&s13=4.01 "


    +CME ERROR: operation not supported


    But I get the above error:


    I have tried cutting down the HTTPQRY just to see if I get some sort of positive response:


    AT#HTTPQRY=0,0,"/aws.php?&i=xxxxxxxxxxxxxxx&p=xxxxxxxx"


    +CME ERROR: can not resolve DN

    AT#HTTPQRY=0,0,"/"


    +CME ERROR: can not resolve DN


    I have also tried connecting using the SSLD command but it responds with a

    +CME ERROR: SSL generic error


    Could someone please offer any advice, many thanks.

    Hi,

    I wish to redirect the operation of the Python print statement. I came across an article in the documentation showing me how to redirect to either SER or USB0. When I reassign sys.stdout and sys,stderr my basic app seems to 'hang'. Commenting out the reassignment statements the code runs as expected. A copy of he code is shown attached:


    SERtest .py.txt


    The PORTCFG value is 0.


    Eventually, I want to use USB0, but I get a similar result as with the SER. Could anyone advise,


    Many thanks