sierra_airprime_hl76xx_at_commands_interface_guide_rev6_2.pdf (2.9 MB)
Following the example on page 363, i get this:
AT+KCNXCFG=1,“GPRS”,“www.internet.mtelia.dk”
OK // APN config
AT+KTCPCFG=1,0,“www.google.com”,80
+KTCPCFG: 1
OK
AT+KTCPCNX=1
OK
+KCNX_IND: 1,4,1
+KCNX_IND: 1,1,0
+KTCP_IND: 1,1 //session is set up and ready for operation
AT+KTCPSND=1,18 // send 18 characters
CONNECT
// send get request
“GET/HTTP / 1.1
–EOF–Pattern–”
// modem answer:
NO CARRIER
+KTCP_NOTIF: 1,8 // Data sending is OK but KTCPSND was waiting more or less characters
+KTCP_DATA: 1,1360 // recieved data from google
+KTCP_DATA: 1,352
+KTCP_NOTIF: 1,4 // TCP disconnection by the server or remote client
AT+KTCPRCV=1, 1380
CONNECT
HTTP/1.0 400 Bad Request
Content-Type: text/html; charset=UTF-8
Referrer-Policy: no-referrer
Content-Length: 1555
Date: Fri, 08 Nov 2019 12:21:33 GMT
AT+KTCPRCV=1, 1380 // get data
CONNECT
Your client has issued a malformed or illegal request That’s all we know. --EOF--Pattern-- OK
I can not seem to figure out, how to write the get request successfully. At least i think that’s the problem.