Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Pybytes pymesh integration issues

    Scheduled Pinned Locked Moved Pybytes IoT platform
    3 Posts 2 Posters 83 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      thinginnovations
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • A Offline
        alipsilc
        last edited by

        @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!

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          thinginnovations @alipsilc
          last edited by

          @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

          1 Reply Last reply Reply Quote 0

          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
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom