Electronics > Beginners
Update Firmwae
Peili:
Hi,
i'm developing a mesh with some routers and end devices using LWmesh stack.. i would like to upgrade the firmware of routers through OTA.. i'm not familiar with OTA.. can anyone help me to use OTA? how to program the routers for OTA upgrade and how to perform the OTA ??
Rerouter:
If your developing the routers, then that means cooking up a bootloader or adapting one to suit your purpose,
Its a bit of code that sits on your device, generally stores the updated flash image somewhere on your device, loads the flash memory programming code to memory and reflashes the program memory with the updated image,
Fancy additions are things like fallback program images. or fallover methods to load the program to the device if an image was corrupted.
And finally to complete the picture is a function to update the bootloader while the device is running.
Peili:
--- Quote from: Rerouter on December 22, 2018, 05:10:13 am ---If your developing the routers, then that means cooking up a bootloader or adapting one to suit your purpose,
--- End quote ---
so it means when i program a router device , first i have to make it booloaded,is it?
ataradov:
You can program multiple images into the device - one is a bootloader, the other one is an application. Or you can combine them externally.
Actually creating an OTA implementation is a big topic far outside of what can be described in a forum post. Start by creating code to transfer large files. Then add code for storing those files in the memory, etc.
LwMesh v1.1.1 included OTA example. You can look at that code, but be warned, it is not a plug and play thing, you will actually have to think and write code. Here is the link to the release https://www.dropbox.com/s/n6jwnj7otrioa4p/lightweight_mesh_stack_v1.1.1.zip?dl=0
Peili:
--- Quote from: ataradov on December 22, 2018, 05:20:04 am ---
LwMesh v1.1.1 included OTA example. You can look at that code, but be warned, it is not a plug and play thing, you will actually have to think and write code. Here is the link to the release
--- End quote ---
i'm using LwMesh v1.2.1...it has no OTA example.. then how can i use OTA?
Navigation
[0] Message Index
[#] Next page
Go to full version