beautypg.com

3 send data in command mode connections, 4 receive data in command mode connections – Rainbow Electronics GM862-QUAD-PY User Manual

Page 56

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

is the unsolicited Sring mode.

sets text or hex data view.

sets TCP keepalive parameter in minutes (up to 240), 0 means keepalive

disabled.



Examples:

AT#SCFGEXT = 1,1,0,0 - Socket 1 set with SRING data amount

AT#SCFGEXT = 1,2,1,0 - Socket 1 set with SRING view data mode in hex.

4.2.3 Send data in command mode connections


To send data in command mode we can use the command AT#SSEND.

At the prompt we can write data and send immediately on the socket with CTRL-Z sequence.
Maximum number of bytes is 1024, if more characters are written they are truncated in upload. The
command syntax is:

AT#SSEND =

Where is the connection Id of the socket that we want to use to send data (socket must be
opened otherwise an error is raised).

Example:

We send the string “hello” on an echo socket with SRING mode set to Data amount.

AT#SSEND=1
> hello
OK

SRING: 1,5

4.2.4 Receive data in command mode connections


To receive data in command mode it is possible to use the AT#SRECV.

If we receive an unsolicited message SRING we can extract the data from the socket buffer in
command mode. The syntax of the command is:

AT#SRECV=,