gatt server and reset of hci device
Quoted 1 line
What version of bluez are you using?
5.37 & 5.39 & 5.40. Same result for all these versions.
Quoted 2 lines
Yes you can also look at
tools/gatt-service.cfor a C example of using the GATT dbus API.
Ok thanks. I will check that.
Quoted 2 lines
Can you run 'bluetoothd -nE -d
src/gatt-database.c'. Do you see something like 'GATT Manager registered for adapter: /org/bluez/hci0'?
[arthur ] sudo ./bluetoothd -nE -d src/gatt-database.
[sudo] password for arthur:
bluetoothd[9754]: Bluetooth daemon 5.39
bluetoothd[9754]: Unknown key PageTimeout in main.conf bluetoothd[9754]: Unknown key InitiallyPowered in main.conf bluetoothd[9754]: Unknown key RememberPowered in main.conf bluetoothd[9754]: Unknown key EnableGatt in main.conf bluetoothd[9754]: Starting SDP server
bluetoothd[9754]: Bluetooth management interface 1.4 initialized bluetoothd[9754]: Failed to obtain handles for "Service Changed" characteristic bluetoothd[9754]: Failed to read advertising features: Unknown Command (0x01) bluetoothd[9754]: hci0 Load Connection Parameters failed: Unknown Command (0x01)
I replace the main.conf from source in /etc and retry the test :
[arthur ] sudo ./bluetoothd -nE -d src/gatt-database. bluetoothd[11131]: Bluetooth daemon 5.39
bluetoothd[11131]: Starting SDP server
bluetoothd[11131]: Bluetooth management interface 1.4 initialized bluetoothd[11131]: Failed to obtain handles for "Service Changed" characteristic bluetoothd[11131]: Failed to read advertising features: Unknown Command (0x01) bluetoothd[11131]: hci0 Load Connection Parameters failed: Unknown Command (0x01)
This test is running on ubuntu 14.04. We stop bluetooth service before starting bluetoothd. We also run the test on arm target but without trouble this time.
Arthur.
Quoted 10 lines
[arthur ] sudo ./bluetoothd -nE -d src/gatt-database. bluetoothd[11131]: Bluetooth daemon 5.39
bluetoothd[11131]: Starting SDP server
bluetoothd[11131]: Bluetooth management interface 1.4 initialized bluetoothd[11131]: Failed to obtain handles for "Service Changed" characteristic bluetoothd[11131]: Failed to read advertising features: Unknown Command (0x01) bluetoothd[11131]: hci0 Load Connection Parameters failed: Unknown Command (0x01)This test is running on ubuntu 14.04. We stop bluetooth service before starting bluetoothd. We also run the test on arm target but without trouble this time.
Okay, the 'Unknown Command' lines don't look so good, what kernel are you running?