AirPrime and HL7548 AT Commands Interface Guide Rev10 0

Table Of Contents
4116303 Rev 10.0 August 10, 2017 293
AT Commands Interface Guide
Appendix
16.5.6.2. <URC-ENDTCP-enable> is Enabled
AT+KCNXCFG=1,"GPRS","CMNET"
OK
AT+KTCPCFG=1,0,"202.170.131.76",2000,,,1
+KTCPCFG: 1
Set <URC-ENDTCP-enable> to 1, enable
URC “+KTCP_ACK”
OK
AT+KTCPCFG?
+KTCPCFG: 1,0,0,0,,"202.170.131.76",2000,,0,1
<URC-ENDTCP-enable> is enabled
OK
AT+KTCPCNX=1
Connect to TCP server
OK
AT+KTCPSND=1,10
Receive 10 bytes
CONNECT
Connect to TCO server
0123456789--EOF--Pattern--
Write to serial
OK
+KTCP_ACK: 1, 1
After a short time, URC “+KTCP_ACK”
states that the latest TCP data has arrived
on the remote side
AT+KTCPACKINFO=1
+KTCPACKINFO: 1, 1
Poll the status of the latest TCP data
OK
AT+KTCPSND=1,1000
Send 1000 bytes
CONNECT
<1000bytes and --EOF--Pattern
Write to serial
OK
URC “+KTCP_ACK” not got yet
AT+KTCPACKINFO=1
Poll the status of the latest TCP data
+KTCPACKINFO: 1, 2
The status of the latest TCP data is unknown
OK
Since the “OK” of the latest “+KTCPSND”, 64
seconds has elapsed
+KTCP_ACK: 1, 0
URC “+KTCP_ACK” indicates that data has
not arrived on the remote side yet. The
network may not be good.
AT+KTCPACKINFO=1
Poll the status of the latest TCP data
+KTCPACKINFO: 1, 0
OK
The status of the latest TCP data is “failure”:
not all data has been received by the remote
side