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.

Opening a web page using GPRS of GSM/GPS module SIM548c

Status
Not open for further replies.

umerhuzaifa

Newbie level 6
Joined
Feb 15, 2010
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
sargodha,pakistan
Activity points
1,362
assalamualaekum!

I am working on sim 548c and want to open a website (any website)..i followed the following set of commands for establishing connection and sending the request..

at
ok
at+cgatt=1
ok //enabling gprs
at+cgdcont=1,"IP","ufone.internet"
ok
at+cstt="ufone.internet","ufone","ufone"
ok
at+ciicr
ok
at+cifsr
ok //ip given by the service provider
at+cdnscfg="0.0.0.0"
ok
at+cdnsorip=0
ok
at+cipstart="TCP","74.125.39.147","80"

(i put in the ip of a site ,google.com)(i thought ,the ip here should be of the site we are to open or the name of the site ..please correct me if i am wrong)

-ok
-connect ok

at+cipsend
>get Google http/1.1 ^m^j^m^j^z

-send ok

but after a few seconds i get a huge data in ASCII format and on copying that in a note pad and then saving that as .html i get the following web page ..ALWAYS..


it will be very kind of you to please help me solve this issue..
i have followed the data available on this site but i couldnt get my problem solved..

Regards,
Umer
 

hi umerhuzaifa
use this
Code:
at+cipsend
>GET https://www.google.com(cr)(lf)
Connection:Keep-Alive(cr)(lf)
(cr)(lf)(ctrl+z(0x1A))

then you got the html page
if this is not working try this

at+cipsend
>GET index.html HTTP/1.1(cr)(lf)
Host:www.google.com(cr)(lf)
Connection:Keep-Alive(cr)(lf)
(cr)(lf)(ctrl+z(0x1A))

instead of this

at+cipsend
>get Google http/1.1 ^m^j^m^j^z
 
Last edited by a moderator:

i have got it solved..
but there are many websites like www.download.cnet.com and many others which dont open either
1-at at+cipstart=.. level giving an error rather than telling CONNECT OK
or
2-give html file reading 404 BAD REQUEST..

thanks for ur reply..
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top