Firmware updates OTA using painlessmeshboost sucessfull but sent multiple time

749 views
Skip to first unread message

alfo...@gmail.com

unread,
Jun 9, 2020, 4:37:08 PM6/9/20
to painlessmesh-user
Hi
I have setup a painlessmesh network with about 3 control devices ESP8266 plus a MQTT bridge also ESP8266.
This networkk works fine.
I have tried the painlessmeshboost so that I can send new firmware to my mesh nodes.
The new firmware was sent to the correct node. I used the COMMUNICATION option to log the messages over serial
port to my PC.
My OTA bridge is another ESP8266. 
Note: The MQTT bridge is turn off to use the OTA Bridge.
The raspberryPi sent the new firmware as expected (about 2 minutes to comnplete) 
The ESP8266 reboot but after a few minutes restart a new download.
To stop that loop I had to kill the painlessmeshboost program on the Raspberry PI.

Arduino IDE 1.8.10 with ESP8266 core lib 2.7.5 and latest version of painlessmesh.
RaspberryPI 4 running standard image Buster and painlessmeshboost clone about 10 days ago.

Any ideas on how I can solve that issue ?

BlackEdder

unread,
Jun 10, 2020, 3:32:20 AM6/10/20
to painlessmesh-user
If you enable DEBUG mode then the updated node should (just after the reboot) say something like [1] (with md5sum replaced by your actual md5sum):

DEBUG: MD5 found <md5sum>

Could you double check whether this is the case?

alfo...@gmail.com

unread,
Jun 10, 2020, 8:27:55 AM6/10/20
to painlessmesh-user
Hi 
Thank you for your quick answer.
With DEBUG flag I now see the MD5 .

I think the problem is from the server program painlessmeshboost.

For the first version of the firmware : Everything was OK only ONE single download.

Then I have remove the initial version from ota-dir 
copy a new version of the program 

Now the problem 
It seems that the server is announcing both version of the firmware.
The result is the ESP8266 receive initial version 
and then new version 
and back to initial version.

If I stop the server program this will stop.
This work around cause me another problem, from the server side I do not see
OTA activity with remote node.

I have attached my logfile.
Thanks for your help
ESP8266Log1

BlackEdder

unread,
Jun 11, 2020, 3:32:56 AM6/11/20
to painlessmesh-user
Does it work if you overwrite the initial version instead of removing it first?

alfo...@gmail.com

unread,
Jun 11, 2020, 2:33:28 PM6/11/20
to painlessmesh-user
Hi BlackEdder

I have started the painlessmeshboost with only one version.
This has a comment latest update
The I have compiled a new version with The very latest version

I have copied/overwrite this bin file to ota-dir 

Again this cause a loop, see the attached file.

Thanks for your help 




ESP8266Log3

alfo...@gmail.com

unread,
Jun 16, 2020, 8:55:49 PM6/16/20
to painlessmesh-user
Hi BlackEdder

Any idea what is going on with my painlessmeshboost progeam?

Reply all
Reply to author
Forward
0 new messages