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

[bluetooth-dev] send_acl_packet error



I am still using the 20001115 release between an ARM and and a PC. It seems that
UART problems have gone away and I am connected through ppp to the network :
PC <-ppp-> ARM BOARD <-ethernet-> NETWORK
ppp over rf_comm

Nevertheless, when I try to send or receive many data, the following erro
occures :

 send_acl_packet : negative cur_len... (-135)

and afterwards, the connexion is stalled for a while ; but the stack is not
halted or crashed and after a while data come again in my browser.

What I find is that when the acl_num before is 4
and the acl_num after is 9
I always got this error...

It seems that when the NCP event is treated too late (after the stack decides to
fill the packet (5)), there is a shift.

Has anyone encountered such a problem ?

Thank you.

Xavier


HCI: <--162 (5)
HCI: send_acl_packet: send 135 bytes (excl HCI header) out of 135
HCI: send_acl_packet: There are 5 bytes space for the headers
hci-8
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:  (5)
   0x01 0x01 0x00 0x05 0x00
HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
HCI: update_ncp: acl_num before : 4
HCI: update_ncp: acl_num after : 9
    BTMEM get_bt_buf : returning 0
HCI: update_ncp: Sending HCI packet
HCI: send_acl_packet: send 135 bytes (excl HCI header) out of 135
HCI: send_acl_packet: There are 5 bytes space for the headers

send_acl_packet: (140)
   0x02 0x01 0x20 0x87 0x00 0x83 0x00 0x40 0x00 0x09 0xef 0xff 0x78 0x51 0xdb
0x77
   0x28 0xd8 0xba 0x42 0xd8 0xed 0x12 0x1b 0x83 0x24 0x61 0x43 0xc3 0x9a 0x69
0xa2
   0xa2 0xd8 0x05 0xb3 0x5d 0x22 0xed 0x6c 0x33 0xb6 0x05 0xac 0x28 0xaa 0x92
0x82
   0xba 0xbd 0xf3 0x91 0xdd 0xbe 0xd1 0x27 0x90 0xd3 0x1a 0x83 0x0d 0x33 0x69
0x89
   0x74 0x22 0x7d 0x5e 0x65 0x5b 0x94 0x50 0xcb 0x35 0xa7 0x08 0x4d 0x29 0x69
0x9f

send_acl_packet: (140)0x50 0x48 0xcf 0xbd 0xe6 0xd6 0x45 0x00 0xb3 0x9d 0x64
0xd4 0
   0xc2 0xb4 0x96 0x29 0xb7 0xfb 0x6f 0xc3 0x4d 0x29 0x5b 0x43 0x45 0x19 0x5a
0x33
   0x14 0xa2 0xd5 0x1d 0xa3 0xc6 0x2a 0x58 0xd8 0x2e 0xda 0x0a 0xa9 0xb4 0xad
0xb0
   0x7d 0x5d 0xa1 0xd9 0x4f 0x59 0x55 0x6d 0x49 0x9f 0x3d 0x40
HCI: now c = 135
HCI: send_acl_packet: unsubscribing tx_buf.
    BTMEM unsubscribe_bt_buf : 140 bytes (not incl hdrs) at pos 0
||||  (272)
    BTMEM get_bt_buf : no data in buffer
HCI: <--0 (8)
HCI: <NCP:8>

   0x02 0x01 0x20 0x87 0x00 0x83 0x00 0x40 0x00 0x09 0xef 0xff 0x78 0x51 0xdb
0x77
   0x28 0xd8 0xba 0x42 0xd8 0xed 0x12 0x1b 0x83 0x24 0x61 0x43 0xc3 0x9a 0x69
0xa2
   0xa2 0xd8 0x05 0xb3 0x5d 0x22 0xed 0x6c 0x33 0xb6 0x05 0xac 0x28 0xaa 0x92
0x82
   0xba 0xbd 0xf3 0x91 0xdd 0xbe 0xd1 0x27 0x90 0xd3 0x1a 0x83 0x0d 0x33 0x69
0x89
   0x74 0x22 0x7d 0x5e 0x65 0x5b 0x94 0x50 0xcb 0x35 0xa7 0x08 0x4d 0x29 0x69
0x9f
   0x50 0x48 0xcf 0xbd 0xe6 0xd6 0x45 0x00 0xb3 0x9d 0x64 0xd4 0x56 0xfd 0xd4
0xa6
   0xc2 0xb4 0x96 0x29 0xb7 0xfb 0x6f 0xc3 0x4d 0x29 0x5b 0x43 0x45 0x19 0x5a
0x33
   0x14 0xa2 0xd5 0x1d 0xa3 0xc6 0x2a 0x58 0xd8 0x2e 0xda 0x0a 0xa9 0xb4 0xad
0xb0
   0x7d 0x5d 0xa1 0xd9 0x4f 0x59 0x55 0x6d 0x49 0x9f 0x3d 0x40
HCI: now c = 135
send_acl_packet : negative cur_len... (-135)
-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com