Skip to main content Link Menu Expand (external link) Document Search Copy Copied

BLE Connection Policy Test Cases

Test Case ID: BLE-EP-CONNECTIONPOLICY-DEFAULT-BV-01: Default connection policy with advertisement interval configured

Field Value
Case ID C103619378
Executable by Customer Yes
Preconditions
  • (Preconditions to be provided.)
Test Steps
Step Description Expected Result
1 EN set to default policy
sid option -ble_con 1 0
Check connection policy
--> sid option -ble_con 0
--> [02040569] <info> app: CMD: ERR: 0 BLE conn policy 0
2 EN set minimum advertisement parameters
sid option -ble_cfg 1 0 32 0 1600 0
Check advertisement parameters are updated
--> sid option -ble_cfg 0 0
--> [02288644] <info> app: CMD: ERR: 0 BLE adv, fast_int 32(20ms), fast_to 0(0ms), slow_int 1600(1000ms), slow_to 0(0ms)
3 Use sidewalk BLE sniffer to catch beacons Key check: Measure time between beacons for 35 seconds, average of the interval time should be around 20ms
4 EN set maximum advertisement parameters
sid option -ble_cfg 1 0 8192 65535 8192 65535
Check advertisement parameters are updated
--> sid option -ble_cfg 0 0
--> [03256879] <info> app: CMD: ERR: 0 BLE adv, fast_int 8192(5120ms), fast_to 65535(655350ms), slow_int 8192(5120ms), slow_to 65535(655350ms)
5 Use sidewalk BLE sniffer to catch beacons Key check: Measure time between beacons for 35 seconds, average of the interval time should be around 5120ms

Test Case ID: BLE-EP-CONNECTIONPOLICY-DEFAULT-BV-02: Default connection policy with connection parameters configured

Field Value
Case ID C103619379
Executable by Customer Yes
Preconditions
  • (Preconditions to be provided.)
Test Steps
Step Description Expected Result
1 EN set to default policy
sid option -ble_con 1 0
Check connection policy
--> sid option -ble_con 0
--> [02040569] <info> app: CMD: ERR: 0 BLE conn policy 0
2 EN set minimum connection parameters
sid option -ble_cfg 1 1 12 12 0 10
Check connection parameters are updated
sid option -ble_cfg 0 1
--> [00228962] <info> app: CMD: ERR: 0 BLE conn, min_int: 12(15ms), max_int 12(15ms), sl 0, timeout 10(100ms)
3 EN set maximum connection parameters
1. sid option -ble_cfg 1 1 3200 3200 2 3200
2. sid option -ble_cfg 1 1 25 25 499 3200
Check connection parameters are updated
1. --> sid option -ble_cfg 0 1
--> [01971481] <info> app: CMD: ERR: 0 BLE conn, min_int: 3200(4000ms), max_int 3200(4000ms), sl 2, timeout 3200(32000ms)
2. --> sid option -ble_cfg 0 1
--> [02006218] <info> app: CMD: ERR: 0 BLE conn, min_int: 25(31ms), max_int 25(31ms), sl 499, timeout 3200(32000ms)

Test Case ID: BLE-EP-CONNECTIONPOLICY-DEFAULT-BV-03: Default connection policy with both advertisement interval and connection parameters configured

Field Value
Case ID C103619380
Executable by Customer Yes
Preconditions
  • (Preconditions to be provided.)
Test Steps
Step Description Expected Result
1 EN set to default policy
sid option -ble_con 1 0
Check connection policy
--> sid option -ble_con 0
--> [02040569] <info> app: CMD: ERR: 0 BLE conn policy 0
2 EN set minimum advertisement parameters and connection parameters
sid option -ble_cfg 1 2 32 0 1600 0 12 12 0 10
Check connection parameters are updated
--> sid option -ble_cfg 0 2
[02687376] <info> app: CMD: ERR: 0 BLE adv, fast_int 32(20ms), fast_to 0(0ms), slow_int 1600(1000ms), slow_to 0(0ms)
--> [02687376] <info> app: CMD: ERR: 0 BLE conn, min_int: 12(15ms), max_int 12(15ms), sl 0, timeout 10(100ms)
3 Use sidewalk BLE sniffer to catch beacons Key check: Measure time between beacons for 35 seconds, average of the interval time should be around 20ms
4 EN set maximum advertisement parameters and connection parameters
1. sid option -ble_cfg 1 2 8192 65535 8192 65535 3200 3200 2 3200
2. sid option -ble_cfg 1 2 8192 65535 8192 65535 25 25 499 3200
Check connection parameters are updated
1. --> sid option -ble_cfg 0 2
[03000420] <info> app: CMD: ERR: 0 BLE adv, fast_int 8192(5120ms), fast_to 65535(655350ms), slow_int 8192(5120ms), slow_to 65535(655350ms)
--> [03000421] <info> app: CMD: ERR: 0 BLE conn, min_int: 3200(4000ms), max_int 3200(4000ms), sl 2, timeout 3200(32000ms)
2. --> sid option -ble_cfg 0 2
[03168389] <info> app: CMD: ERR: 0 BLE adv, fast_int 8192(5120ms), fast_to 65535(655350ms), slow_int 8192(5120ms), slow_to 65535(655350ms)
--> [03168390] <info> app: CMD: ERR: 0 BLE conn, min_int: 25(31ms), max_int 25(31ms), sl 499, timeout 3200(32000ms)
5 Use sidewalk BLE sniffer to catch beacons Key check: Measure time between beacons for 35 seconds, average of the interval time should be around 5120ms

Test Case ID: BLE-EP-CONNECTIONPOLICY-DEFAULT-BV-04: Default connection policy

Field Value
Case ID C103619381
Executable by Customer Yes
Preconditions
  • (Preconditions to be provided.)
Test Steps
Step Description Expected Result
1 EN set to default policy
sid option -ble_con 1 0
—
2 Use sidewalk BLE sniffer to catch beacons Key check: Measure time between beacons for first 30 seconds, average of the interval time should be around 160ms
3 Check advertisement parameters and connection parameters Should be default value
--> sid option -ble_cfg 0 2
[00012909] <info> app: CMD: ERR: 0 BLE adv, fast_int 256(160ms), fast_to 3000(30000ms), slow_int 1600(1000ms), slow_to 0(0ms)
--> [00012909] <info> app: CMD: ERR: 0 BLE conn, min_int: 16(20ms), max_int 60(75ms), sl 0, timeout 400(4000ms)

Test Case ID: BLE-EP-CONNECTIONPOLICY-DEFAULT-BV-05: Default connection policy with inactivity timeout

Field Value
Case ID C103619382
Executable by Customer Yes
Preconditions
  • (Preconditions to be provided.)
Test Steps
Step Description Expected Result
1 EN set to default policy
sid option -ble_con 1 0
Check connection policy
--> sid option -ble_con 0
--> [02040569] <info> app: CMD: ERR: 0 BLE conn policy 0
2 EN set minimum inactivity timeout
sid option -ble_cfg 1 3 1
Check connection parameters are updated
sid option -ble_cfg 0 3
--> [00075451] <info> app: CMD: ERR: 0 BLE inactivity timeout 1s
3 Establish BLE connection, after connected, wait for 2s
sid conn_req 1
Key check: BLE is disconnected after 1s
4 EN set maximum inactivity timeout
sid option -ble_cfg 1 3 3600
Check connection parameters are updated
sid option -ble_cfg 0 3
--> [00075451] <info> app: CMD: ERR: 0 BLE inactivity timeout 3600s
5 Establish BLE connection, after connected, wait for 3601s
sid conn_req 1
Key check: BLE is disconnected after 3600s

Test Case ID: BLE-EP-CONNECTIONPOLICY-LONGLIVED-BV-01: Long lived connection policy with advertisement interval configured

Field Value
Case ID C103619385
Executable by Customer Yes
Preconditions
  • (Preconditions to be provided.)
Test Steps
Step Description Expected Result
1 EN set to long live policy
- sid option -ble_con 1 1 0 (Power Optimized)
- sid option -ble_con 1 1 1 (Latency Optimized)
Check connection policy
Power Optimized:
--> sid option -ble_con 0
[00062756] <info> app: CMD: ERR: 0 BLE conn policy 1
--> [00062756] <info> app: CMD: ERR: 0 Long lived connection optimized for 0
Latency Optimized:
--> sid option -ble_con 0
[00062756] <info> app: CMD: ERR: 0 BLE conn policy 1
--> [00062756] <info> app: CMD: ERR: 0 Long lived connection optimized for 1
2 EN set minimum advertisement parameters
sid option -ble_cfg 1 0 32 0 1600 0
Check advertisement parameters are updated
--> sid option -ble_cfg 0 0
--> [02288644] <info> app: CMD: ERR: 0 BLE adv, fast_int 32(20ms), fast_to 0(0ms), slow_int 1600(1000ms), slow_to 0(0ms)
3 Use sidewalk BLE sniffer to catch beacons Key check: Measure time between beacons for 35 seconds, average of the interval time should be around 20ms
4 EN set maximum advertisement parameters
sid option -ble_cfg 1 0 8192 65535 8192 65535
Check advertisement parameters are updated
--> sid option -ble_cfg 0 0
--> [03256879] <info> app: CMD: ERR: 0 BLE adv, fast_int 8192(5120ms), fast_to 65535(655350ms), slow_int 8192(5120ms), slow_to 65535(655350ms)
5 Use sidewalk BLE sniffer to catch beacons Key check: Measure time between beacons for 35 seconds, average of the interval time should be around 5120ms

Test Case ID: BLE-EP-CONNECTIONPOLICY-LONGLIVED-BV-02: Long lived connection policy with connection parameters configured

Field Value
Case ID C103619386
Executable by Customer Yes
Preconditions
  • (Preconditions to be provided.)
Test Steps
Step Description Expected Result
1 EN set to long live policy
1. sid option -ble_con 1 1 0 (Power Optimized)
2. sid option -ble_con 1 1 1 (Latency Optimized)
Check connection policy
Power Optimized:
--> sid option -ble_con 0
[00062756] <info> app: CMD: ERR: 0 BLE conn policy 1
--> [00062756] <info> app: CMD: ERR: 0 Long lived connection optimized for 0
Latency Optimized:
--> sid option -ble_con 0
[00062756] <info> app: CMD: ERR: 0 BLE conn policy 1
--> [00062756] <info> app: CMD: ERR: 0 Long lived connection optimized for 1
2 EN set minimum connection parameters
sid option -ble_cfg 1 1 12 12 0 10
Check connection parameters are updated
sid option -ble_cfg 0 1
--> [00228962] <info> app: CMD: ERR: 0 BLE conn, min_int: 12(15ms), max_int 12(15ms), sl 0, timeout 10(100ms)
3 EN set maximum connection parameters
1. sid option -ble_cfg 1 1 3200 3200 2 3200
2. sid option -ble_cfg 1 1 25 25 499 3200
Check connection parameters are updated
1. --> sid option -ble_cfg 0 1
--> [01971481] <info> app: CMD: ERR: 0 BLE conn, min_int: 3200(4000ms), max_int 3200(4000ms), sl 2, timeout 3200(32000ms)
2. --> sid option -ble_cfg 0 1
--> [02006218] <info> app: CMD: ERR: 0 BLE conn, min_int: 25(31ms), max_int 25(31ms), sl 499, timeout 3200(32000ms)

Test Case ID: BLE-EP-CONNECTIONPOLICY-LONGLIVED-BV-03: Long lived connection policy with both advertisement interval and connection parameters configured

Field Value
Case ID C103619387
Executable by Customer Yes
Preconditions
  • (Preconditions to be provided.)
Test Steps
Step Description Expected Result
1 EN set to long live policy
- sid option -ble_con 1 1 0 (Power Optimized)
- sid option -ble_con 1 1 1 (Latency Optimized)
Check connection policy
Power Optimized:
--> sid option -ble_con 0
[00062756] <info> app: CMD: ERR: 0 BLE conn policy 1
--> [00062756] <info> app: CMD: ERR: 0 Long lived connection optimized for 0
Latency Optimized:
--> sid option -ble_con 0
[00062756] <info> app: CMD: ERR: 0 BLE conn policy 1
--> [00062756] <info> app: CMD: ERR: 0 Long lived connection optimized for 1
2 EN set minimum advertisement parameters and connection parameters
sid option -ble_cfg 1 2 32 0 1600 0 12 12 0 10
Check connection parameters are updated
--> sid option -ble_cfg 0 2
[02687376] <info> app: CMD: ERR: 0 BLE adv, fast_int 32(20ms), fast_to 0(0ms), slow_int 1600(1000ms), slow_to 0(0ms)
--> [02687376] <info> app: CMD: ERR: 0 BLE conn, min_int: 12(15ms), max_int 12(15ms), sl 0, timeout 10(100ms)
3 Use sidewalk BLE sniffer to catch beacons Key check: Measure time between beacons for 35 seconds, average of the interval time should be around 20ms
4 EN set maximum advertisement parameters and connection parameters
1. sid option -ble_cfg 1 2 8192 65535 8192 65535 3200 3200 2 3200
2. sid option -ble_cfg 1 2 8192 65535 8192 65535 25 25 499 3200
Check connection parameters are updated
1. --> sid option -ble_cfg 0 2
[03000420] <info> app: CMD: ERR: 0 BLE adv, fast_int 8192(5120ms), fast_to 65535(655350ms), slow_int 8192(5120ms), slow_to 65535(655350ms)
--> [03000421] <info> app: CMD: ERR: 0 BLE conn, min_int: 3200(4000ms), max_int 3200(4000ms), sl 2, timeout 3200(32000ms)
2. --> sid option -ble_cfg 0 2
[03168389] <info> app: CMD: ERR: 0 BLE adv, fast_int 8192(5120ms), fast_to 65535(655350ms), slow_int 8192(5120ms), slow_to 65535(655350ms)
--> [03168390] <info> app: CMD: ERR: 0 BLE conn, min_int: 25(31ms), max_int 25(31ms), sl 499, timeout 3200(32000ms)
5 Use sidewalk BLE sniffer to catch beacons Key check: Measure time between beacons for 35 seconds, average of the interval time should be around 5120ms

Test Case ID: BLE-EP-CONNECTIONPOLICY-LONGLIVED-BV-04: Long lived connection policy with inactivity timeout

Field Value
Case ID C103619388
Executable by Customer Yes
Preconditions
  • (Preconditions to be provided.)
Test Steps
Step Description Expected Result
1 EN set to long live policy
1. sid option -ble_con 1 1 0 (Power Optimized)
2. sid option -ble_con 1 1 1 (Latency Optimized)
Check connection policy
Power Optimized:
--> sid option -ble_con 0
[00062756] <info> app: CMD: ERR: 0 BLE conn policy 1
--> [00062756] <info> app: CMD: ERR: 0 Long lived connection optimized for 0
Latency Optimized:
--> sid option -ble_con 0
[00062756] <info> app: CMD: ERR: 0 BLE conn policy 1
--> [00062756] <info> app: CMD: ERR: 0 Long lived connection optimized for 1
2 EN set minimum inactivity timeout
sid option -ble_cfg 1 3 1
Check connection parameters are updated
sid option -ble_cfg 0 3
--> [00075451] <info> app: CMD: ERR: 0 BLE inactivity timeout 1s
3 Establish BLE connection, after connected, wait for 2s
sid conn_req 1
Key check: BLE is not disconnected
4 EN set to default policy and wait for 2s
sid option -ble_con 1 0
Check connection policy
--> sid option -ble_con 0
--> [02040569] <info> app: CMD: ERR: 0 BLE conn policy 0
Key check: BLE is disconnected after 2s
5 EN set to long live policy
1. sid option -ble_con 1 1 0 (Power Optimized)
2. sid option -ble_con 1 1 1 (Latency Optimized)
Check connection policy
Power Optimized:
--> sid option -ble_con 0
[00062756] <info> app: CMD: ERR: 0 BLE conn policy 1
--> [00062756] <info> app: CMD: ERR: 0 Long lived connection optimized for 0
Latency Optimized:
--> sid option -ble_con 0
[00062756] <info> app: CMD: ERR: 0 BLE conn policy 1
--> [00062756] <info> app: CMD: ERR: 0 Long lived connection optimized for 1
6 Establish BLE connection, after connected, wait for 2s
sid conn_req 1
Key check: BLE is not disconnected
7 EN set to optimal advertising policy and wait for 2 sec
sid option -ble_con 1 2
Check connection policy
--> sid option -ble_con 0
--> [02040569] <info> app: CMD: ERR: 0 BLE conn policy 2
Key check: BLE disconnected after 2 sec

Test Case ID: BLE-EP-CONNECTIONPOLICY-OPTIMALADVERTISING-BV-01: Optimal advertising connection policy with advertisement interval configured

Field Value
Case ID C103619392
Executable by Customer Yes
Preconditions
  • (Preconditions to be provided.)
Test Steps
Step Description Expected Result
1 EN set to optimal advertising policy
sid option -ble_con 1 2
Check connection policy
--> sid option -ble_con 0
--> [02040569] <info> app: CMD: ERR: 0 BLE conn policy 2
2 EN set minimum advertisement parameters
sid option -ble_cfg 1 0 32 0 1600 0
Check advertisement parameters are updated
--> sid option -ble_cfg 0 0
--> [02288644] <info> app: CMD: ERR: 0 BLE adv, fast_int 32(20ms), fast_to 0(0ms), slow_int 1600(1000ms), slow_to 0(0ms)
3 Use sidewalk BLE sniffer to catch beacons Key check: Measure time between beacons for 35 seconds, average of the interval time should be around 20ms
4 EN set maximum advertisement parameters
sid option -ble_cfg 1 0 8192 65535 8192 65535
Check advertisement parameters are updated
--> sid option -ble_cfg 0 0
--> [03256879] <info> app: CMD: ERR: 0 BLE adv, fast_int 8192(5120ms), fast_to 65535(655350ms), slow_int 8192(5120ms), slow_to 65535(655350ms)
5 Use sidewalk BLE sniffer to catch beacons Key check: Measure time between beacons for 35 seconds, average of the interval time should be around 5120ms

Test Case ID: BLE-EP-CONNECTIONPOLICY-OPTIMALADVERTISING-BV-02: Optimal advertising connection policy with connection parameters configured

Field Value
Case ID C103619393
Executable by Customer Yes
Preconditions
  • (Preconditions to be provided.)
Test Steps
Step Description Expected Result
1 EN set to optimal advertising policy
sid option -ble_con 1 2
Check connection policy
--> sid option -ble_con 0
--> [02040569] <info> app: CMD: ERR: 0 BLE conn policy 2
2 EN set minimum connection parameters
sid option -ble_cfg 1 1 12 12 0 10
Check connection parameters are updated
sid option -ble_cfg 0 1
--> [00228962] <info> app: CMD: ERR: 0 BLE conn, min_int: 12(15ms), max_int 12(15ms), sl 0, timeout 10(100ms)
3 EN set maximum connection parameters
1. sid option -ble_cfg 1 1 3200 3200 2 3200
2. sid option -ble_cfg 1 1 25 25 499 3200
Check connection parameters are updated
1. --> sid option -ble_cfg 0 1
--> [01971481] <info> app: CMD: ERR: 0 BLE conn, min_int: 3200(4000ms), max_int 3200(4000ms), sl 2, timeout 3200(32000ms)
2. --> sid option -ble_cfg 0 1
--> [02006218] <info> app: CMD: ERR: 0 BLE conn, min_int: 25(31ms), max_int 25(31ms), sl 499, timeout 3200(32000ms)

Test Case ID: BLE-EP-CONNECTIONPOLICY-OPTIMALADVERTISING-BV-03: Optimal advertising connection policy with both advertisement interval and connection parameters configured

Field Value
Case ID C103619394
Executable by Customer Yes
Preconditions
  • (Preconditions to be provided.)
Test Steps
Step Description Expected Result
1 EN set to optimal advertising policy
sid option -ble_con 1 2
Check connection policy
--> sid option -ble_con 0
--> [02040569] <info> app: CMD: ERR: 0 BLE conn policy 2
2 EN set minimum advertisement parameters and connection parameters
sid option -ble_cfg 1 2 32 0 1600 0 12 12 0 10
Check connection parameters are updated
--> sid option -ble_cfg 0 2
[02687376] <info> app: CMD: ERR: 0 BLE adv, fast_int 32(20ms), fast_to 0(0ms), slow_int 1600(1000ms), slow_to 0(0ms)
--> [02687376] <info> app: CMD: ERR: 0 BLE conn, min_int: 12(15ms), max_int 12(15ms), sl 0, timeout 10(100ms)
3 Use sidewalk BLE sniffer to catch beacons Key check: Measure time between beacons for 35 seconds, average of the interval time should be around 20ms
4 EN set maximum advertisement parameters and connection parameters
1. sid option -ble_cfg 1 2 8192 65535 8192 65535 3200 3200 2 3200
2. sid option -ble_cfg 1 2 8192 65535 8192 65535 25 25 499 3200
Check connection parameters are updated
1. --> sid option -ble_cfg 0 2
[03000420] <info> app: CMD: ERR: 0 BLE adv, fast_int 8192(5120ms), fast_to 65535(655350ms), slow_int 8192(5120ms), slow_to 65535(655350ms)
--> [03000421] <info> app: CMD: ERR: 0 BLE conn, min_int: 3200(4000ms), max_int 3200(4000ms), sl 2, timeout 3200(32000ms)
2. --> sid option -ble_cfg 0 2
[03168389] <info> app: CMD: ERR: 0 BLE adv, fast_int 8192(5120ms), fast_to 65535(655350ms), slow_int 8192(5120ms), slow_to 65535(655350ms)
--> [03168390] <info> app: CMD: ERR: 0 BLE conn, min_int: 25(31ms), max_int 25(31ms), sl 499, timeout 3200(32000ms)
5 Use sidewalk BLE sniffer to catch beacons Key check: Measure time between beacons for 35 seconds, average of the interval time should be around 5120ms

Test Case ID: BLE-EP-CONNECTIONPOLICY-OPTIMALADVERTISING-BV-04: Optimal advertising connection policy with inactivity timeout

Field Value
Case ID C103619395
Executable by Customer Yes
Preconditions
  • (Preconditions to be provided.)
Test Steps
Step Description Expected Result
1 EN set to optimal advertising connection policy
sid option -ble_con 1 2
Check connection policy
--> sid option -ble_con 0
--> [02040569] <info> app: CMD: ERR: 0 BLE conn policy 2
2 EN set minimum inactivity timeout
sid option -ble_cfg 1 3 1
Check connection parameters are updated
sid option -ble_cfg 0 3
--> [00075451] <info> app: CMD: ERR: 0 BLE inactivity timeout 1s
3 Establish BLE connection, after connected, wait for 2s
sid conn_req 1
Key check: BLE is disconnected after 1s
4 EN set maximum inactivity timeout
sid option -ble_cfg 1 3 3600
Check connection parameters are updated
sid option -ble_cfg 0 3
--> [00075451] <info> app: CMD: ERR: 0 BLE inactivity timeout 3600s
5 Establish BLE connection, after connected, wait for 3601s
sid conn_req 1
Key check: BLE is disconnected after 3600s

Back to top

©2023 Amazon.com, Inc. or its affiliates (collectively, “Amazon”). All Rights Reserved.