-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Hello,
I try to use dfu.js to upload a new firmware onto my device.
And I had some problems with the current version of noble.js (1.8.0).
The behavior is the same on Linux and Windows10 (64bits version).
The dfu program waits for some notifications until the device disconnection occurs.
You can see the log listed below :
Microsoft Windows [version 10.0.14393]
(c) 2016 Microsoft Corporation. Tous droits réservés.
C:\Users\Thierry>cd E:\Devl\js\tests
C:\Users\Thierry>e:
E:\Devl\js\tests>..\node-v6.10.0-win-x64\node.exe dfu.js FIRMWARE-Hash.bin
Application: 63124 bytes
IV: d9e876dbc5f3266da628567322b5fbf5
Tag: 2a741e5a21d2ad106b743033902fb786
Scanning for DFU device...
Found: name RigDfu, address c0ab6cf8270f, 41c8903017564c3093cca8fcc2fb0202 , RSSI -54
Connecting...
Discovering services...
41c8903117564c3093cca8fcc2fb0202
41c8903217564c3093cca8fcc2fb0202
2a26
Bootloader firmware revision: 3.2.0 (42)
Enabling notifications...
Subscribing to packet receipt notifications...
Start DFU...
<Buffer 00 00 00 00 00 00 00 00 94 f6 00 00>
Unexpected disconnect!
E:\Devl\js\tests>
Finaly, I found the solution here : noble/noble#560
I've replaced the 'read' by 'data' at lines 391 and 494 of dfu.js file.
Metadata
Metadata
Assignees
Labels
No labels