Hmm, lots of questions popping up regarding the cellular modem. Here comes a few:
Is it possible to hook the cellular modem up to a pc with teraterm to get an interactive AT-session with it? And how?
Have anyone experienced with upgrading the firmware on the SIM900 chip?
The built-in IP protocol stuff in the SIM900 chip does not seem to be used anywhere, is there a good reason for that…? (See http://mt-system.ru/sites/default/files/sim900_ip_application_note_v1.03.pdf for details…)
Any pointers appreciated…!
I can help with 1.
You can connect to a PC and the easiest way is to get yourself a USB - TTL converter, the 3.3V types and a Gadgeteer socket breakout board. If you use a USB - RS232 converter you will need a level converter in between. The first option avoids that and it’s a handy tool to have around to connect to Gagdgeteer UARTS anyway for testing
You’ll most likely need and external 5V power supply for it as the SIM900 is not designed for the limited 500mA current from the USB.
You can then connect it up and talk AT commands to it.
I am trying to POST to a server with the SIM 900 using the GPRS network. HEre is my code:
public static string GetRequestString(Device device)
string requeststring = string.Empty;
string enfofline = "\r\n";
JsonSerializer serializer = new JsonSerializer(DateTimeFormat.Default);
string json = serializer.Serialize(device);
requeststring += "POST /1/classes/hummingbird HTTP/1.1" + enfofline; // "POST https://api.parse.com/1/classes/hummingbird HTTP/1.1" + enfofline;
requeststring += "X-Parse-Application-Id: XPxXwDAXAjh7UmYE73P7PUHEcjbs92qLOaO0h1BS" + enfofline;
requeststring += "X-Parse-REST-API-Key: 2eOLXh4TtIqnHRmvTBQESEiGyEir9kcQfmUAXn2a" + enfofline;
requeststring += "Host: api.parse.com" + enfofline;
requeststring += "Content-Type: application/json" + enfofline;
requeststring += "Content-Length: " + json.Length + enfofline; // +enfofline;
requeststring += json;
DOes anyone see anything wrong with this? For some reason i’m able to connect but the response is ‘CLOSED’…very unfriendly sounding and not what I expect.
If you manually capture that request and post it from a browser, does it work ?