Tool/software:
We have made a CC2652R application on-chip OAD enabled by adding the appropriate OAD image header. Restart after boot is handled with the on-chip BIM and the actual downloading is handled with the BLE app persistent_app. I can successfully perform the update by invalidating the OAD image header for our app which after a reset starts the persistent_app allowing me to upgrade the firmware over the air, using either BTool together with another CC26 launchpad dev board or the SimpleLink Starter android app.
Our app does not by itself use BLE communication but instead uses IEEE 802.15.4 custom radio communication. With this communication I can tell the app to perform an update by starting the persistent_app which then performs the actual update.
This works fine but I am now looking for a way to automate this for our product since it will only be done in a controlled environment. OAD would preferably not be done with a phone but from a PC. It is fine to do it via another launchpad as the BTool does but the best would be to use the Bluetooth device in the PC.
By automating I mean to do the OAD firmware download using a script (or with e.g. python). What are my options here? Does TI have any OAD tool or example code that I can run from a command prompt on a PC or do I need to make my own software implementation of the OAD BLE profile that can be controlled from python (or some other scripting tool)?
I would automatically like to scan for BLE devices and select which one to start the OAD for. The device address could be obtained with our proprietary IEEE 802.15.4 protocol before control is switched over to the persistent_app.
Is the Btool available as source code?
Thanks /Ruben