My question is :
1. To enable bluez with csr chip, is there anything need to do vs the
standard kernel and bluez package ? Some config need?
2. Did I need to place the bootrap init sequence for the bc4 chip in
some place if I using bluez ? say in kernel or in the bluez user space
scripts? Or , the standard kernel and bluez utility already hand it, But I
just do the wrong way ?
I open the debug message for both hci_uart and hci_core
And this is my operation log :
~ # insmod bluetooth.ko
Bluetooth: Core ver 2.11
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
~ #
~ # insmod hci_uart.ko
Bluetooth: HCI UART driver ver 2.2
Bluetooth: HCI H4 protocol initialized
Bluetooth: HCI BCSP protocol initialized
~ #
~ #
~ # hciattach /dev/ttyS1 bcsp 921600
hci_uart_tty_open: tty c79a2800
hci_uart_tty_ioctl:
bcsp_open: hu c058c9e0
hci_uart_register_dev:
hci_register_dev: c7b01c00 name type 3 owner bf013800
~ #
~ # bcsp_recv: hu c058c9e0 count 15 rx_state 0 rx_count 0
bcsp_complete_rx_pkt: Received seqno 0 from card
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 1 to card
bcsp_complete_rx_pkt: Request for pkt 0 from card
bcsp_pkt_cull: Removing 0 pkts out of 0, up to seqno 7
hci_uart_tty_wakeup:
hci_uart_tx_wakeup:
~ #
~ # hciconfig
hci_dev_get: 0
hci0: Type: UART
BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
DOWN
RX bytes:15 acl:0 sco:0 events:0 errors:0
TX bytes:8 acl:0 sco:0 commands:0 errors:0
~ #
~ # hciconfig hci0 up
hci_dev_get: 0
hci_dev_get: 0
hci_dev_open: hci0 c7b01c00
hci_uart_open: hci0 c7b01c00
__hci_request: hci0 start
hci_init_req: hci0 0
hci_send_cmd: hci0 ogf 0x4 ocf 0x3 plen 0
hci_send_cmd: skb len 3
hci_send_cmd: hci0 ogf 0x4 ocf 0x1 plen 0
hci_cmd_task: hci0 cmd 1
hci_send_frame: hci0 type 1 len 3
hci_uart_send_frame: hci0: type 1 len 3
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 1 to card
bcsp_prepare_pkt: Sending packet with seqno 0
hci_uart_tty_wakeup:
hci_uart_tx_wakeup:
hci_send_cmd: skb len 3
hci_send_cmd: hci0 ogf 0x4 ocf 0x5 plen 0
hci_cmd_task: hci0 cmd 0
hci_send_cmd: skb len 3
hci_send_cmd: hci0 ogf 0x4 ocf 0x9 plen 0
hci_send_cmd: skb len 3
hci_cmd_task: hci0 cmd 0
hci_send_cmd: hci0 ogf 0x3 ocf 0x25 plen 0
hci_send_cmd: skb len 3
hci_send_cmd: hci0 ogf 0x3 ocf 0x5 plen 2
hci_cmd_task: hci0 cmd 0
hci_send_cmd: skb len 5
hci_send_cmd: hci0 ogf 0x3 ocf 0x18 plen 2
hci_cmd_task: hci0 cmd 0
hci_send_cmd: skb len 5
hci_send_cmd: hci0 ogf 0x3 ocf 0x16 plen 2
hci_send_cmd: skb len 5
hci_cmd_task: hci0 cmd 0
hci_cmd_task: hci0 cmd 0
bcsp_timed_event: hu c058c9e0 retransmitting 1 pkts
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 1 to card
bcsp_prepare_pkt: Sending packet with seqno 0
hci_uart_tty_wakeup:
bcsp_recv: hu c058c9e0 count 30 rx_state 1 rx_count 0
bcsp_complete_rx_pkt: Request for pkt 1 from card
bcsp_pkt_cull: Removing 1 pkts out of 1, up to seqno 0
bcsp_complete_rx_pkt: Received seqno 1 from card
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 2 to card
bcsp_complete_rx_pkt: Request for pkt 1 from card
bcsp_pkt_cull: Removing 0 pkts out of 0, up to seqno 0
hci_uart_tx_wakeup:
hci_rx_task: hci0
hci_cmd_task: hci0 cmd 1
hci_send_frame: hci0 type 1 len 3
hci_uart_send_frame: hci0: type 1 len 3
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 2 to card
bcsp_prepare_pkt: Sending packet with seqno 1
hci_uart_tty_wakeup:
bcsp_recv: hu c058c9e0 count 30 rx_state 1 rx_count 0
bcsp_complete_rx_pkt: Request for pkt 2 from card
bcsp_pkt_cull: Removing 1 pkts out of 1, up to seqno 1
bcsp_complete_rx_pkt: Received seqno 2 from card
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 3 to card
bcsp_complete_rx_pkt: Request for pkt 2 from card
bcsp_pkt_cull: Removing 0 pkts out of 0, up to seqno 1
hci_uart_tx_wakeup:
hci_rx_task: hci0
hci_cmd_task: hci0 cmd 1
hci_send_frame: hci0 type 1 len 3
hci_uart_send_frame: hci0: type 1 len 3
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 3 to card
bcsp_prepare_pkt: Sending packet with seqno 2
hci_uart_tty_wakeup:
bcsp_recv: hu c058c9e0 count 10 rx_state 1 rx_count 0
bcsp_complete_rx_pkt: Request for pkt 3 from card
bcsp_pkt_cull: Removing 1 pkts out of 1, up to seqno 2
bcsp_recv: hu c058c9e0 count 20 rx_state 2 rx_count 4
bcsp_complete_rx_pkt: Received seqno 3 from card
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 4 to card
bcsp_complete_rx_pkt: Request for pkt 3 from card
bcsp_pkt_cull: Removing 0 pkts out of 0, up to seqno 2
hci_uart_tx_wakeup:
hci_rx_task: hci0
hci_cmd_task: hci0 cmd 1
hci_send_frame: hci0 type 1 len 3
hci_uart_send_frame: hci0: type 1 len 3
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 4 to card
bcsp_prepare_pkt: Sending packet with seqno 3
hci_uart_tty_wakeup:
bcsp_recv: hu c058c9e0 count 28 rx_state 1 rx_count 0
bcsp_complete_rx_pkt: Request for pkt 4 from card
bcsp_pkt_cull: Removing 1 pkts out of 1, up to seqno 3
bcsp_complete_rx_pkt: Received seqno 4 from card
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 5 to card
bcsp_complete_rx_pkt: Request for pkt 4 from card
bcsp_pkt_cull: Removing 0 pkts out of 0, up to seqno 3
hci_uart_tx_wakeup:
hci_rx_task: hci0
hci_req_complete: hci0 result 0x00
hci_cmd_task: hci0 cmd 1
hci_send_frame: hci0 type 1 len 3
hci_uart_send_frame: hci0: type 1 len 3
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 5 to card
bcsp_prepare_pkt: Sending packet with seqno 4
hci_uart_tty_wakeup:
bcsp_recv: hu c058c9e0 count 24 rx_state 1 rx_count 0
bcsp_complete_rx_pkt: Request for pkt 5 from card
bcsp_pkt_cull: Removing 1 pkts out of 1, up to seqno 4
bcsp_complete_rx_pkt: Received seqno 5 from card
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 6 to card
bcsp_complete_rx_pkt: Request for pkt 5 from card
bcsp_pkt_cull: Removing 0 pkts out of 0, up to seqno 4
hci_uart_tx_wakeup:
hci_rx_task: hci0
hci_cmd_task: hci0 cmd 1
hci_send_frame: hci0 type 1 len 5
hci_uart_send_frame: hci0: type 1 len 5
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 6 to card
bcsp_prepare_pkt: Sending packet with seqno 5
hci_uart_tty_wakeup:
bcsp_recv: hu c058c9e0 count 22 rx_state 1 rx_count 0
bcsp_complete_rx_pkt: Request for pkt 6 from card
bcsp_pkt_cull: Removing 1 pkts out of 1, up to seqno 5
bcsp_complete_rx_pkt: Received seqno 6 from card
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 7 to card
bcsp_complete_rx_pkt: Request for pkt 6 from card
bcsp_pkt_cull: Removing 0 pkts out of 0, up to seqno 5
hci_uart_tx_wakeup:
hci_rx_task: hci0
hci_cmd_task: hci0 cmd 1
hci_send_frame: hci0 type 1 len 5
hci_uart_send_frame: hci0: type 1 len 5
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 7 to card
bcsp_prepare_pkt: Sending packet with seqno 6
hci_uart_tty_wakeup:
bcsp_recv: hu c058c9e0 count 23 rx_state 1 rx_count 0
bcsp_complete_rx_pkt: Request for pkt 7 from card
bcsp_pkt_cull: Removing 1 pkts out of 1, up to seqno 6
bcsp_complete_rx_pkt: Received seqno 7 from card
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 0 to card
bcsp_complete_rx_pkt: Request for pkt 7 from card
bcsp_pkt_cull: Removing 0 pkts out of 0, up to seqno 6
hci_uart_tx_wakeup:
__hci_request: hci0 end: err 0
hci_rx_task: hci0
hci_cmd_task: hci0 cmd 1
hci_send_frame: hci0 type 1 len 5
hci_uart_send_frame: hci0: type 1 len 5
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 0 to card
bcsp_prepare_pkt: Sending packet with seqno 7
hci_uart_tty_wakeup:
bcsp_recv: hu c058c9e0 count 23 rx_state 1 rx_count 0
bcsp_complete_rx_pkt: Request for pkt 0 from card
bcsp_pkt_cull: Removing 1 pkts out of 1, up to seqno 7
bcsp_complete_rx_pkt: Received seqno 0 from card
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 1 to card
bcsp_complete_rx_pkt: Request for pkt 0 from card
bcsp_pkt_cull: Removing 0 pkts out of 0, up to seqno 7
hci_uart_tx_wakeup:
hci_rx_task: hci0
~ #
~ #
~ #
~ # hcitool -i hci0 scan
hci_dev_get: 0
hci_dev_get: 0
hci_dev_get: 0
Scanning ...
hci_dev_get: 0
inquiry_cache_flush: cache c7b01cf0
__hci_request: hci0 start
hci_inq_req: hci0
hci_send_cmd: hci0 ogf 0x1 ocf 0x1 plen 5
hci_send_cmd: skb len 8
hci_cmd_task: hci0 cmd 1
hci_send_frame: hci0 type 1 len 8
hci_uart_send_frame: hci0: type 1 len 8
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 1 to card
bcsp_prepare_pkt: Sending packet with seqno 0
hci_uart_tty_wakeup:
hci_uart_tx_wakeup:
bcsp_timed_event: hu c058c9e0 retransmitting 1 pkts
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 1 to card
bcsp_prepare_pkt: Sending packet with seqno 0
hci_uart_tty_wakeup:
bcsp_recv: hu c058c9e0 count 22 rx_state 1 rx_count 0
bcsp_complete_rx_pkt: Request for pkt 1 from card
bcsp_pkt_cull: Removing 1 pkts out of 1, up to seqno 0
bcsp_complete_rx_pkt: Received seqno 1 from card
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 2 to card
bcsp_complete_rx_pkt: Request for pkt 1 from card
bcsp_pkt_cull: Removing 0 pkts out of 0, up to seqno 0
hci_uart_tx_wakeup:
hci_rx_task: hci0
bcsp_recv: hu c058c9e0 count 11 rx_state 1 rx_count 0
bcsp_complete_rx_pkt: Received seqno 2 from card
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 3 to card
bcsp_complete_rx_pkt: Request for pkt 1 from card
bcsp_pkt_cull: Removing 0 pkts out of 0, up to seqno 0
hci_uart_tty_wakeup:
hci_uart_tx_wakeup:
hci_rx_task: hci0
hci_req_complete: hci0 result 0x00
__hci_request: hci0 end: err 0
inquiry_cache_dump: cache c7b01cf0, copied 0
hci_inquiry: num_rsp 0
hci_dev_get: 0
~ #
Many thanks.
Raymond
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth"
in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html