From: Marco Trudel <mtrudel@gmx.ch>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] auto pairing between client & server
Date: Tue, 26 Apr 2005 12:44:31 +0200 [thread overview]
Message-ID: <426E1B8F.8030901@gmx.ch> (raw)
In-Reply-To: <2621d9af0504260302e1c13c7@mail.gmail.com>
N. I. wrote:
> Hi Marco,
>
> I ran a test with the new configuration and found out the bluetooth
> devices which has this config modified accepted any device coming. The
> pairing window is not poped up anymore, but the link_key is not
> updated (still 0 byte).
yes. because no link key is created.
> As my understanding, this config ignores the pairing and pin code. It
> accepts all devices connecting to my device, no authentication. Is
> that it?
yes. you can't use security mode 3 for what you're trying to reach. you
need security mode 2 (application based autentication/encryption).
> What I want is to avoid the pin popup for certain bluetooth devices
> (know specific BD_ADDR). When those allowed devices connect to my
> device, then I will try to provide "silently" the PIN (no popups) and
> the pairing should be done from there. If other device which BD_ADDR
> does not belong to the list of addresses that my device has, it should
> not be rejected.
I don't think this is possible because you don't know the remote BD_ADDR
until the device has connected to your device. And if it has already
connected, it's too late for bluteooth based autentication/encryption. So
you might implement an own authentication/encryption algorithm for your
purpose.
Please note that I'm not an expert. Maybee this works and I just don't know it.
regards
Marco
> Any help please?
>
> N.I.
>
> On 4/25/05, Marco Trudel <mtrudel@gmx.ch> wrote:
>
>>change to security mode 1. that means to comment out:
>>#auth enable;
>>#encrypt enable;
>>
>>you can keep "security auto".
>>
>>regards
>>Marco
>>
>>
>>N. I. wrote:
>>
>>>In the hcid.conf file, I have:
>>>security auto;
>>>auth enable;
>>>
>>>Is that what you meant I should change to be off?
>>>
>>>
>>>
>>>On 4/23/05, Marco Trudel <mtrudel@gmx.ch> wrote:
>>>
>>>
>>>>N. I. wrote:
>>>>
>>>>
>>>>>I have a laptop which runs my application as server, and another
>>>>>cellphone as client. Both of them communicate to each other using
>>>>>Bluetooth (Bluez implementation).
>>>>
>>>>do you really mean the mobile phone is using bluez?
>>>>what for a mobilephone is this?
>>>>
>>>>
>>>>
>>>>>What should I do in order to perform automatic pairing between these 2
>>>>>devices (knowing the BD_ADDR) inside my application?
>>>>>
>>>>>How can I detect if the pairing had been done between these
>>>>>client-server devices inside my application? And from that, how to do
>>>>>pairing using the "givepin" script?
>>>>>
>>>>>I want to avoid the pop-ups window asking for entering the PIN.
>>>>
>>>>disable authentication/encryption. you won't be asked for a pin because no
>>>>one is needed. you haven't to change the default bluez configuration to
>>>>reach this.
>>>>if you use java on your mobile phone, be shure to program the security
>>>>correctly.
>>>>
>>>>regards
>>>>Marco
>>>>
>>>>
>>>>
>>>>>Please help,
>>>>>
>>>>>Thanks
>>>>>
>>>>>N.I.
>>>>>
>>>>>
>>>>>-------------------------------------------------------
>>>>>SF email is sponsored by - The IT Product Guide
>>>>>Read honest & candid reviews on hundreds of IT Products from real users.
>>>>>Discover which products truly live up to the hype. Start reading now.
>>>>>http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click
>>>>>_______________________________________________
>>>>>Bluez-users mailing list
>>>>>Bluez-users@lists.sourceforge.net
>>>>>https://lists.sourceforge.net/lists/listinfo/bluez-users
>>>>>
>>>>>
>>>>
>>>>-------------------------------------------------------
>>>>SF email is sponsored by - The IT Product Guide
>>>>Read honest & candid reviews on hundreds of IT Products from real users.
>>>>Discover which products truly live up to the hype. Start reading now.
>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>_______________________________________________
>>>>Bluez-users mailing list
>>>>Bluez-users@lists.sourceforge.net
>>>>https://lists.sourceforge.net/lists/listinfo/bluez-users
>>>>
>>>
>>>
>>>
>>>-------------------------------------------------------
>>>SF email is sponsored by - The IT Product Guide
>>>Read honest & candid reviews on hundreds of IT Products from real users.
>>>Discover which products truly live up to the hype. Start reading now.
>>>http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click
>>>_______________________________________________
>>>Bluez-users mailing list
>>>Bluez-users@lists.sourceforge.net
>>>https://lists.sourceforge.net/lists/listinfo/bluez-users
>>>
>>>
>>
>>-------------------------------------------------------
>>SF email is sponsored by - The IT Product Guide
>>Read honest & candid reviews on hundreds of IT Products from real users.
>>Discover which products truly live up to the hype. Start reading now.
>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>_______________________________________________
>>Bluez-users mailing list
>>Bluez-users@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/bluez-users
>>
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>
>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
next prev parent reply other threads:[~2005-04-26 10:44 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-22 20:06 [Bluez-users] auto pairing between client & server N. I.
2005-04-22 21:38 ` Marcel Holtmann
2005-04-24 16:17 ` Fredy P
2005-04-25 14:26 ` N. I.
2005-04-26 10:07 ` N. I.
2005-04-26 11:28 ` Marcel Holtmann
2005-04-23 21:31 ` Marco Trudel
2005-04-25 14:29 ` N. I.
2005-04-25 14:38 ` Marco Trudel
2005-04-26 10:02 ` N. I.
2005-04-26 10:44 ` Marco Trudel [this message]
2005-04-26 13:39 ` Marcel Holtmann
2005-04-26 11:31 ` Marcel Holtmann
2005-04-26 17:37 ` Marco Trudel
2005-04-26 17:46 ` Marcel Holtmann
2005-04-26 18:36 ` Marco Trudel
2005-04-26 19:04 ` Marcel Holtmann
2005-04-26 22:31 ` N. I.
2005-04-27 8:44 ` Marco Trudel
2005-04-27 8:50 ` Marcel Holtmann
2005-04-27 8:54 ` Marco Trudel
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=426E1B8F.8030901@gmx.ch \
--to=mtrudel@gmx.ch \
--cc=bluez-users@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox