4 open a command mode connection with at#sa – Rainbow Electronics GM862-QUAD-PY User Manual

Page 60

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 60 of 63

Data are extracted directly from the socket buffer, now we send more than 64 characters, this
will cause two unsolicited SRING.

AT#SSEND=1
> testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttest
OK

SRING: 1,64,testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttest

SRING: 1,4,test


The first unsolicited contains the first 64 bytes of the socket buffer, the remaining 4 are extracted with
the second unsolicited message.

4.3.4 Open a command mode connection with AT#SA


After using AT#SL we have a <connId> listening on a specific port (only for TCP connections).
If we receive an incoming connection an unsolicited code is raised.

AT#SL = 1,1,1000

SRING: 1

Now we can accept the incoming connection:

AT#SA = 1,1
OK

and we stay in command mode, but the connection has been opened.

4.3.5 Passing from command mode to online mode interface


It’s always possible to come back to online mode interface using the command AT#SO =
<connId>.

Open an echo socket in command mode:


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

SRING: 1,5

Advertising