Skip to content

Commit

Permalink
DFU Test readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
philips77 committed Nov 13, 2019
1 parent 6bfdfb0 commit eaf00a8
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 66 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
13-11-2019 09:47:37
Version: 4.22.3
Version: 4.23.0
Device: Pixel 2, Android version: 10 (QP1A.191105.004)

Starting 'DFU test' for 'Update Application from SDK 12.2'
Scan for DFU2A122...
09:47:37.887 FE:70:57:3B:04:50 -48 0319000002010603030A18090944465532413132320000000000000000000000000000000000000000000000000000000000000000000000000000000000
09:47:37.887 FE:70:57:3B:04:50 -48 0319000002010603030A1809094446553241313232
OK
SDK 12.2 update...OK
Sleep...OK
Expand All @@ -17,7 +17,7 @@ Starting 'DFU test' for 'Update Application from SDK 12.2'
Sleep...OK
Starting 'DFU upgrade test' for 'Upgrade to SDK 13'
Scan for target device...
09:48:19.454 FE:70:57:3B:04:50 -47 0319000002010603030A18090944465532413132320000000000000000000000000000000000000000000000000000000000000000000000000000000000
09:48:19.454 FE:70:57:3B:04:50 -47 0319000002010603030A1809094446553241313232
OK
SDK 12.2 -> 13 update...OK
Sleep...OK
Expand All @@ -30,7 +30,7 @@ Starting 'DFU upgrade test' for 'Upgrade to SDK 13'
Sleep...OK
Starting 'DFU test' for 'Update Application from SDK 13'
Scan for DFU2A13...
09:50:35.861 FE:70:57:3B:04:50 -54 0319000002010603030A18080944465532413133000000000000000000000000000000000000000000000000000000000000000000000000000000000000
09:50:35.861 FE:70:57:3B:04:50 -54 0319000002010603030A18080944465532413133
OK
SDK 13 update...OK
Sleep...OK
Expand All @@ -43,7 +43,7 @@ Starting 'DFU test' for 'Update Application from SDK 13'
Sleep...OK
Starting 'DFU test' for 'Update BL only'
Scan for DFU2A13...
09:51:29.712 FE:70:57:3B:04:50 -49 0319000002010603030A18080944465532413133000000000000000000000000000000000000000000000000000000000000000000000000000000000000
09:51:29.712 FE:70:57:3B:04:50 -49 0319000002010603030A18080944465532413133
OK
SDK 13 update...OK
Sleep...OK
Expand All @@ -56,7 +56,7 @@ Starting 'DFU test' for 'Update BL only'
Sleep...OK
Starting 'DFU upgrade test' for 'Upgrade to SDK 14.1'
Scan for target device...
09:52:20.041 FE:70:57:3B:04:50 -56 0319000002010603030A18080944465532413133000000000000000000000000000000000000000000000000000000000000000000000000000000000000
09:52:20.041 FE:70:57:3B:04:50 -56 0319000002010603030A18080944465532413133
OK
SDK 13 -> 14.1 update...OK
Sleep...OK
Expand All @@ -69,7 +69,7 @@ Starting 'DFU upgrade test' for 'Upgrade to SDK 14.1'
Sleep...OK
Starting 'DFU test' for 'Update SD+BL'
Scan for DFU2A141...
09:55:39.436 FE:70:57:3B:04:50 -47 0319000002010603030A18090944465532413134310000000000000000000000000000000000000000000000000000000000000000000000000000000000
09:55:39.436 FE:70:57:3B:04:50 -47 0319000002010603030A1809094446553241313431
OK
SDK 14.1 update...OK
Sleep...OK
Expand All @@ -82,7 +82,7 @@ Starting 'DFU test' for 'Update SD+BL'
Sleep...OK
Starting 'DFU upgrade test' for 'Upgrade to SDK 15'
Scan for target device...
09:58:22.837 FE:70:57:3B:04:50 -49 0319000002010603030A18090944465532413134310000000000000000000000000000000000000000000000000000000000000000000000000000000000
09:58:22.837 FE:70:57:3B:04:50 -49 0319000002010603030A1809094446553241313431
OK
SDK 14.1 -> 15 update...OK
Sleep...OK
Expand All @@ -95,14 +95,14 @@ Starting 'DFU upgrade test' for 'Upgrade to SDK 15'
Sleep...OK
Starting 'DFU upgrade test' for 'Upgrade to SDK 15.2'
Scan for target device...
10:01:17.393 FE:70:57:3B:04:50 -49 0319000002010603030A18080944465532413135000000000000000000000000000000000000000000000000000000000000000000000000000000000000
10:01:17.393 FE:70:57:3B:04:50 -49 0319000002010603030A18080944465532413135
OK
SDK 15 -> 15.2 update...OK
Sleep...OK
Connecting to DFU2A152...FAIL
Starting 'DFU test' for 'Update SD+BL'
Scan for DFU2A152...
10:02:14.712 FE:70:57:3B:04:50 -49 0319000002010603030A18090944465532413135320000000000000000000000000000000000000000000000000000000000000000000000000000000000
10:02:14.712 FE:70:57:3B:04:50 -49 0319000002010603030A1809094446553241313532
OK
SDK 15.2 update...OK
Sleep...OK
Expand All @@ -115,7 +115,7 @@ Starting 'DFU test' for 'Update SD+BL'
Sleep...OK
Starting 'DFU upgrade test' for 'Upgrade to SDK 15.3'
Scan for target device...
10:03:10.985 FE:70:57:3B:04:50 -50 0319000002010603030A18090944465532413135320000000000000000000000000000000000000000000000000000000000000000000000000000000000
10:03:10.985 FE:70:57:3B:04:50 -50 0319000002010603030A1809094446553241313532
OK
SDK 15.2 -> 15.3 update...OK
Sleep...OK
Expand All @@ -128,7 +128,7 @@ Starting 'DFU upgrade test' for 'Upgrade to SDK 15.3'
Sleep...OK
Starting 'DFU test' for 'Update SD+BL+App'
Scan for DFU2A153...
10:04:10.082 FE:70:57:3B:04:50 -50 0319000002010603030A18090944465532413135330000000000000000000000000000000000000000000000000000000000000000000000000000000000
10:04:10.082 FE:70:57:3B:04:50 -50 0319000002010603030A1809094446553241313533
OK
SDK 15.3 update...OK
Sleep...OK
Expand All @@ -141,7 +141,7 @@ Starting 'DFU test' for 'Update SD+BL+App'
Sleep...OK
Starting 'DFU upgrade test' for 'Upgrade to SDK 16'
Scan for target device...
10:05:13.742 FE:70:57:3B:04:50 -51 0319000002010603030A18090944465532413135330000000000000000000000000000000000000000000000000000000000000000000000000000000000
10:05:13.742 FE:70:57:3B:04:50 -51 0319000002010603030A1809094446553241313533
OK
SDK 15.3 -> 16 update...OK
Sleep...OK
Expand All @@ -154,14 +154,14 @@ Starting 'DFU upgrade test' for 'Upgrade to SDK 16'
Sleep...OK
Starting 'DFU test' for 'Update Application from SDK 16'
Scan for DFU2A16...
10:06:18.301 FE:70:57:3B:04:50 -55 0319000002010603030A18080944465532413136000000000000000000000000000000000000000000000000000000000000000000000000000000000000
10:06:18.301 FE:70:57:3B:04:50 -55 0319000002010603030A18080944465532413136
OK
SDK 16 update...OK
Sleep...OK
Connecting to DFU2A16...FAIL
Starting 'DFU test' for 'Update BL only'
Scan for DFU2A16...
10:06:46.692 FE:70:57:3B:04:50 -51 0319000002010603030A18080944465532413136000000000000000000000000000000000000000000000000000000000000000000000000000000000000
10:06:46.692 FE:70:57:3B:04:50 -51 0319000002010603030A18080944465532413136
OK
SDK 16 update...OK
Sleep...OK
Expand All @@ -174,7 +174,7 @@ Starting 'DFU test' for 'Update BL only'
Sleep...OK
Starting 'DFU test' for 'Update SD+BL+App'
Scan for DFU2A16...
10:07:16.942 FE:70:57:3B:04:50 -51 0319000002010603030A18080944465532413136000000000000000000000000000000000000000000000000000000000000000000000000000000000000
10:07:16.942 FE:70:57:3B:04:50 -51 0319000002010603030A18080944465532413136
OK
SDK 16 update...OK
Sleep...OK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Device: Pixel 2, Android version: 10 (QP1A.191005.007.A1)

Starting 'DFU test' for 'Update Application from SDK 13'
Scan for DFU3A13...
15:20:06.594 FC:50:6E:F3:B5:AC -46 0319000002010603030A18080944465533413133000000000000000000000000000000000000000000000000000000000000000000000000000000000000
15:20:06.594 FC:50:6E:F3:B5:AC -46 0319000002010603030A18080944465533413133
OK
SDK 13 update...OK
Sleep...OK
Expand All @@ -17,7 +17,7 @@ Starting 'DFU test' for 'Update Application from SDK 13'
Sleep...OK
Starting 'DFU test' for 'Update BL only'
Scan for DFU3A13...
15:21:03.472 FC:50:6E:F3:B5:AC -53 0319000002010603030A18080944465533413133000000000000000000000000000000000000000000000000000000000000000000000000000000000000
15:21:03.472 FC:50:6E:F3:B5:AC -53 0319000002010603030A18080944465533413133
OK
SDK 13 update...OK
Sleep...OK
Expand All @@ -30,7 +30,7 @@ Starting 'DFU test' for 'Update BL only'
Sleep...OK
Starting 'DFU upgrade test' for 'Upgrade to SDK 14.1'
Scan for target device...
15:21:54.462 FC:50:6E:F3:B5:AC -46 0319000002010603030A18080944465533413133000000000000000000000000000000000000000000000000000000000000000000000000000000000000
15:21:54.462 FC:50:6E:F3:B5:AC -46 0319000002010603030A18080944465533413133
OK
SDK 13 -> 14.1 update...OK
Sleep...OK
Expand All @@ -43,7 +43,7 @@ Starting 'DFU upgrade test' for 'Upgrade to SDK 14.1'
Sleep...OK
Starting 'DFU upgrade test' for 'Upgrade to SDK 15'
Scan for target device...
15:25:33.870 FC:50:6E:F3:B5:AC -47 0319000002010603030A18090944465533413134310000000000000000000000000000000000000000000000000000000000000000000000000000000000
15:25:33.870 FC:50:6E:F3:B5:AC -47 0319000002010603030A1809094446553341313431
OK
SDK 14.1 -> 15 update...OK
Sleep...OK
Expand All @@ -56,7 +56,7 @@ Starting 'DFU upgrade test' for 'Upgrade to SDK 15'
Sleep...OK
Starting 'DFU upgrade test' for 'Upgrade to SDK 15.2'
Scan for target device...
15:29:49.599 FC:50:6E:F3:B5:AC -47 0319000002010603030A18080944465533413135000000000000000000000000000000000000000000000000000000000000000000000000000000000000
15:29:49.599 FC:50:6E:F3:B5:AC -47 0319000002010603030A18080944465533413135
OK
SDK 15 -> 15.2 update...OK
Sleep...OK
Expand All @@ -69,7 +69,7 @@ Starting 'DFU upgrade test' for 'Upgrade to SDK 15.2'
Sleep...OK
Starting 'DFU test' for 'Update SD+BL'
Scan for DFU3A152...
15:30:54.045 FC:50:6E:F3:B5:AC -45 0319000002010603030A18090944465533413135320000000000000000000000000000000000000000000000000000000000000000000000000000000000
15:30:54.045 FC:50:6E:F3:B5:AC -45 0319000002010603030A1809094446553341313532
OK
SDK 15.2 update...OK
Sleep...OK
Expand All @@ -82,7 +82,7 @@ Starting 'DFU test' for 'Update SD+BL'
Sleep...OK
Starting 'DFU upgrade test' for 'Upgrade to SDK 15.3'
Scan for target device...
15:31:53.964 FC:50:6E:F3:B5:AC -45 0319000002010603030A18090944465533413135320000000000000000000000000000000000000000000000000000000000000000000000000000000000
15:31:53.964 FC:50:6E:F3:B5:AC -45 0319000002010603030A1809094446553341313532
OK
SDK 15.2 -> 15.3 update...OK
Sleep...OK
Expand All @@ -95,7 +95,7 @@ Starting 'DFU upgrade test' for 'Upgrade to SDK 15.3'
Sleep...OK
Starting 'DFU test' for 'Update SD+BL+App'
Scan for DFU3A153...
15:33:00.101 FC:50:6E:F3:B5:AC -49 0319000002010603030A18090944465533413135330000000000000000000000000000000000000000000000000000000000000000000000000000000000
15:33:00.101 FC:50:6E:F3:B5:AC -49 0319000002010603030A1809094446553341313533
OK
SDK 15.3 update...OK
Sleep...OK
Expand All @@ -108,7 +108,7 @@ Starting 'DFU test' for 'Update SD+BL+App'
Sleep...OK
Starting 'DFU upgrade test' for 'Upgrade to SDK 16'
Scan for target device...
15:34:19.195 FC:50:6E:F3:B5:AC -50 0319000002010603030A18090944465533413135330000000000000000000000000000000000000000000000000000000000000000000000000000000000
15:34:19.195 FC:50:6E:F3:B5:AC -50 0319000002010603030A1809094446553341313533
OK
SDK 15.3 -> 16 update...OK
Sleep...OK
Expand All @@ -121,7 +121,7 @@ Starting 'DFU upgrade test' for 'Upgrade to SDK 16'
Sleep...OK
Starting 'DFU test' for 'Update Application from SDK 16'
Scan for DFU3A16...
15:35:38.907 FC:50:6E:F3:B5:AC -49 0319000002010603030A18080944465533413136000000000000000000000000000000000000000000000000000000000000000000000000000000000000
15:35:38.907 FC:50:6E:F3:B5:AC -49 0319000002010603030A18080944465533413136
OK
SDK 16 update...OK
Sleep...OK
Expand All @@ -134,7 +134,7 @@ Starting 'DFU test' for 'Update Application from SDK 16'
Sleep...OK
Starting 'DFU test' for 'Update BL only'
Scan for DFU3A16...
15:36:17.720 FC:50:6E:F3:B5:AC -48 0319000002010603030A18080944465533413136000000000000000000000000000000000000000000000000000000000000000000000000000000000000
15:36:17.720 FC:50:6E:F3:B5:AC -48 0319000002010603030A18080944465533413136
OK
SDK 16 update...OK
Sleep...OK
Expand All @@ -147,7 +147,7 @@ Starting 'DFU test' for 'Update BL only'
Sleep...OK
Starting 'DFU test' for 'Update SD+BL+App'
Scan for DFU3A16...
15:36:51.241 FC:50:6E:F3:B5:AC -49 0319000002010603030A18080944465533413136000000000000000000000000000000000000000000000000000000000000000000000000000000000000
15:36:51.241 FC:50:6E:F3:B5:AC -49 0319000002010603030A18080944465533413136
OK
SDK 16 update...OK
Sleep...OK
Expand Down
48 changes: 10 additions & 38 deletions documentation/Automated tests/test_readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,47 +7,17 @@ The README file contains information about the following files:
(2) sample_test_hrm.xml
(3) sample_text_scanning.xml

------------------------------
Automated testing (beta)
------------------------------
------------------------
Automated testing
------------------------
Starting from version 2.1 the nRF Connect (previously nRF Master Control Panel) may be used to perform automated tests on
Bluetooth Smart devices. Currently only BAT script has been created as the project is in BETA stage.
Bluetooth Smart devices. Currently only BAT script has been created.
An Android phone or a tablet, that will be used to perform tests, must be connected with a USB cable to
the PC and drivers must be installed. The location of ADB must be in the global PATH variable.
USB debugging must be enabled in Android settings.

To start automatic test a test suite must be created. A sample has been created and copied to Nordic Semiconductor
folder on your phone. The sample is compatible with the new nRF51 DK
(http://www.nordicsemi.com/eng/Products/nRF51-DK/%28language%29/eng-GB).

Steps to start the test:
1. Program Soft Device version 8.0 onto your DK.
2. Program Bootloader from SDK 9.0+.
3. Copy the test.bat, sample_test_hrm.xml, sample_test_scanning.xml to the PC.
4. Modify the XML script first, if required (the default implementation will flash the HRM onto the device and perform some basic tests).
5. Run test using the following command:

test.bat -E EXTRA_ADDRESS [your device address, f.e. 00:11:22:33:44:55:66] sample_test_hrm.xml

6. The test.bat script will copy the XML on your connected device. If more than one Android device is connected specify
its ID with -D device_id. You may obtain device ID using the following command:

adb devices

7. When test completed a 'sample_test_hrm_result.txt' file will be created.

If nRF Logger application is installed on the device you may track the current test state.
Test syntax errors are also being logged there if an error while parsing occurs.
Download the nRF Logger app from the Google Play store:

https://play.google.com/store/apps/details?id=no.nordicsemi.android.log

NOT WORKING?
If you have "Waiting for result..." for a long time, and no notification on the phone, rename "Nordic Semiconductor" to
"NordicSemiconductor" in the text.bat (remove the space). All occurrences. And then try again.

Read more about automated tests project or submit an issue on our GitHub page:
https://github.com/NordicSemiconductor/nRF-Master-Control-Panel
To start automatic test a test suite must be created. A sample has been created and copied to
sdcard/Android/data/no.noricsemi.andorid.mcp/files/Test folder on your phone.

-------------------------
Files
Expand All @@ -56,7 +26,7 @@ https://github.com/NordicSemiconductor/nRF-Master-Control-Panel

The script that initializes the test service. It copies the test suite XML file onto Android device and starts the test.

Execute test -? in the command line for usage.
Execute "test -?" in the command line for usage.

Android 4.3+ device nRF Connect (previously nRF Master Control Panel) (2.1.0+) is required.
The script runs on Windows OS.
Expand All @@ -75,9 +45,11 @@ Both sample XMLs contains the full features explained.
-------------------------
nRF MCP 2.0 - The beta version released
nRF Connect 4.3 - <scan> and <scan-for> commands added, logging time and device information
nRF Connect 4.10 - <sleep-if> and <sleep-until> commands added
nRF Connect 4.21 - reading and requesting PHY, reliable write, requesting connection priority has now timeout parameter

-------------------------
Development kit
-------------------------
Go to http://www.nordicsemi.com/eng/Products/nRF51-DK/%28language%29/eng-GB for more
Go to https://www.nordicsemi.com/Software-and-tools/Development-Kits for more
information about the Development Kit.

0 comments on commit eaf00a8

Please sign in to comment.