Releases: NordicSemiconductor/Android-DFU-Library
Releases · NordicSemiconductor/Android-DFU-Library
DFU Library 1.11.0
Improvements:
- Option to force scanning for bootloader after switching from application mode using Buttonless Service in Legacy DFU. By default, Legacy DFU bootloader will advertise with the same address as application, and will advertise directly, so no scanning is needed. However, as scanning for non-bonded devices advertising directly may not work on some recent phones (#234), an option has been added to allow scanning for incremented MAC. Mind, that this requires modification of your firmware (app or bootloader), to either not pass peer data from the app when doing buttonless jump, or always using MAC+1 in the bootloader).
- More log messages here and there to make debugging easier.
- Cancelling connection attempt using
abort()
is now instantaneous, and does not wait for timeout (#219).
Bugs fixed:
- Handling a situation when Bluetooth adapter is turned off during DFU improved (#263).
- Connection using
TRANSPORT_LE
mode (when available) (also #263). - Making sure resources are released properly (additional call of
disconnect()
) (78a0e92) - it is confirmed that with this fix connection handle number does not increment when multiple DFU are performed one after another. - Readme has been completed with an information about the need for
ACCESS_FINE_LOCATION
permission when scanning is required (#250).
DFU Library 1.10.4
DFU Library 1.10.3
Bugs fixed:
- ZIP file parsing error fixed (#237).
DFU Library 1.10.2
DFU Library 1.10.1
Bug fixed:
- DFU was freezing when the delay set by setPrepareDataObjectDelay(long) was not set. The library was waiting on
wait(0)
which is the same aswait()
.
DFU Library 1.10.0
New feature:
- Option to specify an initial delay before sending every data object has been added. Use setPrepareDataObjectDelay(long). By default, a 400 ms delay will be added before sending the 1st data object, but there will be no delay before the following objects. The delay set using this method will apply to all objects. The delay may reduce packet lose incidents, that would cause automatic switching to PRN =1.
DFU Library 1.9.2
Bugs fixed:
- Some null pointers checks have been added,
- A fix that could improve behavior related to #193 (service will call
startForeground(..)
earlier). - Publishing script updated (missing dependencies have been added to POM file),
Version 1.9.1
Improvements:
- A short initial delay was added in Secure DFU before sending the first data object to give more time for the DFU target to prepare flash. This seems to be needed in the latest SDKs, otherwise the data sent are not being stored properly and CRC errors are returned.
DFU Library with Secure DFU 1.9.0
Improvements:
- #169 - Migrated to Android Jetpack.
- #170 - Added automatic retrying DFU process in case of undesired disconnection. Call setNumberOfRetries(int) to enable this feature.
- Disconnection is now checked before the error (a24f1e8). This feature was necessary to make the retrying work.
- Last Settings constant made deprecated (1a40f78). If you use HEX files and want to send from address 0, or with a different MBR size than 40496 (0x1000), use setMbrSize(int) instead of using Shared Preferences.
- Improved reconnection in case of error 133.
- Comments reformatted.
- More validation annotations added.
DFU Library with Secure DFU 1.8.1
Bugs fixed:
- #145 fixed