Commit Graph

37 Commits

Author SHA1 Message Date
Michael Dietz
d78a4e51bf Clarified documentation and minor cleanup. 2016-03-07 09:45:15 +01:00
Michael Dietz
75b0e0fd39 Small change, just add log when dfu completes and remote ble device resets to start the new application. 2016-03-02 12:49:11 +01:00
Michael Dietz
a497d1af8f Remove some garbage. 2016-03-01 14:40:23 +01:00
Michael Dietz
5d01200309 Adding disconnect event listener from characteristic was giving an error for Chrome Book. 2016-03-01 14:38:35 +01:00
Rob Moran
e2a427d094 Add default crc if not specified 2016-02-27 14:07:34 +00:00
Rob Moran
3de7ca6765 Switched to master branch of bleat 2016-02-27 13:34:12 +00:00
Michael Dietz
3829145e51 Change order of parameters of provision(). 2016-02-26 15:35:27 +01:00
Michael Dietz
423fbf07a2 CRC is not required for mbed. Really shouldn't be seen by user. 2016-02-26 11:42:42 +01:00
Michael Dietz
c551b074f3 Use the CRC we generate for the image in the init packet. 2016-02-26 11:17:03 +01:00
Rob Moran
53e9c24d7b Updated library to use latest revision of web-bluetooth specification 2016-02-25 12:35:43 +00:00
Rob Moran
0459cf2975 Removed ES6 syntax 2016-02-24 16:23:45 +00:00
Rob Moran
76e636ec70 Renamed firmware, added nrf52 support to examples and reserructed dummy disconnects 2016-02-24 14:46:06 +00:00
Michael Dietz
a6d3249d68 Revert web bluetooth api update changes to not break bleat. 2016-02-23 13:05:59 +01:00
Michael Dietz
6a30516f48 Fix switch statement so DFU OTA works for mbed and recent revisions of bootloader. 2016-02-23 12:58:15 +01:00
Michael Dietz
5f5b053ccf Reading characteristic returns a data view instead of array buffer in update. Small fix making var names consistent. 2016-02-23 10:31:33 +01:00
Michael Dietz
9dcd9ad046 device.connectGATT() deprecated. No need for notification callback handler in writeMode(). 2016-02-23 10:09:08 +01:00
Michael Dietz
2dbbbb1378 Small bug fix: if version is 6 or lower don't send init packet. 2016-02-18 13:59:19 +01:00
Michael Dietz
b5e1dbe7c7 Use definitions for op codes to make message sequence state easy to follow. 2016-02-18 13:45:54 +01:00
Michael Dietz
b871bbae08 Use switch statement for DFU OTA message sequence instead of if else. 2016-02-18 13:25:09 +01:00
Michael Dietz
dfb7adedce Get rid of warnings due to error being defined as a variable and then used in catch() out of scope. 2016-02-18 11:12:30 +01:00
Michael Dietz
daadfd8194 Working for both mbed and current revisions of DFU OTA...
Minor problems like writeMode bug in mbed and CRC code is just 0x0 for now so will fail for init packet check.
2016-02-18 10:11:56 +01:00
Michael Dietz
c18979f5e1 Promise in transfer(...) should resolve after DFU Target is activated and reset. 2016-02-17 16:17:24 +01:00
Michael Dietz
70f681e20e No need to disconnect from DFU Target after DFU update. Link will be lost when target is reset and disconnect handler will be called. 2016-02-17 16:12:45 +01:00
Michael Dietz
8c9885770c Make message sequence of DFU process more readable. 2016-02-17 16:01:30 +01:00
Michael Dietz
98c7a75537 Improve how init packet is implemented. Some minor clean up. 2016-02-17 15:25:44 +01:00
Michael Dietz
8c10f0010a Nordic's DFU OTA protocol sends data in little endian format. Whether the web bluetooth platform is little endian or not doesn't matter. 2016-02-17 14:38:58 +01:00
Michael Dietz
ccd602838c Added an init packet which (for recent DFU OTA protocols) must transferred before the firmware image. 2016-02-17 13:08:26 +01:00
Michael Dietz
160889f638 Switch to bootloader/DFU mode working for recent revisions of DFU OTA protocol. 2016-02-17 11:00:09 +01:00
Michael Dietz
4903d0b9dd DFU Revision Characteristic is not being used optimally. 2016-02-16 13:08:00 +01:00
Michael Dietz
908bf53902 DFU Controller should not disconnect in dfu.writeMode() when switching target from application mode to bootloader/dfu mode. 2016-02-16 11:32:41 +01:00
Rob Moran
e6c232247e Added linting 2016-02-15 09:45:15 +00:00
Rob Moran
d92a6230b8 Added node example 2016-02-15 00:53:02 +00:00
Rob Moran
8563f595cb Further refactor 2016-02-05 02:07:42 -06:00
Rob Moran
7ba5e66371 Tidied implementation 2016-02-04 23:32:54 -06:00
Rob Moran
61386e3915 Refactored code 2016-02-04 15:46:40 -06:00
Rob Moran
c2236ff468 Now injecting logger 2016-02-04 12:02:45 -06:00
Rob Moran
1434b14406 First site 2016-02-04 10:40:31 -06:00