embeddedsim900gsmcomm

How to know the network status of SIM800 module using AT command?


In my current scenario, I'm using NETLIGHT Pin (Pin no. 64) of SIM800 module with my PIC microcontroller to know whether my module is registered or not?

This way

This way I built the circuit. Just I removed LED from VBAT. Then I connect collected of NPN transistor to pic micro input PIN.

I want to know whether any easy way using AT commands to find network registration status of SIM800?


Solution

  • Unfortunalty it's seem not to be really possible (or in fact detecting this state in only one way) I use SIM800 and let it run for hours and I have seen many cases of network loose, while the AT+CREG? continue telling everything is OK.

    Also, even with network down, the SIM800 continue sending you the name of the operator and the strengh of the signal.

    The only way I've found is to monitor the serial port: when the SIM800 loose the network, it sends two messages: +PDP: DEACT and +SAPBR 1: DEACT

    I suggest you to have a look at the document "SIM800 Series_AT Command Manual" and especially the chapter "19.3 Summary of Unsolicited Result Codes". You'll find +PDP and other interesting code (like under-voltage warning, DNS failed...) and see some of these messages are not linked to AT command.