2 commands overview, 1 opening a socket connection in command mode – Rainbow Electronics GM862-QUAD-PY User Manual

Page 54

Advertising
background image





Easy GPRS User Guide

80000ST10028 Rev. 4 - 16/07/08

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

page 54 of 63

4.2 Commands Overview


This paragraph describes the configuration and the activation of a command mode connection and the
AT commands implemented to use the new configuration socket parameters.
For anything concerning outgoing and incoming connections, you can refer to the chapter “Enhanced
Easy GPRS Extension“: there are no differences
at sockets level.

NOTE: For more detailed AT commands and parameters definitions consult the AT Commands
Reference Guide.

4.2.1 Opening a socket connection in command mode


To open a socket in command mode we must use the multisocket commands AT#SD or AT#SA.
After a PDP context activation with AT#SGACT it is possible to open all sockets associated to this
PDP context in command mode using:

AT#SD=<connId>,<txProt>,<rPort>,<IPaddr>[,<closure type>[,<lPort>],1]]

In case of listening, after an unsolicited indication for an incoming connection

SRING: <connId>

we have to use:

AT#SA = <connId>,1

where the last parameter of AT#SD and AT#SA is <ConnMode>. Default value is 0 which means
“classic” online mode, 1 is used for command mode.

Examples:

Open a command mode socket on connection Id number 1:

AT#SD =1,0,10510,”88.37.127.146”,0,0,1
OK

After an unsolicited indication for an incoming connection on a listening connId:

SRING: 1

AT#SA = 1,1
OK

Advertising