AirPrime and HL7548 AT Commands Interface Guide Rev10 0

Table Of Contents
4116303 Rev 10.0 August 10, 2017 291
AT Commands Interface Guide
Appendix
AT+KTCPRCV=1,320
Read 320 bytes on socket 1
CONNECT
<… a lot of data…>
Data are sent after CONNECT
--EOF--Pattern--
OK
AT+KTCPCLOSE=1,1
Close session 1
OK
AT+KTCPDEL=1
Delete session 1
OK
16.5.4. End to End TCP Connection
AT&K3
Hardware flow control activation
OK
AT+KCNXCFG=1,"GPRS","APN","log","password","0.0.0.0",
"0.0.0.0","0.0.0.0"
Set GPRS parameters (APN, login,
password)
OK
AT+KTCPCFG=1,0,"www.google.com",80
Set the TCP server address and port number
+KTCPCFG: 1
Returns session ID 1
OK
AT+KTCPSTART=1
Initiate connection, use session 1
CONNECT
…Data sent……Data received……Data sent…
Message CONNECT: connection to server is
established, data can be sent
…Data sent……Data received……Data sent…
+++
Use +++ to enter command mode
OK
ATO1
CONNECT
Use ATO<session_id> to switch back to data
mode
…Data sent……Data received……Data sent…
…Data sent……Data received……Data sent…
OK
Toggle DTR (if using AT&D1 or AT&D2
configuration) to enter command mode
AT+KTCPCLOSE=1,1
Close the session
OK
AT+KTCPDEL=1
Delete the configured session
OK