Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On raspberry pi error message Failed to register advertisement #1

Open
jkparra opened this issue Feb 15, 2018 · 1 comment
Open

On raspberry pi error message Failed to register advertisement #1

jkparra opened this issue Feb 15, 2018 · 1 comment

Comments

@jkparra
Copy link

jkparra commented Feb 15, 2018

Hello:

I like very much your solution is very simple and straightforward, however I was not able to run in raspberry pi.

This is the message on terminaL.

checking adapter /org/bluez/test, keys: [dbus.String(u'org.bluez.SimAccessTest1'), dbus.String(u'org.freedesktop.DBus.Introspectable')]
checking adapter /org/bluez/hci0, keys: [dbus.String(u'org.bluez.SimAccess1'), dbus.String(u'org.bluez.GattManager1'), dbus.String(u'org.bluez.Media1'), dbus.String(u'org.freedesktop.DBus.Introspectable'), dbus.String(u'org.bluez.NetworkServer1'), dbus.String(u'org.bluez.LEAdvertisingManager1'), dbus.String(u'org.bluez.Adapter1'), dbus.String(u'org.freedesktop.DBus.Properties')]
found adapter /org/bluez/hci0
returning adapter /org/bluez/hci0
adapter: /org/bluez/hci0
checking adapter /org/bluez/test, keys: [dbus.String(u'org.bluez.SimAccessTest1'), dbus.String(u'org.freedesktop.DBus.Introspectable')]
checking adapter /org/bluez/hci0, keys: [dbus.String(u'org.bluez.SimAccess1'), dbus.String(u'org.bluez.GattManager1'), dbus.String(u'org.bluez.Media1'), dbus.String(u'org.freedesktop.DBus.Introspectable'), dbus.String(u'org.bluez.NetworkServer1'), dbus.String(u'org.bluez.LEAdvertisingManager1'), dbus.String(u'org.bluez.Adapter1'), dbus.String(u'org.freedesktop.DBus.Properties')]
found adapter /org/bluez/hci0
returning adapter /org/bluez/hci0
Registering GATT application...
Failed to register advertisement: org.bluez.Error.Failed: Failed to parse advertisement.

@Tom-TheBrand
Copy link

Tom-TheBrand commented Feb 15, 2018

i had the same problem! ensure your are using the right bluez version and that you've activated experimental switch on bluetoothd (read carefully setup instructions in readme file of this repository)!
-> setup instruction is referencing bluez version 5.45!

i'm using 5.41 and got the same error message when starting. after modifing advertising.py, code is running well! i replaced some lines of "get_properties" and "add_*" functions. i took them from tests directory of bluez 5.41 source code (kernel.og). for me it seems that the dbus interface/structures has changed and therefore example codes are very tighten to the correct bluez version.

i'm already playing around since two weeks day and night and now i'm starting to understand dbus ble! very big thanks to dansheme for providing this repo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants