How to update script on 100 boards
-
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?
-
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.htmlIf 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.
-
@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.
-
This post is deleted! -
@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.

-
@gruia-nichita: Sorry, I can't provide support for that. Ask pycom directly ...
-
@gruia-nichita Are you also running the provided server software to provide the update files?
-
@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.
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