Hi, On Mon, Jun 29, 2015 at 12:00 PM, Zheng, Wu <wu.zheng@xxxxxxxxx> wrote: > Hi all, > > 1. I use the latest version of Bluez and run as "bluetoothd -Edn" to test gatt. > > 2. I try to use example-gatt-server to test it. > > However, it failed. Please check the following log. > > Run "Bluetooth -Edn" > " > bluetoothd[17456]: src/gatt-database.c:manager_register_service() Registering service - path: /org/bluez/example/service0 > bluetoothd[17456]: src/gatt-database.c:manager_register_service() Registering service - path: /org/bluez/example/service1 > bluetoothd[17456]: src/gatt-database.c:manager_register_service() Registering service - path: /org/bluez/example/service2 > bluetoothd[17456]: src/gatt-database.c:client_disconnect_cb() Client disconnected > bluetoothd[17456]: src/gatt-database.c:client_disconnect_cb() Client disconnected > bluetoothd[17456]: src/gatt-database.c:client_disconnect_cb() Client disconnected > " > > Then Run "./example-gatt-server" > " > ./example-gatt-server > Battery Level drained: 98 > Battery Level drained: 96 > Battery Level drained: 94 > Battery Level drained: 92 > Failed to register service: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. > " > > After checked the source code, I find that "RegisterService" not return the dbus message and only after invoking client_ready_cb, the dbus message is returned. > > I missed some steps to test it? Please help. Thanks. Check if you had update the D-Bus policy file, we will try to access the clients services via ObjectManager etc, so you need the policy to enable that. -- Luiz Augusto von Dentz -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html