NRF51822 学习笔记

来源:互联网 发布:可以自学计算机编程吗 编辑:程序博客网 时间:2024/05/01 21:07

1-9

心率计 collector   S120 SoftDevice目录下的HRS-C文件

The BLE Heart Rate Collector application implements the Heart Rate Collector Role using the S120 SoftDevice.

GAP role implemented is the Central role.(GAP 是 Central)

GATT role implemented is the Client role.(GATT 是 Client)

The Heart Rate Collector application implements Collector role for Heart Rate Profile. 

It scans peripheral devices, connects to device advertising with Heart Rate Service UUID in its advertisement report, discovers and configuresHeart Rate Service to start sending Notifications of Heart Rate Measurement.(扫描拥有 HRS  UUID 的广播设备)

The Heart Rate Measurement received is displayed on the nRF6350 Display unit as well as logged on UART interface.(可用LCD  和 UART Display 数据)

This application will also discover and configure Battery Service at the peer.(电源信息)

Note:

The application currently does not support connecting to multiple peripherals.(不支持连接多个外设)

Handling Connection Parameters Update and Pairing/Bonding are not implemented.(在线更新参数是不现实的)

Once connected, the application does not initiate disconnection but is capable of handling disconnection event initiated by peer or triggered unexpectedly.

Warning:

If you do not have the display unit, the definition of the macro APPL_LCD_PRINT_ENABLE in main.c of this application must be commented out.If this is not done, the application will not run as expected.(没有LCD必须注释 APPL_LCD_PRINT_ENABLE 宏

If a Terminal emulator running on the PC is connected to the nRFgo Motherboard's RS232 port, then the received heart rate measurements and Battery Measurements can be seen on the emulator as well. (可以用串口连接PC)


0 0