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

Re: [bluetooth-dev] BCSP sync problem



check the following pskeys:
parity bit
stop bit
crc on bcsp tx
host interface
uart: enable bcsp-spec. hw

for the bcsp-version of openbt, the settings should be:

even
1
enable
bcsp
disable!!!! (bug!)

cheers

> Jeroen Vink wrote:
> 
> Hello,
> 
> I'm am busy with Bluetooth for my final project of my study. I've got
> a Mitsumi WML-C06 Bluetooth module wich uses the CSR BC01b chip. I
> connected it to my PC comm port (COMM 2) and use a MAX232 for the UART
> conversion (RS232 <-> 3V UART). The only pins of the Mitsumi module I
> did connect are: VDD, GND, Tx and Rx (no CTS and RTS, because I first
> check the module with a BCSP connection). With CSR's software program
> "BleuTest" I managed to 'see' the module and I can set some of the
> persistant store keys. Their I can also see that the default baudrate
> is 115200 baud. So I think the hardware is ok.
> 
> The firmware version of the BC01b is 12.3 (because of the RFCOMM I
> want to use).
> 
> I tried your software to connect to the module, but it seems that the
> module and the software are not able to sync to each other. I used
> "openbt-20011021.tar" to install your software and typed "make
> INCLUDE_BCSP_SUPPORT=1". Also undefined "CONFIG_BLUETOOTH_ERICSSON"
> and defined "CONFIG_BLUETOOTH_CSR" and changed the string compare in
> "btd.c". The OS is SuSE Linux 7.2 with kernel 2.4.4.
> 
> When I use any command (bti, btd or btdm), nothing happens. For
> example: bti -R -u /dev/ttyS1 -s 115200
> I included the /var/log/messages beneath. After the line "BCSP
> initialized and syncronized" nothing happens anymore. I can't get any
> further. I hope you can give me some help.
> 
> 
> Jeroen
> 
> 
> =====================================
> /var/log/messages:
> 
> Nov 16 13:53:52 student2 kernel: Bluetooth Driver v1.3, Copyright (c)
> 2000, 2001 Axis Communications AB
> Nov 16 13:53:52 student2 kernel: BT SYS: Bluetooth driver registered
> as ttyBT
> Nov 16 13:53:52 student2 kernel: BT SYS: Bluetooth line discipline
> registered.
> Nov 16 13:53:52 student2 kernel: BT (driver) Initialising bt ctrl
> struct
> Nov 16 13:53:52 student2 kernel: BT SYS: Registering BT proc files
> Nov 16 13:53:52 student2 kernel: BT SYS: Bluetooth Driver Using
> ttyBT[0-6] (data), ttyBTC (ctrl [7])
> Nov 16 13:55:32 student2 bti: Bluetooth daemon starting
> Nov 16 13:55:32 student2 kernel: BT (driver) bt_open: Line 7
> Nov 16 13:55:32 student2 kernel: BT (driver) Registering tty on line 7
> (bti)
> Nov 16 13:55:32 student2 kernel: BT (driver) Now 1 open fd:s for
> ttyBTC [bti]
> Nov 16 13:55:32 student2 kernel: BT (driver) bt_close: Line 7
> Nov 16 13:55:32 student2 kernel: BT (driver) Unregistering tty on line
> 7
> Nov 16 13:55:32 student2 kernel: BT (driver) bt_open: Line 7
> Nov 16 13:55:32 student2 kernel: BT (driver) Registering tty on line 7
> (bti)
> Nov 16 13:55:32 student2 kernel: BT (driver) Now 1 open fd:s for
> ttyBTC [bti]
> Nov 16 13:55:32 student2 kernel: BT (driver) BTSETBCSPMODE: -1
> Nov 16 13:55:32 student2 kernel: BT (driver) bt_close: Line 7
> Nov 16 13:55:32 student2 kernel: BT (driver) Unregistering tty on line
> 7
> Nov 16 13:55:32 student2 kernel: BT (ldisc) bt_tty_open
> Nov 16 13:55:32 student2 kernel: BT SYS: Setting BT driver to use
> serial tty
> Nov 16 13:55:32 student2 bti: Registered bluetooth line discipline on
> /dev/ttyS1
> Nov 16 13:55:32 student2 kernel: BT (driver) bt_open: Line 7
> Nov 16 13:55:32 student2 kernel: BT (driver) Registering tty on line 7
> (bti)
> Nov 16 13:55:32 student2 kernel: BT (driver) Now 1 open fd:s for
> ttyBTC [bti]
> Nov 16 13:55:32 student2 kernel: BT (ldisc) bt_tty_ioctl: Forwarding
> ioctl 0x540b to n_tty line disc
> Nov 16 13:55:32 student2 sdp_server: SDP Server starting
> Nov 16 13:55:32 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 10 bytes
> Nov 16 13:55:33 student2 last message repeated 5 times
> Nov 16 13:55:34 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 5 bytes
> Nov 16 13:55:34 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 5 bytes
> Nov 16 13:55:34 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 10 bytes
> Nov 16 13:55:34 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 10 bytes
> Nov 16 13:55:36 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 1 bytes
> Nov 16 13:55:37 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 5 bytes
> Nov 16 13:55:37 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 15 bytes
> Nov 16 13:55:37 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 5 bytes
> Nov 16 13:55:37 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 5 bytes
> Nov 16 13:55:37 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 3 bytes
> Nov 16 13:55:37 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 7 bytes
> Nov 16 13:55:37 student2 bti: Init stack
> Nov 16 13:55:37 student2 kernel: BT SYS: Initialising Bluetooth Stack
> Nov 16 13:55:37 student2 kernel: BT SYS: Current HW: CSR
> Nov 16 13:55:37 student2 kernel: BT SYS: Initialising BTMEM [2500
> bytes]
> Nov 16 13:55:37 student2 kernel: BT SYS: Initialising HCI
> Nov 16 13:55:37 student2 kernel: BT SYS: HCI emulator off
> Nov 16 13:55:37 student2 kernel: BT SYS: Initialising HCI inbuffers
> [800]
> Nov 16 13:55:37 student2 kernel: BT SYS: Reading buffer sizes in HW
> module
> Nov 16 13:55:37 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 10 bytes
> Nov 16 13:55:39 student2 last message repeated 7 times
> Nov 16 13:55:39 student2 kernel: cmd_timeout: Timeout when waiting for
> command response
> Nov 16 13:55:39 student2 kernel: BT SYS: Reading firmware info in HW
> module
> Nov 16 13:55:39 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 10 bytes
> Nov 16 13:55:41 student2 last message repeated 7 times
> Nov 16 13:55:41 student2 kernel: cmd_timeout: Timeout when waiting for
> command response
> Nov 16 13:55:41 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 10 bytes
> Nov 16 13:55:43 student2 last message repeated 7 times
> Nov 16 13:55:43 student2 kernel: cmd_timeout: Timeout when waiting for
> command response
> Nov 16 13:55:43 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 10 bytes
> Nov 16 13:55:44 student2 last message repeated 2 times
> Nov 16 13:55:44 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 5 bytes
> Nov 16 13:55:44 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 5 bytes
> Nov 16 13:55:44 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 10 bytes
> Nov 16 13:55:45 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 5 bytes
> Nov 16 13:55:45 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 5 bytes
> Nov 16 13:55:45 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 1 bytes
> Nov 16 13:55:45 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 9 bytes
> Nov 16 13:55:45 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 10 bytes
> Nov 16 13:55:45 student2 bti: Init stack
> Nov 16 13:55:45 student2 kernel: cmd_timeout: Timeout when waiting for
> command response
> Nov 16 13:55:45 student2 kernel: BT SYS: Host flow control not enabled
> Nov 16 13:55:45 student2 kernel: BT SYS: M/S switch disabled
> Nov 16 13:55:45 student2 kernel: BT SYS: Force M/S switch set to 0
> Nov 16 13:55:45 student2 kernel: BT SYS: ERROR: HCI failed to
> initialise
> Nov 16 13:55:45 student2 kernel: BT SYS: Shutting down BCSP
> Nov 16 13:55:45 student2 kernel: BT SYS: Shutting down BTMEM
> Nov 16 13:55:45 student2 kernel: BT SYS: Initialising Bluetooth Stack
> Nov 16 13:55:45 student2 kernel: BT SYS: Current HW: CSR
> Nov 16 13:55:45 student2 kernel: BT SYS: Initialising BTMEM [2500
> bytes]
> Nov 16 13:55:45 student2 kernel: BT SYS: Initialising HCI
> Nov 16 13:55:45 student2 kernel: BT SYS: HCI emulator off
> Nov 16 13:55:45 student2 kernel: BT SYS: Initialising HCI inbuffers
> [800]
> Nov 16 13:55:45 student2 kernel: BT SYS: Reading buffer sizes in HW
> module
> Nov 16 13:55:45 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 10 bytes
> Nov 16 13:55:47 student2 last message repeated 7 times
> Nov 16 13:55:47 student2 kernel: cmd_timeout: Timeout when waiting for
> command response
> Nov 16 13:55:47 student2 kernel: BT SYS: Reading firmware info in HW
> module
> Nov 16 13:55:47 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 10 bytes
> Nov 16 13:55:49 student2 last message repeated 7 times
> Nov 16 13:55:49 student2 kernel: cmd_timeout: Timeout when waiting for
> command response
> Nov 16 13:55:49 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 10 bytes
> Nov 16 13:55:51 student2 last message repeated 7 times
> Nov 16 13:55:51 student2 kernel: cmd_timeout: Timeout when waiting for
> command response
> Nov 16 13:55:51 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 10 bytes
> Nov 16 13:55:52 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 5 bytes
> Nov 16 13:55:52 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 5 bytes
> Nov 16 13:55:52 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 10 bytes
> Nov 16 13:55:52 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 5 bytes
> Nov 16 13:55:52 student2 last message repeated 3 times
> Nov 16 13:55:53 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 10 bytes
> Nov 16 13:55:53 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 5 bytes
> Nov 16 13:55:53 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 5 bytes
> Nov 16 13:55:53 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 1 bytes
> Nov 16 13:55:53 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 9 bytes
> Nov 16 13:55:53 student2 kernel: cmd_timeout: Timeout when waiting for
> command response
> Nov 16 13:55:53 student2 kernel: BT SYS: Host flow control not enabled
> Nov 16 13:55:53 student2 kernel: BT SYS: M/S switch disabled
> Nov 16 13:55:53 student2 kernel: BT SYS: Force M/S switch set to 0
> Nov 16 13:55:53 student2 kernel: BT SYS: ERROR: HCI failed to
> initialise
> Nov 16 13:55:53 student2 kernel: BT SYS: Shutting down BCSP
> Nov 16 13:55:53 student2 kernel: BT SYS: Shutting down BTMEM
> Nov 16 13:55:53 student2 kernel: BT SYS: ERROR: hci_receive_data:
> discarding 10 bytes
> Nov 16 13:55:54 student2 last message repeated 3 times
> Nov 16 13:55:54 student2 bti: Changing CSR host IF: BCSP -> H4
> Nov 16 13:55:54 student2 kernel: BT (driver) BTSETBCSPMODE: -1
> Nov 16 13:55:54 student2 kernel: BT (driver) BTSETBCSPMODE: 1
> Nov 16 13:55:54 student2 kernel: BT (ldisc) bt_tty_ioctl: Forwarding
> ioctl 0x5401 to n_tty line disc
> Nov 16 13:55:54 student2 kernel: BT (driver) bt_open: Line 7
> Nov 16 13:55:54 student2 kernel: BT (driver) Registering tty on line 7
> (bti)
> Nov 16 13:55:54 student2 kernel: BT (driver) Now 2 open fd:s for
> ttyBTC [bti]
> Nov 16 13:55:54 student2 kernel: BT (driver) BTSETBCSPMODE: -1
> Nov 16 13:55:54 student2 kernel: BT (driver) bt_close: Line 7
> Nov 16 13:55:54 student2 kernel: BT (driver) Unregistering tty on line
> 7
> Nov 16 13:55:54 student2 kernel: BT (ldisc) bt_tty_ioctl: Forwarding
> ioctl 0x5402 to n_tty line disc
> Nov 16 13:55:54 student2 kernel: BT (ldisc) bt_tty_ioctl: Forwarding
> ioctl 0x5401 to n_tty line disc
> Nov 16 13:55:59 student2 kernel: BT (driver) BTINITBCSP
> Nov 16 13:55:59 student2 kernel: BT SYS: Initializing BCSP
> Nov 16 13:55:59 student2 kernel: BT SYS: BCSP initialized and
> syncronized
-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com