Updating a MicroPython Firmware
-
- Posts: 35
- Joined: Wed Apr 27, 2022 7:22 am
Updating a MicroPython Firmware
Hello,
I am working with MicroPython for almost one month now , and now I want to do something to update the MicroPython firmware , I mean for example after a period of time of developing the firmware on a customer board you want to update it so your customer don´t need to give you back the board to upload the new MicroPython fimware , So I am looking on how can I do this update , Do I need another python or C firmware to do that or should I use some software , I don´t have any idea about how it could be done .
Any help will be appreciated .
Thank you in advance .
I am working with MicroPython for almost one month now , and now I want to do something to update the MicroPython firmware , I mean for example after a period of time of developing the firmware on a customer board you want to update it so your customer don´t need to give you back the board to upload the new MicroPython fimware , So I am looking on how can I do this update , Do I need another python or C firmware to do that or should I use some software , I don´t have any idea about how it could be done .
Any help will be appreciated .
Thank you in advance .
-
- Posts: 35
- Joined: Wed Apr 27, 2022 7:22 am
Re: Updating a MicroPython Firmware
Do you want to upload new firmware to a device over the internet? Way beyond my experience.
-
- Posts: 35
- Joined: Wed Apr 27, 2022 7:22 am
-
- Posts: 35
- Joined: Wed Apr 27, 2022 7:22 am
Re: Updating a MicroPython Firmware
Thank you for your reply , I have checked the github repo you send and it seems a great solution , but do you have any information about how can I put my firmware on a http or https server because I am newbie with this stuff and I´ve never dealt with something similar .p_j wrote: ↑Fri Jul 29, 2022 11:30 amThis is a great library for updating code over wifi.
https://github.com/mkomon/uota
Thankyou.
Re: Updating a MicroPython Firmware
In my opinion way out of scope for the micropython forum.Firas_Baccouri wrote: ↑Tue Aug 02, 2022 2:21 pmdo you have any information about how can I put my firmware on a http or https server
I'm sure there are great tutorials all over the net how to configure a web server like apache, nginx or (shudder) IIS.
A few hours of debugging might save you from minutes of reading the documentation!
My repositories: https://github.com/karfas
My repositories: https://github.com/karfas
Re: Updating a MicroPython Firmware
Do you have your own server that you can use? Are you developing on a windows or linux machine?Firas_Baccouri wrote: ↑Tue Aug 02, 2022 2:21 pmThank you for your reply , I have checked the github repo you send and it seems a great solution , but do you have any information about how can I put my firmware on a http or https server because I am newbie with this stuff and I´ve never dealt with something similar .p_j wrote: ↑Fri Jul 29, 2022 11:30 amThis is a great library for updating code over wifi.
https://github.com/mkomon/uota
Thankyou.
There are a few different ways to do it, I use a bash script that creates a tar.gz file and uploads it to my server. Here is the script I'm using for your reference.
Code: Select all
#!/bin/bash
tar --exclude='.gitignore' --exclude='Pipfile' --exclude='archive' --exclude='uota.cfg' --exclude='updates' --exclude='logs' --exclude='db' --exclude='deploy' -czf updates/firmware.tar.gz *
scp updates/firmware.tar.gz root@iot.xxxxx.com.au:/home/iot/ftp/firmware/testing/
scp latest root@iot.xxxxxxx.com.au:/home/iot/ftp/firmware/testing/
-
- Posts: 35
- Joined: Wed Apr 27, 2022 7:22 am