nRF Connect iOS APP failed to perform OTA DFU for dfu_application.zip

From https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu, I have generated two files for OTA DFU. They are dfu_application.zip and app_update.bin. nRF Connect iOS APP can perform OTA DFU for app_update.bin successfully but it failed to perform OTA DFU for dfu_application.zip.

Procedures to reproduce this issue are as follows.
1. Unzipping ble_dfu_peripheral_lbs.zip to D:\ncs\v2.4.0\nrf\samples\bluetooth folder.
2. cd D:\ncs\v2.4.0\nrf\samples\bluetooth\ble_dfu_peripheral_lbs
3. west build -b nrf5340dk_nrf5340_cpuapp
4. Uploading dfu_application.zip and app_update.bin to iPhone.
5. Launching nRF Connect iOS APP and changing to DFU tab.
6. Selecting dfu_application.zip and nRF Connect iOS APP shows "Error: sending the request failed".

  • Hello,

    Please see that the dfu_application.zip file consists of images for both app core and netcore. If you check the files inside the dfu_application.zip, you can find app_update.bin and net_core_app_update.bin, one for the app core and the other for the netcore. I recommend you read more about the build files to get an idea of this. And how are you testing that the OTA update is not successful? Is there any log to share, or have you changed the application to see a visible change?

    Kind Regards,

    Abhijith

  • Since nRF Connect iOS APP shows "Error: sending the request failed", I think that OTA update is not successful.

    The following are log messages of nRF Connect iOS APP.

    Scanner On.
    Connected.
    Discovered Nordic UART Service and SMP Service Services.
    Discovered Characteristics UART TX Characteristic and UART RX Characteristic for Service Nordic UART Service.
    Discovered Characteristics SMP Characteristic for Service SMP Service.
    Discovered Client Characteristic Configuration for Characteristic UART TX Characteristic
    Characteristic UART RX Characteristic has no Descriptors.
    Discovered Client Characteristic Configuration for Characteristic SMP Characteristic
    Found valid Firmware in file:///private/var/mobile/Containers/Data/Application/1DD9453F-211F-49D6-BFC1-5BA159AFFE57/Documents/downloads/dfu_application.zip for Device DFU McuMgr.
    Upgrade started with 1 images using 'Confirm Only' mode
    Firmware Upgrade Started.
    State changed from none to requestMcuMgrParameters
    Peripheral connected
    Device ready
    Device capabilities received.
    State changed from requestMcuMgrParameters to validate
    Validation response: {"images" : {{"permanent" : false, "slot" : 0, "confirmed" : true, "bootable" : true, "pending" : false, "version" : "0.0.0", "hash" : 0xBF53E70B615CDC7E73C6D16FBAC2151364EDAE453B599B3EDC75A1A225C51C3C, "active" : true}}, "splitStatus" : 0}
    State changed from validate to upload
    Retry 1 for Seq. No. 3
    Retry 1 for Seq. No. 4
    Retry 1 for Seq. No. 5
    Retry 2 for Seq. No. 3
    Retry 2 for Seq. No. 4
    Retry 2 for Seq. No. 5
    Retry 3 for Seq. No. 3
    Retry 3 for Seq. No. 4
    Request (Group: image, seq: 3) failed: Sending the request failed.)
    Sending the request failed.
    Upload cancelled due to error: sendFailed
    Image upload is not in progress
    DFU failed: Sending the request failed.
    DFU Failed with Error: Sending the request failed.

Related