Hello community,
I am currently in a project where I have to update the firmware for a system based on the BL5430 chip. The board is acting as a sensor that transmits some data over BLE to a central computer. What I want to do is to update the firmware of the sensor without having a manual intervention. I want to update the firmware using the BLE connection.
For firmware management and uploading of images, I am referring to the SMP Server example :
https://docs.zephyrproject.org/latest/samples/subsys/mgmt/mcumgr/smp_svr/README.html
This example states that it is possible to transfer firmware over BLE (serial and UDP being the other options as well).
Now when I am using the SMP server based approach to transfer firmware this is the error that I get :
This was just to check a simple echo function but that too did't work.
Interestingly, there is a mcumgr web tool available that works in this case.
Reference link : https://github.com/boogie/mcumgr-web
I was able to use this tool to select the firmware file and upload it to my sensor while it was advertising. Somehow this web tool is able to maintain the level of encryption that is required for the firmware transfer. The issue is, I am currently restricted to using the mcumgr CLI tool only.
Is there any way that I can modify the mcumgr CLI tool to make it adhre to higher levels of encryption? What could be an alternative to this?
Any examples or insights to this would be of great help!