8 socket restore - #so – Rainbow Electronics GM862-QUAD-PY User Manual

Page 322

Advertising
background image




AT Commands Reference Guide

80000ST10025a Rev. 5 - 09/07/08

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 322 of 434

#SD - Socket Dial

SELINT 2


Note: <closureType> parameter is valid for TCP connections only and has
no effect (if used) for UDP connections.

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

Note: if we set <connMode> to command mode connection and the
command is successful, the socket is opened and we remain in command
mode
and we see the result code OK.

Note: if there are input data arrived through a connected socket and not
yet read because the module entered command mode before reading
them (after an escape sequence or after #SD has been issued with
<connMode> set to command mode connection), these data are
buffered and we receive the SRING URC (SRING presentation format
depends on the last #SCFGEXT setting); it’s possible to read these data
afterwards issuing #SRECV. Under the same hypotheses it’s possible to
send data while in command mode issuing #SSEND

AT#SD=?

Test command reports the range of values for all the parameters.

Example

Open socket 1 in online mode
AT#SD=1,0,80,”www.google.com”,0,0,0

CONNECT



Open socket 1 in command mode
AT#SD=1,0,80,”www.google.com”,0,0,1

OK

3.5.7.3.8 Socket Restore - #SO

#SO - Socket Restore

SELINT 2

AT#SO=<connId>

Execution command resumes the direct interface to a socket connection
which has been suspended by the escape sequence.

Parameter:
<connId> - socket connection identifier

Advertising