All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] How 'respond' in BlueZ to a PIN request ?
Date: Wed, 14 Sep 2005 15:05:30 +0200	[thread overview]
Message-ID: <1126703130.16166.23.camel@station6.example.com> (raw)
In-Reply-To: <becc9d2c050914054534d59263@mail.gmail.com>

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

      reply	other threads:[~2005-09-14 13:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1126703130.16166.23.camel@station6.example.com \
    --to=marcel@holtmann.org \
    --cc=bluez-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.