-
Notifications
You must be signed in to change notification settings - Fork 2
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
Agent1 Interface does not work as desired #1
Comments
Bluetoothctl output: [CHG] Controller B8:27:EB:84:FF:E4 Discovering: yes |
The things are going to happen in Agent1.c (generated from skeletion_c.txt). In handle_method_call it never prints '++ handle_method_call '. Ignore the rest of the method, it is not finished yet. The call g_bus_own_name (...) takes a name that must be different to the Agent1 object path. Gnome suggests to use somting different for the "server side": |
enabling debug mode on bluez reveals an error logged: Sep 30 16:52:57 raspberrypi kernel: [ 907.784014] Bluetooth: SMP security requested but not available i guess this may cause the trouble, cat /proc/version BlueZ version is 5.41 I found this issue is known as Linux kernel bug: |
Upgraded to kernel 4.4.22-v7+ but does not fix. |
Upgrade to Bluez-5.42. Problem still exists. kernel message "Bluetooth: SMP security requested but not available" still occurs before the (unwanted) pairing popup "Paring Requested" is displayed. Remark Bluez 5.42 still needs patch https://gist.github.com/pelwell/c8230c48ea24698527cd/archive/3b07a1eb296862da889609a84f8e10b299b7442d.zip to recognize the devices. |
An Agent1 object can be successfully been registered with BlueZ's AgentManager1, but during pairing it is expected that the Agent1 call-back method is invoked. That does not happen. Instead the desktop's agent popup is displayed. Something wents wrong. I need to find out why AgentManager1's registerAgent() and requestDefaultAgent() do fail, but cause no exception.
TestClient attached:
TestClient.java.txt
The text was updated successfully, but these errors were encountered: