AirPrime and HL7548 AT Commands Interface Guide Rev10 0

Table Of Contents
4116303 Rev 10.0 August 10, 2017 205
AT Commands Interface Guide
Protocol Specific Commands
11.10. TCP Specific Commands
11.10.1. +KTCPCFG Command: TCP Connection
Configuration
HL7518 and HL7548
Test command
Syntax
AT+KTCPCFG=?
Response
+KTCPCFG: (list of possible <cnx_cnf>s),(list of possible <mode>s),
<remote-name/ip>,(list of possible <tcp_port >s),(list of possible <source_port>s),(list of
possible <data_mode>s),(list of possible <URC-ENDTCP-enable>s),(list of possible
<af>s),(list of possible <cipher_index>es)
OK
Read command
Syntax
AT+KTCPCFG?
Response
+KTCPCFG: <session_id>,<status>,<cnx cnf>,<mode>[,<serverID>],
<tcp remote address>,<tcp_port>[,<source_port>],<data_mode>,
<URC-ENDTCP-enable>,<af>,<cipher_index>
[…]]
Write command
Syntax
AT+KTCPCFG=
[<cnx cnf>],
<mode>,
[<tcp remote
address>],
<tcp_port>[[,
[<source_port>]
[,[<data_mode>],
[<URC-ENDTCP-
enable>]]],<af>]
[,<cipher_index>]
Response
+KTCPCFG: <session_id>
OK
Parameters
<cnx cnf> Index of a set of parameters for configuring one TCP session (see
+KCNXCFG)
<session_id> TCP session index
<mode> 0 Client
1 Server
2 Child (generated by server sockets)
3 Secure client
<tcp remote address> IP address string or explicit name of the remote server. For
server configuration, this parameter is left blank
<tcp_port> TCP port number; numeric parameter with range 1 – 65535. This parameter is
the listening port for a server configuration.
<status> Connection state of the selected socket
0 Disconnected
1 Connected
<serverID> Server session ID index. Only for sockets in CHILD mode
<source_port> Numeric parameter (0-65535). Specifies the local TCP port number.
This parameter is left blank for a server configuration.