Skip to contentSkip to conversation

"Can't get conn info" error pairing Treo with Bluetooth dongle

Bluez-users Tessa Lau 2 participants 3 messages Apr 18, 2007 – Apr 19, 2007 Bluetooth drivers

lore
Share & tools
lore

Tessa Lau

author
#0 lore raw

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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi Tessa,

Quoted 32 lines

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 
Quoted 6 lines

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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

author
#2 lore raw

Hi Marcel,

Here's the output from hcidump:

HCI sniffer - Bluetooth packet analyzer ver 1.32
device: hci0 snap_len: 1028 filter: 0xffffffff

Quoted 1 line

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

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1

Quoted 1 line

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

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

handle 1 slots 5

Quoted 1 line

HCI Event: Connection Packet Type Changed (0x1d) plen 5

status 0x00 handle 1 ptype 0xcc18
Packet type: DM1 DM3 DM5 DH1 DH3 DH5

Quoted 1 line

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

Quoted 1 line

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

Quoted 1 line

HCI Event: Auth Complete (0x06) plen 3

status 0x06 handle 1
Error: PIN or Key Missing

Quoted 1 line

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

Quoted 43 lines · Marcel Holtmann

Hi Tessa,

Quoted 22 lines

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";
}
Quoted 9 lines

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

Quoted 11 lines

-------------------------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users