Hi, I have seen this a number of times now. When doing an upload of new code, the code is first compiled. Sometimes the previous code sets up a GPRS connection before the AtMega328 is reset for upload of the new code. Once that has happened the GSM module seems to blink it's Net-light as it is connected to a server and the STATUS light is always on. There is no way I can take control of the GSM modem. These are the things I have tried in the setup() routine that does not work:
--- Not working ---
client.shutdown(); //Pulses the POWER-key and is supposed to shut down the Quectel M10.
digitalWrite(3,LOW); //Sets the serial port low (forced break?)
client.stop(); //Claims in debug printing mode to send out +++ followed by AT+QICLOSE()
Pressing Reset //Only resets the ATMega328...
Pressing powerkey //No affect
The TestModem sketch // Prints "Starting modem test...ERROR, no modem answer."
--- working ---
Toggling power DO work ok.
Pulling Emergency_off low for a while. (This pin is not connected on the GSM Shield as it might destroy the modem if used at the wrong times according to the Quectel datasheets)
Please help! I can't have a modem that stops working if the bottom Arduino for some reason resets itself (i.e with a watchdog if there is an error)