vshymanskyy / TinyGSM

A small Arduino library for GSM modules, that just works
GNU Lesser General Public License v3.0
1.91k stars 713 forks source link

[SIM900/SIM800] ERROR LOOP after a short time #21

Closed laserfreak1111 closed 6 years ago

laserfreak1111 commented 7 years ago

I have a SIM900 connected to an arduino uno (Software Serial) running the MQTT example. I publish a message every 10 seconds. After about 3-5 Minutes the sketch will end up in a loop. This also happens if i use Hardware Serial for the SIM900. Can it be a bad serial connection (i´m using 9600 baud)? (Noise because of the GSM Module). Or is there something wrong with the software.

Attached is a Debug log of the communication and the sktech

testgsm2sktech.txt

debug.txt

vshymanskyy commented 7 years ago

Did you solve your issue?

laserfreak1111 commented 7 years ago

not yet. Maybe a bad communication between my atmega2560/ mega328p and the SIM900 / A6 . But i cant do more then connect RX to TX and TX to RX. I also hooked up a logic analyzer. But everything looks fine. It just looses the connection and keeps looping with that error :(.

Do you have any ideas ?

agcII commented 7 years ago

Increase bauddrate. this resolve the problem for my. 9600 is too slowly.

laserfreak1111 commented 7 years ago

Really ? . Ok i will try... I thought lower is better

holgerkoch commented 7 years ago

But why it works with higher baudrate? I think, this is not a definitive solution. Only the probability that it works will be better.

Maybe , i have the same problem. The communication isn't stable. https://github.com/vshymanskyy/TinyGSM/issues/23

Best regards

Holger

gcardo commented 7 years ago

i have same problem. infinit loop arduino send "AT+CIPSTART=1" to sim800 and he responds "ERROR"

vshymanskyy commented 7 years ago

could you try if solutions from https://github.com/vshymanskyy/TinyGSM/issues/30#issuecomment-304804408 work for you?

FabianInostroza commented 6 years ago

This might be related with the issue #62 I submitted

vshymanskyy commented 6 years ago

Please reopen if this still happens on master branch. Thank you!