> > Hi Ankur, > > > > On Wed, May 13, 2015 at 12:39 PM, Ankur Patel <ankur@xxxxxxxxxxxx> > > 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 > > > Thank you for highlighting. I ran it and it worked good. It able to register the > services successfully. But when I ran the example-gatt-client, it went into > below error: > > Example-gatt-server output at: http://pastebin.com/vphgs92x > > root@imx28evk:~/tools# python example-gatt-client > /org/bluez/example/service0 Method "GetAll" with signature "s" on > interface "org.freedesktop.DBus.Properties" doesn't exist > > Is the path provided is correct? I have a doubt. End output is I want to > register primary/secondary services. Sorry Luiz, I went into the wrong loop. After going through the code it makes me clear. The services can be registered successfully on the device after running example-gatt-server. I have verified it as below running bluetoothctl: [bluetooth]# show Controller 1C:BA:8C:86:81:21 Name: test-bt Alias: test-bt Class: 0x400000 Powered: yes Discoverable: no Pairable: yes UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb) UUID: SIM Access (0000112d-0000-1000-8000-00805f9b34fb) UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb) UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb) UUID: Heart Rate (0000180d-0000-1000-8000-00805f9b34fb) UUID: Vendor specific (12345678-1234-5678-1234-56789abcdef0) Modalias: usb:v1D6Bp0246d051E Discovering: no Thanks for support. Ankur > > Thank you, > Ankur. > > -- > > Luiz Augusto von Dentz ��.n��������+%������w��{.n�����{����^n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�