Electron reboot after SMS is received

Hi,

I have been debugging a few applications and it seems I found the source of my problems. As soon a the Electron receives an SMS the led starts to flash red a few times and then the Electron reboot and continue. I am using an third party sim and send and receive SMSs only.

SYSTEM_MODE(MANUAL);
SerialLogHandler logHandler(LOG_LEVEL_ALL);
int pos;
char szReturn[32] = "";
#define TIMEOUT 1000

int callback(int type, const char* buf, int len, char* param)
{
delay(100);

return WAIT;
}

void setup()
{
Serial.begin(9600);
Cellular.on();
delay(3000);
}

void loop()
{
       Cellular.command(callback, szReturn, TIMEOUT, "AT+CSQ\r\n");
       Serial.println(szReturn);
       pos = pos + 1;
       Serial.println(pos);
       delay(1000);
}

All help would be appreciated.

What pattern/how many times?

3 flashes / quick delay / 3 flashes / quick delay / 2 flashes then reboot and blue again
after registration

You don’t seem to set an APN for a SMS enabled SIM.
Particle SIMs don’t.

I sent you a PM about a possible solution.

1 Like