是否可以通过Android从智能手表获取PPG(光电容积描记)数据? [英] Is it possible to get PPG(Photoplethysmogram) data from a smart watch via android?

查看:917
本文介绍了是否可以通过Android从智能手表获取PPG(光电容积描记)数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用具有光学心率传感器的Android智能手表设备开发医疗保健应用程序.此类设备的示例包括:Samsung gear live,Moto360,LG G watch R等.

I want to develop a health care app using Android smart watch devices that have an optical heart rate sensor. Examples of such devices are: Samsung gear live, Moto360, LG G watch R, etc.

为此,我需要这些设备的原始PPG信号数据,但是我发现Android API仅支持按BPM单位的心率数据.

To do this, I need the raw PPG signal data from those devices, but I found that the Android API only supports heart rate data by BPM unit.

有人知道原始信号数据是否可以访问吗?如果可以,我如何访问这些数据?

Does anyone know if the raw signal data is accessible, and if so, how do I get access to that data?

推荐答案

是的,可以这样做.我在这里回答了类似的问题: Android Wear:如何获取原始PPG数据?

Yes, It is possible to do that. I have answered a similar question here :Android Wear: How to get raw PPG data?

基本上,请尝试执行以下步骤:

Basically, try to follow these steps:

1-获取PPG传感器的传感器类型(用数字表示)(它是描述传感器的常数).可以通过列出设备上所有可用的传感器来完成此操作:

1- Get the sensor type (represented by a number) of your PPG sensor (it is a constant that describes the sensor). This can be done by listing all the available sensors on your device:

List<Sensor> sensorList = mSensorManager.getSensorList(Sensor.TYPE_ALL);
        for (Sensor currentSensor : sensorList) {
            Log.d("List sensors", "Name: "+currentSensor.getName() + " /Type_String: " +currentSensor.getStringType()+ " /Type_number: "+currentSensor.getType());
        }

2-然后,尝试找到PPG传感器的sensorType.在输出中,您会找到其中一个包含单词ppg的传感器之一.例如,这就是我的Huawei watch 2的ppg传感器的外观:

2- Then, try to find the sensorType of your PPG sensor. In your output, you will find one of the sensors containing the word ppg in it's type. For instance here is what the ppg sensor of my Huawei watch 2 looks like:

Name: AFE4405 light Sensor /Type_String:  com.huawei.watch.ppg /Type_Number: 65537

3-使用您的ppg传感器的type_number注册您的侦听器,我的是65537,所以我可以这样做:

3-Register your listener using the the type_number of your ppg sensor, mine is 65537 so I would do this:

sensorManager.registerListener(this,sensorManager.getDefaultSensor(65537),SensorManager.SENSOR_DELAY_NORMAL);

这篇关于是否可以通过Android从智能手表获取PPG(光电容积描记)数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆