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

[bluetooth-dev] incoming serial data loss




Hi there,

I found that the OpenBT's HCI UART driver loses the incoming data on the
Motorola Coldfire M5307 development board.  Can this be due to one of the
following facts?
      a) Implementation of the Coldfire serial driver.
      b) Differences between no-MMU uClinux and Linux.
      b) Hardware malfunction.
      c) Disabling interrupts with cli() in hci.c and bluetooth.c.

Particularly, the connection complete event misses the status return
parameter and a piece of BD_ADDR:
  -->|X| (12):
  0x04 0x03 0x0b 0x01 0x00 0x79 0xa7 0xcd 0x50 0x00 0x01 0x00

I attached the full log of my connection attempt from the laptop below.

Note that the serial data loss happens only if I enable security manager,
incoming buffers and L2CAP timers.  When all three are disabled, the SDP
browsing works fine and PPP link can be established.  However, the data
exchange seems to stall after browsing few HTML pages.

Ilguiz

===================================================================

-->|X| (13):
0x04 0x04 0x0a 0x79 0xa7 0x14 0xcd 0x50 0x00 0x0c 0x01 0x76 0x01

hci_receive_data:  (13):
0x04 0x04 0x0a 0x79 0xa7 0x14 0xcd 0x50 0x00 0x0c 0x01 0x76 0x01
HCI: hci_receive_data: WAIT_FOR_PACKET_TYPE
HCI: hci_receive_data: WAIT_FOR_EVENT_TYPE
HCI: hci_receive_data: WAIT_FOR_EVENT_LENGTH

process_event (10):
0x79 0xa7 0x14 0xcd 0x50 0x00 0x0c 0x01 0x76 0x01
HCI: process_event: CONNECTION_REQUEST
HCI: lp_connect_rsp: Status: 1
HCI: accept_connection_request: bd_addr 79 a7 14 cd 50 0
HCI: insert_cmd
HCI: send_cmd_queue: start: Num_HCI_Command_Packets=36

send_cmd_queue:  (11):
0x01 0x09 0x04 0x07 0x79 0xa7 0x14 0xcd 0x50 0x00 0x01

<--|X| (11):
0x01 0x09 0x04 0x07 0x79 0xa7 0x14 0xcd 0x50 0x00 0x01
HCI: send_cmd_queue: end : 0 cmds left in queue

-->|X| (7):
0x04 0x0f 0x04 0x00 0x08 0x09 0x04

hci_receive_data:  (7):
0x04 0x0f 0x04 0x00 0x08 0x09 0x04
HCI: hci_receive_data: WAIT_FOR_PACKET_TYPE
HCI: hci_receive_data: WAIT_FOR_EVENT_TYPE
HCI: hci_receive_data: WAIT_FOR_EVENT_LENGTH

process_event (4):
0x00 0x08 0x09 0x04
HCI: release_cmd_timer
HCI: process_event: COMMAND_STATUS
HCI: update_nhcp: Num_HCI_Command_Packets=8
HCI: send_cmd_queue: start: Num_HCI_Command_Packets=8
HCI: send_cmd_queue: end : 0 cmds left in queue

-->|X| (12):
0x04 0x03 0x0b 0x01 0x00 0x79 0xa7 0xcd 0x50 0x00 0x01 0x00

hci_receive_data:  (12):
0x04 0x03 0x0b 0x01 0x00 0x79 0xa7 0xcd 0x50 0x00 0x01 0x00
HCI: hci_receive_data: WAIT_FOR_PACKET_TYPE
HCI: hci_receive_data: WAIT_FOR_EVENT_TYPE
HCI: hci_receive_data: WAIT_FOR_EVENT_LENGTH
HCI: hci_receive_data: WAIT_FOR_EVENT_PARAM

-->|X| (8):
0x02 0x01 0x20 0x0c 0x00 0x08 0x00 0x01

hci_receive_data:  (8):
0x02 0x01 0x20 0x0c 0x00 0x08 0x00 0x01
HCI: hci_receive_data: WAIT_FOR_EVENT_PARAM

process_event (11):
0x01 0x00 0x79 0xa7 0xcd 0x50 0x00 0x01 0x00 0x02 0x01
HCI: process_event: CONNECTION_COMPLETE: Unknown HCI Command
HCI: hci_update_load_factor: Load factor changed from 0 to 1
HCI: insert_cmd
BT SYS: ERROR :Failure establishing SCO link: Unknown HCI Command
HCI: hci_receive_data: WAIT_FOR_PACKET_TYPE
BT SYS: ERROR :hci_receive_data: discarding 6 bytes
HCI: send_cmd_queue: start: Num_HCI_Command_Packets=8

send_cmd_queue:  (7):
0x01 0x24 0x0c 0x03 0x20 0x03 0x02

<--|X| (7):
0x01 0x24 0x0c 0x03 0x20 0x03 0x02
HCI: send_cmd_queue: end : 0 cmds left in queue

-->|X| (8):
0x00 0x02 0x07 0x00 0x01 0x00 0x40 0x00

hci_receive_data:  (8):
0x00 0x02 0x07 0x00 0x01 0x00 0x40 0x00
HCI: hci_receive_data: WAIT_FOR_PACKET_TYPE
BT SYS: ERROR :hci_receive_data: discarding 8 bytes

-->|X| (7):
0x04 0x0e 0x04 0x08 0x24 0x0c 0x00

hci_receive_data:  (7):
0x04 0x0e 0x04 0x08 0x24 0x0c 0x00
HCI: hci_receive_data: WAIT_FOR_PACKET_TYPE
HCI: hci_receive_data: WAIT_FOR_EVENT_TYPE
HCI: hci_receive_data: WAIT_FOR_EVENT_LENGTH

process_event (4):
0x08 0x24 0x0c 0x00
HCI: process_event: COMMAND_COMPLETE
HCI: release_cmd_timer
HCI: process_return_param: WRITE_CLASS_OF_DEVICE
HCI: update_nhcp: Num_HCI_Command_Packets=8
HCI: send_cmd_queue: start: Num_HCI_Command_Packets=8
HCI: send_cmd_queue: end : 0 cmds left in queue

-->|X| (1):
0x04

hci_receive_data:  (1):
0x04
HCI: hci_receive_data: WAIT_FOR_PACKET_TYPE

-->|X| (5):
0x05 0x04 0x00 0x00 0x13

hci_receive_data:  (5):
0x05 0x04 0x00 0x00 0x13
HCI: hci_receive_data: WAIT_FOR_EVENT_TYPE
HCI: hci_receive_data: WAIT_FOR_EVENT_LENGTH
HCI: hci_receive_data: WAIT_FOR_EVENT_PARAM

#

===================================================================


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