Commit Graph

54 Commits

Author SHA1 Message Date
Rob Moran
824ccfea21 Switched to using eslint 2017-05-21 23:21:19 +01:00
Rob Moran
7c6734c5f8 Added node example 2017-05-14 23:34:57 +01:00
Rob Moran
436607eedf Added support for buttonless devices and multiple firmware images ina package 2017-05-14 20:08:48 +01:00
Rob Moran
372658e9b1 Added secure web example 2017-05-11 01:33:22 +03:00
Rob Moran
b224d57e55 Initial update to version 13 with secure DFU and node example 2017-05-08 01:50:33 +01:00
Rob Moran
20adcf1e15 Version 0.1.0 2016-03-28 10:05:35 +01:00
Rob Moran
cd41d86e9a Tidied global server hack 2016-03-22 18:48:10 +00:00
Michael Dietz
119407500d Make gattServer a global variable to fix https://github.com/thegecko/web-bluetooth-dfu/issues/18 2016-03-22 16:48:58 +01:00
Rob Moran
699d4c3883 Updated hex2bin to accept loggers 2016-03-10 21:36:38 +00:00
Rob Moran
98feec38cf Updated DFU disconnects to work in node and web environments 2016-03-10 21:35:40 +00:00
Michael Dietz
abbd0bc818 Add timeouts so entire DFU process works. 2016-03-10 12:42:42 +01:00
Michael Dietz
5c7d041620 Document how to update the SoftDevice or Bootloader. 2016-03-07 11:26:17 +01:00
Michael Dietz
d78a4e51bf Clarified documentation and minor cleanup. 2016-03-07 09:45:15 +01:00
Michael Dietz
c60983abd6 Softdevice and bootloader updates now working...
commit might get messed up because chrome dev editor caused some problems with this one.
2016-03-04 14:48:56 +01:00
Michael Dietz
82714d55b9 min and max address should be optional and specified based on target/image type. 2016-03-04 11:26:23 +01:00
Michael Dietz
a6b0da5855 Cut off MBR when updating SoftDevice and UICR when updating bootloader as required by the protocol. 2016-03-04 11:17:59 +01:00
Michael Dietz
24775ec487 Fully implement hex2bin. Handles gaps in hex file now and pads with 0xFF. 2016-03-04 10:14:38 +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
Michael Dietz
03450d44b4 Add CRC module to calculate crc 16 for image validation. 2016-02-26 11:09:48 +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