* [Bluez-devel] How 'respond' in BlueZ to a PIN request ?
@ 2005-09-14 12:45 Andrea Carlevato
2005-09-14 13:05 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: Andrea Carlevato @ 2005-09-14 12:45 UTC (permalink / raw)
To: bluez-devel
[-- Attachment #1: Type: text/plain, Size: 641 bytes --]
Hi to all,
if i set my usb dongle in authentication mode
(hciconfig hci0 auth) and connect to my bluetooth phone,
(hcitool cc BTADDR) the phone ask me for the pin of my pc,
and after i ve entered correctly, the connection i created.
My question is: how can i control the same thing on my
bluez pc ? If i do the same (hcitool cc BTADDR) to connect
another pc instead of my phone no PIN is requested and
create connection fails!
I need to know this beacause i need to write a simple program
that listen for l2cap connection on a socket, GIVE THE PIN, and
allows the connection to be estabilished.
Thanks a lot!
Andrea
[-- Attachment #2: Type: text/html, Size: 749 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Bluez-devel] How 'respond' in BlueZ to a PIN request ?
2005-09-14 12:45 [Bluez-devel] How 'respond' in BlueZ to a PIN request ? Andrea Carlevato
@ 2005-09-14 13:05 ` Marcel Holtmann
0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2005-09-14 13:05 UTC (permalink / raw)
To: bluez-devel
Hi Andrea,
> if i set my usb dongle in authentication mode
> (hciconfig hci0 auth) and connect to my bluetooth phone,
> (hcitool cc BTADDR) the phone ask me for the pin of my pc,
> and after i ve entered correctly, the connection i created.
>
> My question is: how can i control the same thing on my
> bluez pc ? If i do the same (hcitool cc BTADDR) to connect
> another pc instead of my phone no PIN is requested and
> create connection fails!
>
> I need to know this beacause i need to write a simple program
> that listen for l2cap connection on a socket, GIVE THE PIN, and
> allows the connection to be estabilished.
if you talk about L2CAP then you don't use security mode 3, which is
activated after "hciconfig hci0 auth". You should only do this when you
really know what you are doing. The same applies to "hcitool cc ...",
because this is a testing and should not be used at all.
The L2CAP has options to require authentication and encryption. You
should look at the l2test code for an example.
Regards
Marcel
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-09-14 13:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-14 12:45 [Bluez-devel] How 'respond' in BlueZ to a PIN request ? Andrea Carlevato
2005-09-14 13:05 ` Marcel Holtmann
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.