I’ve been able to send TCP data properly and also receive into the module’s buffer. But for some reason the reception of data from that buffer keeps failing. In this example, data is sent to web server, 370 bytes come back, and then the web server closes the socket automatically (as expected).
However, when trying to retrieve those 370 bytes from module, keep getting CME 3 “not allowed” errors. Why might this be? This is such a simple command.
AT+CMEE=1
OK
AT+CGACT=0,1
OK
AT+CFUN?
+CFUN: 1
ATI8
HL7800.3.5.0
AT+CCID
+CCID: 89148000005104XXXXXX //Edited for privacy
AT+CGSN
354616090XXXXXX //Edited for privacy
AT+CREG?
+CREG: 0,1
AT+CESQ
+CESQ: 99,99,255,255,18,47
AT+CSQ
+CSQ: 22,0
AT+CGATT?
+CGATT: 1
AT+CGDCONT=1,“IP”,“VZWINTERNET”
OK
AT+KCNXCFG=1,“GPRS”,“VZWINTERNET”
OK
AT+KTCPCFG=1,0,“52.89.XXX.XXX”,80 //Edited for privacy
+KTCPCFG: 1
AT+KTCPCNX=1
OK
+KCNX_IND: 1,1,0
+KTCP_IND: 1,1
AT+KTCPSND=1,2001
CONNECT
…SEND DATA…
–EOF–Pattern–
+KTCP_DATA: 1,370
// 370 bytes sent from server and received into module buffer
+KTCP_NOTIF: 1,4
// Web server automatically closed socket
AT+KTCPRCV=1, 370
+CME ERROR: 3
//CME 3 = “Operation not allowed” ???