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

[bluetooth-dev] Axis stack failure with USB ???




Hello,
We are working with the Axis Bluetooth OpenBt stack. version
openbt-0_0_5.tar.gz ( no patches applied )  with Ericsson P9A firmware. The
linux kernel version we are using is 2.4.6 with the USB bluetooth patch
2.4.7-pre3 that deals with removing the in_interrupt() processing in
/drivers/usb/bluetooth.c . We were able to successfully initalize the
stack.  Although the btd application comes up on either side ( Server and
Client ) , the RFCOMM level connection is not getting established through
the rf_conn command. We are interested in knowing the all changes that are
required to get the Axis stack working with USB driver ( changes in either
the Axis stack or the USB Bluetooth driver code )


BTD ON SERVER SIDE was started as follows

./btd -u /dev/ttyUB0 -s 57600 -m -b /dev/ttyBT0


BTD ON CLIENT SIDE was started as follows

./btd -u /dev/ttyUB0 -s 57600 -m -b /dev/ttyBT0 -r client

Once the application comes up the rf_conn command was issued as follows

>rf_conn 00:d0:b7:03:01:02 1 0
The message printed out was
>Connection refused


The SYSLOGS for the Client and server side are as follows

SERVER SIDE LOG MESSAGES

Aug  8 22:32:17 localhost syslogd 1.4-0: restart.
Aug  8 22:32:17 localhost syslog: syslogd startup succeeded
Aug  8 22:32:17 localhost kernel: klogd 1.4-0, log source = /proc/kmsg
started.
Aug  8 22:32:17 localhost syslog: klogd startup succeeded
Aug  8 22:32:17 localhost kernel: Inspecting /boot/System.map
Aug  8 22:32:17 localhost kernel: Symbol table has incorrect version
number.
Aug  8 22:32:17 localhost kernel: Cannot find map file.
Aug  8 22:32:17 localhost kernel: Loaded 328 symbols from 2 modules.
Aug  8 22:32:17 localhost kernel: BT SYS: process_event:
DISCONNECTION_COMPLETE Connection Timeout
Aug  8 22:32:17 localhost kernel: BT SYS: lp_disconnect_ind: Connection
handle 1 disconnected
Aug  8 22:32:17 localhost kernel: BT SYS: closing l2cap con (64,64)
Aug  8 22:32:17 localhost kernel: BT SYS: rfcomm_disconnect_ind: remote cid
64
Aug  8 22:32:17 localhost kernel: BT SYS: rfcomm_disconnect_ind: Baseband
is down, reset this RFCOMM session
Aug  8 22:32:17 localhost kernel: BT (driver) bt_unregister_rfcomm : line 0
Aug  8 22:32:17 localhost kernel: BT SYS: warning :bt_unregister_rfcomm :
inactive session
Aug  8 22:32:17 localhost kernel: BT (driver) bt_disconnect_ind : RFCOMM
dlci : 0
Aug  8 22:32:17 localhost kernel: BT SYS: l2cap channel (64,64) [RFCOMM]
disconnected
Aug  8 22:32:18 localhost kernel:
Aug  8 22:32:18 localhost kernel: HW module contains...
Aug  8 22:32:18 localhost kernel: 10 ACL buffers at 800 bytes
Aug  8 22:32:18 localhost kernel: 255 SCO buffers at 255 bytes
Aug  8 22:32:18 localhost kernel:
Aug  8 22:32:11 localhost syslog: syslogd shutdown succeeded
Aug  8 22:32:29 localhost kernel: usb.c: USB disconnect on device 13
Aug  8 22:32:29 localhost kernel: bluetooth.c: Bluetooth converter now
disconnected from ttyUB0
Aug  8 22:32:31 localhost kernel: hub.c: USB new device connect on bus1/1,
assigned device number 14
Aug  8 22:32:31 localhost kernel: bluetooth.c: USB Bluetooth converter
detected
Aug  8 22:32:31 localhost kernel: bluetooth.c: Bluetooth converter now
attached to ttyUB0 (or usb/ttub/0 for devfs)
Aug  8 22:32:35 localhost kernel: Kernel logging (proc) stopped.
Aug  8 22:32:35 localhost kernel: Kernel log daemon terminating.
Aug  8 22:32:36 localhost syslog: klogd shutdown succeeded
Aug  8 22:32:36 localhost exiting on signal 15
Aug  8 22:33:00 localhost syslogd 1.4-0: restart.
Aug  8 22:33:00 localhost syslog: syslogd startup succeeded
Aug  8 22:33:00 localhost kernel: klogd 1.4-0, log source = /proc/kmsg
started.
Aug  8 22:33:00 localhost kernel: Inspecting /boot/System.map
Aug  8 22:33:00 localhost syslog: klogd startup succeeded
Aug  8 22:33:00 localhost kernel: Symbol table has incorrect version
number.
Aug  8 22:33:00 localhost kernel: Cannot find map file.
Aug  8 22:33:00 localhost kernel: Loaded 328 symbols from 2 modules.
Aug  8 22:32:36 localhost syslog: syslogd shutdown succeeded
Aug  8 22:33:11 localhost kernel: usb.c: USB disconnect on device 14
Aug  8 22:33:11 localhost kernel: bluetooth.c: Bluetooth converter now
disconnected from ttyUB0
Aug  8 22:33:13 localhost kernel: hub.c: USB new device connect on bus1/1,
assigned device number 15
Aug  8 22:33:13 localhost kernel: bluetooth.c: USB Bluetooth converter
detected
Aug  8 22:33:13 localhost kernel: bluetooth.c: Bluetooth converter now
attached to ttyUB0 (or usb/ttub/0 for devfs)
Aug  8 22:33:20 localhost btd: Shutting down bluetooth stack
Aug  8 22:33:20 localhost btd: close_device
Aug  8 22:33:20 localhost btd: close_device
Aug  8 22:33:20 localhost kernel: BT SYS: Shutting down bluetooth stack
Aug  8 22:33:20 localhost kernel: BT SYS: Shutting down RFCOMM
Aug  8 22:33:20 localhost kernel: BT SYS: Shutting down SDP
Aug  8 22:33:20 localhost kernel: BT SYS: Shutting down TCS
Aug  8 22:33:20 localhost kernel: BT SYS: Shutting down L2CAP
Aug  8 22:33:20 localhost kernel: BT SYS: Shutting down BTMEM
Aug  8 22:33:20 localhost kernel: BT (driver) bt_close on line 7
Aug  8 22:33:20 localhost kernel: BT (driver) Unregistering tty on line 7
Aug  8 22:33:28 localhost kernel: BT SYS: Bluetooth Driver unregistered
Aug  8 22:33:33 localhost kernel: usb.c: USB disconnect on device 15
Aug  8 22:33:33 localhost kernel: bluetooth.c: Bluetooth converter now
disconnected from ttyUB0
Aug  8 22:33:34 localhost kernel: hub.c: USB new device connect on bus1/1,
assigned device number 16
Aug  8 22:33:34 localhost kernel: bluetooth.c: USB Bluetooth converter
detected
Aug  8 22:33:34 localhost kernel: bluetooth.c: Bluetooth converter now
attached to ttyUB0 (or usb/ttub/0 for devfs)
Aug  8 22:33:38 localhost kernel: Kernel logging (proc) stopped.
Aug  8 22:33:38 localhost kernel: Kernel log daemon terminating.
Aug  8 22:33:39 localhost syslog: klogd shutdown succeeded
Aug  8 22:33:39 localhost exiting on signal 15
Aug  8 22:33:46 localhost syslogd 1.4-0: restart.
Aug  8 22:33:46 localhost syslog: syslogd startup succeeded
Aug  8 22:33:46 localhost kernel: klogd 1.4-0, log source = /proc/kmsg
started.
Aug  8 22:33:46 localhost kernel: Inspecting /boot/System.map
Aug  8 22:33:46 localhost syslog: klogd startup succeeded
Aug  8 22:33:46 localhost kernel: Symbol table has incorrect version
number.
Aug  8 22:33:46 localhost kernel: Cannot find map file.
Aug  8 22:33:46 localhost kernel: Loaded 7 symbols from 1 module.
Aug  8 22:33:39 localhost syslog: syslogd shutdown succeeded
Aug  8 22:34:05 localhost kernel: Bluetooth Driver v1.3, Copyright (c)
2000, 2001 Axis Communications AB
Aug  8 22:34:05 localhost kernel: BT SYS: Bluetooth driver registered in
ttyBT
Aug  8 22:34:05 localhost kernel: BT SYS: Bluetooth line discipline
registered.
Aug  8 22:34:05 localhost kernel: BT (driver) Initiating bt ctrl struct
Aug  8 22:34:05 localhost kernel: BT SYS: Registering BT proc files
Aug  8 22:34:05 localhost kernel: BT SYS: Bluetooth Driver Using ttyBT[0-6]
(data), ttyBTC (ctrl [7])
Aug  8 22:34:22 localhost btd: Initiating signal handler
Aug  8 22:34:22 localhost btd: Starting SDP server [sdp_server]
Aug  8 22:34:22 localhost sdp_server: SDP Server starting
Aug  8 22:34:22 localhost btd: Opening dev /dev/ttyUB0
Aug  8 22:34:22 localhost kernel: BT (driver) bt_open on line 7
Aug  8 22:34:22 localhost kernel: BT (driver) Registering tty on line 7
(btd)
Aug  8 22:34:22 localhost kernel: BT (driver) Now 1 open fd:s for ttyBTC
[btd]
Aug  8 22:34:22 localhost kernel: BT (driver) bt_close on line 7
Aug  8 22:34:22 localhost kernel: BT (driver) Unregistering tty on line 7
Aug  8 22:34:22 localhost btd: Opening dev /dev/ttyBTC
Aug  8 22:34:22 localhost kernel: BT (ldisc) bt_tty_open
Aug  8 22:34:22 localhost kernel: BT SYS: Setting BT driver to use serial
tty
Aug  8 22:34:22 localhost kernel: BT (driver) bt_open on line 7
Aug  8 22:34:22 localhost kernel: BT (driver) Registering tty on line 7
(btd)
Aug  8 22:34:22 localhost kernel: BT (driver) Now 1 open fd:s for ttyBTC
[btd]
Aug  8 22:34:22 localhost kernel: BT (driver) bt_flush_buffer, ignored
Aug  8 22:34:22 localhost kernel: BT SYS: Initialising Bluetooth Stack
Aug  8 22:34:22 localhost kernel: BT SYS: Current HW: Ericsson
Aug  8 22:34:22 localhost kernel: BT SYS: Initialising BTMEM [2500 bytes]
Aug  8 22:34:23 localhost kernel: BT SYS: Initialising HCI
Aug  8 22:34:23 localhost kernel: BT SYS: HCI emulator off
Aug  8 22:34:23 localhost kernel: BT SYS: Initialising HCI inbuffers [800]
Aug  8 22:34:23 localhost kernel: BT SYS: Reading buffer sizes in HW module
Aug  8 22:34:23 localhost kernel:
Aug  8 22:34:23 localhost kernel: HW module contains...
Aug  8 22:34:23 localhost kernel: 10 ACL buffers at 800 bytes
Aug  8 22:34:23 localhost kernel: 255 SCO buffers at 255 bytes
Aug  8 22:34:23 localhost kernel:
Aug  8 22:34:23 localhost kernel: BT SYS: Reading firmware info in HW
module
Aug  8 22:34:23 localhost kernel: Ericsson HW revision info: ^M
Aug  8 22:34:23 localhost kernel:  Generated: 2000-04-28 15:54^M
Aug  8 22:34:23 localhost kernel:  Comment: CXC 125 244 P9A
Aug  8 22:34:23 localhost kernel:
Aug  8 22:34:23 localhost kernel: BT SYS: Host flow control not enabled
Aug  8 22:34:23 localhost kernel: BT SYS: M/S switch disabled
Aug  8 22:34:23 localhost kernel: BT SYS: Force M/S switch set to 0
Aug  8 22:34:23 localhost kernel: BT SYS: Initialising L2CAP
Aug  8 22:34:23 localhost kernel: BT SYS: Local bd [00:d0:b7:03:01:02]
Aug  8 22:34:23 localhost kernel: BT SYS: Initialising RFCOMM
Aug  8 22:34:23 localhost kernel: BT SYS: Initialising SDP
Aug  8 22:34:23 localhost kernel: BT SYS: Init SDP as server
Aug  8 22:34:23 localhost kernel: BT SYS: Initialising TCS
Aug  8 22:34:23 localhost kernel: BT (driver) bt_ioctl:
HCIWRITECLASSOFDEVICE
Aug  8 22:34:24 localhost kernel: BT (driver) bt_ioctl: HCISETLOCALNAME
Aug  8 22:34:24 localhost kernel: BT (driver) Setting write scan enable :
[0x3]
Aug  8 22:34:24 localhost kernel: BT (driver) bt_ioctl: HCISET_EVENT_FILTER
Aug  8 22:34:25 localhost kernel: BT (driver) bt_ioctl: Setting baudrate in
host controller to 57600
Aug  8 22:34:25 localhost kernel: BT (ldisc) bt_tty_ioctl: forwarding ioctl
0x5401 to n_tty line disc
Aug  8 22:34:25 localhost kernel: BT (ldisc) bt_tty_ioctl: forwarding ioctl
0x5402 to n_tty line disc
Aug  8 22:34:25 localhost kernel: BT (ldisc) bt_tty_ioctl: forwarding ioctl
0x5401 to n_tty line disc
Aug  8 22:34:25 localhost kernel: BT (ldisc) bt_tty_ioctl: forwarding ioctl
0x540b to n_tty line disc
Aug  8 22:35:05 localhost kernel: lp_connect_cfm (pos), wake up flag not
set
Aug  8 22:35:05 localhost kernel: BT SYS: process_event: ACL link is up
Aug  8 22:35:05 localhost kernel: BT SYS: ERROR :process_return_param:
WRITE_LINK_POLICY_SETTINGS: Unknown HCI Command
Aug  8 22:35:19 localhost kernel: BT SYS: rfcomm_config_ind: Local l2cap
mtu set to 672
Aug  8 22:35:19 localhost kernel:
Aug  8 22:35:19 localhost kernel: l2cap options:  (0):
Aug  8 22:35:19 localhost kernel: BT SYS: l2cap channel (65,64) [RFCOMM]
connected
Aug  8 22:35:19 localhost kernel: BT SYS: rfcomm_config_cfm: l2cap is now
open
Aug  8 22:35:19 localhost kernel: BT (driver) bt_connect_ind : RFCOMM dlci
: 0


CLIENT SIDE LOG MESSAGES
Aug  8 22:25:25 localhost kernel: bluetooth.c: Bluetooth converter now
disconnected from ttyUB0
Aug  8 22:25:26 localhost kernel: hub.c: USB new device connect on bus1/1,
assigned device number 4
Aug  8 22:25:26 localhost kernel: bluetooth.c: USB Bluetooth converter
detected
Aug  8 22:25:26 localhost kernel: bluetooth.c: Bluetooth converter now
attached to ttyUB0 (or usb/ttub/0 for devfs)
Aug  8 22:25:43 localhost kernel: BT SYS: Bluetooth Driver unregistered
Aug  8 22:26:18 localhost kernel: usb.c: USB disconnect on device 4
Aug  8 22:26:18 localhost kernel: bluetooth.c: Bluetooth converter now
disconnected from ttyUB0
Aug  8 22:26:20 localhost kernel: hub.c: USB new device connect on bus1/1,
assigned device number 5
Aug  8 22:26:20 localhost kernel: bluetooth.c: USB Bluetooth converter
detected
Aug  8 22:26:20 localhost kernel: bluetooth.c: Bluetooth converter now
attached to ttyUB0 (or usb/ttub/0 for devfs)
Aug  8 22:26:28 localhost kernel: Bluetooth Driver v1.3, Copyright (c)
2000, 2001 Axis Communications AB
Aug  8 22:26:28 localhost kernel: BT SYS: Bluetooth driver registered in
ttyBT
Aug  8 22:26:28 localhost kernel: BT SYS: Bluetooth line discipline
registered.
Aug  8 22:26:28 localhost kernel: BT (driver) Initiating bt ctrl struct
Aug  8 22:26:28 localhost kernel: BT SYS: Registering BT proc files
Aug  8 22:26:28 localhost kernel: BT SYS: Bluetooth Driver Using ttyBT[0-6]
(data), ttyBTC (ctrl [7])
Aug  8 22:27:36 localhost btd: Initiating signal handler
Aug  8 22:27:36 localhost btd: Opening dev /dev/ttyUB0
Aug  8 22:27:36 localhost kernel: BT (driver) bt_open on line 7
Aug  8 22:27:36 localhost kernel: BT (driver) Registering tty on line 7
(btd)
Aug  8 22:27:36 localhost kernel: BT (driver) Now 1 open fd:s for ttyBTC
[btd]
Aug  8 22:27:36 localhost kernel: BT (driver) bt_close on line 7
Aug  8 22:27:36 localhost kernel: BT (driver) Unregistering tty on line 7
Aug  8 22:27:36 localhost kernel: BT (ldisc) bt_tty_open
Aug  8 22:27:36 localhost kernel: BT SYS: Setting BT driver to use serial
tty
Aug  8 22:27:36 localhost btd: Opening dev /dev/ttyBTC
Aug  8 22:27:36 localhost kernel: BT (driver) bt_open on line 7
Aug  8 22:27:36 localhost kernel: BT (driver) Registering tty on line 7
(btd)
Aug  8 22:27:36 localhost kernel: BT (driver) Now 1 open fd:s for ttyBTC
[btd]
Aug  8 22:27:36 localhost kernel: BT (driver) bt_flush_buffer, ignored
Aug  8 22:27:36 localhost kernel: BT SYS: Initialising Bluetooth Stack
Aug  8 22:27:36 localhost kernel: BT SYS: Current HW: Ericsson
Aug  8 22:27:36 localhost kernel: BT SYS: Initialising BTMEM [2500 bytes]
Aug  8 22:27:36 localhost kernel: BT SYS: Initialising HCI
Aug  8 22:27:36 localhost kernel: BT SYS: HCI emulator off
Aug  8 22:27:36 localhost kernel: BT SYS: Initialising HCI inbuffers [800]
Aug  8 22:27:36 localhost kernel: BT SYS: Reading buffer sizes in HW module
Aug  8 22:27:36 localhost kernel:
Aug  8 22:27:36 localhost kernel: HW module contains...
Aug  8 22:27:36 localhost kernel: 10 ACL buffers at 800 bytes
Aug  8 22:27:36 localhost kernel: 255 SCO buffers at 255 bytes
Aug  8 22:27:36 localhost kernel:
Aug  8 22:27:36 localhost kernel: BT SYS: Reading firmware info in HW
module
Aug  8 22:27:36 localhost kernel: Ericsson HW revision info: ^M
Aug  8 22:27:36 localhost kernel:  Generated: 2000-04-28 15:54^M
Aug  8 22:27:36 localhost kernel:  Comment: CXC 125 244 P9A
Aug  8 22:27:36 localhost kernel:
Aug  8 22:27:36 localhost kernel: BT SYS: Host flow control not enabled
Aug  8 22:27:36 localhost kernel: BT SYS: M/S switch disabled
Aug  8 22:27:36 localhost kernel: BT SYS: Force M/S switch set to 0
Aug  8 22:27:36 localhost kernel: BT SYS: Initialising L2CAP
Aug  8 22:27:36 localhost kernel: BT SYS: Local bd [00:d0:b7:03:29:a9]
Aug  8 22:27:36 localhost kernel: BT SYS: Initialising RFCOMM
Aug  8 22:27:36 localhost kernel: BT SYS: Initialising SDP
Aug  8 22:27:36 localhost kernel: BT SYS: Init SDP as server
Aug  8 22:27:36 localhost kernel: BT SYS: Initialising TCS
Aug  8 22:27:36 localhost kernel: BT (driver) bt_ioctl:
HCIWRITECLASSOFDEVICE
Aug  8 22:27:36 localhost kernel: BT (driver) bt_ioctl: HCISETLOCALNAME
Aug  8 22:27:37 localhost kernel: BT (driver) Setting write scan enable :
[0x3]
Aug  8 22:27:38 localhost kernel: BT (driver) bt_ioctl: HCISET_EVENT_FILTER
Aug  8 22:27:39 localhost kernel: BT (driver) bt_ioctl: Setting baudrate in
host controller to 57600
Aug  8 22:27:39 localhost kernel: BT (ldisc) bt_tty_ioctl: forwarding ioctl
0x5401 to n_tty line disc
Aug  8 22:27:39 localhost kernel: BT (ldisc) bt_tty_ioctl: forwarding ioctl
0x5402 to n_tty line disc
Aug  8 22:27:39 localhost kernel: BT (ldisc) bt_tty_ioctl: forwarding ioctl
0x5401 to n_tty line disc
Aug  8 22:27:39 localhost kernel: BT (ldisc) bt_tty_ioctl: forwarding ioctl
0x540b to n_tty line disc
Aug  8 22:27:42 localhost kernel: BT (driver) bt_ioctl: HCIREADLOCALBDADDR
Aug  8 22:28:10 localhost kernel: BT (driver) bt_ioctl: BTCONNECT
Aug  8 22:28:10 localhost kernel: BT (driver) bt_connect : Connecting srv
ch 1 on line 0
Aug  8 22:28:10 localhost kernel:
Aug  8 22:28:10 localhost kernel: bd (6):
Aug  8 22:28:10 localhost kernel: 0x02 0x01 0x03 0xb7 0xd0 0x00
Aug  8 22:28:10 localhost kernel: l2ca_connect_req: wait baseband, sleep on
wq 0xc7e57c04
Aug  8 22:28:13 localhost kernel: lp_connect_cfm (pos), wake up wq
0xc7e57c04
Aug  8 22:28:13 localhost kernel: lp_connect_cfm, wake up flag not set
Aug  8 22:28:13 localhost kernel: BT SYS: process_event: ACL link is up
Aug  8 22:28:13 localhost kernel: l2ca_connect_req: wait baseband, woke up
!
Aug  8 22:28:13 localhost kernel: l2ca_connect_req: wait rsp, sleep on wq
0xc7e57c04
Aug  8 22:28:13 localhost kernel: BT SYS: ERROR :process_return_param:
WRITE_LINK_POLICY_SETTINGS: Unknown HCI Command
Aug  8 22:28:15 localhost kernel: BT SYS: l2ca_timeoutind
Aug  8 22:28:15 localhost kernel: l2ca_timeoutind , wake up wq 0xc7e57c04
Aug  8 22:28:15 localhost kernel: l2ca_connect_req: wait rsp, woke up !
Aug  8 22:28:15 localhost kernel: BT SYS: RTX, use same ID
Aug  8 22:28:15 localhost kernel: l2ca_connect_req: wait rsp, sleep on wq
0xc7e57c04
Aug  8 22:28:19 localhost kernel: BT SYS: l2ca_timeoutind
Aug  8 22:28:19 localhost kernel: l2ca_timeoutind , wake up wq 0xc7e57c04
Aug  8 22:28:19 localhost kernel: l2ca_connect_req: wait rsp, woke up !
Aug  8 22:28:19 localhost kernel: BT SYS: RTX, use same ID
Aug  8 22:28:19 localhost kernel: l2ca_connect_req: wait rsp, sleep on wq
0xc7e57c04
Aug  8 22:28:27 localhost kernel: BT SYS: l2ca_timeoutind
Aug  8 22:28:27 localhost kernel: l2ca_timeoutind , wake up wq 0xc7e57c04
Aug  8 22:28:27 localhost kernel: l2ca_connect_req: wait rsp, woke up !
Aug  8 22:28:27 localhost kernel: BT SYS: RTX, use same ID
Aug  8 22:28:27 localhost kernel: l2ca_connect_req: wait rsp, sleep on wq
0xc7e57c04
Aug  8 22:28:27 localhost kernel: l2cap con rsp, wake up wq 0xc7e57c04
Aug  8 22:28:27 localhost kernel:
Aug  8 22:28:27 localhost kernel: l2cap options:  (0):
Aug  8 22:28:27 localhost kernel: l2ca_connect_req: wait rsp, woke up !
Aug  8 22:28:27 localhost kernel: BT SYS: l2cap channel (64,65) [RFCOMM]
connected
Aug  8 22:28:27 localhost kernel: BT SYS: rfcomm_config_cfm: l2cap is now
open
Aug  8 22:28:37 localhost kernel: BT SYS: wq_timeout

Any help would be highly appreciated.

Regards,
Phani and Rahman,
Pervasive Group,IBM India Software Labs,
Golden Enclave,Airport Road,
Bangalore
Tel: 526 2355 Extn: 3715


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