Return-Path: Message-ID: <20060816142750.29806.qmail@web51415.mail.yahoo.com> Date: Wed, 16 Aug 2006 07:27:50 -0700 (PDT) From: manojt ambe To: BlueZ users In-Reply-To: <20060816133901.GA2993@refinery.twat.com.ar> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-529700959-1155738470=:29236" Subject: Re: [Bluez-users] Totally confused Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net --0-529700959-1155738470=:29236 Content-Type: multipart/alternative; boundary="0-332191997-1155738470=:29236" --0-332191997-1155738470=:29236 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I modified /usr/local/etc/dbus-1/system.conf as below. After this the pin problem went away. I am using bluez 3.1 and dbus 0.62. Pls find system.conf attached. /etc/dbus-1/system.d/bluez-hcid.conf thanks, Manoj redondos wrote: On Wed, Aug 16 09:18, Rui Pedro Lopes wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > redondos wrote: > > Have you tried following the Gentoo wiki? You're probably not using > > Gentoo, but they are well-known for providing pretty good documentation > > to the open source community. > > > > http://www.gentoo-wiki.com/HOWTO_use_a_bluetooth_headset > Yap. Actually, I'm using debian... > > > > About the PIN code: have you configured a pin helper correctly in > > hcid.conf? It's pretty simple, you can just write a shell script: > > > > #!/bin/sh > > echo "PIN:1234 > > > > Make it executable, then edit hcid.conf with the line: > > > > pin_helper /path/to/the/script > Yes, I have tried that. Here is the syslog messages: > > Aug 16 09:13:20 tash hcid[7714]: Bluetooth HCI daemon > Aug 16 09:13:20 tash hcid[7714]: Unknown option 'pin_helper' line 27 > Aug 16 09:13:20 tash hcid[7714]: syntax error line 27 > Aug 16 09:13:20 tash sdpd[7716]: Bluetooth SDP daemon > Aug 16 09:13:20 tash hidd[7718]: Bluetooth HID daemon > Aug 16 09:13:20 tash hcid[7714]: Register path:/org/bluez fallback:1 > Aug 16 09:13:20 tash hcid[7714]: Device hci0 has been added > Aug 16 09:13:21 tash hcid[7714]: Starting security manager 0 > Aug 16 09:13:21 tash hcid[7714]: Can't write inquiry mode for hci0: > Input/output error (5) > Aug 16 09:13:21 tash hcid[7714]: Register path:/org/bluez/hci0 fallback:0 > > > > Apparently, pin_helper is not available... I forgot the ';' at the end of the line. Did you add that? Can we see your hcid.conf at its full extent? > Here is what the Debian maintainer added to the documentation: > > > PIN (or passkey) management > - --------------------------- > since bluez 3.0 the old pin_helper script has been replaced by > the dbus interface. To add a default passkey for every outgoing > request (e.g. the old /etc/bluetooth/pin file) drop it into > /etc/bluetooth/passkeys/default. (e.g. echo "1234" > > /etc/bluetooth/passkeys/default ) > To add a passkey for a specific outgoing connection replace default > with the device's address. ( /etc/default/passkeys/aa:bb:cc:dd:ee:ff > will contain passkey for aa:bb:cc:dd:ee:ff ). > After adding a passkey you should restart bluetooth with > > /etc/init.d/bluetooth restart > > and the new passkeys will be registered. > > > I have also tried that and it is not working... do you think it is a > Debian problem? Oh, you're using 3.x. I don't know, haven't played with it yet, sorry. -- redondos ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642_______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users --------------------------------- Get your email and more, right on the new Yahoo.com --0-332191997-1155738470=:29236 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
I modified /usr/local/etc/dbus-1/system.conf as below. After this the pin problem went away. I am using bluez 3.1 and dbus 0.62.  Pls find system.conf attached.
 
<!-- This is included last so local configuration can override what's
in this standard file -->
<include ignore_missing="yes">/etc/dbus-1/system.d/bluez-hcid.conf</include>

thanks,
Manoj

redondos <redondos@gmail.com> wrote:
On Wed, Aug 16 09:18, Rui Pedro Lopes wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> redondos wrote:
> > Have you tried following the Gentoo wiki? You're probably not using
> > Gentoo, but they are well-known for providing pretty good documentation
> > to the open source community.
> >
> > http://www.gentoo-wiki.com/HOWTO_use_a_bluetooth_headset
> Yap. Actually, I'm using debian...
> >
> > About the PIN code: have you configured a pin helper correctly in
> > hcid.conf? It's pretty simple, you can just write a shell script:
> >
> > #!/bin/sh
> > echo "PIN:1234
> >
> > Make it executable, then edit hcid.conf with the line:
> >
> > pin_helper /path/to/the/script
> Yes, I have tried that. Here is the syslog messages:
>
> Aug 16 09:13:20 tash hcid[7714]: Bluetooth HCI daemon
> Aug 16 09:13:20 tash hcid[7714]: Unknown option 'pin_helper' line 27
> Aug 16 09:13:20 tash hcid[7714]: syntax error line 27
> Aug 16 09:13:20 tash sdpd[7716]: Bluetooth SDP daemon
> Aug 16 09:13:20 tash hidd[7718]: Bluetooth HID daemon
> Aug 16 09:13:20 tash hcid[7714]: Register path:/org/bluez fallback:1
> Aug 16 09:13:20 tash hcid[7714]: Device hci0 has been added
> Aug 16 09:13:21 tash hcid[7714]: Starting security manager 0
> Aug 16 09:13:21 tash hcid[7714]: Can't write inquiry mode for hci0:
> Input/output error (5)
> Aug 16 09:13:21 tash hcid[7714]: Register path:/org/bluez/hci0 fallback:0
>
>
>
> Apparently, pin_helper is not available...

I forgot the ';' at the end of the line. Did you add that? Can we see
your hcid.conf at its full extent?

> Here is what the Debian maintainer added to the documentation:
>
>
> PIN (or passkey) management
> - ---------------------------
> since bluez 3.0 the old pin_helper script has been replaced by
> the dbus interface. To add a default passkey for every outgoing
> request (e.g. the old /etc/bluetooth/pin file) drop it into
> /etc/bluetooth/passkeys/default. (e.g. echo "1234" >
> /etc/bluetooth/passkeys/default )
> To add a passkey for a specific outgoing connection replace default
> with the device's address. ( /etc/default/passkeys/aa:bb:cc:dd:ee:ff
> will contain passkey for aa:bb:cc:dd:ee:ff ).
> After adding a passkey you should restart bluetooth with
>
> /etc/init.d/bluetooth restart
>
> and the new passkeys will be registered.
>
>
> I have also tried that and it is not working... do you think it is a
> Debian problem?

Oh, you're using 3.x. I don't know, haven't played with it yet, sorry.

--
redondos
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users


Get your email and more, right on the new Yahoo.com --0-332191997-1155738470=:29236-- --0-529700959-1155738470=:29236 Content-Type: application/octet-stream; name="system.conf" Content-Transfer-Encoding: base64 Content-Description: 3934571641-system.conf Content-Disposition: attachment; filename="system.conf" PCEtLSBUaGlzIGNvbmZpZ3VyYXRpb24gZmlsZSBjb250cm9scyB0aGUgc3lz dGVtd2lkZSBtZXNzYWdlIGJ1cy4KICAgICBBZGQgYSBzeXN0ZW0tbG9jYWwu Y29uZiBhbmQgZWRpdCB0aGF0IHJhdGhlciB0aGFuIGNoYW5naW5nIHRoaXMg CiAgICAgZmlsZSBkaXJlY3RseS4gLS0+Cgo8IS0tIE5vdGUgdGhhdCB0aGVy ZSBhcmUgYW55IG51bWJlciBvZiB3YXlzIHlvdSBjYW4gaG9zZSB5b3Vyc2Vs ZgogICAgIHNlY3VyaXR5LXdpc2UgYnkgc2NyZXdpbmcgdXAgdGhpcyBmaWxl OyBpbiBwYXJ0aWN1bGFyLCB5b3UKICAgICBwcm9iYWJseSBkb24ndCB3YW50 IHRvIGxpc3RlbiBvbiBhbnkgbW9yZSBhZGRyZXNzZXMsIGFkZCBhbnkgbW9y ZQogICAgIGF1dGggbWVjaGFuaXNtcywgcnVuIGFzIGEgZGlmZmVyZW50IHVz ZXIsIGV0Yy4gLS0+Cgo8IURPQ1RZUEUgYnVzY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RoaXMgaXMgaW5jbHVkZWQgbGFzdCBzbyBsb2NhbCBjb25m aWd1cmF0aW9uIGNhbiBvdmVycmlkZSB3aGF0J3MgCiAgICAgICBpbiB0aGlz IHN0YW5kYXJkIGZpbGUgLS0+CiAgPGluY2x1ZGUgaWdub3JlX21pc3Npbmc9 InllcyI+L2V0Yy9kYnVzLTEvc3lzdGVtLmQvYmx1ZXotaGNpZC5jb25mPC9p bmNsdWRlPgoKICA8aW5jbHVkZSBpZl9zZWxpbnV4X2VuYWJsZWQ9InllcyIg c2VsaW51eF9yb290X3JlbGF0aXZlPSJ5ZXMiPmNvbnRleHRzL2RidXNfY29u dGV4dHM8L2luY2x1ZGU+Cgo8L2J1c2NvbmZpZz4K --0-529700959-1155738470=:29236 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 --0-529700959-1155738470=:29236 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users --0-529700959-1155738470=:29236--