![Lantronix M110 Series Скачать руководство пользователя страница 53](http://html.mh-extra.com/html/lantronix/m110-series/m110-series_command-reference-manual_675725053.webp)
Chapter 13. Applications Notes
–
IP-address : IP address of TCP Socket server
Command
Response
Description
AT#IPTCP=?
#IPTCP:
(1-2),(0-65535),("C","S"),"(120)",(1)
OK
This command is used to give the
valid range of all parameters.
AT#IPTCP=1,50000,"C","162.242.170.48"
OK
This command is used to set the
IP address and port of the TCP
Client Socket for UART.
AT#IPTCP?
#IPTCP:
1,50000,"C","162.242.170.48",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
Command
Response
Description
AT#AUTOTCP=?
#AUTOTCP: (0,1)
OK
This command is used to give the
valid range of the parameter.
AT#AUTOTCP?
#AUTOTCP: 0
OK
This command checks the current
status of AutoTCP.
AT#AUTOTCP=?
OK
This command turns on AutoTCP.
Notes: After enabling for client mode:
–
"CONNECT" should appear on the UART/USB port of the modem approximately 20 seconds after-
wards
–
Thereafter, the port is turned into data mode, where no AT commands are accepted.
–
Every byte sent in data mode goes to the remote 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)
13.3
AutoTCP Server Setup Example
Note-1: AutoTCP should be disabled before changing any AT#IPCELLULAR and AT#IPTCP parameters
Note-2 : AT#IPCELLULAR parameters must be set up correctly before AutoTCP can be used
The AT#IPTCP command is used to setup TCP Client socket parameters:
AT#IPTCP=<UART/USB>,”<IP-port>”,”<Client/Socket>”,”<IP-address>”
where:
M110 Series Cellular Modem mPACK Command Reference
52