GPRS Module Sim900 Connection to web server (Cosm/Pachube)

Status
Not open for further replies.

RandomWireMan

Newbie level 1
Joined
Sep 28, 2012
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,280
Code:
comsendstr('AT+CIFSR;+CIPSTART="TCP","www.opencellid.org",80');
comsendstr(CR);
Delay(15000);
comsendstr('AT+CIPSEND');
comsendstr(CR);
Delay(2000);

comsendstr('GET /cell/get?key=xxx&mnc=7&mcc=262&lac=11528&cellid=7393047 HTTP/1.1');
comsendstr(CR);
comsendstr(LF);
comsendstr('Host: [url]www.opencellid.org');[/url]
comsendstr(CR);
comsendstr(LF);
comsendstr('Accept: */*');
comsendstr(CR);
comsendstr(LF);
comsendstr(CR);
comsendstr(LF);
comsendstr(Z);
Hi everyone,

I try to connect my uC to cosm/pachube/OpenCellID using a sim900 module and a grps connection:
For debugging purposes, I am using scripts on Braid terminal software to talk to the module
This is what I get if I issue the following commands after setting the APN:


So that's fine. Issuing a request to cosm/pachube leaves me with the "Send OK" message and no response:

If I try to connect directly to the feed, I get the following:
AT+CIPSTART="TCP","api.cosm.com/v2/feeds/xxx.csv",80

OK

STATE: IP STATUS

CONNECT FAIL

So what is wrong with the get request to cosm?

Cheers

RandomWireMan
 
Last edited by a moderator:

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…