v0.2.2 Firmware Release for Duo
Updating System Firmware
The OTA method (supported since v0.2.0 )
For devices already online and connected to the cloud, the system firmware can be updated OTA using these commands:
If your device is online, you can attempt to OTA (Over The Air) update these system parts as well with the particle-cli:
Note: You must download system binaries to a local directory on your machine for this to work.
particle flash YOUR_DEVICE_NAME duo-system-part1-v0.2.2.bin
particle flash YOUR_DEVICE_NAME duo-system-part2-v0.2.2.bin
The local DFU-UTIL method
- Put your device in DFU mode (flashing yellow LED)
- open a terminal window, change to the directory where you downloaded the files below, and run these commands:
dfu-util -d 2b04:d058 -a 2 -s 0x140000 -D duo-fac-tinker-v0.2.2.bin
dfu-util -d 2b04:d058 -a 0 -s 0x8020000 -D duo-system-part1-v0.2.2.bin
dfu-util -d 2b04:d058 -a 0 -s 0x8040000:leave -D duo-system-part2-v0.2.2.bin
FEATURES
- Add APIs for fetching device name, i.e. "Duo-xxxx"
- Instantiate Serial2 in wiring functions, thus user can use it directly in sketch
- Add JSON command to leave listening mode
- Add JSON command to check if device has stored credentials
- Integrate BTStack BLE library into system firmware, instead of WICED BTE library
- Exports some BLE APIs for user part usage
ENHANCEMENTS
- Notify central device if BLE Provisioning failed.
- Give different responds to the TCP client during OTA uploading firmware
- JSON command "version" fetches the real module versions
- update BLE Provisioning protocol to support setting hidden SSID and full key length
BUGFIXES
- SPI1 isn't instantiated by SPIClass because of the including header file order
- Tone on pin A4 and A5 failed