BLE Peripheral Throughput Test¶
1 功能概述¶
此项目演示从机吞吐率测试,当前版本软件需要nrf connect dongle
或者 手机 nrf_connection
进行演示。
2 环境要求¶
board:
pan107x evb
uart(option): 用来显示串口log(波特率921600,选项
8n1
)
4 演示说明¶
烧录完成后,设备会显示上电log,使用
pc nrf connect
连接即可,当然也可用nrf_connection
软件进行操作,方法基本一样,这儿只介绍pc nrf connect
操作Try to load HW calibration data.. DONE. - Chip Info : 0x1 - Chip CP Version : 255 - Chip FT Version : 4 - Chip MAC Address : D0000000066D - Chip UID : 6D06010CF8375603CE - Chip Flash UID : 4250315632333917010CF8375603CE78 - Chip Flash Size : 512 KB LL Spark Controller Version:d7c4bfa BT controller memory pool used: 5624 bytes, remain bytes: 0, total:5624 app started APP version: 104.70.30977 registered service 0x1800 with handle=1 registering characteristic 0x2a00 with def_handle=2 val_handle=3 registering characteristic 0x2a01 with def_handle=4 val_handle=5 registered service 0x1801 with handle=6 registering characteristic 0x2a05 with def_handle=7 val_handle=8 registered service 00000001-8c26-476f-89a7-a108033a69c7 with handle=10 registering characteristic 00000006-8c26-476f-89a7-a108033a69c7 with def_handle=11 val_handle=12 registering characteristic 0000000a-8c26-476f-89a7-a108033a69c7 with def_handle=13 val_handle=14 registering characteristic 0000000b-8c26-476f-89a7-a108033a69c7 with def_handle=16 val_handle=17 gatts_on_sync Device Address: 06:09:09:09:09:08adv start
使用软件
nrf connect for Desktop Bluetooth Low Energy
扫描蓝牙设备名称ble_throughput
设备并且连接3.点击
齿轮
设置图标,依次需要设置
Update Connection
,设置连接间隔为15ms (手机可以忽略此操作)。Update phy
,根据测试需要设置为1M
或者2M
。Update data length
,设置为251bytes,若不能更新 DLE(例如用手机进行操作),MTU 请设置 210Update MTU
,设置为247bytes。订阅 notify,进行测试,串口打印测试结果。
重新测试请关闭 订阅 notify,然后再重新订阅。
PHY模式
参考速率
1M
630113 bps
2M
371850 bps,