简体   繁体   English

从传感器蓝牙文件获取数据

[英]Get data from sensor bluetooth le

I am developing one scholar project using ID-107HR like Heart Rate Sensor. 我正在使用ID-107HR(如心率传感器)开发一个学者项目。 The idea is getting the information of the sensor using one android apps through of the Bluetooth LE. 这个想法是通过Bluetooth LE使用一个Android应用程序获取传感器的信息。

Actually, my android apps could connect with the ID-107HR sensor, but I don't have idea how can i do for getting the sensor data?. 实际上,我的android应用程序可以与ID-107HR传感器连接,但我不知道如何获取传感器数据?

My apps show me the next information: 我的应用程序向我显示以下信息:

Device Name: ID107 HR
Device Address: FB:44:E7:74:FB:EB

Services:--------------------------

GAP (00001800-0000-1000-8000-00805f9b34fb)
Device Name (00002a00-0000-1000-8000-00805f9b34fb)
Appearance (00002a01-0000-1000-8000-00805f9b34fb)
Peripheral Preferred Connection Parameters (00002a04-0000-1000-8000-00805f9b34fb)

GATT (00001801-0000-1000-8000-00805f9b34fb)
Service Changed (00002a05-0000-1000-8000-00805f9b34fb)

Unknown service (00000af0-0000-1000-8000-00805f9b34fb)
Unknown characteristic (00000af6-0000-1000-8000-00805f9b34fb)
Unknown characteristic (00000af7-0000-1000-8000-00805f9b34fb)
Unknown characteristic (00000af2-0000-1000-8000-00805f9b34fb)
Unknown characteristic (00000af1-0000-1000-8000-00805f9b34fb)

I supose that the third (unknown) service allow to me the get information. 我认为第三项(未知)服务允许我获取信息。

I was reading that this kind of device work like a server, and my android apps act like client. 我读到这种设备像服务器一样工作,而我的android应用程序像客户端。

Thanks for you help.... 谢谢您的帮助。

Standard GATT service UUIDs are defined here https://www.bluetooth.com/specifications/gatt/services 在此处定义标准GATT服务UUID https://www.bluetooth.com/specifications/gatt/services

That service and those characteristics aren't part of the standard Heart Rate Profile which you can find out about here: https://developer.bluetooth.org/TechnologyOverview/Pages/HRP.aspx 该服务和那些特性不是您可以在此处找到的标准心率配置文件的一部分: https : //developer.bluetooth.org/TechnologyOverview/Pages/HRP.aspx

Looks like somebody just made-up their own UUID16 numbers rather than using UUID128 as they should have done for a proprietary service. 看起来有人只是伪造了自己的UUID16号,而不是像使用专有服务那样使用UUID128。 It happens. 它发生了。 :-( :-(

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

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