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

[bluetooth-dev] Large file transfert with CSR and BCSP



Hello,

we are trying to do file transfert via Obex (OpenObex) on the OpenBT
stack. As we have some data corruption during the transfert with Obex
over RFCOMM in H4 mode, we have switch our CSR module (BlueCore bc01b if
I remember correctly), to BCSP mode.

So, without BCSP, the data transfert at 115'200 cause lot of problems,
and the obex link stop really early (usualy in the first seconds). At
57'600, the link is more stable, but not enough to assure a transfert of
a 100k file.

With BCSP, all is a lot better : we have do some transfert at 57'600 of
files bigger than 1 MB, and at 115'200 transfert of files of more than
200k. But...

... But sometime, the link is stopped, even with BCSP. :-(
I don't understand why, as I was thinking the BCSP protocol is for
having a reliable connection. After the tests I have done, I agree the
BCSP link is a lot more reliable than with H4, but not enough to have a
safe link.

Attached is some logs of a transfert of a 720k file. The transfert stop
at about half of it (about 350k). Both ends of the link runs OpenBT from
the current CVS, with BCSP/CSR specific compiled in, on Linux 2.4.18
kernel.

The errors causing a broken link can be one of :

  - BT SYS: ERROR: l2cap_receive_data: packet too big [55683], discard packet
  - BT SYS: ERROR: hci_receive_acl: 34764 is too big for our HCI input buffers -- discarding buffer

(55683 and 34764 are always different. I suspect this is some of the
transfered data)

What I think when I see this is : ok, BCSP correct corruption inside the
packets, not in the headers of the packets. Are this right ? And, if
yes, what can we do to prevent this ? (no, using 9'600 for the
connection is not a good answer, we _really_ need a 115'200 link ;-) ).

Another question is : sometime we have the error :

  - BCSP: bcsp_integrity_receive: Incorrect length, discarding data

How is this managed at the "user level". This mean, if this error come
during a file transfert, is the received file exactly the same as the
sended one or not ?

Thanks in advance for any help.

Good day.

		Olivier
-- 
Olivier Bornet                      SMARTDATA SA
Olivier.Bornet@xxxxxxx.ch         Centre du Parc
http://www.smartdata.ch             av. des Prés-Beudin 20
Phone +41-27-723'55'03              CH-1920 Martigny
Fax   +41-27-723'55'19              GPG key ID: C53D9218
Jul 19 16:53:50 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:53:54 xenon last message repeated 8 times
Jul 19 16:53:54 xenon kernel: BCSP: bcsp_integrity_receive: Incorrect length, discarding data
Jul 19 16:53:54 xenon kernel: seq out-of-order [exp:7, got:0], send ack
Jul 19 16:53:54 xenon kernel: seq out-of-order [exp:7, got:1], send ack
Jul 19 16:53:54 xenon kernel: seq out-of-order [exp:7, got:2], send ack
Jul 19 16:53:54 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:53:56 xenon last message repeated 10 times
Jul 19 16:53:56 xenon kernel: seq out-of-order [exp:5, got:6], send ack
Jul 19 16:53:56 xenon kernel: seq out-of-order [exp:5, got:7], send ack
Jul 19 16:53:56 xenon kernel: seq out-of-order [exp:5, got:0], send ack
Jul 19 16:53:57 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:53:58 xenon last message repeated 7 times
Jul 19 16:53:58 xenon kernel: BCSP: bcsp_integrity_receive: Incorrect length, discarding data
Jul 19 16:53:58 xenon kernel: seq out-of-order [exp:6, got:7], send ack
Jul 19 16:53:58 xenon kernel: seq out-of-order [exp:6, got:0], send ack
Jul 19 16:53:58 xenon kernel: seq out-of-order [exp:6, got:1], send ack
Jul 19 16:53:58 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:53:59 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:53:59 xenon kernel: seq out-of-order [exp:1, got:2], send ack
Jul 19 16:53:59 xenon kernel: seq out-of-order [exp:1, got:3], send ack
Jul 19 16:53:59 xenon kernel: seq out-of-order [exp:1, got:4], send ack
Jul 19 16:53:59 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:04 xenon last message repeated 26 times
Jul 19 16:54:04 xenon kernel: BCSP: bcsp_integrity_receive: Incorrect length, discarding data
Jul 19 16:54:04 xenon kernel: seq out-of-order [exp:0, got:1], send ack
Jul 19 16:54:04 xenon kernel: seq out-of-order [exp:0, got:2], send ack
Jul 19 16:54:04 xenon kernel: seq out-of-order [exp:0, got:3], send ack
Jul 19 16:54:04 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:05 xenon last message repeated 4 times
Jul 19 16:54:05 xenon kernel: seq out-of-order [exp:7, got:0], send ack
Jul 19 16:54:06 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:06 xenon last message repeated 2 times
Jul 19 16:54:06 xenon kernel: BCSP: bcsp_integrity_receive: Incorrect length, discarding data
Jul 19 16:54:06 xenon kernel: seq out-of-order [exp:2, got:3], send ack
Jul 19 16:54:06 xenon kernel: seq out-of-order [exp:2, got:4], send ack
Jul 19 16:54:06 xenon kernel: seq out-of-order [exp:2, got:5], send ack
Jul 19 16:54:06 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:07 xenon last message repeated 4 times
Jul 19 16:54:07 xenon kernel: seq out-of-order [exp:0, got:1], send ack
Jul 19 16:54:07 xenon kernel: seq out-of-order [exp:0, got:2], send ack
Jul 19 16:54:07 xenon kernel: seq out-of-order [exp:0, got:3], send ack
Jul 19 16:54:08 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:08 xenon last message repeated 2 times
Jul 19 16:54:08 xenon kernel: BCSP: bcsp_integrity_receive: Incorrect length, discarding data
Jul 19 16:54:08 xenon kernel: seq out-of-order [exp:6, got:7], send ack
Jul 19 16:54:08 xenon kernel: seq out-of-order [exp:6, got:0], send ack
Jul 19 16:54:08 xenon kernel: seq out-of-order [exp:6, got:1], send ack
Jul 19 16:54:08 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:14 xenon last message repeated 23 times
Jul 19 16:54:14 xenon kernel: seq out-of-order [exp:5, got:6], send ack
Jul 19 16:54:14 xenon kernel: seq out-of-order [exp:5, got:7], send ack
Jul 19 16:54:14 xenon kernel: seq out-of-order [exp:5, got:0], send ack
Jul 19 16:54:14 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:16 xenon last message repeated 6 times
Jul 19 16:54:16 xenon kernel: seq out-of-order [exp:3, got:4], send ack
Jul 19 16:54:16 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:18 xenon last message repeated 8 times
Jul 19 16:54:18 xenon kernel: BCSP: bcsp_integrity_receive: Incorrect length, discarding data
Jul 19 16:54:18 xenon kernel: seq out-of-order [exp:6, got:7], send ack
Jul 19 16:54:18 xenon kernel: seq out-of-order [exp:6, got:0], send ack
Jul 19 16:54:18 xenon kernel: seq out-of-order [exp:6, got:1], send ack
Jul 19 16:54:18 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:19 xenon last message repeated 3 times
Jul 19 16:54:19 xenon kernel: seq out-of-order [exp:2, got:3], send ack
Jul 19 16:54:19 xenon kernel: seq out-of-order [exp:2, got:4], send ack
Jul 19 16:54:19 xenon kernel: seq out-of-order [exp:2, got:5], send ack
Jul 19 16:54:19 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:20 xenon last message repeated 3 times
Jul 19 16:54:20 xenon kernel: BCSP: bcsp_integrity_receive: Incorrect length, discarding data
Jul 19 16:54:20 xenon kernel: seq out-of-order [exp:0, got:1], send ack
Jul 19 16:54:20 xenon kernel: seq out-of-order [exp:0, got:2], send ack
Jul 19 16:54:20 xenon kernel: seq out-of-order [exp:0, got:3], send ack
Jul 19 16:54:20 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:24 xenon last message repeated 15 times
Jul 19 16:54:24 xenon kernel: seq out-of-order [exp:0, got:1], send ack
Jul 19 16:54:24 xenon kernel: seq out-of-order [exp:0, got:2], send ack
Jul 19 16:54:24 xenon kernel: seq out-of-order [exp:0, got:3], send ack
Jul 19 16:54:25 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:28 xenon last message repeated 14 times
Jul 19 16:54:28 xenon kernel: BCSP: bcsp_integrity_receive: Incorrect length, discarding data
Jul 19 16:54:28 xenon kernel: seq out-of-order [exp:3, got:4], send ack
Jul 19 16:54:28 xenon kernel: seq out-of-order [exp:3, got:5], send ack
Jul 19 16:54:28 xenon kernel: seq out-of-order [exp:3, got:6], send ack
Jul 19 16:54:28 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:29 xenon last message repeated 4 times
Jul 19 16:54:29 xenon kernel: seq out-of-order [exp:1, got:2], send ack
Jul 19 16:54:30 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:30 xenon last message repeated 2 times
Jul 19 16:54:30 xenon kernel: BCSP: bcsp_integrity_receive: Incorrect length, discarding data
Jul 19 16:54:30 xenon kernel: seq out-of-order [exp:0, got:1], send ack
Jul 19 16:54:30 xenon kernel: seq out-of-order [exp:0, got:2], send ack
Jul 19 16:54:30 xenon kernel: seq out-of-order [exp:0, got:3], send ack
Jul 19 16:54:31 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:31 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:31 xenon kernel: seq out-of-order [exp:3, got:4], send ack
Jul 19 16:54:31 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:32 xenon last message repeated 6 times
Jul 19 16:54:32 xenon kernel: seq out-of-order [exp:7, got:0], send ack
Jul 19 16:54:33 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:34 xenon last message repeated 6 times
Jul 19 16:54:34 xenon kernel: BCSP: bcsp_integrity_receive: Incorrect length, discarding data
Jul 19 16:54:34 xenon kernel: seq out-of-order [exp:7, got:0], send ack
Jul 19 16:54:34 xenon kernel: seq out-of-order [exp:7, got:1], send ack
Jul 19 16:54:34 xenon kernel: seq out-of-order [exp:7, got:2], send ack
Jul 19 16:54:35 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:35 xenon last message repeated 5 times
Jul 19 16:54:35 xenon kernel: seq out-of-order [exp:2, got:3], send ack
Jul 19 16:54:36 xenon kernel: seq out-of-order [exp:2, got:4], send ack
Jul 19 16:54:36 xenon kernel: seq out-of-order [exp:2, got:5], send ack
Jul 19 16:54:36 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:36 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:36 xenon kernel: BCSP: bcsp_integrity_receive: Incorrect length, discarding data
Jul 19 16:54:36 xenon kernel: seq out-of-order [exp:6, got:7], send ack
Jul 19 16:54:36 xenon kernel: seq out-of-order [exp:6, got:0], send ack
Jul 19 16:54:36 xenon kernel: seq out-of-order [exp:6, got:1], send ack
Jul 19 16:54:37 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:37 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:37 xenon kernel: seq out-of-order [exp:4, got:5], send ack
Jul 19 16:54:37 xenon kernel: seq out-of-order [exp:4, got:6], send ack
Jul 19 16:54:37 xenon kernel: seq out-of-order [exp:4, got:7], send ack
Jul 19 16:54:37 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:38 xenon last message repeated 2 times
Jul 19 16:54:38 xenon kernel: seq out-of-order [exp:6, got:7], send ack
Jul 19 16:54:38 xenon kernel: seq out-of-order [exp:6, got:0], send ack
Jul 19 16:54:38 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:38 xenon kernel: BCSP: bcsp_integrity_receive: Incorrect length, discarding data
Jul 19 16:54:38 xenon kernel: seq out-of-order [exp:6, got:7], send ack
Jul 19 16:54:38 xenon kernel: seq out-of-order [exp:6, got:0], send ack
Jul 19 16:54:38 xenon kernel: seq out-of-order [exp:6, got:1], send ack
Jul 19 16:54:39 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:39 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:39 xenon kernel: seq out-of-order [exp:0, got:1], send ack
Jul 19 16:54:39 xenon kernel: seq out-of-order [exp:0, got:2], send ack
Jul 19 16:54:39 xenon kernel: seq out-of-order [exp:0, got:3], send ack
Jul 19 16:54:39 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:40 xenon last message repeated 4 times
Jul 19 16:54:40 xenon kernel: seq out-of-order [exp:0, got:1], send ack
Jul 19 16:54:40 xenon kernel: seq out-of-order [exp:0, got:2], send ack
Jul 19 16:54:40 xenon kernel: seq out-of-order [exp:0, got:3], send ack
Jul 19 16:54:40 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:41 xenon last message repeated 4 times
Jul 19 16:54:41 xenon kernel: seq out-of-order [exp:5, got:6], send ack
Jul 19 16:54:41 xenon kernel: seq out-of-order [exp:5, got:7], send ack
Jul 19 16:54:41 xenon kernel: seq out-of-order [exp:5, got:0], send ack
Jul 19 16:54:41 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:42 xenon last message repeated 3 times
Jul 19 16:54:42 xenon kernel: BCSP: bcsp_integrity_receive: Incorrect length, discarding data
Jul 19 16:54:42 xenon kernel: seq out-of-order [exp:2, got:3], send ack
Jul 19 16:54:42 xenon kernel: seq out-of-order [exp:2, got:4], send ack
Jul 19 16:54:42 xenon kernel: seq out-of-order [exp:2, got:5], send ack
Jul 19 16:54:43 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:43 xenon kernel: seq out-of-order [exp:1, got:2], send ack
Jul 19 16:54:43 xenon kernel: seq out-of-order [exp:1, got:3], send ack
Jul 19 16:54:43 xenon kernel: seq out-of-order [exp:1, got:4], send ack
Jul 19 16:54:43 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:46 xenon last message repeated 17 times
Jul 19 16:54:46 xenon kernel: seq out-of-order [exp:5, got:6], send ack
Jul 19 16:54:46 xenon kernel: seq out-of-order [exp:5, got:7], send ack
Jul 19 16:54:46 xenon kernel: seq out-of-order [exp:5, got:0], send ack
Jul 19 16:54:47 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:47 xenon last message repeated 3 times
Jul 19 16:54:48 xenon kernel: seq out-of-order [exp:3, got:4], send ack
Jul 19 16:54:48 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:48 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:48 xenon kernel: BCSP: bcsp_integrity_receive: Incorrect length, discarding data
Jul 19 16:54:48 xenon kernel: seq out-of-order [exp:5, got:6], send ack
Jul 19 16:54:48 xenon kernel: seq out-of-order [exp:5, got:7], send ack
Jul 19 16:54:48 xenon kernel: seq out-of-order [exp:5, got:0], send ack
Jul 19 16:54:49 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:49 xenon last message repeated 4 times
Jul 19 16:54:49 xenon kernel: seq out-of-order [exp:1, got:2], send ack
Jul 19 16:54:49 xenon kernel: seq out-of-order [exp:1, got:3], send ack
Jul 19 16:54:49 xenon kernel: seq out-of-order [exp:1, got:4], send ack
Jul 19 16:54:50 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:50 xenon kernel: seq out-of-order [exp:0, got:1], send ack
Jul 19 16:54:50 xenon kernel: seq out-of-order [exp:0, got:2], send ack
Jul 19 16:54:50 xenon kernel: seq out-of-order [exp:0, got:3], send ack
Jul 19 16:54:50 xenon kernel: BCSP: bcsp_integrity_receive: Incorrect length, discarding data
Jul 19 16:54:50 xenon kernel: seq out-of-order [exp:4, got:6], send ack
Jul 19 16:54:51 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:52 xenon last message repeated 9 times
Jul 19 16:54:52 xenon kernel: seq out-of-order [exp:2, got:3], send ack
Jul 19 16:54:52 xenon kernel: seq out-of-order [exp:2, got:4], send ack
Jul 19 16:54:52 xenon kernel: seq out-of-order [exp:2, got:5], send ack
Jul 19 16:54:53 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:57 xenon last message repeated 17 times
Jul 19 16:54:57 xenon kernel: seq out-of-order [exp:5, got:6], send ack
Jul 19 16:54:57 xenon kernel: seq out-of-order [exp:5, got:7], send ack
Jul 19 16:54:57 xenon kernel: seq out-of-order [exp:5, got:0], send ack
Jul 19 16:54:57 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:54:59 xenon last message repeated 7 times
Jul 19 16:54:59 xenon kernel: seq out-of-order [exp:7, got:0], send ack
Jul 19 16:54:59 xenon kernel: seq out-of-order [exp:7, got:1], send ack
Jul 19 16:54:59 xenon kernel: seq out-of-order [exp:7, got:2], send ack
Jul 19 16:54:59 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:55:03 xenon last message repeated 17 times
Jul 19 16:55:03 xenon kernel: seq out-of-order [exp:6, got:7], send ack
Jul 19 16:55:03 xenon kernel: seq out-of-order [exp:6, got:0], send ack
Jul 19 16:55:03 xenon kernel: seq out-of-order [exp:6, got:1], send ack
Jul 19 16:55:04 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:55:10 xenon last message repeated 25 times
Jul 19 16:55:10 xenon kernel: seq out-of-order [exp:3, got:4], send ack
Jul 19 16:55:10 xenon kernel: seq out-of-order [exp:3, got:5], send ack
Jul 19 16:55:10 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:55:11 xenon last message repeated 2 times
Jul 19 16:55:11 xenon kernel: seq out-of-order [exp:5, got:6], send ack
Jul 19 16:55:11 xenon kernel: seq out-of-order [exp:5, got:7], send ack
Jul 19 16:55:11 xenon kernel: seq out-of-order [exp:5, got:0], send ack
Jul 19 16:55:11 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:55:12 xenon last message repeated 5 times
Jul 19 16:55:12 xenon kernel: BCSP: bcsp_integrity_receive: Incorrect length, discarding data
Jul 19 16:55:12 xenon kernel: seq out-of-order [exp:4, got:5], send ack
Jul 19 16:55:12 xenon kernel: seq out-of-order [exp:4, got:6], send ack
Jul 19 16:55:12 xenon kernel: seq out-of-order [exp:4, got:7], send ack
Jul 19 16:55:13 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:55:16 xenon last message repeated 16 times
Jul 19 16:55:16 xenon kernel: BCSP: bcsp_integrity_receive: Incorrect length, discarding data
Jul 19 16:55:16 xenon kernel: seq out-of-order [exp:0, got:1], send ack
Jul 19 16:55:17 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:55:17 xenon last message repeated 3 times
Jul 19 16:55:17 xenon kernel: seq out-of-order [exp:2, got:3], send ack
Jul 19 16:55:18 xenon kernel: seq out-of-order [exp:2, got:4], send ack
Jul 19 16:55:18 xenon kernel: seq out-of-order [exp:2, got:5], send ack
Jul 19 16:55:18 xenon kernel: HCI: process_event: NUMBER_OF_COMPLETED_PACKETS
Jul 19 16:55:18 xenon last message repeated 2 times
Jul 19 16:55:18 xenon kernel: BT SYS: ERROR: l2cap_receive_data: packet too big [55683], discard packet

Attachment: pgp00014.pgp
Description: PGP signature