DE910-DUAL AT commands reference guide
80392ST10102A Rev.2 – 2012-07-03
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved
page 159 of 261
#SS - Socket Status
AT#SS
Execution command reports the current status of the sockets in the format:
#SS: <connId>,<state>,<locIP>,<locPort>,<remIP>,<remPort>
[<CR><LF><connId>,<state>,<locIP>,<locPort>,<remIP>,<remPort>
[…]]
where:
<connId>
- socket connection identifier
1..6
<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>
- IP address associated by the context activation to the socket.
<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>
- when we are connected to a remote machine this is the remote IP
address.
<remPort>
- it is the port we are connected to on the remote machine.
AT#SS=?
Test command returns the
OK
result code.
Example
AT#SS
#SS: 1,3,91.80.90.162,61119,88.37.127.146,10510
#SS: 2,4,91.80.90.162,1000
#SS: 3,0
#SS: 4,0
#SS: 5,3,91.80.73.70,61120,88.37.127.146,10509
#SS: 6,0
OK
Socket 1: opened from local IP 91.80.90.162/local port 61119 to remote IP
88.37.127.146/remote port 10510
is suspended with pending data
Socket 2: listening on local IP 91.80.90.162/local port 1000
Socket 5: opened from local IP 91.80.73.70/local port 61120 to remote IP
88.37.127.146/remote port 10509
is suspended with pending data
Содержание DE910-DUAL
Страница 1: ...80392ST10102A Rev 2 2012 07 03...