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

[bluetooth-dev] CSR, Invalid argument



Hi everyone,
    I am using CSR (CASIRA) and red-hat 7.2. the firmware of the CSR is the 
bc01_hci-12.3_casira (as well as i have tried HCIStack1[1].1v12.7_casira). 
but i find that whenever i start bti , i got an error saying "csr_bcsp_to_h4 
: Invalid argument". I have set
"Host Interface" to "UART Link running H4".
"UART: Stop Bits" to "1 stop bit".
"UART: Parity Bits" to "No parity".
"UART: Flow Control Enable" to "Enabled".
"UART: RTS Auto Enabled to "Disabled".
"UART: RTS Enabled" to "Enabled".
"UART: Non BCSP Enabled" to "Enabled".
"UART Baud Rate" to "115200".
but the error still there. Could anyone teach me how to get the stack 
connected with CSR??
the log is as below: (there is a timeout and i don't know why...)

Dec  4 17:40:05 SIUMAMA bti: Bluetooth daemon starting
Dec  4 17:40:05 SIUMAMA kernel: BT (driver) bt_open: Line 7
Dec  4 17:40:05 SIUMAMA kernel: BT (driver) Registering tty on line 7 (bti)
Dec  4 17:40:05 SIUMAMA kernel: BT (driver) Now 1 open fd:s for ttyBTC [bti]
Dec  4 17:40:05 SIUMAMA kernel: BT (driver) bt_close: Line 7
Dec  4 17:40:05 SIUMAMA kernel: BT (driver) Unregistering tty on line 7
Dec  4 17:40:05 SIUMAMA kernel: BT (driver) bt_open: Line 7
Dec  4 17:40:05 SIUMAMA kernel: BT (driver) Registering tty on line 7 (bti)
Dec  4 17:40:05 SIUMAMA kernel: BT (driver) Now 1 open fd:s for ttyBTC [bti]
Dec  4 17:40:05 SIUMAMA kernel: BT (driver) BTSETBCSPMODE: -1
Dec  4 17:40:05 SIUMAMA kernel: BT (driver) bt_close: Line 7
Dec  4 17:40:05 SIUMAMA kernel: BT (driver) Unregistering tty on line 7
Dec  4 17:40:05 SIUMAMA kernel: BT (ldisc) bt_tty_open
Dec  4 17:40:05 SIUMAMA bti: Registered bluetooth line discipline on 
/dev/ttyS0
Dec  4 17:40:05 SIUMAMA kernel: BT SYS: Setting BT driver to use serial tty
Dec  4 17:40:05 SIUMAMA bti: Init stack
Dec  4 17:40:05 SIUMAMA sdp_server: SDP Server starting
Dec  4 17:40:05 SIUMAMA kernel: BT (driver) bt_open: Line 7
Dec  4 17:40:05 SIUMAMA kernel: BT (driver) Registering tty on line 7 (bti)
Dec  4 17:40:05 SIUMAMA kernel: BT (driver) Now 1 open fd:s for ttyBTC [bti]
Dec  4 17:40:05 SIUMAMA kernel: BT (ldisc) bt_tty_ioctl: Forwarding ioctl 
0x540b to n_tty line disc
Dec  4 17:40:05 SIUMAMA kernel: BT SYS: Initialising Bluetooth Stack
Dec  4 17:40:05 SIUMAMA kernel: BT SYS: Current HW: CSR
Dec  4 17:40:05 SIUMAMA kernel: BT SYS: Initialising BTMEM [2500 bytes]
Dec  4 17:40:05 SIUMAMA kernel: BT SYS: Initialising HCI
Dec  4 17:40:05 SIUMAMA kernel: BT SYS: HCI emulator off
Dec  4 17:40:05 SIUMAMA kernel: BT SYS: Initialising HCI inbuffers [800]
Dec  4 17:40:05 SIUMAMA kernel: HCI: init_cmd_buf: Initializing
Dec  4 17:40:05 SIUMAMA kernel: BT SYS: Reading buffer sizes in HW module
Dec  4 17:40:05 SIUMAMA kernel: HCI: hci_read_buffer_size
Dec  4 17:40:05 SIUMAMA kernel: HCI: start_cmd_timer
Dec  4 17:40:05 SIUMAMA kernel: HCI: insert_cmd
Dec  4 17:40:05 SIUMAMA kernel: HCI: send_cmd_queue: start: 
Num_HCI_Command_Packets=1
Dec  4 17:40:05 SIUMAMA kernel:
Dec  4 17:40:05 SIUMAMA kernel: send_cmd_queue:  (4):
Dec  4 17:40:05 SIUMAMA kernel: 0x01 0x05 0x10 0x00
Dec  4 17:40:05 SIUMAMA kernel: HCI: send_cmd_queue: end : 0 cmds left in 
queue
Dec  4 17:40:07 SIUMAMA kernel: cmd_timeout: Timeout when waiting for 
command response              <----here is an timeout, i don't know 
why......
Dec  4 17:40:07 SIUMAMA kernel: BT SYS: Reading firmware info in HW module
Dec  4 17:40:07 SIUMAMA kernel: HCI: hci_read_firmware_rev_info [CSR] 
BuildID/ChipVer/ChipRev
Dec  4 17:40:07 SIUMAMA kernel: HCI: start_cmd_timer
Dec  4 17:40:07 SIUMAMA kernel: HCI: insert_cmd
Dec  4 17:40:07 SIUMAMA kernel: HCI: send_cmd_queue: start: 
Num_HCI_Command_Packets=1
Dec  4 17:40:07 SIUMAMA kernel:
Dec  4 17:40:07 SIUMAMA kernel: send_cmd_queue:  (27):
Dec  4 17:40:07 SIUMAMA kernel: 0x01 0x00 0xfc 0x17 0xc2 0x00 0x00 0x0b 0x00 
0x00 0x00 0x19 0x28 0x00 0x00 0x00
Dec  4 17:40:07 SIUMAMA kernel: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00
Dec  4 17:40:07 SIUMAMA kernel: HCI: send_cmd_queue: end : 0 cmds left in 
queue
Dec  4 17:40:09 SIUMAMA kernel: cmd_timeout: Timeout when waiting for 
command response
Dec  4 17:40:09 SIUMAMA kernel: HCI: start_cmd_timer
Dec  4 17:40:09 SIUMAMA kernel: HCI: insert_cmd
Dec  4 17:40:09 SIUMAMA kernel: HCI: send_cmd_queue: start: 
Num_HCI_Command_Packets=1
Dec  4 17:40:09 SIUMAMA kernel:
Dec  4 17:40:09 SIUMAMA kernel: send_cmd_queue:  (27):
Dec  4 17:40:09 SIUMAMA kernel: 0x01 0x00 0xfc 0x17 0xc2 0x00 0x00 0x0b 0x00 
0x01 0x00 0x1a 0x28 0x00 0x00 0x00
Dec  4 17:40:09 SIUMAMA kernel: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00
Dec  4 17:40:09 SIUMAMA kernel: HCI: send_cmd_queue: end : 0 cmds left in 
queue
Dec  4 17:40:11 SIUMAMA kernel: cmd_timeout: Timeout when waiting for 
command response
Dec  4 17:40:11 SIUMAMA kernel: HCI: start_cmd_timer
Dec  4 17:40:11 SIUMAMA kernel: HCI: insert_cmd
Dec  4 17:40:11 SIUMAMA kernel: HCI: send_cmd_queue: start: 
Num_HCI_Command_Packets=1
Dec  4 17:40:11 SIUMAMA kernel:
Dec  4 17:40:11 SIUMAMA kernel: send_cmd_queue:  (27):
Dec  4 17:40:11 SIUMAMA kernel: 0x01 0x00 0xfc 0x17 0xc2 0x00 0x00 0x0b 0x00 
0x02 0x00 0x1b 0x28 0x00 0x00 0x00
Dec  4 17:40:11 SIUMAMA kernel: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00
Dec  4 17:40:11 SIUMAMA kernel: HCI: send_cmd_queue: end : 0 cmds left in 
queue
Dec  4 17:40:13 SIUMAMA kernel: cmd_timeout: Timeout when waiting for 
command response
Dec  4 17:40:13 SIUMAMA kernel: BT SYS: Host flow control not enabled
Dec  4 17:40:13 SIUMAMA kernel: BT SYS: M/S switch disabled
Dec  4 17:40:13 SIUMAMA kernel: BT SYS: Force M/S switch set to 0
Dec  4 17:40:13 SIUMAMA kernel: BT SYS: ERROR: HCI failed to initialise
Dec  4 17:40:13 SIUMAMA kernel: BT SYS: Shutting down BTMEM
Dec  4 17:40:13 SIUMAMA bti: Init stack
Dec  4 17:40:13 SIUMAMA kernel: BT SYS: Initialising Bluetooth Stack
Dec  4 17:40:13 SIUMAMA kernel: BT SYS: Current HW: CSR
Dec  4 17:40:13 SIUMAMA kernel: BT SYS: Initialising BTMEM [2500 bytes]
Dec  4 17:40:13 SIUMAMA kernel: BT SYS: Initialising HCI
Dec  4 17:40:13 SIUMAMA kernel: BT SYS: HCI emulator off
Dec  4 17:40:13 SIUMAMA kernel: BT SYS: Initialising HCI inbuffers [800]
Dec  4 17:40:13 SIUMAMA kernel: HCI: init_cmd_buf: Initializing
Dec  4 17:40:13 SIUMAMA kernel: BT SYS: Reading buffer sizes in HW module
Dec  4 17:40:13 SIUMAMA kernel: HCI: hci_read_buffer_size
Dec  4 17:40:13 SIUMAMA kernel: HCI: start_cmd_timer
Dec  4 17:40:13 SIUMAMA kernel: HCI: insert_cmd
Dec  4 17:40:13 SIUMAMA kernel: HCI: send_cmd_queue: start: 
Num_HCI_Command_Packets=1
Dec  4 17:40:13 SIUMAMA kernel:
Dec  4 17:40:13 SIUMAMA kernel: send_cmd_queue:  (4):
Dec  4 17:40:13 SIUMAMA kernel: 0x01 0x05 0x10 0x00
Dec  4 17:40:13 SIUMAMA kernel: HCI: send_cmd_queue: end : 0 cmds left in 
queue
Dec  4 17:40:15 SIUMAMA kernel: cmd_timeout: Timeout when waiting for 
command response
Dec  4 17:40:15 SIUMAMA kernel: BT SYS: Reading firmware info in HW module
Dec  4 17:40:15 SIUMAMA kernel: HCI: hci_read_firmware_rev_info [CSR] 
BuildID/ChipVer/ChipRev
Dec  4 17:40:15 SIUMAMA kernel: HCI: start_cmd_timer
Dec  4 17:40:15 SIUMAMA kernel: HCI: insert_cmd
Dec  4 17:40:15 SIUMAMA kernel: HCI: send_cmd_queue: start: 
Num_HCI_Command_Packets=1
Dec  4 17:40:15 SIUMAMA kernel:
Dec  4 17:40:15 SIUMAMA kernel: send_cmd_queue:  (27):
Dec  4 17:40:15 SIUMAMA kernel: 0x01 0x00 0xfc 0x17 0xc2 0x00 0x00 0x0b 0x00 
0x03 0x00 0x19 0x28 0x00 0x00 0x00
Dec  4 17:40:15 SIUMAMA kernel: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00
Dec  4 17:40:15 SIUMAMA kernel: HCI: send_cmd_queue: end : 0 cmds left in 
queue
Dec  4 17:40:17 SIUMAMA kernel: cmd_timeout: Timeout when waiting for 
command response
Dec  4 17:40:17 SIUMAMA kernel: HCI: start_cmd_timer
Dec  4 17:40:17 SIUMAMA kernel: HCI: insert_cmd
Dec  4 17:40:17 SIUMAMA kernel: HCI: send_cmd_queue: start: 
Num_HCI_Command_Packets=1
Dec  4 17:40:17 SIUMAMA kernel:
Dec  4 17:40:17 SIUMAMA kernel: send_cmd_queue:  (27):
Dec  4 17:40:17 SIUMAMA kernel: 0x01 0x00 0xfc 0x17 0xc2 0x00 0x00 0x0b 0x00 
0x04 0x00 0x1a 0x28 0x00 0x00 0x00
Dec  4 17:40:17 SIUMAMA kernel: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00
Dec  4 17:40:17 SIUMAMA kernel: HCI: send_cmd_queue: end : 0 cmds left in 
queue
Dec  4 17:40:17 SIUMAMA kernel:
Dec  4 17:40:17 SIUMAMA kernel: hci_receive_data:  (6):
Dec  4 17:40:17 SIUMAMA kernel: 0x00 0x00 0x00 0x00 0x1c 0xe0
Dec  4 17:40:17 SIUMAMA kernel: hci_receive_data: hci-6
Dec  4 17:40:17 SIUMAMA kernel: HCI: hci_receive_data: WAIT_FOR_PACKET_TYPE
Dec  4 17:40:17 SIUMAMA kernel: BT SYS: ERROR: hci_receive_data: discarding 
6 bytes
Dec  4 17:40:19 SIUMAMA kernel: cmd_timeout: Timeout when waiting for 
command response
Dec  4 17:40:19 SIUMAMA kernel: HCI: start_cmd_timer
Dec  4 17:40:19 SIUMAMA kernel: HCI: insert_cmd
Dec  4 17:40:19 SIUMAMA kernel: HCI: send_cmd_queue: start: 
Num_HCI_Command_Packets=1
Dec  4 17:40:19 SIUMAMA kernel:
Dec  4 17:40:19 SIUMAMA kernel: send_cmd_queue:  (27):
Dec  4 17:40:19 SIUMAMA kernel: 0x01 0x00 0xfc 0x17 0xc2 0x00 0x00 0x0b 0x00 
0x05 0x00 0x1b 0x28 0x00 0x00 0x00
Dec  4 17:40:19 SIUMAMA kernel: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00
Dec  4 17:40:19 SIUMAMA kernel: HCI: send_cmd_queue: end : 0 cmds left in 
queue
Dec  4 17:40:21 SIUMAMA kernel: cmd_timeout: Timeout when waiting for 
command response
Dec  4 17:40:21 SIUMAMA kernel: BT SYS: Host flow control not enabled
Dec  4 17:40:21 SIUMAMA kernel: BT SYS: M/S switch disabled
Dec  4 17:40:21 SIUMAMA kernel: BT SYS: Force M/S switch set to 0
Dec  4 17:40:21 SIUMAMA kernel: BT SYS: ERROR: HCI failed to initialise
Dec  4 17:40:21 SIUMAMA kernel: BT SYS: Shutting down BTMEM
Dec  4 17:40:22 SIUMAMA kernel: BT (driver) BTSETBCSPMODE: -1
Dec  4 17:40:22 SIUMAMA bti: Changing CSR host IF: BCSP -> H4
Dec  4 17:40:22 SIUMAMA kernel: BT (driver) BTSETBCSPMODE: 1
Dec  4 17:40:22 SIUMAMA kernel: BT (ldisc) bt_tty_ioctl: Forwarding ioctl 
0x5401 to n_tty line disc
Dec  4 17:40:22 SIUMAMA kernel: BT (driver) bt_open: Line 7
Dec  4 17:40:22 SIUMAMA kernel: BT (driver) Registering tty on line 7 (bti)
Dec  4 17:40:22 SIUMAMA kernel: BT (driver) Now 2 open fd:s for ttyBTC [bti]
Dec  4 17:40:22 SIUMAMA kernel: BT (driver) BTSETBCSPMODE: -1
Dec  4 17:40:22 SIUMAMA kernel: BT (driver) bt_close: Line 7
Dec  4 17:40:22 SIUMAMA kernel: BT (driver) Unregistering tty on line 7
Dec  4 17:40:22 SIUMAMA kernel: BT (ldisc) bt_tty_ioctl: Forwarding ioctl 
0x5402 to n_tty line disc
Dec  4 17:40:22 SIUMAMA kernel: BT (ldisc) bt_tty_ioctl: Forwarding ioctl 
0x5401 to n_tty line disc
Dec  4 17:40:27 SIUMAMA bti: Shutting down bluetooth stack
Dec  4 17:40:27 SIUMAMA kernel: BT SYS: Shutting down bluetooth stack
Dec  4 17:40:27 SIUMAMA kernel: BT SYS: Shutting down BTMEM
Dec  4 17:40:27 SIUMAMA kernel: BT (driver) bt_close: Line 7
Dec  4 17:40:27 SIUMAMA kernel: BT (driver) Unregistering tty on line 7
Dec  4 17:40:27 SIUMAMA kernel: BT (ldisc) bt_tty_ioctl: Forwarding ioctl 
0x540b to n_tty line disc


thx,
siumama

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

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