"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 Reply Children
  • 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

  • Hello,

    As of now, the automated tests only support DFU from nRF5 SDK, not Zephyr (McuManager).
    I've added adding requested feature to our backlog:
    https://github.com/NordicSemiconductor/Android-nRF-Connect/issues/168

    McuManager DFU is supported only in the app, but not through automated tests.

  • Thank you for the response .

    Is there any other OTA Test automation Framework available for nrf Connect SDK.

     we are working with also BL653 board.

    Is there any automated test framework available for BL653 FUS OTA test .

Related