Bluetooth Bluez 5.17及更高版本,无法注册设备接口

Bluetooth Bluez 5.17及更高版本,无法注册设备接口,bluetooth,bluetooth-lowenergy,bluez,Bluetooth,Bluetooth Lowenergy,Bluez,我正在尝试在我的设备上实现一个具有蓝牙硬件的BLE外围设备。我正在为这个设备编译bluez5.16,选项为-启用实验模式和-启用维护模式。5.16版似乎一切正常,我可以使用iPhone应用程序LightBlue查看我的外围设备。但是,一旦我更新到5.16之后的任何版本,似乎什么都不起作用,我就收到了无法为6B:6F:6B:E2:61:6C注册设备接口的错误,如底部的完整堆栈所示 我查看了代码,它是Bluetooth试图注册dbus时的代码。为什么dbus注册失败 if (g_dbus_regis

我正在尝试在我的设备上实现一个具有蓝牙硬件的BLE外围设备。我正在为这个设备编译bluez5.16,选项为-启用实验模式和-启用维护模式。5.16版似乎一切正常,我可以使用iPhone应用程序LightBlue查看我的外围设备。但是,一旦我更新到5.16之后的任何版本,似乎什么都不起作用,我就收到了无法为6B:6F:6B:E2:61:6C注册设备接口的错误,如底部的完整堆栈所示

我查看了代码,它是Bluetooth试图注册dbus时的代码。为什么dbus注册失败

if (g_dbus_register_interface(dbus_conn,
        device->path, DEVICE_INTERFACE,
        device_methods, NULL,
        device_properties, device,
        device_free) == FALSE) {
    error("Unable to register device interface for %s", address);
            device_free(device);
            return NULL;
}
错误:

Jul 22 20:52:48 daemon.debug bluetoothd[222]: src/adapter.c:connected_callback() hci0 device 6B:6F:6B:E
Jul 22 20:52:48 daemon.debug bluetoothd[222]: src/device.c:device_create() dst 6B:6F:6B:E2:61:6C       
Jul 22 20:52:48 daemon.debug bluetoothd[222]: src/device.c:device_new() address 6B:6F:6B:E2:61:6C      
Jul 22 20:52:48 daemon.debug bluetoothd[222]: src/device.c:device_new() Creating device /org/bluez/hci0
Jul 22 20:52:48 daemon.info bluetoothd[222]: bluetoothd[222]: src/adapter.c:connected_callback() hci0 d
Jul 22 20:52:48 daemon.info bluetoothd[222]: bluetoothd[222]: src/device.c:device_create() dst 6B:6F:6B
Jul 22 20:52:48 daemon.info bluetoothd[222]: bluetoothd[222]: src/device.c:device_new() address 6B:6F:6
Jul 22 20:52:48 daemon.info bluetoothd[222]: bluetoothd[222]: src/device.c:device_new() Creating device
Jul 22 20:52:48 daemon.info bluetoothd[222]: bluetoothd[222]: src/device.c:btd_device_set_temporary() t
Jul 22 20:52:48 daemon.debug bluetoothd[222]: src/device.c:btd_device_set_temporary() temporary 1      
Jul 22 20:52:48 daemon.debug bluetoothd[222]: src/adapter.c:adapter_connect_list_remove() device /org/b
Jul 22 20:52:48 daemon.debug bluetoothd[222]: src/attrib-server.c:connect_event()                      
Jul 22 20:52:48 daemon.debug bluetoothd[222]: src/device.c:device_create() dst 6B:6F:6B:E2:61:6C
Jul 22 20:52:48 daemon.debug bluetoothd[222]: src/device.c:device_new() address 6B:6F:6B:E2:61:6C      
Jul 22 20:52:48 daemon.debug bluetoothd[222]: src/device.c:device_new() Creating device /org/bluez/hci0
Jul 22 20:52:48 daemon.err bluetoothd[222]: Unable to register device interface for 6B:6F:6B:E2:61:6C
Jul 22 20:52:48 daemon.debug bluetoothd[222]: src/device.c:device_free() 0x8a009b0                     
Jul 22 20:52:48 daemon.info bluetoothd[222]: bluetoothd[222]: src/adapter.c:adapter_connect_list_remove
Jul 22 20:52:48 daemon.info bluetoothd[222]: bluetoothd[222]: src/attrib-server.c:connect_event()      
Jul 22 20:52:48 daemon.info bluetoothd[222]: bluetoothd[222]: src/device.c:device_create() dst 6B:6F:6B
Jul 22 20:52:48 daemon.info bluetoothd[222]: bluetoothd[222]: src/device.c:device_new() address 6B:6F:6
Jul 22 20:52:48 daemon.info bluetoothd[222]: bluetoothd[222]: src/device.c:device_new() Creating device
Jul 22 20:52:48 daemon.info bluetoothd[222]: bluetoothd[222]: Unable to register device interface for 6
Jul 22 20:52:48 daemon.info bluetoothd[222]: bluetoothd[222]: src/device.c:device_free() 0x8a009b0
Jul 22 20:52:52 daemon.debug bluetoothd[222]: src/adapter.c:dev_disconnected() Device 6B:6F:6B:E2:61:6C
Jul 22 20:52:52 daemon.debug bluetoothd[222]: src/adapter.c:adapter_remove_connection()                
Jul 22 20:52:52 daemon.debug bluetoothd[222]: src/adapter.c:adapter_remove_connection() Removing tempor
Jul 22 20:52:52 daemon.debug bluetoothd[222]: src/device.c:device_remove() Removing device /org/bluez/h
Jul 22 20:52:52 daemon.debug bluetoothd[222]: src/device.c:btd_device_unref() Freeing device /org/bluez
Jul 22 20:52:52 daemon.debug bluetoothd[222]: src/device.c:device_free() 0x8a00108                     
Jul 22 20:52:52 daemon.debug bluetoothd[222]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr 6B:6
Jul 22 20:52:52 daemon.debug bluetoothd[222]: src/adapter.c:resume_discovery()                         
Jul 22 20:52:52 daemon.info bluetoothd[222]: bluetoothd[222]: src/adapter.c:dev_disconnected() Device 6
Jul 22 20:52:52 daemon.info bluetoothd[222]: bluetoothd[222]: src/adapter.c:adapter_remove_connection()
Jul 22 20:52:52 daemon.info bluetoothd[222]: bluetoothd[222]: src/adapter.c:adapter_remove_connection()
Jul 22 20:52:52 daemon.info bluetoothd[222]: bluetoothd[222]: src/device.c:device_remove() Removing dev

你找到解决办法了吗?这个问题似乎一直持续到现在