All of lore.kernel.org
 help / color / mirror / Atom feed
* How to write a C program to be paired asynchronously?
@ 2015-07-14 22:53 Qingtao Cao
  2015-07-15 10:58 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 5+ messages in thread
From: Qingtao Cao @ 2015-07-14 22:53 UTC (permalink / raw)
  To: linux-bluetooth

Dear bluetooth community,

I am a rookie to bluez internals. After "fixing" a potential defect in
one of blueman's script
(http://ubuntuforums.org/showthread.php?t=2286664) I can pair the HCI
adapter on my laptop from my mobile phone.

Now I would like to come up with a C program for the same purpose, it
will manipulate the dbus APIs to capture the messages emitted from
bluetoothd when receiving async pairing request and consult the end
user whether to accept it.

I can use dbus-monitor --system "sender='org.bluez'" command to
monitor all potential messages sent from bluetoothd during this
process, however, they all seem to be the PropertyChanged signal when
populating the newly created object /org/bluez/<pid>/hciX/dev_xx with
new properties. I am still clueless about relevant method_calls
blueman may have captured for pairing purpose, and am wondering if I
can do something similar for the same purpose but in C directly.

Any suggestions or comments or references to bluez's work flow during
pairing process would be highly appreciated.

Thanks!

Harry

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-07-23 23:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-14 22:53 How to write a C program to be paired asynchronously? Qingtao Cao
2015-07-15 10:58 ` Luiz Augusto von Dentz
2015-07-15 12:13   ` Qingtao Cao
2015-07-23 21:43     ` Vinicius Costa Gomes
2015-07-23 23:40       ` Qingtao Cao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.