pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
198 stars 167 forks source link

Pymesh online software update doesn't work after site update #595

Open Ro0t-set opened 2 years ago

Ro0t-set commented 2 years ago

(sysname='FiPy', nodename='FiPy', release='1.20.2.r6', version='v1.11-c5a0a97 on 2021-10-28', machine='FiPy with ESP32', lorawan='1.0.2', sigfox='1.0.1', pybytes='1.7.1')

Normally after the Pymesh firmware became 1.20.2.rc11, the Pymesh library is installed, and at reboot the device started automatically the LoRa Mesh network.

Now nothing changes.

Update Output:

Requesting: manifest.json?current_ver=1.20.2.r6&sysname=FiPy&wmac=f008d1ccdd9c&ota_slot=0x210000 to software.pycom.io:443 with SSL? True
Wrapping socket
Sending request
Requesting: downloads/appimg/firmware_FiPy_1.20.2.r6-pybytes.bin to software.pycom.io:443 with SSL? True
Wrapping socket
Sending request
Full Update Image detected. Restart the device to load the new firmware.
ets Jun  8 2016 00:22:57

Even after the update all the pymesh modules do not work

wdebbaut commented 2 years ago

pymesh_online_update As you can see above, I experience the same issue of not being able to update online the pymesh firmware to a connected device on PyBytes. I wonder if ever this feature worked before. Is there any offline possibility to upload the firmware in my IDE?

Ro0t-set commented 2 years ago

Yes, you can use this guide : doc link Firmware : Download link In the previous version of the site it worked However, this will not automatically generate pymesh_config.json

wdebbaut commented 2 years ago

Thank you sir, Do I have to flash this bin file with the cli firmware updater? If so, to what partition?

Ro0t-set commented 2 years ago

I first of all format and install the firmware using the appropriate tool (pycom firmware update), then I do the ota update as explained in the documentation

wdebbaut commented 2 years ago

I am a bit lost now Tommaso! With the offline pycom firmware update tool version 1.16.6 (see below, I can only install firmwares with the tar or gz exension. The one you gave me is with a bin extension. How do you format firmware anyways? pycom_upgrade

I tried once again the online firmware update for the deployment of the pymesh firmware. Still no result after my first attempt four days ago. I would have hoped someone at PyCom is working on it as we have 20 devices lying around here to be provsioned with pymesh....

Ro0t-set commented 2 years ago

I try to explain you by points, but the process I found is quite long

This process is very inconvenient, but it works. Unfortunately it doesn't generate the pymesh configuration file, I found a way to do that too, but if you have old files I recommend using those.