项目作者: oerjanti

项目描述 :
适用于Android的蓝牙低功耗(智能)心率变异传感器演示应用
高级语言: Java
项目地址: git://github.com/oerjanti/BLE-Heart-rate-variability-demo.git
创建时间: 2014-03-31T08:51:27Z
项目社区:https://github.com/oerjanti/BLE-Heart-rate-variability-demo

开源协议:MIT License

下载


BLE Heart rate variability demo

Bluetooth low energy (Smart) Heart rate variability sensor demo app for Android

This app searches for nearby BLE devices and connects to heart rate sensor service. It shows hear rate (average pulse) and heart rate variability (beat-to-beat interval or RR data). The app also has a graphical demo of pulsing dot for real-time biofeedback monitoring of hear rate variability showing nicely how breathing rate affects heart rate variability.

Heart rate variability could be used to calculate different things like training effect on sports, sleep quality, stress and relaxation effects since it mirrors parasympathetic nervous system activity.

BLE is a nice since it has open protocol for transmitting data like heart rate here. It makes setting up a development environment relatively fast and you can concentrate on doing you actual business logic.

Bluetooh BLE is supported from Android 4.3 (API level 18) onwards.
Read more about Android BLE development.
There is also Android sample code for GATT services.



  • Tested heart rate belts:
  • Polar H6



  • Android BLE devices:
  • Nexus 7 (Asus)


Use instructions

Install the app from Google Play Store

Connect heart rate BLE belt on your chest or wrist. Start the app and scan for BLE devices. Select heart rate sensor and wait for the GATT hear rate service to be found. Heart rate data values starts to update on the screen. Press demo button to show a graphical demo of heart rate variability. You will get nice graphics when you sit down relaxed. Try some slow deep breaths. The dot shows your heart rate variability cut from 700 milliseconds corresponding to pulse of 87. If your pulse is higher no dot is drawn. You can select GATT information services to read other data on the device.

Troubleshooting

Android BLE seems to be slow to connect on first time. Please wait a minute or two to get the heart rate reading.
If device is disconnected some times switching Android bluetooth off and back on will help to reconnect.
Make sure your chest belt is well moisturized to get a good contact.


Developed By

Most of the bluetooth BLE sensor handling are from TI Sensor Tag project by:

Polygon drawing from Pro Android book by APress and Sayed Hashimi and Satya Komatineni.

License

  1. The MIT License (MIT)
  2. Copyright (c) 2013-2014 Steven Rudenko and Olli Erjanti
  3. Permission is hereby granted, free of charge, to any person obtaining a copy
  4. of this software and associated documentation files (the "Software"), to deal
  5. in the Software without restriction, including without limitation the rights
  6. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7. copies of the Software, and to permit persons to whom the Software is
  8. furnished to do so, subject to the following conditions:
  9. The above copyright notice and this permission notice shall be included in
  10. all copies or substantial portions of the Software.
  11. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  12. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  13. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  14. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  15. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  16. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  17. THE SOFTWARE.