This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

secure dfu [node.js][linux]

Hi,

Im trying to develop an linux-application running on node.js to communicate with a nrf52 device. Im using the noble-module (noble) and a usb bluetooth-dongle.

Subscribing, writing and reading is working very good, but when it comes to secure dfu, I have no idea how to implement this in my node.js app.

Searching the web, I found your "secure-dfu-web-bluetooth" librarylink. I tried running this on node, but had no luck.

There is also a npm-module "web-bluetooth-dfu" link, but secure-dfu is not implemented.

Is my only option to install nrfutil (python) ? ref. link

Why is there so few options available for javascript/node.js, while python/C/android/iOS is well documented ?

Parents
  • Hi Hung Bui,

    Thank you for your answer.

    I can understand that this is a new feature and that it takes time to update ibraries. Regarding the issue with "secure-dfu-web-bluetooth", I am able to launch it in node.js, but when requestDevice(options) function in node_modules/bleat/dist/api.web-bluetooth.js execute it will only return: "requestDevice error"

    By activating DEBUG=* when launching index.js file, I can see that hci0 adapter is scanning "under the hood"..

    We have started to implement our own protocol based on the link you sent. And currently this strategy seems to be the best alternative.

    Best Regards, Martin H.

Reply
  • Hi Hung Bui,

    Thank you for your answer.

    I can understand that this is a new feature and that it takes time to update ibraries. Regarding the issue with "secure-dfu-web-bluetooth", I am able to launch it in node.js, but when requestDevice(options) function in node_modules/bleat/dist/api.web-bluetooth.js execute it will only return: "requestDevice error"

    By activating DEBUG=* when launching index.js file, I can see that hci0 adapter is scanning "under the hood"..

    We have started to implement our own protocol based on the link you sent. And currently this strategy seems to be the best alternative.

    Best Regards, Martin H.

Children
Related