Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

gprs modem connection problem

Status
Not open for further replies.

KICHUDAVID

Newbie level 1
Joined
Dec 31, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,293
SETUP THE MODULE

AT+CMGF=1 ; sets text mode (0 sets Packet Data Mode)
AT+CSCS="GSM" ; sets GSM-character text mode
AT+CGATT? ; Must return "+CGATT:1" indicates DATA is active

TCP GPRS CONNECTION
AT+CIPSRIP=1 ; shows you the received information and IP address and port number of the sender.
AT+CGDCONT=1,"IP","airtelgprs.com" ; Define PDP Context
AT+CDNSCFG="000.000.000.000","000.000.000.000" ; Insert Primary and Secondary DNS
AT+CSTT="airtelgprs","","" ; Insert APN user name and password
AT+CIICR ; Make the connection
AT+CIFSR ; Gets the IP address of local module
AT+CIPSTATUS ; Must be "STATE: IP STATUS" for connection
AT+CDNSORIP=1 ; Indicates whether connection request will be IP address (0), or domain name (1)
AT+CIPSTART="TCP","www.google.com","80" ; Used for connection testing will return "CONNECT OK"
AT+CIPSEND ; Data to be sent, use "Control Z" to send data

TEST DATA TO SEND
> GET / HTTP/1.1
Host: Google
Accept: */*
Accept-Language: en-us ; cONTROL z "SEND OK" on success


but i coudn't get the google page


plz help me:roll::roll::roll:
 

The following is the commands I used and it worked... First use this code and test your setup...


at+cgatt?

+CGATT: 1

OK
AT+CSTT="AIRTELGPRS.COM"

OK
AT+CIICR
AT
OK
+CIFSR

223.179.159.3
AT+CIPSTART="TCP","74.125.224.72","80"

OK

CONNECT OK
AT+CIPSEND

> GET / HTTP/1.1
Host: Google
Connection: Keep-Alive
Accept: */*


SEND OK
HTTP/1.1 302 Found
Location: Google
Cache-Control: private
Content-Type: text/html; charset=UTF-8
X-Content-Type-Options: nosniff
Date: Mon, 26 Dec 2011 17:38:47 GMT
Server: sffe
Content-Length: 219
X-XSS-Protection: 1; mode=block

<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8"><TITLE>302 Moved</TITLE></HEAD><BODY><H1>302 Moved</H1>The document has moved<A HREF="http://www.google.com/">here</A>.
</BODY></HTML>
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top