Hi, many thanks for the email. I did as you suggested by sending the same message from a differrent phone which was a different provider to the one I generally use. The other phone displayed the Asian phone number. Seems like an issue with my phone although it is only this number that I have an issue with.
I have TER-GN910 embedded in a data logger located in Asia. The modem has a local SIM card. The application responds to commands sent via SMS and the modem app responds with the requested data. I have recently sent SMS commands and found that the phone number displayed on my phone is not the same as the phone number I used to send the SMS. The phone number displayed on my phone happens to have a UK code. Can anyone explain why this is.
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:
I get the CONNECT response
I then send a HTTP POST request:
POST /post.php HTTP/1.1
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:
I don't get an 'OK' and it goes onto the next AT command
Here I don't get OK I get :
HTTP/1.0 400 Bad request
<html><body><h1>400 Bad request</h1>
Your browser sent an invalid request.
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
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#HTTPCFG= 0, "myseveradd",443,0,,,1,120,1
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:
I am trying to implement this in a Python applicaton running on the TER=GN910.
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,
I am having issues trying to get HTTP/POST to work via the Python script. I am executing the following commands:
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
When I read the response via MDM.Read I get NO CARRIER
Would appreciate any advice on where I might be going wrong,
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?
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:
+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:
+CME ERROR: can not resolve DN
+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.
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:
The PORTCFG value is 0.
Eventually, I want to use USB0, but I get a similar result as with the SER. Could anyone advise,