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

[bluetooth-dev] Re: Suggestion and question for USB bluetooth driver



Hi Greg,

(1) Digianswer -> Ericsson module FTP file transfer
 Your upgrade of the bluetooth.c DOES solve the problem.

+ /* force low_latency on so that our tty_push actually forces the data through,
+  * otherwise it is scheduled, and with high data rates (like with OHCI) data
+  * can get lost. */
+ bluetooth->tty->low_latency = 1;

+  for (i = 0; i < bluetooth->bulk_packet_pos; ++i) {
+   /* if we insert more than TTY_FLIPBUF_SIZE characters, we drop them. */
+   if (bluetooth->tty->flip.count >= TTY_FLIPBUF_SIZE) {
+    tty_flip_buffer_push(bluetooth->tty);
+   }
    tty_insert_flip_char(bluetooth->tty, bluetooth->bulk_buffer[i], 0);
+  }
   tty_flip_buffer_push(bluetooth->tty);

I measure the throughput   27.71 Kbytes/sec
using the user mode Bluetooth stack HCI/L2CAP/...

Thank you very much.

(2) Digianswer <- Ericsson module FTP file transfer
The non-blocking code does not yet work.
The blocking code works.
I measure the throughput 12.39 Kbytes/sec
using the user mode Bluetooth stack HCI/L2CAP/...
This speed is appriximately two timer slower than the one in the reverse
direction.

*** If you stabilize the non-blocking code,
I expect that the speed reaches the 27.71 ... ***

The speed 27.71 Kbytes/sec is more than 4 times faster than RS232.

Best regards,
---
Myunggyu Kim
mgkim@xxxxxxx.kr

begin:vcard 
n:Kim;Myunggyu
tel;cell:011-272-3176
tel;home:042-862-3176
tel;work:042-860-5710
x-mozilla-html:FALSE
url:http://hana.etri.re.kr/~mgkim
org:ETRI
adr:;;;;;;
version:2.1
email;internet:mgkim@xxxxxxx.kr
fn:Myunggyu Kim
end:vcard