4 socket shutdown - #sh – Rainbow Electronics GM862-QUAD-PY User Manual

Page 318

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 318 of 434

#SGACT - Context Activation

SELINT 2

<userId> - string type, used only if the context requires it
<pwd> - string type, used only if the context requires it

Note: context activation/deactivation returns ERROR if there is not any
socket associated to it (see AT#SCFG).

Note: after the GSM context has been activated, you can use either
Multisocket, or FTP or Email AT commands to send/receive TCP/IP packets
via GSM.

Note: to deactivate the GSM context, AT#SGACT=0,0 has to be issued on
the same serial port used when the context was activated.

Note: GSM context activation is affected by AT+CBST command. In
particular, GSM context activation is just allowed with “non transparent” data
calls.

Note: activating a GSM context while a PDP context is already activated
causes the PDP context to be suspended.

Note: if GSM context is active, it is not allowed any PDP context activation.

AT#SGACT?

Returns the state of all the contexts that have been defined through the
commands +CGDCONT or #GSMCONT

#SGACT: <cid1>,<Stat1><CR><LF>

#SGACT: <cid5>,<Stat5>

where:
<cidn> - as <cid> before
<statn
> - context status
0 - context deactivated
1 - context activated

AT#SGACT=?

Test command reports the range for the parameters <cid> and <stat>

Note

It is strongly recommended to use the same command (e.g. #SGACT) to
activate the context, deactivate it and interrogate about its status.

3.5.7.3.4 Socket Shutdown - #SH

#SH - Socket Shutdown

SELINT 2

AT#SH=<connId>

This command is used to close a socket.

Parameter:
<connId> - socket connection identifier
1..6

AT#SH=?

Test command reports the range for parameter <connId>.

Advertising