Wireless Stick node hangs after a few days

Hello,

I have more than 200 hundred wireless stick nodes spreads in my company.

40% of then just stop to work after a days or months.

I Just stops to work and start to consume to much battery.

They are LoRa nodes connected to adxl345.

I’m using am timerAttachInterrupt in order to reset the module if it blocks somehow.

Can you give me any suggestion? This is a big issue for me.

hi,

could you provide more details? Is the development board completely malfunctioning? Can lora transfer data normally?etc…

I have same issue. Module hangs several times a day.

Hello @jasonXu,

They work just fine sending dota and measure vibration, however somehow the just stop to work after a deep sleep. And they dont come back. This is my way to try to prevent to block using an watchdog. Do you have better suggetion?

void IRAM_ATTR resetModule(){
ets_printf("(watchdog) reiniciar\n"); //imprime no log
//esp_restart(); //reinicia o chip
heltec_sleep();

}

void configureWatchdog(){
timerWD = timerBegin(0, 80, true); //timerID 0, div 80
//timer, callback, interrupção de borda
timerAttachInterrupt(timerWD, &resetModule, true);
//timer, tempo (us), repetição
timerAlarmWrite(timerWD, 4000000, true);
timerAlarmEnable(timerWD); //habilita a interrupção
//watchdog to avoid stay waked up for a long time
}

void heltec_sleep(){
LoRa.end();
LoRa.sleep();
delay(50);
pinMode(5,INPUT);
pinMode(14,INPUT);
pinMode(15,INPUT);
pinMode(16,INPUT);
pinMode(17,INPUT);
pinMode(18,INPUT);
pinMode(19,INPUT);
pinMode(26,INPUT);
pinMode(27,INPUT);
pinMode(2,INPUT);
rtc_gpio_isolate(SDA);
//rtc_gpio_isolate(SCL);
Heltec.VextOFF();
//saveBatNewHighRef(1000);
delay(5);
Serial.println("*********************************************");
Serial.println(“Going to sleep now”);
delay(5);
esp_deep_sleep_start();
}

hi,

The watchdog of ESP32 is automatically configured by ESP32. You can try to restore the watchdog configuration.

@jasonXu you mean with any code added? Or Could you give me an example to try in my side?

We have conducted some tests these days, and it seems that no problems have been found. Is it possible that the hangs devices have some problem in low power consumption, causing the battery to run out?

Did you tested the battery voltage of the hangs devices?