Automating Firmware Management with the Notehub API

Learn how to use the Notehub API to manage firmware updates for your devices or fleets of devices.
Read the full blog post at https://blues.dev/blog/automating-firmware-notehub-api and continue the discussion here.
1 Like

This is wonderful, thank you Blues!

2 Likes

Are there are any platform events that are available for routing from Notehub as host firmware is downloaded and updated, particularly when ODFU is used?

I hope the answer is yes, but if not, I’d like to request that as a new feature. Here’s why.

Without platform firmware events, the host MCU could potentially monitor the download and readiness status via dfu.status requests, but when the firmware is being sent to the host via ODFU, the host has no chance to send any notifications. Similarly, when host firmware is non-functional, download monitoring isn’t an option. For large binaries, an ODFU can take 10-20 minutes to flash to the host after downloading, during which time the user has little feedback about what is going on (notecard is in an enclosure, with no visibility of the LED.)

If platform firmware notifications of download, readiness and update progress were available, I would forward these notifications to the user’s app, to let them know that firmware is being updated, as well as show the current progress of the update, and estimated time to completion.

In the interim, we are falling back to IDFU, where the user experience can be augmented as needed, but with it’s inherent reliance on host firmware being operational, this is not an ideal solution.

Hi @devElert - Thanks for the suggestion and I’ve added this as a feature request internally. You can monitor individual device host DFU actions within Notehub but you’re correct there are no events to route:

1 Like

Thank you for this. We use Notehub at present to monitor firmware updates internally, but this isn’t an option for the end-user since they will have no direct interaction with Notehub.