"Android nrf Connect master" test framework in windows pc throwing error after connected to android mobile application nrf


We are working with DFU-OTA  "Android nrf Connect master " automation framework in windows laptop (which has xml file configured to nrf52833 board ) and connected to android mobile which is having application nrf .

We are getting below error as we are assuming automation framework sending Zip folder with bin file while mobile application nrf is expecting bin file to send to target FUS OTA.

Any support is appreciable

23-03-2022 14:21:05
Version: 4.25.1
Device: Vivo 1806, Android version: 10 (QP1A.190711.020 release-keys)

Starting 'DFU upgrade test' for 'Upgrade to SDK 2'
Scan for target device...
14:21:06.560 FA:95:5B:3D:43:F7 -63 0201060B094E6F726469635F4C4253110784AA6074528A8B86D34CB71D1DDC538D
OK
SDK 1.8 -> 1.8 update...FAIL

nRF Connect Test, 2022-03-23
Test DFU on nRF52833 (test_nRF52833.xml)
A 14:21:06.387 Starting 'DFU upgrade test' for 'Upgrade to SDK 2'
A 14:21:06.409 Scan for target device...
V 14:21:06.423 Starting scan...
D 14:21:06.432 scanner.startScan(null, LOW_LATENCY, callback)
V 14:21:06.565 Stopping scanning...
D 14:21:06.574 scanner.stopScan(callback)
I 14:21:06.582 Device found: FA:95:5B:3D:43:F7
A 14:21:06.590 SDK 1.8 -> 1.8 update...
V 14:21:06.650 [DFU] DFU service started
V 14:21:06.650 [DFU] Opening file...
E 14:21:06.666 [DFU] Opening file failed: The ZIP file must contain an Application, a Soft Device and/or a Bootloader.
V 14:21:06.668 Cleaning up...
W 14:21:08.729 'Upgrade to SDK 2' failed

Parents
  • Hi, 

    Are you using nRF5 SDK?

    E 14:21:06.666 [DFU] Opening file failed: The ZIP file must contain an Application, a Soft Device and/or a Bootloader.

    What does the package include, SD, BL or APP?

    Please provide the commands used to generate the package. 

    Regards,
    Amanda

  • Are you using nRF5 SDK? Yes

    What does the package include, SD, BL or APP? APP

    Please provide the commands used to generate the package. : 

    We were working with Zyphyr platform and using in VS code (Ide) with nordic connector .

  • Hi, 

    Kumar1 said:
    Are you using nRF5 SDK? Yes

    What is the nRF5 SDK you are using?

    What is the application on the nRF52833 device now?

    What is the updated application?

    Kumar1 said:
    We were working with Zyphyr platform and using in VS code (Ide) with nordic connector .

    Are you working on updating nRF5 to NCS?

    -Amanda

  • We are using Nordic nCS 1.8.0 version and working with nRF52833-DK board . (Microcontroller -N52833)

  • Hi, 

    It should update with app_update.bin under build\zephyr. 

    -Amanda

  • Hi Amanda,

    Thank you for support.


    It is automatically generated app_update.bin and ZIP files also under the build\zephyr , Basically we are working DFU-OTA android automation framework.
    Framework reading only ZIP file.


    Our query  : when add ZIP file under the Android-nRF-Connect-master\documentation\Automated tests\DFU Tests\nRF52833\SDK 1.8\zip\dfu_application.zip and runing the command :- run_test.bat.

    Then after device is connected , but DFU ZIP file not updated.

    Below is the Result file:


    23-03-2022 14:21:05
    Version: 4.25.1
    Device: Vivo 1806, Android version: 10 (QP1A.190711.020 release-keys)
    Starting 'DFU upgrade test' for 'Upgrade to SDK 2'
    Scan for target device...14:21:06.560 FA:95:5B:3D:43:F7 -63 0201060B094E6F726469635F4C4253110784AA6074528A8B86D34CB71D1DDC538DOK
    SDK 1.8 -> 1.8 update...FAIL
    nRF Connect Test, 2022-03-23
    Test DFU on nRF52833 (test_nRF52833.xml)
    A 14:21:06.387 Starting 'DFU upgrade test' for 'Upgrade to SDK 2'
    A 14:21:06.409 Scan for target device...
    V 14:21:06.423 Starting scan...
    D 14:21:06.432 scanner.startScan(null, LOW_LATENCY, callback)
    V 14:21:06.565 Stopping scanning...
    D 14:21:06.574 scanner.stopScan(callback)
    I 14:21:06.582 Device found: FA:95:5B:3D:43:F7
    A 14:21:06.590 SDK 1.8 -> 1.8 update...
    V 14:21:06.650 [DFU] DFU service started
    V 14:21:06.650 [DFU] Opening file...
    E 14:21:06.666 [DFU] Opening file failed: The ZIP file must contain an Application, a Soft Device and/or a Bootloader.
    V 14:21:06.668 Cleaning up...
    W 14:21:08.729 'Upgrade to SDK 2' failed

    Link Referred:

    github.com/.../Android-nRF-Connect

Reply
  • Hi Amanda,

    Thank you for support.


    It is automatically generated app_update.bin and ZIP files also under the build\zephyr , Basically we are working DFU-OTA android automation framework.
    Framework reading only ZIP file.


    Our query  : when add ZIP file under the Android-nRF-Connect-master\documentation\Automated tests\DFU Tests\nRF52833\SDK 1.8\zip\dfu_application.zip and runing the command :- run_test.bat.

    Then after device is connected , but DFU ZIP file not updated.

    Below is the Result file:


    23-03-2022 14:21:05
    Version: 4.25.1
    Device: Vivo 1806, Android version: 10 (QP1A.190711.020 release-keys)
    Starting 'DFU upgrade test' for 'Upgrade to SDK 2'
    Scan for target device...14:21:06.560 FA:95:5B:3D:43:F7 -63 0201060B094E6F726469635F4C4253110784AA6074528A8B86D34CB71D1DDC538DOK
    SDK 1.8 -> 1.8 update...FAIL
    nRF Connect Test, 2022-03-23
    Test DFU on nRF52833 (test_nRF52833.xml)
    A 14:21:06.387 Starting 'DFU upgrade test' for 'Upgrade to SDK 2'
    A 14:21:06.409 Scan for target device...
    V 14:21:06.423 Starting scan...
    D 14:21:06.432 scanner.startScan(null, LOW_LATENCY, callback)
    V 14:21:06.565 Stopping scanning...
    D 14:21:06.574 scanner.stopScan(callback)
    I 14:21:06.582 Device found: FA:95:5B:3D:43:F7
    A 14:21:06.590 SDK 1.8 -> 1.8 update...
    V 14:21:06.650 [DFU] DFU service started
    V 14:21:06.650 [DFU] Opening file...
    E 14:21:06.666 [DFU] Opening file failed: The ZIP file must contain an Application, a Soft Device and/or a Bootloader.
    V 14:21:06.668 Cleaning up...
    W 14:21:08.729 'Upgrade to SDK 2' failed

    Link Referred:

    github.com/.../Android-nRF-Connect

Children
Related