public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] intercept new authentication events
@ 2007-04-05  8:05 Adolfo Bulfoni
  2007-04-05  9:29 ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Adolfo Bulfoni @ 2007-04-05  8:05 UTC (permalink / raw)
  To: bluez-devel

Hi guys, I'm developing a java apps that exploits the BlueZ stack via JNI 
and some C functions.
Now, I'd like that my app intercept the event that happens when a new remote 
device wants to authenticate itself with my bt dongle (i.e. wants to trigger 
the pair procedure).
I've searched in the hcitool.c file and found and found the function:
static int conn_list(int s, int dev_id, long arg)
that prints all the active connections from and to my bt dongle. But this 
function is not what I'm looking for, since it is not a callback function 
and most important it prints out all the connections (including data ones).
Does exist a way to know if a new remote device want to pair with my bt 
dongle? And if so, what are the functions I need to look at?

Adolfo

_________________________________________________________________
Scopri gli ospiti di MSN VideoVip! E intervieni in diretta! 
http://videovip.it.msn.com/


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: [Bluez-devel] intercept new authentication events
@ 2007-04-05 15:07 Adolfo Bulfoni
  2007-04-05 18:11 ` Claudio Takahasi
  0 siblings, 1 reply; 4+ messages in thread
From: Adolfo Bulfoni @ 2007-04-05 15:07 UTC (permalink / raw)
  To: bluez-devel

Hi Marcel
thanks for your quick reply.

I've checked the passkey-agent util program  in /bluez-utils/daemon/ and if =

I try running it, an error message comes up saying there is already a =

passkey agent running on my PC.
How can I intercept the events sent by this agent? What are the functions =

that need to be called to get the output events from it?
A "dirty" workaround for my app might be to tail the /var/log/syslog file, =

where the pin_code_request event is logged, together with the remote device =

address. But I'd prefer a cleaner solution.
Thanks in advance,
regards

Adolfo

_________________________________________________________________
Ami i Quiz? Mettiti alla prova con Duell Live=85Gratis su Messenger! =

http://specials.it.msn.com/DuelLive.aspx


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2007-04-05 18:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-05  8:05 [Bluez-devel] intercept new authentication events Adolfo Bulfoni
2007-04-05  9:29 ` Marcel Holtmann
  -- strict thread matches above, loose matches on Subject: below --
2007-04-05 15:07 Adolfo Bulfoni
2007-04-05 18:11 ` Claudio Takahasi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox