From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [Bluez-devel] How 'respond' in BlueZ to a PIN request ? From: Marcel Holtmann To: bluez-devel@lists.sourceforge.net In-Reply-To: References: Content-Type: text/plain Message-Id: <1126703130.16166.23.camel@station6.example.com> Mime-Version: 1.0 Sender: bluez-devel-admin@lists.sourceforge.net Errors-To: bluez-devel-admin@lists.sourceforge.net Reply-To: bluez-devel@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ development List-Post: List-Help: List-Subscribe: , List-Archive: Date: Wed, 14 Sep 2005 15:05:30 +0200 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