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

[bluetooth-dev] Problem with BD addr



Hi,
I have trouble setting the BD address. It looks as if the L2CAP
initialisation fails.

System description:
2 PCs 180MMX running Debian 2.2 r2, kernel 2.2.19
2 Ericsson Application and Training Tool Kits connected with RS232

The Axis OpenBT stack was downloaded 14 May via cvs (version 20010507).
The installation of the openbt stack worked fine. Installation procedure:
	. init_env; make INCLUDEDIR=~/kernel-source-2.2.19/include
	. init_env; make install INCLUDEDIR=~/kernel-source-2.2.19/include
	. init_env; make devs INCLUDEDIR=~/kernel-source-2.2.19/include
	cp bt.o /lib/modules/2.2.19/misc/.
	insmod bt.o
	btd --reset --speed 115200 -u /dev/ttyS0 --server -m

However, when BT is initialising I saw an error message when L2CAP was
initialising:

May 16 10:48:36 blue1 kernel: BT SYS: Initialising L2CAP
May 16 10:48:39 blue1 kernel: cmd_timeout, Timeout when waiting for
command response
May 16 10:48:39 blue1 kernel: BT SYS: ERROR :l2cap_init: Failed to get
local BD addr


When btd has started I choose to check the BT addr from the commandline:

> readbd
Current bd addr : 00:00:00:00:00:00


Then I try to set the address with:

> setbd 11:22:33:44:55:66
New Bluetooth device address set to: 11:22:33:44:55:66
resetting hw to activade bd change


This results in the following /var/log/messages:

May 16 10:48:59 blue1 kernel: BT (driver) bt_ioctl: HCIREADLOCALBDADDR
May 16 10:49:02 blue1 kernel: cmd_timeout, Timeout when waiting for
command response
May 16 10:49:25 blue1 kernel: BT (driver) bt_ioctl: setting BD_ADDR to 
May 16 10:49:25 blue1 kernel: 
May 16 10:49:25 blue1 kernel: bd : (6)
May 16 10:49:25 blue1 kernel:    0x11 0x22 0x33 0x44 0x55 0x66 
May 16 10:49:28 blue1 kernel: cmd_timeout, Timeout when waiting for
command response
May 16 10:49:28 blue1 btd: Killing SDP server 
May 16 10:49:28 blue1 btd: close_device
May 16 10:49:28 blue1 btd: close_device
May 16 10:49:28 blue1 kernel: BT (driver) bt_close on line 7
May 16 10:49:28 blue1 kernel: BT (driver) Unregistering tty on line 7
May 16 10:49:28 blue1 btd: close_device
May 16 10:54:14 blue1 btd: Shutting down bluetooth stack 
May 16 10:54:14 blue1 btd: close_device


Has anyone encountered this problem before? If so, is there a way to 
correct the it?


Regards,
Fredric Ragnar, student at the university college of Gävle
May 16 10:48:14 blue1 kernel: Bluetooth Driver v1.3, Copyright (c) 2000, 2001 Axis Communications AB
May 16 10:48:14 blue1 kernel: BT SYS: Bluetooth driver registered in ttyBT
May 16 10:48:14 blue1 kernel: BT SYS: Bluetooth line discipline registered.
May 16 10:48:14 blue1 kernel: BT (driver) Initiating bt ctrl struct
May 16 10:48:14 blue1 kernel: BT SYS: Registering BT proc files
May 16 10:48:14 blue1 kernel: BT SYS: Bluetooth Driver Using ttyBT[0-6] (data), ttyBTC (ctrl [7])
May 16 10:48:25 blue1 btd: Initiating signal handler 
May 16 10:48:30 blue1 btd: Starting SDP server [sdp_server] 
May 16 10:48:30 blue1 btd: Opening dev /dev/ttyS0 
May 16 10:48:30 blue1 kernel: BT (driver) bt_open on line 7
May 16 10:48:30 blue1 kernel: BT (driver) Registering tty on line 7
May 16 10:48:30 blue1 kernel: BT SYS: Now 1 open fd:s for ttyBTC
May 16 10:48:30 blue1 kernel: BT (driver) bt_close on line 7
May 16 10:48:30 blue1 kernel: BT (driver) Unregistering tty on line 7
May 16 10:48:30 blue1 kernel: BT (ldisc) bt_tty_open
May 16 10:48:30 blue1 kernel: BT SYS: Setting BT driver to use serial tty
May 16 10:48:30 blue1 btd: Opening dev /dev/ttyBTC 
May 16 10:48:30 blue1 kernel: BT (driver) bt_open on line 7
May 16 10:48:30 blue1 kernel: BT (driver) Registering tty on line 7
May 16 10:48:30 blue1 kernel: BT SYS: Now 1 open fd:s for ttyBTC
May 16 10:48:30 blue1 kernel: BT (driver) bt_flush_buffer, ignored
May 16 10:48:30 blue1 kernel: BT SYS: Initialising Bluetooth Stack
May 16 10:48:30 blue1 kernel: BT SYS: Current HW: Ericsson
May 16 10:48:30 blue1 kernel: BT SYS: hci_init, Initialising HCI
May 16 10:48:30 blue1 kernel: BT SYS: HCI emulator off
May 16 10:48:30 blue1 kernel: BT SYS: hci_init, Initialising HCI inbuffers [800]
May 16 10:48:30 blue1 kernel: BT SYS: hci_init, Reading buffer sizes in the module...
May 16 10:48:30 blue1 sdp_server: SDP Server starting
May 16 10:48:33 blue1 kernel: cmd_timeout, Timeout when waiting for command response
May 16 10:48:36 blue1 kernel: cmd_timeout, Timeout when waiting for command response
May 16 10:48:36 blue1 kernel: BT SYS: hci_init, Host flow control not enabled
May 16 10:48:36 blue1 kernel: BT SYS: M/S switch disabled
May 16 10:48:36 blue1 kernel: BT SYS: Initialising L2CAP
May 16 10:48:39 blue1 kernel: cmd_timeout, Timeout when waiting for command response
May 16 10:48:39 blue1 kernel: BT SYS: ERROR :l2cap_init: Failed to get local BD addr
May 16 10:48:39 blue1 kernel: BT SYS: Initialising RFCOMM
May 16 10:48:39 blue1 kernel: BT SYS: Initialising SDP
May 16 10:48:39 blue1 kernel: BT SYS: sdp_init, Init sdp as server
May 16 10:48:39 blue1 kernel: BT SYS: Initialising TCS
May 16 10:48:39 blue1 kernel: BT SYS: Initialising BTMEM [2500 bytes]
May 16 10:48:42 blue1 kernel: cmd_timeout, Timeout when waiting for command response
May 16 10:48:45 blue1 kernel: cmd_timeout, Timeout when waiting for command response
May 16 10:48:46 blue1 kernel: BT (driver) setting write scan enable : [0x3]
May 16 10:48:49 blue1 kernel: cmd_timeout, Timeout when waiting for command response
May 16 10:48:53 blue1 kernel: cmd_timeout, Timeout when waiting for command response
May 16 10:48:54 blue1 kernel: BT (driver) bt_ioctl: Setting baudrate in host controller to 115200
May 16 10:48:54 blue1 kernel: BT (ldisc) bt_tty_ioctl cmd 0x5401
May 16 10:48:54 blue1 kernel: BT (ldisc) bt_tty_ioctl: forwarding ioctl 0x5401 to n_tty line disc
May 16 10:48:54 blue1 kernel: BT (ldisc) bt_tty_ioctl cmd 0x5402
May 16 10:48:54 blue1 kernel: BT (ldisc) bt_tty_ioctl: forwarding ioctl 0x5402 to n_tty line disc
May 16 10:48:54 blue1 kernel: BT (ldisc) bt_tty_ioctl cmd 0x5401
May 16 10:48:54 blue1 kernel: BT (ldisc) bt_tty_ioctl: forwarding ioctl 0x5401 to n_tty line disc
May 16 10:48:54 blue1 kernel: BT (ldisc) bt_tty_ioctl cmd 0x540b
May 16 10:48:54 blue1 kernel: BT (ldisc) bt_tty_ioctl: forwarding ioctl 0x540b to n_tty line disc



May 16 10:48:59 blue1 kernel: BT (driver) bt_ioctl: HCIREADLOCALBDADDR
May 16 10:49:02 blue1 kernel: cmd_timeout, Timeout when waiting for command response
May 16 10:49:25 blue1 kernel: BT (driver) bt_ioctl: setting BD_ADDR to 
May 16 10:49:25 blue1 kernel: 
May 16 10:49:25 blue1 kernel: bd : (6)
May 16 10:49:25 blue1 kernel:    0x11 0x22 0x33 0x44 0x55 0x66 
May 16 10:49:28 blue1 kernel: cmd_timeout, Timeout when waiting for command response
May 16 10:49:28 blue1 btd: Killing SDP server 
May 16 10:49:28 blue1 btd: close_device
May 16 10:49:28 blue1 btd: close_device
May 16 10:49:28 blue1 kernel: BT (driver) bt_close on line 7
May 16 10:49:28 blue1 kernel: BT (driver) Unregistering tty on line 7
May 16 10:49:28 blue1 btd: close_device
May 16 10:54:14 blue1 btd: Shutting down bluetooth stack 
May 16 10:54:14 blue1 btd: close_device