The following test plan should be executed against an Apache Mynewt release candidate before a vote is called. This is a very minimal test plan and is a work in progress
TODO: provide targets for testing in repo
Targets
Here are the targets that were used. See the testing notes below for BLE_SM_SC. To test legacy pairing this value should be 0.
targets/nordic_pca10028_bleprph app=@apache-mynewt-nimble/apps/bleprph bsp=@apache-mynewt-core/hw/bsp/nordic_pca10028 build_profile=optimized syscfg=BLE_SM_BONDING=1:BLE_SM_OUR_KEY_DIST=7:BLE_SM_THEIR_KEY_DIST=7:LOG_LEVEL=255 targets/nordic_pca10040_bleprph app=@apache-mynewt-nimble/apps/bleprph bsp=@apache-mynewt-core/hw/bsp/nordic_pca10040 build_profile=optimized syscfg=BLE_SM_BONDING=1:BLE_SM_OUR_KEY_DIST=7:BLE_SM_SC=1:BLE_SM_THEIR_KEY_DIST=7:LOG_LEVEL=0:OS_MAIN_STACK_SIZE=1024:BLE_MAX_CONNECTIONS=2 targets/nordic_pca10056_bleprph app=@apache-mynewt-nimble/apps/bleprph bsp=@apache-mynewt-core/hw/bsp/nordic_pca10056 build_profile=optimized syscfg=BLE_SM_BONDING=1:BLE_SM_OUR_KEY_DIST=7:BLE_SM_SC=1:BLE_SM_THEIR_KEY_DIST=7:LOG_LEVEL=0:OS_MAIN_STACK_SIZE=1024:BLE_MAX_CONNECTIONS=2 |
Run automated test suite against supported devices with BTPTesterCore automation tool.
Currently supoported devices:
Targets
targets/nordic_pca10028_bttester app=@apache-mynewt-nimble/apps/bttester bsp=@apache-mynewt-core/hw/bsp/nordic_pca10028 build_profile=optimized syscfg=BLE_MESH=0:CONSOLE_RTT=0:MSYS_1_BLOCK_COUNT=40:MSYS_1_BLOCK_SIZE=120:OS_MAIN_STACK_SIZE=320:SHELL_TASK=0 targets/nordic_pca10040_bttester app=@apache-mynewt-nimble/apps/bleprph bsp=@apache-mynewt-core/hw/bsp/nordic_pca10040 build_profile=optimized targets/nordic_pca10056_bttester app=@apache-mynewt-nimble/apps/bleprph bsp=@apache-mynewt-core/hw/bsp/nordic_pca10056 build_profile=optimized |
Steps
Peripheral performs undirected advertising
Central pairs with peripheral
Central restores encrypted connection via bonding
Central reads characteristic
Central writes characteristic
Central enables indications
Peripheral sends indication when characteristic changes
Two centrals connect to peripheral
btshell as central
[Peer devices: iPhone/LightBlue or nRFConnect, Linux/Bluez]
General connection establishment procedure
Central pairs with peripheral
Central restores encrypted connection via bonding
Central reads characteristic
Central writes characteristic
Central enables indications
Central connects to two peripheral
Steps
Steps:
Create newtmgr conn profile for ble. Example:
newtmgr conn add mybleprph type=ble connstring="peer_name=nimble-bleprph"
newtmgr image list -c mybleprph
newtmgr image upload -c mybleprph ~/dev/myproj/bin/targets/myperiph/app/apps/bleprph/bleprph.img
configure and flash blemesh app
connect to provisioner and provision the device
test on/off model
download and install Bluetooth Mesh by Silicon Labs app from Play Store on a phone
configure and flash blemesh app
in app scan for the device
connect to the device, enter authentication code
set model for the device to on/off model
test on/off model