I am working with the HL7800. I am able to get the module to send (TCP) and the response appears to be received (I get the +KTCP_DATA: 1,78 message).
However, when I use the AT+KTCPRCV=1,1 message I get a response of ERROR and then many of the commands no longer show a response (however, some do). For example, ATI will show a response but AT+KCNXCFG? will not.
When the module gets into this state, I can no longer do much of anything until a reset of the module is performed.
What am I doing wrong?
Here are the commands I use:
AT&K3
AT+KCNXCFG=1,"GPRS","AT&T"
AT+KTCPCFG=1,0,"52.20.16.20",30001
//I wait until I get the +KTCPCFG: 1 message
AT+KTCPCNX=1
//I wait until I get the +KTCP_IND: 1,1 message
AT+KTCPSND=1,8
//I wait until I get the CONNECT message
ABCD123\r--EOF--Pattern--
//I wait until I get the +KTCP_DATA: 1,78 message
AT+KTCPRCV=1,1
//I get ERROR message but am expecting something like:
{
"client-ip": "::ffff:41.130.36.121",
"data": [71,101,116,32,115,111,109,101,32,84,67,80,32,105,110,102,111,10],
"text-data": "Get some TCP info\n",
"size": 18
}