Multisocket at commands, Socket status #ss, Syntax – Synaccess Networks NP-0801DTM User Manual

Page 213: Parameters and values, Notes, Examples

Advertising
background image

CUSTOM AT COMMANDS 

 

 

213 

HSPA+ AT Commands Reference Guide

 

Multisocket AT Commands 

Socket Status   #SS 

Execute command reports the current status of the socket. 

Test command reports the range for parameter <connId>. 

Syntax 

Command 

Command type 

AT#SS[=<connId>] 

Execute 

AT#SS=? 

Test 

Parameters and Values 

<connId> 

Socket connection identifier. 

1‐6 

 

The response format is: 
#SS: <connId>,<state>,<locIP>,<locPort>,<remIP>,<remPort> 
where: 

<connId> 

Socket connection identifier. 

<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> 

If the socket is placed in listen mode, the listening port. 
If the socket is used to connect to a remote machine, the local port for the 
connection. 

<remIP> 

When connected to a remote machine, this is the remote IP address. 

<remPort> 

The port connected to on the remote machine. 

Notes 

„

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> 

Examples 

AT#SS

#SS: 1,3,91.80.90.162,61119,88.37.127.146,10510

Advertising