You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DFU Bootloader version (please complete the following information):
SDK version: [e.g. SDK 16]
Bonding used: yes
Library version: 1.11.1
Device information (please complete the following information):
Device: Huawei nova 3i
OS: Android 8.1.0
Your question
I have an issue trying to update the firmware using Huawei devices, Android 8.1.0
In my case I am trying to update using a .hex and a .bin file, sometimes the .bin file works fine, but when starts the .hex file always fails.
I am using dfu library 1.11.1.
Hello,
Sorry for the delay, I was busy with other tasks.
Have a look at this log message:
2021-04-06 08:41:31.737 I/DfuImpl: No DFU Version characteristic found -> Bootloader from SDK 6.1 or older
So you're using DFU from SDK 6.1 or older. By counting number of services, the library assumes that the device is in DFU bootloader mode, which is correct. Looks like there's only Legacy DFU service.
Before SDK 7 the init packet was optional, so your HEX gets accepted and transfer starts. Without the init packet you cannot, however, ensure, that the device you're connected to will support the fw you're sending. There no any validation, except from checking bytes number and comparing to one sent before the firmware. It may be, that you're sending a fw that is not compatible with the SoftDevice installed, or for completely other device. That's why it fails.
If the bin file works sometime, that means there may be an issue with how the hex file is parsed. Could you check if the bin file that matches the hex file is 46760 bytes long? This is how much bytes the lib can take from the hex file and send.
DFU Bootloader version (please complete the following information):
Device information (please complete the following information):
Your question
I have an issue trying to update the firmware using Huawei devices, Android 8.1.0
In my case I am trying to update using a .hex and a .bin file, sometimes the .bin file works fine, but when starts the .hex file always fails.
I am using dfu library 1.11.1.
Is there any solution for this issue?
Logs
The text was updated successfully, but these errors were encountered: