UC864
UC864
UC864
UC864----E/G/WD/WDU
E/G/WD/WDU
E/G/WD/WDU
E/G/WD/WDU AT Commands Reference Guide
AT Commands Reference Guide
AT Commands Reference Guide
AT Commands Reference Guide
80304ST10041a Rev. 6
80304ST10041a Rev. 6
80304ST10041a Rev. 6
80304ST10041a Rev. 6 ---- 2010
2010
2010
2010----0
00
05
55
5----20
20
20
20
Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved.
Page 254 of 329
3.5.7.2.
Multisocket AT Commands
Multisocket AT Commands
Multisocket AT Commands
Multisocket AT Commands
3.5.7.2.1.
Socket Status
Socket Status
Socket Status
Socket Status ---- #SS
#SS
#SS
#SS
#SS
#SS
#SS
#SS ---- Socket Status
Socket Status
Socket Status
Socket Status
AT#SS
AT#SS
AT#SS
AT#SS
Execution command reports the current status of the sockets in the
format:
#SS: <connId>,<state>,<locIP>,<locPort>,<remIP>,<remPort>
#SS: <connId>,<state>,<locIP>,<locPort>,<remIP>,<remPort>
#SS: <connId>,<state>,<locIP>,<locPort>,<remIP>,<remPort>
#SS: <connId>,<state>,<locIP>,<locPort>,<remIP>,<remPort>
[<CR><LF><connId>,<state>,<locIP>,<locPort>,<remIP>,<remPort>
[<CR><LF><connId>,<state>,<locIP>,<locPort>,<remIP>,<remPort>
[<CR><LF><connId>,<state>,<locIP>,<locPort>,<remIP>,<remPort>
[<CR><LF><connId>,<state>,<locIP>,<locPort>,<remIP>,<remPort>
[…]]
[…]]
[…]]
[…]]
where:
<connId>
<connId>
<connId>
<connId> - socket connection identifier
1..6
<state>
<state>
<state>
<state> - actual state of the socket:
0 - Socket Closed.
1 - Socket with an active data transfer connection.
2 - Socket suspended.
3 - Socket suspended with pending data.
4 - Socket listening.
5 - Socket with an incoming connection. Waiting for the user accept or
shutdown command.
<locIP>
<locIP>
<locIP>
<locIP> - IP address associated by the context activation to the socket.
<locPort>
<locPort>
<locPort>
<locPort> - two meanings:
-
the listening port if we put the socket in listen mode.
-
the local port for the connection if we use the socket to connect to a
remote machine.
<remIP>
<remIP>
<remIP>
<remIP> - when we are connected to a remote machine this is the remote
IP address.
<remPort>
<remPort>
<remPort>
<remPort>
- it is the port we are connected to on the remote machine.
AT#SS=?
AT#SS=?
AT#SS=?
AT#SS=?
Test command returns the OK
OK
OK
OK result code.
3.5.7.2.2.
Socket Info
Socket Info
Socket Info
Socket Info ---- #SI
#SI
#SI
#SI
#SI
#SI
#SI
#SI ---- Socket Info
Socket Info
Socket Info
Socket Info
AT#SI[=<connId>]
AT#SI[=<connId>]
AT#SI[=<connId>]
AT#SI[=<connId>]
Execution command is used to get information about socket data traffic.
Parameters:
<connId>
<connId>
<connId>
<connId> - socket connection identifier
1..6
The response format is: