[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bluetooth-dev] Connect failed [HCI - Unknown reason ((16))]



Hello!
Can anyone explain what is going on? I'm using 200010507 stack version,
which is cross-compiled under
kernel 2.4.0-test, gcc 2.95.2
I've ported the stack to an ARM920 development board and run btd as
server. The board is connected to an Ericsson hardware. Another hardware
is connected to a Linux PC and running btd as client. The inquiry was
done successfully I've got the bdadress back. But when I try to
do connect I've got an error message on client side:
> Connect failed [HCI - Unknown reason ((16))]

The logfile on client side is:
Aug  6 16:12:59 dhcp27208 kernel: BD (6)
Aug  6 16:12:59 dhcp27208 kernel:    0x00 0x80 0x37 0x13 0xb7 0x2e
Aug  6 16:13:28 dhcp27208 kernel: BT (driver) bt_ioctl: BTCONNECT
Aug  6 16:13:28 dhcp27208 kernel: BT (driver) bt_connect : Connecting
srv ch 1 on line 0
Aug  6 16:13:28 dhcp27208 kernel:
Aug  6 16:13:28 dhcp27208 kernel: bd (6)
Aug  6 16:13:28 dhcp27208 kernel:    0x2e 0xb7 0x13 0x37 0x80 0x00
Aug  6 16:13:28 dhcp27208 kernel: l2ca_connect_req: wait baseband, sleep
on wq 0xc671dee4
Aug  6 16:13:37 dhcp27208 kernel: lp_connect_cfm (neg), wake up wq
0xc671dee4
Aug  6 16:13:37 dhcp27208 kernel: BT (driver) bt_connect_cfm, line 0
[RCOMM]
Aug  6 16:13:37 dhcp27208 kernel: BT SYS: process_event,
CONNECTION_COMPLETE Host Timeout
Aug  6 16:13:37 dhcp27208 kernel: BT SYS: ERROR :reset_hci_con_bd, :
Didn't find connection with con_hdl 3840
Aug  6 16:13:37 dhcp27208 kernel: l2ca_connect_req: wait baseband, woke
up !
Aug  6 16:13:37 dhcp27208 kernel: BT SYS: ERROR :l2ca_connect_req:
failed !
Aug  6 16:13:37 dhcp27208 kernel: BT SYS: ERROR :rfcomm_connect_req:
l2ca_connect_req failed
Aug  6 16:13:37 dhcp27208 kernel: BT (driver) bt_connect failed

Log file on server side are as followed:

             Bluetooth Control Application
                -----------------------------
                Running as server
                Physdev /dev/ttyAM1, btdev /dev/ttyBT0, speed 57600 baud

                sdp_server: no such file or directory
                BT (driver) bt_open on line 7
                BT (driver) Registering tty on line 7
                BT SYS: Now 1 open fd:s for ttyBTC
                BT (driver) bt_close on line 7
                BT (driver) Unregistering tty on line 7
                BT (ldisc) bt_tty_open
                BT SYS: Setting BT driver to use serial tty
                Registered bluetooth linBT (driver) bt_open on line 7
                e discipline on BT (driver) Registering tty on line 7
                /dev/ttyAM1
                BT SYS: Now 1 open fd:s for ttyBTC
                BT (driver) bt_flush_buffer, ignored
                Init stack
                BT SYS: Initialising Bluetooth Stack
                BT SYS: Current HW: Ericsson
                BT SYS: hci_init, Initialising HCI
                BT SYS: HCI emulator off
                BT SYS: hci_init, Initialising HCI inbuffers [800]
                BT SYS: hci_init, Reading buffer sizes in the module...

                HW module contains...
                10 ACL buffers at 672 bytes
                0 SCO buffers at 0 bytes

                Ericsson HW revision info:
                 Generated: 2001-01-17 12:37
                 Comment: CXC 125 244 P13A

                BT SYS: hci_init, Host flow control not enabled
                BT SYS: M/S switch disabled
                BT SYS: Initialising L2CAP
                BT SYS: Local bd [00:80:37:13:b7:2e]
                BT SYS: Initialising RFCOMM
                BT SYS: Initialising SDP
                BT SYS: sdp_init, Init sdp as server
                BT SYS: Initialising TCS
                BT SYS: Initialising BTMEM [2500 bytes]
                Setting write_scBT (driver) setting write scan enable :
[0x3]
                an_enable in Ericsson module!
                Setting event filter in Ericsson module!
                Setting baudrateBT (driver) bt_ioctl: Setting baudrate
in host controller to 57600
                 in Ericsson modBT (ldisc) bt_tty_ioctl cmd 0x5401 ule!
                BT (ldisc) bt_tty_ioctl: forwarding ioctl 0x5401 to
n_tty line disc
                BT (ldisc) bt_tty_ioctl cmd 0x5402
                BT (ldisc) bt_tty_ioctl: forwarding ioctl 0x5402 to
n_tty line disc
                BT (ldisc) bt_tty_ioctl cmd 0x5401
                BT (ldisc) bt_tty_ioctl: forwarding ioctl 0x5401 to
n_tty line disc
                BT (ldisc) bt_tty_ioctl cmd 0x540b
                BT (ldisc) bt_tty_ioctl: forwarding ioctl 0x540b to
n_tty line disc
                Now entering cmd line mode

                Menu
                ------------------------
                    ...
BT SYS: process_event, UNKNOWN EVENT CODE 0x0
BT SYS: ERROR :hci_receive_data: discarding 19 bytes
BT SYS: process_event, UNKNOWN EVENT CODE 0x0
BT SYS: ERROR :hci_receive_data: discarding 22 bytes

Thanks in advance
/Chatsuda

-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com