当前页面为 开发中 版本,查看特定版本的文档,请在页面左下角的下拉菜单中进行选择。

BLE Peripheral Throughput Test

1 功能概述

此项目演示从机吞吐率测试,当前版本软件需要nrf connect dongle 或者 手机 nrf_connection进行演示。

2 环境要求

  • board: pan107x evb

  • uart(option): 用来显示串口log(波特率921600,选项8n1

  • nrf connect dongle

3 编译和烧录

例程位置:<home>\nimble\samples\bluetooth\bleprph_throughput\keil_107x

使用keil进行打开项目进行编译烧录。

4 演示说明

  1. 烧录完成后,设备会显示上电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
    
  2. 使用软件nrf connect for Desktop Bluetooth Low Energy 扫描蓝牙设备名称ble_throughput设备并且连接

    image

    nrf connect连接throughput设备

    3.点击齿轮设置图标,

    依次需要设置

    1. Update Connection,设置连接间隔为15ms (手机可以忽略此操作)。

    2. Update phy,根据测试需要设置为1M或者2M

    3. Update data length,设置为251bytes,若不能更新 DLE(例如用手机进行操作),MTU 请设置 210

    4. Update MTU,设置为247bytes。

    5. 订阅 notify,进行测试,串口打印测试结果。

    6. 重新测试请关闭 订阅 notify,然后再重新订阅。

    PHY模式

    参考速率

    1M

    630113 bps

    2M

    371850 bps,

5 RAM/Flash资源使用情况

PAN107x:

RAM Size:40.98 k
Flash Size: 112.18k