Telit LE910 V2 Series AT Commands
80446ST10707A Rev. 0– 2015-11-03
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved page 323 of 509
Mod. 0808 2011-07 Rev.2
4.1.6.6. Multisocket AT Commands
Socket Status - #SS
Execution command reports the current status of the socket:
Parameters:
<connId> - socket connection identifier
1..6
The response format is:
#SS: <connId>,<state>,<locIP>,<locPort>,<remIP>,<remPort>
where:
<connId> - socket connection identifier, as before
<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.
6 - Socket resolving DNS.
7 - Socket connecting.
<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.
Note: issuing #SS<CR> causes getting information about status of all the sockets;
the response format is:
#SS: <connId1>,<state1>,<locIP1>,<locPort1>,<remIP1>,<remPort1>
<CR><LF>
…
#SS: <connId6>,<state6>,<locIP6>,<locPort6>,<remIP6>,<remPort6>