FOTA with MYSController does not work with sleeping Sensebender Micro
-
I use the "official" sketch for the Sensebender Micro. However, with "MEASURE_INTERVAL = 6000" and "FORCE_TRANSMIT_INTERVAL = 1" in order to transmit every 6 seconds.
Gateway is rpi ethernet.
MYSController 1.0.0beta (build 3316), "Sensebender board = TRUE", "Battery-powered / sleeping = TRUE" gives the following message but nothing more happens.
If I replace sleep by wait in the sketch and set "Battery-powered / sleeping = FALSE" in MYSController then FOTA works flawlessly. But then node is not sleeping.
Anyone knows how to get it working with a sleeping node?
-
@arrawx You should enable smart sleep.
Substitute:
https://github.com/mysensors/SensebenderMicro/blob/master/Arduino/SensebenderMicro/SensebenderMicro.ino#L221for
sleep(MEASURE_INTERVAL, true);
and in MYSController set Sensebender board = TRUE, Battery-powered/sleeping = TRUE
-
@tekka Thank you. However, it turned out that your advice was only part of the solution.
In order to solve the problem I had to also change the sensebender from 2.1.1 to development branch.
My rpi gateway uses development branch (due to reasons discussed here). Does the version mismatch between node and gateway explain why FOTA was not working?
-
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
Ghost Child
Troubleshooting • 15 days ago • FcNanoLed 11 days ago -
Getting system time from the controller
Troubleshooting • 27 Feb 2025, 01:39 • dpcons 27 days ago -
Echo request is not set
Troubleshooting • 12 Aug 2024, 15:36 • kamilb85 3 Sept 2024, 08:58 -
NODs stop responding, but ping works.
Troubleshooting • 21 days ago • Marcin 21 days ago -
JSN-SR04T-V3.0 Coax cable extended
Troubleshooting • 10 days ago • bocalexandru 8 days ago