简体   繁体   English

Android BLE - 如何检测心率传感器

[英]Android BLE - how to detect a heart rate sensor

  1. Im trying to connect to an external heart rate sensor using BLE.我正在尝试使用 BLE 连接到外部心率传感器。 As Im getting 5 different characteristic values, how to detect what values is used for heart rate monitoring?当我得到 5 个不同的特征值时,如何检测哪些值用于心率监测?

  2. How to convert byte array to readable result?如何将字节数组转换为可读结果?

  1. The standardised Heart Rate service is 0x180D and the characteristic is 0x2A37, so you need to read data off this.标准化的Heart Rate服务是0x180D,特征是0x2A37,所以你需要从中读取数据。
  2. The heart rate value is usually exposed over 1 byte only (because values 0-255 covers the range of heart rate values in beat per minute (bpm). If you want to read other values exposed by the device then the document that Michael Kotzjan shared is useful in deducting what the byte array values mean.心率值通常只暴露超过 1 个字节(因为值 0-255 涵盖了每分钟心跳(bpm)的心率值范围。如果您想读取设备暴露的其他值,那么 Michael Kotzjan 共享的文档在推断字节数组值的含义时很有用。

More useful references:-更有用的参考:-

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM