简体   繁体   English

BlueZ 4.99中的蓝牙健康设备配置文件(HDP)接收器实现?

[英]Bluetooth Health Device Profile (HDP) Sink Implementation in BlueZ 4.99?

I am new to Bluetooth programming, and I am trying to create a Linux application which interacts with a Heart Rate Monitor (HRM) over Bluetooth. 我是蓝牙编程的新手,我正在尝试创建一个Linux应用程序,该应用程序通过蓝牙与心率监视器(HRM)交互。 This would ideally be accomplished through either BlueZ tools (sdptool, hcitool, hciconfig, etc.) or the C Programming Language. 理想情况下,这可以通过BlueZ工具(sdptool,hcitool,hciconfig等)或C编程语言来实现。

I assume the program would resemble the following: 我认为程序将类似于以下内容:

  1. Scan nearby devices. 扫描附近的设备。
  2. Browse SDP of each device, searching for an HDP HRM Source. 浏览每个设备的SDP,搜索HDP HRM源。
  3. Perform some sort of connection command. 执行某种连接命令。
  4. Read from stream/file passed by connection command. 从连接命令传递的流/文件中读取。

Of course, being new, my assumptions about program flow could be incorrect themselves. 当然,作为新手,我对程序流程的假设本身可能是错误的。

However, I am unable to find any capabilities regarding the Health Device Profile in the BlueZ tools. 但是,我无法在BlueZ工具中找到有关“健康设备配置文件”的任何功能。 In attempting to make a C application, I can find preprocessor macros for numbers relating to an HDP implementation in the BlueZ header files, but no functionality beyond that. 在尝试创建C应用程序时,我可以在BlueZ头文件中找到与HDP实现有关的数字的预处理程序宏,但除此之外没有其他功能。

Some useful links I've found: 我发现了一些有用的链接:

System Information: 系统信息:

  • Linux Kernel: 2.6.37 Linux内核:2.6.37
  • BlueZ Version: 4.99 BlueZ版本:4.99
  • D-Bus Version: 1.0 D-Bus版本:1.0

To be more specific about my questions, is it possible to create an HDP sink using BlueZ tools? 更具体地说,我是否可以使用BlueZ工具创建HDP接收器? If not, is it possible to do so in C. If not, what is the best way? 如果没有,是否可以在C中进行。如果没有,最好的方法是什么? And where can I go to find documentation for HDP connections and possible examples. 在哪里可以找到有关HDP连接的文档和可能的示例。 Search engines have proved unhelpful so far, so I am hoping SO can provide some direction. 到目前为止,搜索引擎已被证明是无益的,所以我希望SO可以提供一些指导。

Thanks! 谢谢!

Try Antidote, it compiles for Linux and has a built-in sink example (healthd). 尝试Antidote,它可以在Linux上编译,并具有内置的接收器示例(正常)。

http://oss.signove.com/index.php/Antidote:_IEEE_11073-20601_stack http://oss.signove.com/index.php/Antidote:_IEEE_11073-20601_stack

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

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