我正在尝试使用索尼Xperis Ice Cream Sandwitch手机中的蓝牙HDP 测试一款应用。 我已经实现了BluetoothHDPService类和一个测试活动类。 我正在与Omron制造的血压设备连接,该设备支持 IEEE 11073 协议。为了实现IEEE 11073,我正在使用解毒剂,这是一个开源堆栈,使用 android NDK实现IEEE 11073 feature.I我正在运行一个服务HealthService,它与BluetoothHDPService和解毒剂相互作用。
在设备中,我收到以下错误。
09-04 17:08:12.571 W/antidote( 3778): Starting Transcoding plugin...
09-04 17:08:12.582 D/libEGL ( 3800): loaded /system/lib/egl/libGLES_android.so
09-04 17:08:12.582 W/HSSHDP ( 3778): onServiceConnected to profile: 3
09-04 17:08:12.582 W/HSSHDP ( 3778): BluetoothHDPService is running.
09-04 17:08:12.582 W/HSS ( 3778): HDP service connected
09-04 17:08:12.582 W/HSSHDP ( 3778): Activity client registered
09-04 17:08:12.592 D/libEGL ( 3800): loaded /system/lib/egl/libEGL_mali.so
09-04 17:08:12.592 E/BluetoothService.cpp( 1793):
registerSinkHealthApplicationNative: D-Bus error:
org.freedesktop.DBus.Error.UnknownMethod (Method "CreateApplication" with signature
"a{sv}" on interface "org.bluez.HealthManager" doesn't exist
09-04 17:08:12.592 E/BluetoothService.cpp( 1793): )
09-04 17:08:12.602 W/HSS ( 3778): HDP Registered
09-04 17:08:12.602 D/libEGL ( 3800): loaded /system/lib/egl/libGLESv1_CM_mali.so
09-04 17:08:12.602 D/libEGL ( 3800): loaded /system/lib/egl/libGLESv2_mali.so
09-04 17:08:12.602 E/BluetoothService.cpp( 1793):
registerSinkHealthApplicationNative: D-Bus error:
org.freedesktop.DBus.Error.UnknownMethod (Method "CreateApplication" with signature
"a{sv}" on interface "org.bluez.HealthManager" doesn't exist
09-04 17:08:12.602 E/BluetoothService.cpp( 1793): )
09-04 17:08:12.602 W/HSS ( 3778): HDP Registered
09-04 17:08:12.612 E/BluetoothService.cpp( 1793):
registerSinkHealthApplicationNative: D-Bus error:
org.freedesktop.DBus.Error.UnknownMethod (Method "CreateApplication" with signature
"a{sv}" on interface "org.bluez.HealthManager" doesn't exist
09-04 17:08:12.612 E/BluetoothService.cpp( 1793): )
09-04 17:08:12.612 W/HSS ( 3778): HDP Registered
09-04 17:08:12.612 **E/BluetoothService.cpp( 1793):
registerSinkHealthApplicationNative: D-Bus error:
org.freedesktop.DBus.Error.UnknownMethod (Method "CreateApplication" with signature
"a{sv}" on interface "org.bluez.HealthManager" doesn't exist**
09-04 17:08:12.612 E/BluetoothService.cpp( 1793): )
09-04 17:08:12.612 W/HSS ( 3778): HDP Registered
09-04 17:08:12.622 I/libblt_hw( 1426): Library closed (handle = 0, fd = 25)
09-04 17:08:12.622 D/OpenGLRenderer( 3800): Enabling debug mode 0
09-04 17:08:12.632 W/HST ( 3800): Service connection established
09-04 17:08:12.632 W/HST ( 3800): Configuring...
09-04 17:08:12.632 W/HSS ( 3778): ConfigurePassive
09-04 17:08:12.632 W/HSS ( 3778): Configured agent
com.signove.health.service.HealthAgentAPI$Stub$Proxy@41579f38
09-04 17:08:12.702 I/ActivityManager( 1793): Displayed
com.signove.health.servicetest/.HealthServiceTestActivity: +501ms
09-04 17:08:12.912 I/libblt_hw( 1426): Library closed (handle = 2, fd = 32)
09-04 17:08:15.184 E/wpa_supplicant( 1879): RX ctrl_iface - hexdump_ascii(len=11):
09-04 17:08:15.184 E/wpa_supplicant( 1879): 53 49 47 4e 41 4c 5f 50 4f 4c
4c SIGNAL_POLL
09-04 17:08:15.184 D/wpa_supplicant( 1879): Command received: SIGNAL_POLL
09-04 17:08:15.184 D/wpa_supplicant( 1879): nl80211: survey data missing!
09-04 17:08:15.364 D/ADM ( 1450): devset:282 STATUS Close device 'Speaker'
09-04 17:08:16.816 D/dalvikvm( 3169): GC_CONCURRENT freed 1766K, 17% free
11169K/13411K, paused 4ms+4ms
09-04 17:08:17.036 D/dalvikvm( 1793): GC_CONCURRENT freed 1815K, 28% free
14916K/20579K, paused 9ms+6ms
09-04 17:08:18.197 E/wpa_supplicant( 1879): RX ctrl_iface - hexdump_ascii(len=11):
09-04 17:08:18.197 E/wpa_supplicant( 1879): 53 49 47 4e 41 4c 5f 50 4f 4c
4c SIGNAL_POLL
09-04 17:08:18.197 D/wpa_supplicant( 1879): Command received: SIGNAL_POLL
09-04 17:08:18.197 D/wpa_supplicant( 1879): nl80211: survey data missing!
09-04 17:08:21.200 E/wpa_supplicant( 1879): RX ctrl_iface - hexdump_ascii(len=11):
09-04 17:08:21.200 E/wpa_supplicant( 1879): 53 49 47 4e 41 4c 5f 50 4f 4c
4c SIGNAL_POLL
09-04 17:08:21.200 D/wpa_supplicant( 1879): Command received: SIGNAL_POLL
09-04 17:08:21.200 D/wpa_supplicant( 1879): nl80211: survey data missing!
09-04 17:08:23.993 D/BluetoothEventLoop( 1793): Device property changed:
00:22:58:35:C2:5F property: Connected value: true
09-04 17:08:24.203 E/wpa_supplicant( 1879): RX ctrl_iface - hexdump_ascii(len=11):
09-04 17:08:24.203 E/wpa_supplicant( 1879): 53 49 47 4e 41 4c 5f 50 4f 4c
4c SIGNAL_POLL
09-04 17:08:24.203 D/wpa_supplicant( 1879): Command received: SIGNAL_POLL
09-04 17:08:24.203 D/wpa_supplicant( 1879): nl80211: survey data missing!
09-04 17:08:27.116 D/dalvikvm( 3169): GC_CONCURRENT freed 1766K, 17% free
11206K/13411K, paused 3ms+3ms
09-04 17:08:27.206 E/wpa_supplicant( 1879): RX ctrl_iface - hexdump_ascii(len=11):
09-04 17:08:27.206 E/wpa_supplicant( 1879): 53 49 47 4e 41 4c 5f 50 4f 4c
4c SIGNAL_POLL
09-04 17:08:27.206 D/wpa_supplicant( 1879): Command received: SIGNAL_POLL
09-04 17:08:27.206 D/wpa_supplicant( 1879): nl80211: survey data missing!
09-04 17:08:27.216 D/dalvikvm( 2243): GC_CONCURRENT freed 1668K, 12% free
14024K/15843K, paused 4ms+6ms
09-04 17:08:29.028 D/BluetoothEventLoop( 1793): Device property changed:
00:22:58:35:C2:5F property: Connected value: false
09-04 17:08:29.628 D/SurfaceFlinger( 1426): screenshot: sw=180, sh=320, minZ=0,
maxZ=21010
09-04 17:08:29.718 I/libblt_hw( 1426): Library opened (handle = 0, fd = 25)
09-04 17:08:29.808 D/OpenGLRenderer( 3800): Flushing caches (mode 0)
09-04 17:08:29.828 D/OpenGLRenderer( 3800): Flushing caches (mode 1)
09-04 17:08:29.828 W/HST ( 3800): Unconfiguring...
09-04 17:08:29.828 I/ActivityManager( 1793): No longer want com.android.calendar (pid
3281): hidden #16
09-04 17:08:29.838 D/OpenGLRenderer( 3778): Flushing caches (mode 1)
09-04 17:08:29.838 W/HSS ( 3778): Unconfigure
09-04 17:08:29.838 W/HSS ( 3778): Unconfigured agent
com.signove.health.service.HealthAgentAPI$Stub$Proxy@4157a4c8
09-04 17:08:29.838 W/HST ( 3800): Activity destroyed
09-04 17:08:30.029 I/libblt_hw( 1426): Library closed (handle = 5, fd = 29)
任何人都可以帮助我
E/BluetoothService.cpp( 1793):registerSinkHealthApplicationNative: D-Bus error:
org.freedesktop.DBus.Error.UnknownMethod (Method "CreateApplication" with signature
"a{sv}" on interface "org.bluez.HealthManager" doesn't exist
这个错误?我在哪里可以找到我的android代码中的 BluetoothService.cpp 文件? 在代码中实施 org.bluez.HealthManager 的正确方法是什么?
对此有任何帮助将不胜感激。
答案 0 :(得分:0)
有些手机在蓝牙堆栈上禁用了HDP,即使有Android级别的API也是如此。我认为情况就是这样。
错误消息非常低级,告诉BlueZ无法识别此方法调用。由于CreateApplication方法即使在没有配对的HDP设备的情况下也能正常工作,我认为手机中运行的BlueZ根本不支持HDP。