2009-02-25 15:49:27

by Kartikey Parmar

[permalink] [raw]
Subject: Abt hcid.conf

hi
I m modifying hcid.com lying in /etc/bluetooth for "security none"
which as per hcid.conf disables security manager.
So after that when I reboot my linux and then try to connect with
bluetooth headset BH-209 (Nokia) it doesn't connect to it.
Error is "Connection refused" which is because of no linkkey.

when I disable security manager why it checks for security???
Even I tried with "security auto" which reads local passkey that I
have set to "0000" and my BH-209 also have default PIN "0000", still
it prompts to enter passkey in bluetooth pairing & control wizard.

So I m confused...exactly how can we disable security manager for
simple connections?
Does changes in hcid.conf make any impact?
I m using bluez-4.30 on Fedora 9 (kernel 2.6.25-14)

pls help me to solve this...

--
Kartikey Parmar
R&D Software Engg
Matrix Telecom Pvt Ltd
Baroda, Gujarat (India)
09879095390 (M)


2009-02-26 01:26:16

by Li, Zhigang

[permalink] [raw]
Subject: RE: Abt hcid.conf

SGkgS2FydGlrZXksDQoNCj4tLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPkZyb206IGxpbnV4
LWJsdWV0b290aC1vd25lckB2Z2VyLmtlcm5lbC5vcmcNCj5bbWFpbHRvOmxpbnV4LWJsdWV0b290
aC1vd25lckB2Z2VyLmtlcm5lbC5vcmddIE9uIEJlaGFsZiBPZiBLYXJ0aWtleSBQYXJtYXINCj5T
ZW50OiAyMDA5xOoy1MIyNcjVIDIzOjQ5DQo+VG86IGxpbnV4LWJsdWV0b290aEB2Z2VyLmtlcm5l
bC5vcmcNCj5TdWJqZWN0OiBBYnQgaGNpZC5jb25mDQo+DQo+aGkNCj5JIG0gbW9kaWZ5aW5nIGhj
aWQuY29tIGx5aW5nIGluIC9ldGMvYmx1ZXRvb3RoIGZvciAic2VjdXJpdHkgbm9uZSINCj53aGlj
aCBhcyBwZXIgaGNpZC5jb25mIGRpc2FibGVzIHNlY3VyaXR5IG1hbmFnZXIuDQo+U28gYWZ0ZXIg
dGhhdCB3aGVuIEkgcmVib290IG15IGxpbnV4IGFuZCB0aGVuIHRyeSB0byB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Pi0tDQo+S2FydGlrZXkgUGFybWFyDQo+UiZEIFNvZnR3
YXJlIEVuZ2cNCj5NYXRyaXggVGVsZWNvbSBQdnQgTHRkDQo+QmFyb2RhLCBHdWphcmF0IChJbmRp
YSkNCj4wOTg3OTA5NTM5MCAoTSkNCj4tLQ0KPlRvIHVuc3Vic2NyaWJlIGZyb20gdGhpcyBsaXN0
OiBzZW5kIHRoZSBsaW5lICJ1bnN1YnNjcmliZSBsaW51eC1ibHVldG9vdGgiIGluDQo+dGhlIGJv
ZHkgb2YgYSBtZXNzYWdlIHRvIG1ham9yZG9tb0B2Z2VyLmtlcm5lbC5vcmcNCj5Nb3JlIG1ham9y
ZG9tbyBpbmZvIGF0ICBodHRwOi8vdmdlci5rZXJuZWwub3JnL21ham9yZG9tby1pbmZvLmh0bWwN
Cg==

2009-02-25 17:23:04

by Marcel Holtmann

[permalink] [raw]
Subject: Re: Abt hcid.conf

Hi Kartikey,

> I m modifying hcid.com lying in /etc/bluetooth for "security none"
> which as per hcid.conf disables security manager.
> So after that when I reboot my linux and then try to connect with
> bluetooth headset BH-209 (Nokia) it doesn't connect to it.
> Error is "Connection refused" which is because of no linkkey.
>
> when I disable security manager why it checks for security???
> Even I tried with "security auto" which reads local passkey that I
> have set to "0000" and my BH-209 also have default PIN "0000", still
> it prompts to enter passkey in bluetooth pairing & control wizard.
>
> So I m confused...exactly how can we disable security manager for
> simple connections?
> Does changes in hcid.conf make any impact?
> I m using bluez-4.30 on Fedora 9 (kernel 2.6.25-14)

with Bluetooth if only one side requires authentication and encryption
you have to do it (even if security is none). And all headsets require a
proper pairing.

Regards

Marcel