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.

Info needed on how to receive data on sim340 GPRS modem

Status
Not open for further replies.

Robotica

Newbie level 1
Joined
Apr 29, 2012
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,295
Hi guys
Please note, i am new to the topic so plz be simple in your suggestions.

I would really appreciate if some one could assist me on how to go about test if my sim340 GPRS modem can receive data.
I have used the famous code below to test if the modem sends data.

AT+CGATT=1 - Attach to GPRS Service
AT+CGDCONT=1,'IP','myMTN' - Define PDP Context (cid, PDP type, APN)

AT+CSTT='myMTN'
AT+CIICR - Bring up wireless connection
AT+CIFSR - Get Local IP address
AT+CIPSTATUS - Get Connection Status (needs to be 'IP STATUS' before you can connect to a server)


AT+CIPSTART='TCP','google.com','80' - Start up TCP connection (mode, IP address/name, port)
AT+CIPSEND
GET / HTTP/1.1
Host: www.google.com
Accept: */*
Accept-Language: en-us
- Send a blank-line and then a Ctrl-Z
- Data from the remote server will be sent by the module

I receive all successful results from the modem up until and including GET/HTTP/1.1......how should i enter the rest information (Host,Accept,Accept-language) after this line. should i just press <enter> and type in the rest information on each line???

If i terminate the line GET/HTTP/1.1 with ctrl+Z then i receive "send Ok". I dont receive any other data from the server.
Basically my problem is trying to test if the modem can receive data. If anyone has an easy way to do so...plz let me now.
If anything is not clear, please let me know and i will try to be more clearer.

Thankz guys.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top