LE910-SKG AT commands reference guide
80437ST10619A Rev.1 – 2014-09-16
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved
page 187 of 273
#SCFGEXT2 - Socket Configuration Extended
#SD - Socket Dial
AT#SD=<connId>,
<txProt>,<rPort>,
<IPaddr>
[,<closureType>
[,<lPort>
[,<connMode>
[,<txTime>]]]]
Execution command opens a remote connection via socket.
Parameters:
<connId>
- socket connection identifier
1..6
<txProt>
- transmission protocol
0 - TCP
1 - UDP
<rPort>
- remote host port to contact
1..65535
<IPaddr>
- address of the remote host, string type. This parameter can be
either:
- any valid IP address in the format: “xxx.xxx.xxx.xxx”
- any host name to be solved with a DNS query
<closureType>
- socket closure behaviour for TCP
0 - local host closes immediately when remote host has closed (default)
255 - local host closes after an escape sequence (
+++
)
<lPort>
- UDP connections local port
1..65535 (factory default is 0)
<connMode>
- Connection mode
0 - online mode connection (default)
1 - command mode connection
<txTime>
- Adjusting a time interval for series of UDP data packets will be
uploaded.
0 – Time interval is not requested (default)
1..1000 – Time interval in milliseconds.
Note:
<closureType>
parameter is valid for TCP connections only and has
no effect (if used) for UDP connections. If the socket connection is opened in CMD
mode, <closureType> 255 does not take effect.
Note:
<lPort>
parameter is valid for UDP connections only and has no
effect (if used) for TCP connections.
Note: if we set
<connMode>
to
online mode connection
and the
command is successful we enter in
online data mode
and we see the
intermediate result code
CONNECT
. After the
CONNECT
we can suspend
the direct interface to the socket connection (nb the socket stays open)
using the escape sequence (
+++
): the module moves back to
command
mode
and we receive the final result code
OK
after the suspension. After
such a suspension, it’s possible to resume it in every moment (unless the
socket inactivity timer timeouts, see
#SCFG
) by using the
#SO
command
with the corresponding
<connId>
.
Summary of Contents for LE910-SKG
Page 1: ......