Rainbow Electronics GM862-QUAD-PY User Manual

Page 52

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

Define GSM Context

AT#GSMCONT=0,”IP”,”

3359009000”,”0.0.0.0”

GPRS Context Activation

AT#SGACT=0,1


You have to define GSM context filling in the information of the Internet Service Provider Number.
Next step is activation of GSM context which gives as reply the IP of the module assigned by network:

AT#SGACT=0,1
#SGACT: 217.200.58.225
OK

Configuration for the module that opens connection (client):

Define PDP Context

AT+CGDCONT=1,”IP”,”ibox.tim.it”,”0.0.0.0”

GPRS Context Activation

AT#SGACT=1,1


You have to define PDP context filling in the information of APN in this example: ibox.tim.it.
Next step is activation of GPRS context which gives as reply the IP of the module assigned by
network.

AT#SGACT=1,1
#SGACT: 217.201.142.223
OK

Now, on the server side, before opening socket in listen it is possible to define an accept firewall chain
in order to filter IP of the senders.
Then with the AT command AT#SL=1,1,1024,0 the socket will be set in listen on the port #1024:

Firewall Setup

AT#FRWL=1,” 217.201.142.223”,”0.0.0.0”

Socket Listen

AT#SL=1,1,1024



On the client side, you can open the connection with the remote host with IP address 217.200.58.225
on the port 1024 (as in example):

Socket Dial

AT#SD=2,0,1024,” 217.200.58.225”



NOTE: IP of the modules can be verified with the following AT command line: AT#CGPADDR=

Advertising