~ # 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
~ #
Sorry , the above one do not enable scan
the following log continue with the above operation:
~ # hciconfig hci0 piscan
hci_dev_get: 0
hci_dev_get: 0
__hci_request: hci0 start
hci_scan_req: hci0 3
hci_send_cmd: hci0 ogf 0x3 ocf 0x1a plen 1
hci_send_cmd: skb len 4
hci_cmd_task: hci0 cmd 1
hci_send_frame: hci0 type 1 len 4
hci_uart_send_frame: hci0: type 1 len 4
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 5 to card
bcsp_prepare_pkt: Sending packet with seqno 2
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 5 to card
bcsp_prepare_pkt: Sending packet with seqno 2
hci_uart_tty_wakeup:
bcsp_recv: hu c058c9e0 count 22 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_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 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_sent_cmd_data: hci0 ogf 0x3 ocf 0x1a
hci_req_complete: hci0 result 0x00
__hci_request: hci0 end: err 0
~ #
~ # hciconfig
hci_dev_get: 0
hci0: Type: UART
BD Address: 00:02:5B:00:A5:A5 ACL MTU: 310:10 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN INQUIRY
RX bytes:335 acl:0 sco:0 events:14 errors:0
TX bytes:345 acl:0 sco:0 commands:17 errors:0
~ #
~ #
~ # 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 6 to card
bcsp_prepare_pkt: Sending packet with seqno 3
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 6 to card
bcsp_prepare_pkt: Sending packet with seqno 3
hci_uart_tty_wakeup:
bcsp_recv: hu c058c9e0 count 22 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 6 from card
hci_uart_tx_wakeup:
bcsp_prepare_pkt: We request packet no 7 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_request: hci0 end: err -110
Inquiry failed: Connection timed out
~ #
~ # 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_request: hci0 end: err -110
Inquiry failed: Connection timed out
~ #
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