AirPrime and HL7548 AT Commands Interface Guide Rev10 0

Table Of Contents
4116303 Rev 10.0 August 10, 2017 207
AT Commands Interface Guide
Protocol Specific Commands
HL7518 and HL7548
4 TCP disconnection by the server or remote client
5 TCP connection error
6 Generic error
7 Fail to accept client request’s
8 Data sending is OK but KTCPSND was waiting more or less characters
9 Bad session ID
10 Session is already running
11 All sessions are used
Reference
Sierra Wireless
Proprietary
Notes
This command is used for connecting to a remote server or listening to a bound port,
depending on the selected mode of <session_id.>
11.10.3. +KTCPRCV Command: Receive Data through a
TCP Connection
HL7518 and HL7548
Test command
Syntax
AT+KTCPRCV=?
Response
+KTCPRCV: (list of possible <session_id>s),(list of possible <ndata>s)
OK
Write command
Syntax
AT+KTCPRCV=
<session_id>,
<ndata>
Response
CONNECT
…<EOF pattern>
OK
+KTCP_NOTIF: <session_id>,<tcp_notif>
Parameters
<session_id> TCP session index
<ndata> Number of bytes the device wants to receive (max value 4294967295)
<tcp_notif> See command AT+KTCPCNX
Reference
Sierra Wireless
Proprietary
Notes
This function is used to receive <ndata> data bytes through a previously opened
TCP socket.
<ndata> indicates the max data number that the terminal wishes to receive. If the
TCP socket contains more data than <ndata> bytes then only <ndata> bytes will
be received. If the TCP socket contains less data than <ndata> bytes then only
TCP socket’s data will be received.
<EOF pattern> would be added at the end of data automatically.
When <ndata> (max value) bytes or only available data in the TCP socket have
been received, the module returns to command state and returns OK.
It is highly recommended to configure the module for hardware flow control using
AT&K3 before using this command.
The behavior of DTR drop meets with AT&D.