简体   繁体   中英

Android BLE - how to detect a heart rate sensor

  1. Im trying to connect to an external heart rate sensor using BLE. As Im getting 5 different characteristic values, how to detect what values is used for heart rate monitoring?

  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.
  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.

More useful references:-

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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