Unable to setup Gatt
Luiz Augusto von Dentz
maintainerHi Bharat,
Quoted 9 lines · Bharat Bhusan Panda
Hi,
We are trying to setup two machines, with btgatt-server and btgatt-client running on either side.
Quoted 8 lines
On btgatt-server: (--index hci0 –r)
1. hciconfig hci0 up
2. hciconfig hci0 leadv
3. bluetoothd is running with –ndE option.
Afaik you should not run bluetoothd and btgatt-server along side because they both listen to the same cid. (ATT_CID = 4)
Quoted 11 lines
“Started listening on ATT channel, waiting for connections”
On btgatt-client: (--index hci0 –d <server addr>)
1. hciconfig hci0 up
2. bluetoothd –ndE
The is similar situation as the server, you have to decide what client you want to use and not try to use both together.
Quoted 8 lines
After running btgatt-client with above options, it gets connected to btgatt-server and returns below error message,
“GATT Discovery procedure failed – error code 0x0a”
Which means “ATTR_NOT_FOUND”, and ATT is not ready.
Most likely there where a conflict while setting up the server.
Quoted 3 lines
Could anyone please help us, if we missed any steps to make the gatt server/client up and running?
Id say you should try with bluetoothd alone, try to pair and watch for objects being create with interface org.bluez.GattService1, you can monitor that with dbus-monitor for now until we are adapting bluetoothctl to show them, d-feet is another option. Also please make sure you have btmon running so in case you detect any problems you can send us the logs of the traffic.
Quoted 7 lines
Thanks,
Best Regards,
Bharat
Signature · 1 line
Luiz Augusto von Dentz