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

RE: [bluetooth-dev]



Hi, it looks like you have the wrong initial baud rate speed set in 
the HW. The CSR default speed in the stack is 115200 but your module
might be set to a different value. Try e.g 38400 (using -i option) 
which I think Casira uses, if that doesn't work try the rest 
baudrates as well... ;)

brgds
/Mattias


-----Original Message-----
From: Swanson, Steven
To: Bluetooth-Dev (E-mail)
Sent: 2001-06-29 00:45
Subject: [bluetooth-dev] 

I am having trouble get a CSR radio working over bluetooth.  Things seem
pretty happy, but I seem unable to communicate with the device (the
kernel
says it can't read the BD address (see below), and it continually times
out
waiting command responses).  I am more or less at a loss.  Any ideas?

-steve


kernel: 2.4.4
openbt-20010530.tar.gz
with 
	#define CONFIG_BLUETOOTH_CSR
	#undef CONFIG_BLUETOOTH_USE_BCSP

What I did:
boot
load modules: bluetooth.o bt.o
plug in module.

in openbt/apps/bluetooth/experimental/:
btdm --reset --speed 460800 --physdev /dev/ttyUB0 --local-name OpenBT

/proc/bt_status
===============================================================
[LOCAL INFO]
stack_initiated  : TRUE
bytes_received   : 0
bytes_sent       : 0
local_bd_address : 00:00:00:00:00:00

[REMOTE INFO]
unit_id unit_bd_address unit_mode unit_name


/proc/bt_internal
===============================================================
[Bluetooth Status]
-----------------------------------------
bytes received : 0
bytes sent     : 0

[Hardware]
Vendor:        CSR (H4)
Firmware info:

[BT Interface]
line[0] state : BT_INACTIVE
line[1] state : BT_INACTIVE
line[2] state : BT_INACTIVE
line[3] state : BT_INACTIVE
line[4] state : BT_INACTIVE
line[5] state : BT_INACTIVE
line[6] state : BT_INACTIVE
BT CTRL state : BT_UPPERCONNECTED [1 open]

[BTMEM]
Buffer holds : 0
Bytes left : 2228

[RFCOMM]


[L2CAP]

local bd :[00:00:00:00:00:00]


[HCI]
unit_id unit_bd_address unit_mode unit_name
The connected hci handlers are:

Free data buffers in HW : 0
Free command buffers in HW : 1

---------------------------------------

Syslog
===============================================================

Jun 28 14:42:10 localhost kernel: bluetooth.c: USB Bluetooth support
registered
Jun 28 14:42:10 localhost kernel: usb.c: registered new driver bluetooth
Jun 28 14:42:22 localhost kernel: Bluetooth Driver v1.3, Copyright (c)
2000,
2001 Axis Communications AB
Jun 28 14:42:22 localhost kernel: BT SYS: Bluetooth driver registered in
ttyBT
Jun 28 14:42:22 localhost kernel: BT SYS: Bluetooth line discipline
registered.
Jun 28 14:42:22 localhost kernel: BT (driver) Initiating bt ctrl struct
Jun 28 14:42:22 localhost kernel: BT SYS: Registering BT proc files
Jun 28 14:42:22 localhost kernel: BT SYS: Bluetooth Driver Using
ttyBT[0-6]
(data), ttyBTC (ctrl [7])
Jun 28 14:44:12 localhost kernel: hub.c: USB new device connect on
bus1/1,
assigned device number 2
Jun 28 14:44:12 localhost kernel: bluetooth.c: USB  
Jun 28 14:45:49 localhost btdm: Retrying in 2 sec
Jun 28 14:45:51 localhost btdm: Opening socket /tmp/ipa_server
Jun 28 14:45:51 localhost btdm: open_socket /tmp/ipa_server failed
Jun 28 14:45:51 localhost btdm: Found no IPA server
Jun 28 14:45:51 localhost btdm: Retrying in 4 sec
Jun 28 14:45:55 localhost btdm: Opening socket /tmp/ipa_server
Jun 28 14:45:55 localhost btdm: open_socket /tmp/ipa_server failed
Jun 28 14:45:55 localhost btdm: Found no IPA server
Jun 28 14:45:55 localhost btdm: Retrying in 8 sec
Jun 28 14:46:03 localhost btdm: Opening socket /tmp/ipa_server
Jun 28 14:46:03 localhost btdm: open_socket /tmp/ipa_server failed
Jun 28 14:46:03 localhost btdm: Found no IPA server
Jun 28 14:46:03 localhost btdm: Using modem emulation
Jun 28 14:46:08 localhost kernel: BT (driver) bt_open on line 7
Jun 28 14:46:08 localhost kernel: BT (driver) Registering tty on line 7
(btdm)
Jun 28 14:46:08 localhost kernel: BT SYS: Now 1 open fd:s for ttyBTC
Jun 28 14:46:08 localhost kernel: BT (driver) bt_close on line 7
Jun 28 14:46:08 localhost kernel: BT (driver) Unregistering tty on line
7
Jun 28 14:46:08 localhost btdm: Setting default speed 115200
Jun 28 14:46:08 localhost kernel: BT (ldisc) bt_tty_open
Jun 28 14:46:08 localhost kernel: BT SYS: Setting BT driver to use
serial
tty
Jun 28 14:46:08 localhost btdm: Registered bluetooth line discipline on
/dev/ttyUB0
Jun 28 14:46:08 localhost kernel: BT (driver) bt_open on line 7
Jun 28 14:46:08 localhost kernel: BT (driver) Registering tty on line 7
(btdm)
Jun 28 14:46:08 localhost kernel: BT SYS: Now 1 open fd:s for ttyBTC
Jun 28 14:46:08 localhost btdm: Init stack
Jun 28 14:46:08 localhost kernel: BT SYS: Initialising Bluetooth Stack
Jun 28 14:46:08 localhost kernel: BT SYS: Current HW: CSR (H4)
Jun 28 14:46:08 localhost kernel: BT SYS: hci_init, Initialising HCI
Jun 28 14:46:08 localhost kernel: BT SYS: HCI emulator off
Jun 28 14:46:08 localhost kernel: BT SYS: hci_init, Initialising HCI
inbuffers [800]
Jun 28 14:46:08 localhost kernel: BT SYS: hci_init, Reading buffer sizes
in
the module...
Jun 28 14:46:08 localhost kernel: cmd_pkt from interrupt!
Jun 28 14:46:11 localhost kernel: cmd_timeout, Timeout when waiting for
command response
Jun 28 14:46:11 localhost kernel: cmd_pkt from interrupt!
Jun 28 14:46:14 localhost kernel: cmd_timeout, Timeout when waiting for
command response
Jun 28 14:46:14 localhost kernel: cmd_pkt from interrupt!
Jun 28 14:46:17 localhost kernel: cmd_timeout, Timeout when waiting for
command response
Jun 28 14:46:17 localhost kernel: cmd_pkt from interrupt!
Jun 28 14:46:20 localhost kernel: cmd_timeout, Timeout when waiting for
command response
Jun 28 14:46:20 localhost kernel: BT SYS: hci_init, Host flow control
not
enabled
Jun 28 14:46:20 localhost kernel: BT SYS: M/S switch disabled
Jun 28 14:46:20 localhost kernel: BT SYS: Force M/S switch set to 0
Jun 28 14:46:20 localhost kernel: BT SYS: Initialising L2CAP
Jun 28 14:46:20 localhost kernel: cmd_pkt from interrupt!
Jun 28 14:46:23 localhost kernel: cmd_timeout, Timeout when waiting for
command response
Jun 28 14:46:23 localhost kernel: BT SYS: ERROR :l2cap_init: Failed to
get
local BD addr
Jun 28 14:46:23 localhost kernel: BT SYS: Initialising RFCOMM
Jun 28 14:46:23 localhost kernel: BT SYS: Initialising SDP
Jun 28 14:46:23 localhost kernel: BT SYS: sdp_init, Init sdp as server
Jun 28 14:46:23 localhost kernel: BT SYS: Initialising TCS
Jun 28 14:46:23 localhost kernel: BT SYS: Initialising BTMEM [2500
bytes]
Jun 28 14:46:23 localhost btdm: bt_set_classofdevice : srv class 0x10,
maj
class 0x3, min class 0x0, format 0x0
Jun 28 14:46:23 localhost kernel: cmd_pkt from interrupt!
Jun 28 14:46:26 localhost kernel: cmd_timeout, Timeout when waiting for
command response
Jun 28 14:46:26 localhost btdm: bt_set_local_name: AXIS
(localhost.localdomain)
Jun 28 14:46:26 localhost kernel: cmd_pkt from interrupt!
Jun 28 14:46:29 localhost kernel: cmd_timeout, Timeout when waiting for
command response
Jun 28 14:46:29 localhost btdm: Setting write_scan_enable in CSR module!
Jun 28 14:46:29 localhost btdm: Setting write_scan_enable [0x3]
Jun 28 14:46:29 localhost kernel: BT (driver) setting write scan enable
:
[0x3]
Jun 28 14:46:29 localhost kernel: cmd_pkt from interrupt!
Jun 28 14:46:32 localhost kernel: cmd_timeout, Timeout when waiting for
command response
Jun 28 14:46:32 localhost btdm: Setting write_pagescan_activity in CSR
module!
Jun 28 14:46:32 localhost btdm: Setting write_pagescan_activity in CSR
module!
Jun 28 14:46:32 localhost kernel: BT (driver) setting write page scan
activity : [0x800,0x12]
Jun 28 14:46:32 localhost kernel: cmd_pkt from interrupt!
Jun 28 14:46:35 localhost kernel: cmd_timeout, Timeout when waiting for
command response
Jun 28 14:46:36 localhost btdm: Setting event filter [0x2 0x0 0x1]
Jun 28 14:46:36 localhost kernel: cmd_pkt from interrupt!
Jun 28 14:46:39 localhost kernel: cmd_timeout, Timeout when waiting for
command response
Jun 28 14:46:39 localhost btdm: Setting baudrate in CSR module!
Jun 28 14:46:40 localhost btdm: bt_set_baudrate: 115200 baud
Jun 28 14:46:40 localhost kernel: BT (driver) bt_ioctl: Setting baudrate
in
host controller to 115200
Jun 28 14:46:40 localhost kernel: cmd_pkt from interrupt!
Jun 28 14:46:43 localhost kernel: cmd_timeout, Timeout when waiting for
command response
Jun 28 14:46:43 localhost kernel: BT (ldisc) bt_tty_ioctl cmd 0x5401
Jun 28 14:46:43 localhost kernel: BT (ldisc) bt_tty_ioctl: forwarding
ioctl
0x5401 to n_tty line disc
Jun 28 14:46:43 localhost kernel: BT (ldisc) bt_tty_ioctl cmd 0x5402
Jun 28 14:46:43 localhost kernel: BT (ldisc) bt_tty_ioctl: forwarding
ioctl
0x5402 to n_tty line disc
Jun 28 14:46:43 localhost kernel: BT (ldisc) bt_tty_ioctl cmd 0x5401
Jun 28 14:46:43 localhost kernel: BT (ldisc) bt_tty_ioctl: forwarding
ioctl
0x5401 to n_tty line disc
Jun 28 14:46:43 localhost kernel: BT (ldisc) bt_tty_ioctl cmd 0x540b
Jun 28 14:46:43 localhost kernel: BT (ldisc) bt_tty_ioctl: forwarding
ioctl
0x540b to n_tty line disc
Jun 28 14:46:43 localhost btdm: Baudrate set



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