beautypg.com

Gprs commands / application example – Westermo GD-01 User Manual

Page 199

background image

199

6196-2220

GPRS

Internet

CHANNEL 3

PWR

RD

TD

DCD2

DCD3

DCD4

CHANNEL 2

POWER

12-36V DC

1

2

3

4

5

- +

R+ R- T+ T-

1

2

3

4

5

6

7

8

9

1

2

3

4

5

6

7

8

9

R+ R-

T+ T-

T+ T-

R+ R-

GD-01

PC

GPRS Commands / application example

Activation of an IP PDP context

AT +CGDCONT=1, "IP", "internet"
AT +GCDCONT=2, "IP", "abc.com"

Define 2 PDP contexts

OK

ATD*99***1#

Request GPRS IP service in context #1

CONNECT

Connection established

Other example:

AT +CGCLASS=”CG”

Set GPRS mobile station class to: class C

OK

ME in GPRS only mode

+CGREG: 1

ME registered, home network

AT +CGDCONT=1,
"IP", "internet"

Define PDP context

OK

AT +CGQREQ=1,1,4,5,2,14

Define requested Quality of Service profile

OK

AT +CGQMIN=1,1,4,5,2,14

Define minimum acceptable Quality of Service profile

OK

AT +CGATT=1

Attach the ME to the GPRS service

OK

AT +CGACT=1,1

Activate PDP context

OK

//Remark about +CGDATA: the goal of this command is the same as ATD*99*** so, the
best will be to use only ATD*99***//

AT +CGDATA=1

Request GPRS data state

CONNECT

connection established

.......
Data transfer

transfer data...

.......

+CGEV: NW DETACH

All active conexts have been deactivated

B A C K