I have a CR1000 utilizing a Cell210 to send email alerts via EmailRelay. I have had occassions in the past the modem was not registered on Konectgds. Power cyclng the modem re-establishes connectivity.
I need to know how to detect, with the CR1000 program, when the modem is not registering. I currently power cycle with SW12, but this is based on time of day. I would like to power cycle based on a failed email attempt, but the emalrelay seems to always return a TRUE response value although no modem or ethernet is connected.
The simplest way in your program to check is do a PingIP(). If you can't ping google.com, your network connection isn't working.
You can also read the cellular modems state via CRBasic. See https://s.campbellsci.com/documents/us/miscellaneous/CELL2XX-Settings.dld for details on how to do this in a CRBasic program.