Pybytes pymesh integration issues



  • Hi,

    I have 3 devices that I performed firmware updates and added to pybytes, the firmware loaded was
    Pycom MicroPython 1.20.2.r1 [v1.11-a5aa0b8] on 2020-09-09; LoPy4 with ESP32
    Pybytes Version: 1.6.0

    They showed up successfully on Pybytes.

    I've then tried to setup a pymesh based on the instructions in the documentation https://docs.pycom.io/pybytes/pymeshintegration/

    When I select Deploy Mesh I see the following error on two of the devices, the third is looks to be ok.

    >>> Pymesh configuration written to /flash/pymesh_config.json
    Requesting: manifest.json?current_ver=1.20.2.r1&sysname=LoPy4&token=xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&ota_slot=0x210000&wmac=3C71BFxxxxxx&fwtype=pymesh&current_fwtype=pybytes to software.pycom.io:443 with SSL? True
    Wrapping socket
    Sending request
    Error reading the manifest, aborting: syntax error in JSON
    

    On the third device that has the firmware, I then see the error:

    rst:0x7 (TG0WDT_SYS_RESET),boot:0x16 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:1
    load:0x3fff8020,len:8
    load:0x3fff8028,len:2140
    ho 0 tail 12 room 4
    load:0x4009fa00,len:19760
    entry 0x400a05bc
    WMAC: 30AEA477A8E8
    Firmware: 1.20.2.rc11
    Pybytes: 1.5.2
    Initialized watchdog for WiFi and LTE connection with timeout 1260000 ms
    WiFi connection established
    Connected to MQTT mqtt.pybytes.pycom.io
    Pybytes connected successfully (using the built-in pybytes library)
    Pybytes configuration read from /flash/pybytes_config.json
    Traceback (most recent call last):
      File "main.py", line 35, in <module>
      File "/flash/lib/pymesh.py", line 57, in __init__
      File "/flash/lib/mesh_interface.py", line 56, in __init__
      File "/flash/lib/mesh_internal.py", line 123, in __init__
      File "/flash/lib/loramesh.py", line 73, in __init__
      File "/flash/lib/loramesh.py", line 122, in _lora_init
    AttributeError: 'Loramesh' object has no attribute 'mesh'
    Pycom MicroPython 1.20.2.rc11 [v1.11-f4d850b] on 2020-07-08; LoPy4 with ESP32
    Pybytes Version: 1.5.2
    Pymesh Version: 1.0.1
    Type "help()" for more information.
    >>> 
    

    It also looks like the firmware on this third device has been downgraded as part of the mesh deployment.

    Any answers as to what is going on here and why it seems to downgrade one of the devices and not find the pymesh firmware?

    Thanks

    Andrew



  • @alipsilc That seemed to work in getting all the nodes on the same downgraded firmware.

    Working through other issues and which example to use for each node before making them do something more interesting.

    Thanks

    Andrew



  • @thinginnovations said in Pybytes pymesh integration issues:

    aded as part

    Hi!

    The Pymesh firmware was created using the Pybytes version 1.5.2 and not updated yet.

    To workaround the deployment issue, at the Pymesh tab, can you please select the devices, remove devices, and add devices again, then deploy Pymesh one more time?

    Thank you!


Log in to reply
 

Pycom on Twitter