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.

vehicle tracking using gps and gprs

Status
Not open for further replies.

Hari Prasad Bhattarai

Newbie level 2
Joined
Nov 9, 2008
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,297
i am doing project vehicle tracking using gps and gprs . i have used same commands using hyperterminal , which are given below . however TCP connection to google is successful using IP address instead domain name . then after > FET/HTTP/1.1 Then modem becomes hang and no respone is obtained untill modem is restarted. please help me. what can i do?


>> AT+CGATT=1 - Attach to GPRS Service
<< OK

>> AT+CGDCONT=1,"IP","wap.cingular" - Define PDP Context (cid, PDP type, APN)
<< OK

>> AT+CDNSCFG="208.67.222.222","208.67.220.220" - Configure Domain Name Server (primary DNS, secondary DNS)
<< OK

>> AT+CSTT="wap.cingular","wap@cingulargprs.com","cingular1" - Start Task & set APN, User ID, and password
<< OK

>> AT+CIICR - Bring up wireless connection with GPRS - THIS MAY TAKE A WHILE
<< OK

>> AT+CIFSR - Get Local IP address
<< 10.190.245.172 - returns IP address assigned to your module
<< OK

>> AT+CIPSTATUS - Get Connection Status
<< OK
<< STATE: IP STATUS - returns status of connection, needs to be 'IP STATUS' before you can connect to a server





>> AT+CIPHEAD=1 - Tells module to add an 'IP Header' to receive data
<< OK

>> AT+CDNSORIP=1 - Indicates whether connection request will be IP address (0), or domain name (1)
<< OK

>> AT+CIPSTART="TCP","www.google.com","80" - Start up TCP connection (mode, IP address/name, port)
<< OK
<< CONNECT OK - Indicates you've connected to the server - IT MAKE TAKE A WHILE FOR THIS TO BE RETURNED

>> AT+CIPSEND - Issue Send Command
<< > - wait for module to return'>' to indicate it's ready to receive data
>> GET / HTTP/1.1 - Send data - this example is an HTTP request for the default page
>> Host: www.google.com
>> Connection: Keep-Alive
>> Accept: */*
>> Accept-Language: en-us
>>
<< data from server returned - Server will return data here
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top