Pages: [1]   Go Down
Author Topic: Sim900 crashing  (Read 205 times)
0 Members and 1 Guest are viewing this topic.
Emsworth, UK
Offline Offline
Newbie
*
Karma: 0
Posts: 30
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have a sensor which is uploading information to a server using a sim900 from
http://www.tinyosshop.com/index.php?route=product/product&filter_name=sim900&filter_description=true&filter_sub_category=true&product_id=464

using this library https://github.com/MarcoMartines/GSM-GPRS-GPS-Shield/tree/GSMSHIELD/doc

I'm having problems though because after a number of hours it seems to stop sending to the server, I know that the uno is still running and the sensor is being used but the GSM shield is unable to upload the information.

Any ideas why this might be and is there a way to reset the sim900 in the code or to detect if it has crashed?

Thanks
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 631
Posts: 50041
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Any ideas why this might be
Hardware might be having problems.
Software might be having problems.

Quote
and is there a way to reset the sim900 in the code
No.

Quote
or to detect if it has crashed?
Of course. Send it an AT command. Read the response. If there is no response in a reasonable time, use it to send you a text message.
Logged

Offline Offline
Full Member
***
Karma: 7
Posts: 142
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Most probably you have lost command sync with the 900

By which I mean you must wait for reply from 900 and never send another AT command before the previous command responce has been see.

I have tested many of the GSM modules most initially fail to respond in this situation but eventually some firmware timeout resets and the module comes back, my notes on the 900 imply this as with the Seimans tc 35i the only way out of this situation  is to physically reset the module.

 smiley-cool smiley-cool  Happy Coding..
Logged

Leeds, England, (dis)UK
Offline Offline
God Member
*****
Karma: 16
Posts: 702
Quick, chuck it in the bin before the boss finds out...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've just had a quick look at the schematics and it looks like you can use software to turn the shield on and off. If this is the case then periodically send an AT to the shield and if it doesn't respond within a certain time turn the shield off and back on again.
Logged

Beginners guide to using the Seeedstudio SIM900 GPRS/GSM Shield

Pages: [1]   Go Up
Jump to: