All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tessa Lau <tlau@tlau.org>
To: BlueZ users <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] "Can't get conn info" error pairing Treo	with	Bluetooth dongle
Date: Wed, 18 Apr 2007 22:33:11 -0700	[thread overview]
Message-ID: <4626FF17.3010801@tlau.org> (raw)
In-Reply-To: <1176939398.6741.24.camel@aeonflux.holtmann.net>


[-- Attachment #1.1: Type: text/plain, Size: 3608 bytes --]

Hi Marcel,

Here's the output from hcidump:

HCI sniffer - Bluetooth packet analyzer ver 1.32
device: hci0 snap_len: 1028 filter: 0xffffffff
 > HCI Event: Connect Request (0x04) plen 10
    bdaddr 00:07:E0:B9:8A:4A class 0x70020c type ACL
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
    bdaddr 00:07:E0:B9:8A:4A role 0x00
    Role: Master
 > HCI Event: Command Status (0x0f) plen 4
    Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
 > HCI Event: Connect Complete (0x03) plen 11
    status 0x21 handle 1 bdaddr 00:07:E0:B9:8A:4A type ACL encrypt 0x00
    Error: Role Change Not Allowed
 > HCI Event: Max Slots Change (0x1b) plen 3
    handle 1 slots 5
 > HCI Event: Connection Packet Type Changed (0x1d) plen 5
    status 0x00 handle 1 ptype 0xcc18
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5
 > HCI Event: PIN Code Request (0x16) plen 6
    bdaddr 00:07:E0:B9:8A:4A
< HCI Command: PIN Code Request Negative Reply (0x01|0x000e) plen 6
    bdaddr 00:07:E0:B9:8A:4A
 > HCI Event: Command Complete (0x0e) plen 10
    PIN Code Request Negative Reply (0x01|0x000e) ncmd 1
    status 0x00 bdaddr 00:07:E0:B9:8A:4A
 > HCI Event: Auth Complete (0x06) plen 3
    status 0x06 handle 1
    Error: PIN or Key Missing
 > HCI Event: Disconn Complete (0x05) plen 4
    status 0x00 handle 1 reason 0x13
    Reason: Remote User Terminated Connection


I am typing my PIN into the Treo when prompted, and it is the same one 
that I specified in the hcid.conf.

--Tessa

Marcel Holtmann wrote:
> Hi Tessa,
>
>   
>> I'm running Ubuntu Edgy.  I'm trying to pair a Treo 700p with the Linux 
>> box via a USB Bluetooth dongle:
>>
>>     Bus 004 Device 011: ID 1131:1001 Integrated System Solution Corp. 
>> KY-BT100 Bluetooth Adapter
>>
>> Linux seems to recognize the Bluetooth adapter.  Hciconfig reports it as 
>> device hci0:
>>
>> hci0:   Type: USB
>>         BD Address: 00:11:67:4F:E7:FF ACL MTU: 678:8 SCO MTU: 64:10
>>         UP RUNNING PSCAN ISCAN
>>         RX bytes:2934 acl:0 sco:0 events:180 errors:0
>>         TX bytes:2041 acl:0 sco:0 commands:99 errors:0
>>
>> In /etc/bluetooth/hcid.conf, I have the following settings:
>>
>> options {
>>         autoinit yes;
>>         security auto;
>>         pairing multi;
>>         passkey "XXXXX";
>> }
>>
>> When I initiate pairing from the Treo, it prompts me for a PIN and then 
>> immediately says that it's unable to add my computer to the trusted 
>> security list.  I see the following error in my daemon.log:
>>
>> Apr 17 22:41:23 localhost hcid[4203]: Device hci0 has been activated
>> Apr 17 22:41:42 localhost hcid[4203]: pin_code_request 
>> (sba=00:11:67:4F:E7:FF, dba=00:07:E0:B9:8A:4A)
>> Apr 17 22:41:42 localhost hcid[4203]: Can't get conn info: No such file 
>> or directory (2)
>>
>>  From looking at the code in hcid/security.c:358, it looks like this 
>> error occurs when the ioctl call returns ENOENT (No such file or 
>> directory).  What does this mean?  What file or directory is it looking 
>> for?  What else can I try to triage this problem?
>>     
>
> please run "hcidump -X -V" to see what is going on.
>
> Regards
>
> Marcel
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>
>   

[-- Attachment #1.2: Type: text/html, Size: 4598 bytes --]

[-- Attachment #2: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

      reply	other threads:[~2007-04-19  5:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-18  6:04 [Bluez-users] "Can't get conn info" error pairing Treo with Bluetooth dongle Tessa Lau
2007-04-18 23:36 ` Marcel Holtmann
2007-04-19  5:33   ` Tessa Lau [this message]

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=4626FF17.3010801@tlau.org \
    --to=tlau@tlau.org \
    --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.