This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Android DFU library

答复 答复 转发 Android DFU library.msg

Hi!We used a 52832 to make a bracelet. Now some apps on Huawei phones can't be remotely upgraded by the ring. We have verified that Nordic's official Android DFU library throws a bug in the firmware upgrade. Therefore, during the upgrade process, whether the mobile phone is sent incompletely or the wristband is not completely received, our APP cannot be detected here.Before using nRF Sniffer to capture packets, there is no data during the upgrade process.Before using nRF Sniffer to capture packets, there is no data during the upgrade process.Above have our software testing environment, please check.
According to the log of nova 2s combined with the DFU library code analysis, the following is the error when the data is verified.
The error is as follows:
Sending Calculate Checksum command (Op Code = 3)
08-27 11:38:24.029 1637 1802 W bt_btif : HAL bt_gatt_callbacks->client->notify_cb
08-27 11:38:24.030 7911 8203 I DfuImpl : Checksum received (Offset = 256, CRC = 975ECD47)
08-27 11:38:24.030 7911 8203 W DfuImpl : 3840 bytes were lost!
08-27 11:38:24.031 7911 8203 I DfuImpl : CRC does not match! Expected 491D1F48 but found 975ECD47. Retrying...(3/3)
The program sends the data three times and reports the same error.
The judgment is that the receiving firmware data is incomplete and the upgrade fails.

Is DFU lib usage problem or data compatibility issue? Is there a solution?
Thank you for your reply!

Parents
  • Hi Yangamin, 

    It's quite hard to understand what you describing. 

    From the log it seems that the CRC was incorrect. 

    Could you provide the whole logging data ? 

    Which image did you use to test ? Which SDK did you use ? Do you have any modification to the bootloader ? 

    Could you provide the sniffer trace ? 

  • Hi Hung Bui,

    In short, the wristband APP on Huawei mobile phones cannot be remotely upgraded by the ring, Is it a problem with DFU lib?

    Answer your questions:

    1.Attachment 1 is to use nrf sniffer to obtain data for non-Huawei mobile phone opponent ring upgrade, the MAC address is c8:d4:1d:72:1d:ac;
    Attachment 2 is the data of Huawei mobile phone opponent ring upgrade, the MAC address is d0:77:21:0c:14:cc, the data transmission process fails  and the error is "remote dfu not supported". 

    2.What is mean "image"?The SDK we use is 12.3, the bootloader data mainly changes the display and timeout restart part.

    c8.pcapngd0.pcapng

  • Hi Yangamin, 

    By "image" I meant the DFU image/firmware you use to update. The firmware inside the .zip file. 

    So what you meant was that if you use non- Huawei phone, you can do DFU update on the ring , but if do DFU update on the Huawei phone, you can't do DFU update  ?

    Have you tried DFU using the nRFToolbox DFU app ?  In the sniffer trace you provided (d0.pcapng) there was no connection. Only advertising packets. Please make sure you capture the connection. 

    Please try to record the phone's screen when you do DFU, also please try capture a new sniffer trace.  

Reply
  • Hi Yangamin, 

    By "image" I meant the DFU image/firmware you use to update. The firmware inside the .zip file. 

    So what you meant was that if you use non- Huawei phone, you can do DFU update on the ring , but if do DFU update on the Huawei phone, you can't do DFU update  ?

    Have you tried DFU using the nRFToolbox DFU app ?  In the sniffer trace you provided (d0.pcapng) there was no connection. Only advertising packets. Please make sure you capture the connection. 

    Please try to record the phone's screen when you do DFU, also please try capture a new sniffer trace.  

Children
No Data
Related