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

    How to update script on 100 boards

    Scheduled Pinned Locked Moved LoPy
    lopyloracodefirmware updatefirmware
    8 Posts 4 Posters 1.9k Views 4 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.
    • G Offline
      gruia.nichita
      last edited by

      For example I have 100 LoPy, they seted in one building and I need to update code on all boards? The building is covered LoRa and all devices use this network. How I can solve this?

      C 1 Reply Last reply Reply Quote 0
      • T Offline
        this.wiederkehr
        last edited by

        While it might be technically possible to use lora to distribute an upgrade it seems not to be useful. Lora at most has a bandwith of 50000 bit/s and there are regulatory requirements about the on-air-time of a device which is very limited (I think it usually is 1%). This means you are better of distributing firmware upgrades using wifi (if you have the chance). This is also the "supported" method by pycom, see here:
        https://docs.pycom.io/chapter/tutorials/all/ota.html

        If lora really is the only connection you have, you'd have to define your one protocol (which will be hard, think security, authentication, mac ...). lorawan for this purpose is not feasible due to the short payload size of maximum 250 symbols.

        G 2 Replies Last reply Reply Quote 2
        • C Offline
          crumble @gruia.nichita
          last edited by

          @gruia-nichita said in How to update script on 100 boards:

          How I can solve this?

          You can send a message over LoRa. The LoPys than build up a WiFi connection over which you can send the updates. If your building has a good WiFi coverage you will reach most of the LoPys. If they send you success messages and you maped the locations well, you need to go only to some and start the update process with a mobile access point again.

          1 Reply Last reply Reply Quote 0
          • G Offline
            gruia.nichita @this.wiederkehr
            last edited by gruia.nichita

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • G Offline
              gruia.nichita @this.wiederkehr
              last edited by

              @this-wiederkehr Today I tried to apply this method, but appeared some errors. I configured file with info about WiFi and IP, app_eui, app_key like in my TTN app.
              0_1516984324238_Снимок экрана от 2018-01-26 18-23-03.png

              T sebS 2 Replies Last reply Reply Quote 0
              • T Offline
                this.wiederkehr @gruia.nichita
                last edited by

                @gruia-nichita: Sorry, I can't provide support for that. Ask pycom directly ...

                1 Reply Last reply Reply Quote 0
                • sebS Offline
                  seb @gruia.nichita
                  last edited by

                  @gruia-nichita Are you also running the provided server software to provide the update files?

                  G 1 Reply Last reply Reply Quote 0
                  • G Offline
                    gruia.nichita @seb
                    last edited by

                    @seb It's my bad. I have missed that service was listening just on localhost, that's why I was not able to receive any file.

                    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