![Telit Wireless Solutions UC864-E Скачать руководство пользователя страница 262](http://html1.mh-extra.com/html/telit-wireless-solutions/uc864-e/uc864-e_reference-manual_1083737262.webp)
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 262 of 329
3.5.7.2.10.
Socket Listen
Socket Listen
Socket Listen
Socket Listen ---- #SL
#SL
#SL
#SL
#SL
#SL
#SL
#SL ---- Socket Listen
Socket Listen
Socket Listen
Socket Listen
AT#SL=<connId>,
AT#SL=<connId>,
AT#SL=<connId>,
AT#SL=<connId>,
<listenState>,
<listenState>,
<listenState>,
<listenState>,
<listenPort>
<listenPort>
<listenPort>
<listenPort>
[,<lingerT>]
[,<lingerT>]
[,<lingerT>]
[,<lingerT>]
This command opens/closes a socket listening for an incoming connection
on a specified port.
Parameters:
<
<<
<connId
connId
connId
connId>
>>
> - socket connection identifier
1..6
<listenState>
<listenState>
<listenState>
<listenState> -
0 - closes socket listening
1 - starts socket listening
<listenPort>
<listenPort>
<listenPort>
<listenPort> - local listening port
0..65535
<lingerT>
<lingerT>
<lingerT>
<lingerT> - linger time
0 - immediate closure after remote closure
255 - local host closes only after an escape sequence (+++
+++
+++
+++)
Note: if successful, commands returns a final result code OK
OK
OK
OK . Then, when
there’s an incoming connection on the local port and if the sender is not
filtered by internal firewall (see #FRWL
#FRWL
#FRWL
#FRWL), an URC is received:
SRING : <connId>
SRING : <connId>
SRING : <connId>
SRING : <connId>
Note: the command #SCFGEXT
#SCFGEXT
#SCFGEXT
#SCFGEXT doesn’t influence the presentation format
of the URC SRING
SRING
SRING
SRING
Afterwards we can use #SA
#SA
#SA
#SA to accept the connection or #SH
#SH
#SH
#SH to refuse it.
If the socket is closed by the network the following URC is received:
#SKTL: ABORTED
#SKTL: ABORTED
#SKTL: ABORTED
#SKTL: ABORTED
AT#SL?
AT#SL?
AT#SL?
AT#SL?
Read command returns all the actual listening sockets.
AT#SL=?
AT#SL=?
AT#SL=?
AT#SL=?
Test command returns the range of supported values for all the
subparameters.
Example
at#scfg?
#SCFG: 1,1,300,90,600,50
#SCFG: 2,2,300,90,600,50
#SCFG: 3,2,250,90,600,50
#SCFG: 4,1,300,90,600,50
#SCFG: 5,1,300,90,600,50
#SCFG: 6,1,300,90,600,50
OK