linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-users] "Can't get conn info" error pairing Treo with Bluetooth dongle
@ 2007-04-18  6:04 Tessa Lau
  2007-04-18 23:36 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Tessa Lau @ 2007-04-18  6:04 UTC (permalink / raw)
  To: bluez-users

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?

Thanks in advance,
--Tessa

-------------------------------------------------------------------------
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

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

* Re: [Bluez-users] "Can't get conn info" error pairing Treo with Bluetooth dongle
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2007-04-18 23:36 UTC (permalink / raw)
  To: BlueZ users

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

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

* Re: [Bluez-users] "Can't get conn info" error pairing Treo with Bluetooth dongle
  2007-04-18 23:36 ` Marcel Holtmann
@ 2007-04-19  5:33   ` Tessa Lau
  0 siblings, 0 replies; 3+ messages in thread
From: Tessa Lau @ 2007-04-19  5:33 UTC (permalink / raw)
  To: BlueZ users


[-- 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

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

end of thread, other threads:[~2007-04-19  5:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).