![Lantronix M110 Series Скачать руководство пользователя страница 54](http://html.mh-extra.com/html/lantronix/m110-series/m110-series_command-reference-manual_675725054.webp)
Chapter 13. Applications Notes
–
UART/USB : 1 for UART; 2 for USB
–
IP-port : port on the modem for TCP Socket Server
–
Client/Socket : Use "S" for modem as TCP server
–
IP-address : IP address of TCP Socket client that is accepted for connection. (Note: “255.255.255.255”
means all client connections are accepted)
Command
Response
Description
AT#IPTCP=1,6000,"S","255.255.255.255"
OK
This command is used to set the
port on the local modem and the
client address of the TCP Server
Socket for UART
AT#IPTCP?
#IPTCP:
1,6000,"S","255.255.255.255",1
#IPTCP: 2,0,"C","",1
OK
This command reads what is the
current setting. Note an extra 5th
parameter appears in the read
response. This parameter is
deprecated and can be ignored.
The AT#AUTOTCP command is used to enable or disable AutoTCP by :
AT#AUTOTCP=<enable/disable>
where:
–
enable/disable : 1 to enable; 0 to disable
Notes: After enabling for server mode
–
After at most 30 seconds, the modem is ready as server
–
When external client connects to the modem, the serial/USB port is turned into data mode
–
Every byte sent in data mode goes to the remote socket peer
–
If +++ is sent in data mode, preceded and followed by 1-second of no activity on the data channel,
connection to the remote peer will be broken. "DISCONNECT" will be seen and the port will go back
to AT command (where AT commands are expected)
Command
Response
Description
(See table above)
13.4
Flow diagram of Auto TCP/UDP Connection
M110 Series Cellular Modem mPACK Command Reference
53