Hi Folks,
I am having issues with registering GATT services successfully on the device.
Using: Linux Kernel: 3.18.12 Bluez: 5.30
Step1> Build Bluez5.30 with --enable-experimental and --enable-maintainer-mode.
Step2> Ran Bluetoothd with -E option as below:
root@imx28evk:~ # /usr/lib/bluez5/bluetooth/bluetoothd -d -n -E &
Output:
http://pastebin.com/eALijggh
Snippet:
...
bluetoothd[462]: src/gatt-database.c:gatt_db_service_added() GATT Service added to local database
bluetoothd[462]: src/advertising.c:btd_advertising_manager_new() LE Advertising Manager created for adapter: /org/bluez/hci0
bluetoothd[462]: profiles/audio/a2dp.c:media_server_probe() path /org/bluez/hci0
bluetoothd[462]: plugins/hostname.c:hostname_probe()
bluetoothd[462]: Not enough free handles to register service
bluetoothd[462]: plugins/gatt-example.c:gatt_example_adapter_probe() Battery service could not be registered
bluetoothd[462]: gatt-example-adapter-driver: Input/output error (5) // Not sure if this restricts GATT Service to be registered
...
bluetoothd[462]: src/adapter.c:new_settings_callback() Settings: 0x000026f0
bluetoothd[462]: src/adapter.c:settings_changed() Changed settings: 0x0000000a
Step3> Ran gatt-service:
root@imx28evk:~/tools# ./gatt-service
gatt-service unique name: :1.4
Registered service: /service1
Get UUID: 00001802-0000-1000-8000-00805f9b34fb
Exist Includes: 00001802-0000-1000-8000-00805f9b34fb
Characteristic(00002a06-0000-1000-8000-00805f9b34fb): Get("Value")
Descriptor(8260c653-1a54-426b-9e36-e84c238bc669): Get("Value")
RegisterService: Method "RegisterService" with signature "oa{sv}" on interface "org.bluez.GattManager1" doesn't exist
I am using the Dbus config from http://git.kernel.org/cgit/bluetooth/bluez.git/tree/src/bluetooth.conf.
Any idea why it fails to register the service? Do I need to enable other features or if there is any missing steps?
Thank you,
Regards,
Ankur.
PiA+IEhpIEFua3VyLA0KPiA+DQo+ID4gT24gV2VkLCBNYXkgMTMsIDIwMTUgYXQgMTI6MzkgUE0s
IEFua3VyIFBhdGVsIDxhbmt1ckBlbWJlcnRlYy5jb20+DQo+ID4gd3JvdGU6DQo+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V6L2V4YW1wbGUvc2VydmljZTANCk1ldGhvZCAiR2V0QWxsIiB3aXRoIHNpZ25h
dHVyZSAicyIgb24gaW50ZXJmYWNlICJvcmcuZnJlZWRlc2t0b3AuREJ1cy5Qcm9wZXJ0aWVzIiBk
b2Vzbid0IGV4aXN0DQoNCklzIHRoZSBwYXRoIHByb3ZpZGVkIGlzIGNvcnJlY3Q/IEkgaGF2ZSBh
IGRvdWJ0LiAgRW5kIG91dHB1dCBpcyBJIHdhbnQgdG8gcmVnaXN0ZXIgcHJpbWFyeS9zZWNvbmRh
cnkgc2VydmljZXMuIA0KDQpUaGFuayB5b3UsDQpBbmt1ci4NCj4gLS0NCj4gTHVpeiBBdWd1c3Rv
IHZvbiBEZW50eg0K
Hi John,
> On Wed, May 13, 2015 at 7:30 PM, John Carter <[email protected]> wrote:
>> Not enough free handles to register service
>
> I'm deeply suspicious of this error message.... I'm not sure why it
> occurs, but I suspect any time a plugin / profile attempts to register
> and fails to get a handle, the service fails to register.
>
Please see my response to your message in another thread.
> --
> John Carter
> Phone : (64)(3) 358 6639
> Tait Electronics
> PO Box 1645 Christchurch
> New Zealand
>
> --
>
> ------------------------------
> This email, including any attachments, is only for the intended recipient.
> It is subject to copyright, is confidential and may be the subject of legal
> or other privilege, none of which is waived or lost by reason of this
> transmission.
> If you are not an intended recipient, you may not use, disseminate,
> distribute or reproduce such email, any attachments, or any part thereof.
> If you have received a message in error, please notify the sender
> immediately and erase all copies of the message and any attachments.
> Unfortunately, we cannot warrant that the email has not been altered or
> corrupted during transmission nor can we guarantee that any email or any
> attachments are free from computer viruses or other conditions which may
> damage or interfere with recipient data, hardware or software. The
> recipient relies upon its own procedures and assumes all risk of use and of
> opening any attachments.
> ------------------------------
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Thanks,
Arman
> Not enough free handles to register service
I'm deeply suspicious of this error message.... I'm not sure why it
occurs, but I suspect any time a plugin / profile attempts to register
and fails to get a handle, the service fails to register.
--
John Carter
Phone : (64)(3) 358 6639
Tait Electronics
PO Box 1645 Christchurch
New Zealand
--
------------------------------
This email, including any attachments, is only for the intended recipient.
It is subject to copyright, is confidential and may be the subject of legal
or other privilege, none of which is waived or lost by reason of this
transmission.
If you are not an intended recipient, you may not use, disseminate,
distribute or reproduce such email, any attachments, or any part thereof.
If you have received a message in error, please notify the sender
immediately and erase all copies of the message and any attachments.
Unfortunately, we cannot warrant that the email has not been altered or
corrupted during transmission nor can we guarantee that any email or any
attachments are free from computer viruses or other conditions which may
damage or interfere with recipient data, hardware or software. The
recipient relies upon its own procedures and assumes all risk of use and of
opening any attachments.
------------------------------
Hi Ankur,
On Wed, May 13, 2015 at 12:39 PM, Ankur Patel <[email protected]> wrote:
> Hi Folks,
>
> I am having issues with registering GATT services successfully on the device.
> Using: Linux Kernel: 3.18.12 Bluez: 5.30
>
> Step1> Build Bluez5.30 with --enable-experimental and --enable-maintainer-mode.
> Step2> Ran Bluetoothd with -E option as below:
> root@imx28evk:~ # /usr/lib/bluez5/bluetooth/bluetoothd -d -n -E &
> Output:
> http://pastebin.com/eALijggh
> Snippet:
> ...
> bluetoothd[462]: src/gatt-database.c:gatt_db_service_added() GATT Service added to local database
> bluetoothd[462]: src/advertising.c:btd_advertising_manager_new() LE Advertising Manager created for adapter: /org/bluez/hci0
> bluetoothd[462]: profiles/audio/a2dp.c:media_server_probe() path /org/bluez/hci0
> bluetoothd[462]: plugins/hostname.c:hostname_probe()
> bluetoothd[462]: Not enough free handles to register service
> bluetoothd[462]: plugins/gatt-example.c:gatt_example_adapter_probe() Battery service could not be registered
> bluetoothd[462]: gatt-example-adapter-driver: Input/output error (5) // Not sure if this restricts GATT Service to be registered
> ...
> bluetoothd[462]: src/adapter.c:new_settings_callback() Settings: 0x000026f0
> bluetoothd[462]: src/adapter.c:settings_changed() Changed settings: 0x0000000a
>
> Step3> Ran gatt-service:
> root@imx28evk:~/tools# ./gatt-service
> gatt-service unique name: :1.4
> Registered service: /service1
> Get UUID: 00001802-0000-1000-8000-00805f9b34fb
> Exist Includes: 00001802-0000-1000-8000-00805f9b34fb
> Characteristic(00002a06-0000-1000-8000-00805f9b34fb): Get("Value")
> Descriptor(8260c653-1a54-426b-9e36-e84c238bc669): Get("Value")
> RegisterService: Method "RegisterService" with signature "oa{sv}" on interface "org.bluez.GattManager1" doesn't exist
>
> I am using the Dbus config from http://git.kernel.org/cgit/bluetooth/bluez.git/tree/src/bluetooth.conf.
>
> Any idea why it fails to register the service? Do I need to enable other features or if there is any missing steps?
It should work if you have -E, but perhaps something else is not the
correct, like the path, etc. Btw, we do have an example here:
https://git.kernel.org/cgit/bluetooth/bluez.git/tree/test/example-gatt-server
--
Luiz Augusto von Dentz