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?
-
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
-
@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?
-
@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?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login