All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andre Baron <andre@metalan.net>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] Apple BT Keyboard and Ubuntu Linux
Date: Tue, 19 Apr 2005 11:55:54 -0700	[thread overview]
Message-ID: <4265543A.2000505@metalan.net> (raw)
In-Reply-To: <1113936350.2469.56.camel@pegasus>

Marcel Holtmann wrote:

>check if hcid is running, because nobody is answering the pin code and
>link key requests.
>
>Regards
>
>Marcel
>
>  
>
Ok Marcel, looks like it's running now:

hcidump:

lampshade:/# hcidump -X -V
HCI sniffer - Bluetooth packet analyzer ver 1.19
device: hci0 snap_len: 1028 filter: 0xffffffff
< HCI Command: Write Authentication Enable (0x03|0x0020) plen 1
  0000: 01                                                .
 > HCI Event: Command Complete (0x0e) plen 4
    Write Authentication Enable (0x03|0x0020) ncmd 1
    0000: 00                                                .
< HCI Command: Create Connection (0x01|0x0005) plen 13
    bdaddr 00:0A:95:3E:CC:74 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:0A:95:3E:CC:74
< HCI Command: Link Key Request Negative Reply (0x01|0x000c) plen 6
    bdaddr 00:0A:95:3E:CC:74
 > HCI Event: Command Complete (0x0e) plen 10
    Link Key Request Negative Reply (0x01|0x000c) ncmd 1
    status 0x00 bdaddr 00:0A:95:3E:CC:74
 > HCI Event: PIN Code Request (0x16) plen 6
    bdaddr 00:0A:95:3E:CC:74
< HCI Command: PIN Code Request Negative Reply (0x01|0x000e) plen 6
    bdaddr 00:0A:95:3E:CC:74
 > HCI Event: Command Complete (0x0e) plen 10
    PIN Code Request Negative Reply (0x01|0x000e) ncmd 1
    status 0x00 bdaddr 00:0A:95:3E:CC:74
 > HCI Event: Connect Complete (0x03) plen 11
    status 0x06 handle 41 bdaddr 00:0A:95:3E:CC:74 type ACL encrypt 0x00
    Error: PIN or Key Missing
< HCI Command: Inquiry (0x01|0x0001) plen 5
    lap 0x9e8b33 len 8 num 0
 > HCI Event: Command Status (0x0f) plen 4
    Inquiry (0x01|0x0001) status 0x00 ncmd 1
 > HCI Event: Inquiry Complete (0x01) plen 1
    status 0x00
< HCI Command: Inquiry (0x01|0x0001) plen 5
    lap 0x9e8b33 len 8 num 0
 > HCI Event: Command Status (0x0f) plen 4
    Inquiry (0x01|0x0001) status 0x00 ncmd 1
 > HCI Event: Inquiry Complete (0x01) plen 1
    status 0x00
< HCI Command: Inquiry (0x01|0x0001) plen 5
    lap 0x9e8b33 len 8 num 0
 > HCI Event: Command Status (0x0f) plen 4
    Inquiry (0x01|0x0001) status 0x00 ncmd 1
 > HCI Event: Inquiry Result (0x02) plen 15
    bdaddr 00:0A:95:3E:CC:74 mode 1 clkoffset 0x16e8 class 0x002540
 > HCI Event: Inquiry Complete (0x01) plen 1
    status 0x00
< HCI Command: Create Connection (0x01|0x0005) plen 13
    bdaddr 00:0A:95:3E:CC:74 ptype 0xcc18 rswitch 0x01 clkoffset 0x16e8 
(valid)
    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:0A:95:3E:CC:74
< HCI Command: Link Key Request Negative Reply (0x01|0x000c) plen 6
    bdaddr 00:0A:95:3E:CC:74
 > HCI Event: Command Complete (0x0e) plen 10
    Link Key Request Negative Reply (0x01|0x000c) ncmd 1
    status 0x00 bdaddr 00:0A:95:3E:CC:74
 > HCI Event: PIN Code Request (0x16) plen 6
    bdaddr 00:0A:95:3E:CC:74
< HCI Command: PIN Code Request Negative Reply (0x01|0x000e) plen 6
    bdaddr 00:0A:95:3E:CC:74
 > HCI Event: Command Complete (0x0e) plen 10
    PIN Code Request Negative Reply (0x01|0x000e) ncmd 1
    status 0x00 bdaddr 00:0A:95:3E:CC:74
 > HCI Event: Connect Complete (0x03) plen 11
    status 0x06 handle 41 bdaddr 00:0A:95:3E:CC:74 type ACL encrypt 0x00
    Error: PIN or Key Missing
< HCI Command: Create Connection (0x01|0x0005) plen 13
    bdaddr 00:0A:95:3E:CC:74 ptype 0xcc18 rswitch 0x01 clkoffset 0x16e8 
(valid)
    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:0A:95:3E:CC:74
< HCI Command: Link Key Request Negative Reply (0x01|0x000c) plen 6
    bdaddr 00:0A:95:3E:CC:74
 > HCI Event: Command Complete (0x0e) plen 10
    Link Key Request Negative Reply (0x01|0x000c) ncmd 1
    status 0x00 bdaddr 00:0A:95:3E:CC:74
 > HCI Event: PIN Code Request (0x16) plen 6
    bdaddr 00:0A:95:3E:CC:74
< HCI Command: PIN Code Request Negative Reply (0x01|0x000e) plen 6
    bdaddr 00:0A:95:3E:CC:74
 > HCI Event: Command Complete (0x0e) plen 10
    PIN Code Request Negative Reply (0x01|0x000e) ncmd 1
    status 0x00 bdaddr 00:0A:95:3E:CC:74
 > HCI Event: Connect Complete (0x03) plen 11
    status 0x06 handle 42 bdaddr 00:0A:95:3E:CC:74 type ACL encrypt 0x00
    Error: PIN or Key Missing

and commands:

lampshade:/etc/network# hidd --search
Searching ...
        Connecting to device 00:0A:95:3E:CC:74
Can't create HID control channel: Connection timed out
lampshade:/etc/network# hidd --conn 00:0A:95:3E:CC:74
Can't create HID control channel: Connection timed out
lampshade:/etc/network# hciconfig hic0 auth
lampshade:/etc/network# hidd --conn 00:0A:95:3E:CC:74
Can't create HID control channel: Invalid exchange
lampshade:/etc/network# hidd --search
Searching ...
        No devices in range or visible
lampshade:/etc/network# hidd --search
Searching ...
        No devices in range or visible
lampshade:/etc/network# hidd --search
Searching ...
        Connecting to device 00:0A:95:3E:CC:74
Can't create HID control channel: Invalid exchange
lampshade:/etc/network# hidd --conn 00:0A:95:3E:CC:74
Can't create HID control channel: Invalid exchange


Now I have a feeling we're getting closer... I'm also curious about the 
No Devices in range or visible message, there shouldn't be any sort of 
range problems, I'm within about 50cm of the transmitter. I'm wondering 
if the keyboard just isn't responding appropriatly.

Thanks again

Andre


-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

  reply	other threads:[~2005-04-19 18:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-19  5:59 [Bluez-users] Apple BT Keyboard and Ubuntu Linux Andre Baron
2005-04-19 10:43 ` Marcel Holtmann
2005-04-19 17:48   ` Andre Baron
2005-04-19 18:09     ` Marcel Holtmann
2005-04-19 18:39       ` Andre Baron
2005-04-19 18:45         ` Marcel Holtmann
2005-04-19 18:55           ` Andre Baron [this message]
2005-04-19 19:04             ` Marcel Holtmann
2005-04-20  6:32               ` Andre Baron

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=4265543A.2000505@metalan.net \
    --to=andre@metalan.net \
    --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 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.