All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Bluez-users] failed PIN Code Request (Marcel Holtmann)
@ 2008-02-09  3:47 Russell A. Bell
  2008-02-09  5:02 ` [Bluez-users] failed PIN Code Request jayjwa
  0 siblings, 1 reply; 9+ messages in thread
From: Russell A. Bell @ 2008-02-09  3:47 UTC (permalink / raw)
  To: bluez-users

	M. Holtmann:
	'this is from an odd Debian installation.'
	What is?  I use Slackware 12 and bluez 3.25.

	'Kill all these processes and simply log into the GNOME or KDE
desktop and use their Bluetooth applet.'
	These require X, which I don't use except under duress.  I
just want to listen to files on my wireless headset.

russell bell

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Bluez-users] failed PIN Code Request
  2008-02-09  3:47 [Bluez-users] failed PIN Code Request (Marcel Holtmann) Russell A. Bell
@ 2008-02-09  5:02 ` jayjwa
  2008-02-09 12:13   ` Manuel Naranjo
  2008-02-09 20:52   ` Brian Sammon
  0 siblings, 2 replies; 9+ messages in thread
From: jayjwa @ 2008-02-09  5:02 UTC (permalink / raw)
  To: BlueZ users


On Fri, 8 Feb 2008, Russell A. Bell wrote:

-> 	M. Holtmann:
-> 	'this is from an odd Debian installation.'
-> 	What is?  I use Slackware 12 and bluez 3.25.

You didn't quote the output he was likely refering to:

>>       20945 tty6     S      0:00 /usr/local/lib/bluetooth/add-passkey 00:13:17:DD:D0:86
>>
>> is in the process list.  Does this mean that add-passkey isn't
>> working?

> this is from an odd Debian installation.


"add-passkey" isn't a tool in bluez-utils 3.25. Where ever it came from, I 
think he meant not to use it. Years ago I used Slackware, and it never 
installed stuff in /usr/local. Unless it underwent a fundimental change (and 
that's hard to image if you know how Patrick is) that looks like a 3rd-party 
or user add-on.


> Using that is a bad thing. Kill all these processes and simply log into the 
> GNOME or KDE desktop and use their Bluetooth applet.


-> 	'Kill all these processes and simply log into the GNOME or KDE
-> desktop and use their Bluetooth applet.'
-> 	These require X, which I don't use except under duress.  I
-> just want to listen to files on my wireless headset.

Same here, X isn't mandatory, only if you use a graphical bluetooth tool in 
GNOME or KDE, which I don't. The bluez-utils command line tools work fine for 
me. There's two which I use for my headset. I posted a full description of it 
a few issues back, but the pass/PIN part consists of starting

passkey-agent --default <PIN> <bt address of remote device> &
auth-agent &

after sdpd & hcid are up, but before you try and use the headset. After that, 
turn on the headset. Many look for a audio service to pair with. Mine does. On 
the Jabra I use, there is a button on the side. Pressing it causes it to try 
to pair with the computer. At that time, passkey-agent and auth-agent answer, 
and output to the console that they did get a request. After a few seconds, 
you should see the headset with 'hcitool con '. If you don't send sound, it 
may disconnect after some time. If it does, pressing again re-starts the 
process. If yours doesn't have such a button/setup, you could try to pair from 
the other side, computer to device. I believe that's 'hcitool cc <address>' 
then 'hcitool auth <address>' but my headset doesn't seem to like to operate 
this way and wants to disconnect quickly due to not being used for sound.





-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Bluez-users] failed PIN Code Request
  2008-02-09  5:02 ` [Bluez-users] failed PIN Code Request jayjwa
@ 2008-02-09 12:13   ` Manuel Naranjo
  2008-02-09 20:52   ` Brian Sammon
  1 sibling, 0 replies; 9+ messages in thread
From: Manuel Naranjo @ 2008-02-09 12:13 UTC (permalink / raw)
  To: BlueZ users


> the other side, computer to device. I believe that's 'hcitool cc <address>' 
> then 'hcitool auth <address>' but my headset doesn't seem to like to operate 
> this way and wants to disconnect quickly due to not being used for sound.
>   
If I'm not wrong it's not your headset the one that closes the
connection, but rather the kernel.

Solution:
ADDR=<SOMETHING> hcitootl cc $ADDR; hcitool auth $ADDR

Still not the preferred way but it works.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Bluez-users] failed PIN Code Request
  2008-02-09  5:02 ` [Bluez-users] failed PIN Code Request jayjwa
  2008-02-09 12:13   ` Manuel Naranjo
@ 2008-02-09 20:52   ` Brian Sammon
  1 sibling, 0 replies; 9+ messages in thread
From: Brian Sammon @ 2008-02-09 20:52 UTC (permalink / raw)
  To: BlueZ users

> -> 	'Kill all these processes and simply log into the GNOME or KDE
> -> desktop and use their Bluetooth applet.'
> -> 	These require X, which I don't use except under duress.  I
> -> just want to listen to files on my wireless headset.
> 
> Same here, X isn't mandatory, only if you use a graphical bluetooth tool in 
> GNOME or KDE, which I don't. The bluez-utils command line tools work fine for 
> me. There's two which I use for my headset. I posted a full description of it 
> a few issues back, but the pass/PIN part consists of starting
> 
> passkey-agent --default <PIN> <bt address of remote device> &
> auth-agent &

I was of the impression that passkey-agent and auth-agent were 
unsupported/sample programs.  Am I correct?
As far as I can tell, they are undocumented, neither in the tarball, nor in 
the wiki (aside from a few brief mentions)
I don't have a full build system up right now, but judging from the various 
Makefile.in files in the tarball, it appears they are not built by default.
Debian does not distribute them-- does any distribution?

When I set up my bluetooth headphones back in December, the only way I could 
figure out to do it was to switch window managers to something compatible with 
the gnome bluetooth-applet.  I'd be very happy to hear that there is now a 
supported command-line app for this.



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Bluez-users] failed PIN Code Request
  2008-02-11 17:31 Russell A. Bell
@ 2008-02-11 18:00 ` Manuel Naranjo
  0 siblings, 0 replies; 9+ messages in thread
From: Manuel Naranjo @ 2008-02-11 18:00 UTC (permalink / raw)
  To: BlueZ users

Russell A. Bell escribi=F3:
> 	Quoth Manuel Naranjo:
> 	'If I'm not wrong it's not your headset the one that closes the
> connection, but rather the kernel.
> 	Solution:
> 	ADDR=3D<SOMETHING> hcitootl cc $ADDR; hcitool auth $ADDR
> 	Still not the preferred way but it works.'
> 	I interpret the contents of hcidump to indicate that the
> kernel closes the connection.  I wonder why.  What you proposed
> doesn't work for me.
>   =

Russel is it much asking that you don't break the threads? It's hard to
track your mails.

If this doesn't work, then you have something else going on, maybe
you're missing the passkey agent or something.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bluez-users]  failed PIN Code Request
@ 2008-02-11 17:31 Russell A. Bell
  0 siblings, 0 replies; 9+ messages in thread
From: Russell A. Bell @ 2008-02-11 17:31 UTC (permalink / raw)
  To: bluez-users

	Quoth jayjwa:
	'Years ago I used Slackware, and it never installed stuff in
/usr/local. Unless it underwent a fundimental change (and that's hard
to image if you know how Patrick is) that looks like a 3rd-party or
user add-on.'
	I built my bluetooth stuff from source so I could have the
latest.  I mentioned Slackware because everything I don't build from
source comes from Slackware.

	'passkey-agent --default <PIN> <bt address of remote device> &
	'auth-agent &'
	This doesn't work for me.

	'On the Jabra I use, there is a button on the side. Pressing
it causes it to try to pair with the computer. At that time,
passkey-agent and auth-agent answer, and output to the console that
they did get a request.'
	I have a Motorola HS850.  The instructions tell me to close
it, press the button for a few seconds until the light comes on, then
open it (which turns it on), then its ready to pair for a few seconds.
I run:
	 hcitool cc $headset

and get:

	Can't create connection: Connection timed out

Speaking into the headset doesn't help.

hcidump returns:

< HCI Command: Create Connection (0x01|0x0005) plen 13
    bdaddr 00:13:17:DD:D0:86 ptype 0xcc18 rswitch 0x01 clkoffset 0x0000
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> HCI Event: Command Status (0x0f) plen 4
    Create Connection (0x01|0x0005) status 0x00 ncmd 1
> HCI Event: Link Key Request (0x17) plen 6
    bdaddr 00:13:17:DD:D0:86
> HCI Event: Connect Complete (0x03) plen 11
    status 0x22 handle 0 bdaddr 00:13:17:DD:D0:86 type ACL encrypt 0x00
    Error: LMP Response Timeout

russell bell

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bluez-users]  failed PIN Code Request
@ 2008-02-11 17:31 Russell A. Bell
  2008-02-11 18:00 ` Manuel Naranjo
  0 siblings, 1 reply; 9+ messages in thread
From: Russell A. Bell @ 2008-02-11 17:31 UTC (permalink / raw)
  To: bluez-users


	Quoth Manuel Naranjo:
	'If I'm not wrong it's not your headset the one that closes the
connection, but rather the kernel.
	Solution:
	ADDR=<SOMETHING> hcitootl cc $ADDR; hcitool auth $ADDR
	Still not the preferred way but it works.'
	I interpret the contents of hcidump to indicate that the
kernel closes the connection.  I wonder why.  What you proposed
doesn't work for me.


russell bell

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Bluez-users] failed PIN Code Request
  2008-02-05 21:08 Russell A. Bell
@ 2008-02-06  9:24 ` Marcel Holtmann
  0 siblings, 0 replies; 9+ messages in thread
From: Marcel Holtmann @ 2008-02-06  9:24 UTC (permalink / raw)
  To: BlueZ users

Hi Russell,

> 	When I try to connect to my headset (00:13:17:DD:D0:86) does
> this hcidump:
> 
> 	> HCI Event: PIN Code Request (0x16) plen 6
> 	    bdaddr 00:13:17:DD:D0:86
> 	> HCI Event: Connect Complete (0x03) plen 11
> 	    status 0x22 handle 0 bdaddr 00:13:17:DD:D0:86 type ACL encrypt 0x00
> 	    Error: LMP Response Timeout
> 
> reveal that the headset has asked my computer for a PIN Code and not
> received one in time?
> 
> 	20945 tty6     S      0:00 /usr/local/lib/bluetooth/add-passkey 00:13:17:DD:D0:86
> 
> is in the process list.  Does this mean that add-passkey isn't
> working?

this is from an odd Debian installation. Using that is a bad thing. Kill
all these processes and simply log into the GNOME or KDE desktop and use
their Bluetooth applet.

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bluez-users] failed PIN Code Request
@ 2008-02-05 21:08 Russell A. Bell
  2008-02-06  9:24 ` Marcel Holtmann
  0 siblings, 1 reply; 9+ messages in thread
From: Russell A. Bell @ 2008-02-05 21:08 UTC (permalink / raw)
  To: bluez-users

	When I try to connect to my headset (00:13:17:DD:D0:86) does
this hcidump:

	> HCI Event: PIN Code Request (0x16) plen 6
	    bdaddr 00:13:17:DD:D0:86
	> HCI Event: Connect Complete (0x03) plen 11
	    status 0x22 handle 0 bdaddr 00:13:17:DD:D0:86 type ACL encrypt 0x00
	    Error: LMP Response Timeout

reveal that the headset has asked my computer for a PIN Code and not
received one in time?

	20945 tty6     S      0:00 /usr/local/lib/bluetooth/add-passkey 00:13:17:DD:D0:86

is in the process list.  Does this mean that add-passkey isn't
working?

russell bell

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-02-11 18:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-09  3:47 [Bluez-users] failed PIN Code Request (Marcel Holtmann) Russell A. Bell
2008-02-09  5:02 ` [Bluez-users] failed PIN Code Request jayjwa
2008-02-09 12:13   ` Manuel Naranjo
2008-02-09 20:52   ` Brian Sammon
  -- strict thread matches above, loose matches on Subject: below --
2008-02-11 17:31 Russell A. Bell
2008-02-11 17:31 Russell A. Bell
2008-02-11 18:00 ` Manuel Naranjo
2008-02-05 21:08 Russell A. Bell
2008-02-06  9:24 ` Marcel Holtmann

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.