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