waqasaps2 / gsm-shield-arduino

This library can be used with GSM shield
0 stars 0 forks source link

Through AT commands the module can be destried #86

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I called the following command "AT+CSCLK=1" with the library: 
gsm.SimpleWriteln("AT+CSCLK=1");

Now the GSM module will not start any longer. If I make the power on process 
manually like described in the datasheet, the SIM900 will partly communicate, 
but produces a lot of errors. I listened on the UART and it looks like this:
AT
AT
AT
AT
AT
AT
AT
AT
AT
AT&F
ATE0
AT+CLIP=1
AT+CMEE=0
AT+CMEE=0
AT+CMEE=0
AT+CMEE=0
AT+CMEE=0
AT+CMGF=1
AT+CMGF=1
AT+CMGF=1
AT+CMGF=1
AT+CMGF=1
AT+CNMI=2,0
AT+CNMI=2,0
AT+CPMS="SM","SM","SM"
AT+CPMS="SM","SM","SM"
AT+CPMS="SM","SM","SM"
AT+CPMS="SM","SM","SM"
AT+CPMS="SM","SM","SM"
AT+CPMS="SM","SM","SM"
AT+CPMS="SM","SM","SM"
AT+CPMS="SM","SM","SM"
AT+CPMS="SM","SM","SM"
AT+CPMS="SM","SM","SM"
AT+CPBS="SM"
AT+CPBS="SM"
AT+CPBS="SM"
AT+CPBS="SM"
AT+CPBS="SM"
AT+CIPSHUT
AT+CIPSHUT
AT+CIPSHUT
AT+CIPSHUT
AT+CIPSHUT
ATE0

The autostart of the library only produces this:
AT
AT
...
AT
xxx x x xx x   x f (crazy letters) AT+IPR=9600¦ (more crazy letters)

I tried to reset the module with the following commands:
gsm.SimpleWriteln("ATZ")
gsm.SimpleWriteln("AT&F")

But it was no solution. Then I tried to send the commands through this 
application:
http://m2msupport.net/m2msupport/module-tester/
It is possible to send the commands, and I receive a "OK", but when I try to 
start the module later, I only receive ERROR.

To reset the module through the hardware reset input was also no solution.

Does anybody has an idea?

Original issue reported on code.google.com by felixgro...@gmail.com on 27 Jul 2013 at 8:19

GoogleCodeExporter commented 8 years ago
I solved it. The reason was, that the module was in the sleep mode. Because of 
that, the library couldn't communicate with the module.

To reset the module through the AT command is only possible if the DTR pin is 
high. But a reset was not the solution.

I had to call: 
AT+CSCLK=0 // deactivate sleep mode
AT&W       // save settings

The solution came through the Arduino forum:
http://forum.arduino.cc/index.php?topic=179654.0

So be carfully with calling AT+CSCLK=1

Original comment by felixgro...@gmail.com on 31 Jul 2013 at 3:34

GoogleCodeExporter commented 8 years ago
Thank you for reporting your experience. This will be helpfull to other.
Anyway this issue section is not longer supported.
Next time please check the support page and forum at www.gsmlib.org 

Original comment by martines...@gmail.com on 10 Aug 2013 at 7:35