node-zwave-js icon indicating copy to clipboard operation
node-zwave-js copied to clipboard

Support ZIP files for firmware updates

Open AlCalzone opened this issue 1 year ago • 3 comments

This will have to be limited to ZIP files containing a single firmware update file.

AlCalzone avatar Dec 22 '23 18:12 AlCalzone

As a whole the process of firmware update is not documented. At least I could not find any clue. My feeling is that I (as a zwave-js library user) need to extend the Firmware Update Meta Data CC to somehow provide sendFirmwareFragment and then trigger the process via requestUpdate OR is there a magic registry that will allow simple requestUpdate and then the library will find all it need and do the dance ending with activateFirmware. If there is a registry with known udpates-to-specific-device simply unpacking and publishing from the zip to it will be enough

sdrsdr avatar Jan 08 '24 12:01 sdrsdr

As a library user you shouldn't deal with the CCs directly for this. --> https://zwave-js.github.io/node-zwave-js/#/api/controller?id=updating-the-firmware-of-a-node-ota

AlCalzone avatar Jan 08 '24 14:01 AlCalzone

Thank you very much for the link. I see now how ota is supposed to work. Having some pointers in the source code and in the 'Advanced usage' or 'FAQ' section of the documentation wold be very usefull.

sdrsdr avatar Jan 08 '24 14:01 sdrsdr