Page 1 of 1

Internal bluetooth file transfer slow

Posted: 2012-04-08, 19:26 UTC
by Kedge
I observed the internal BT file transfer via the Copy command being several times slower than via the Send option. Any idea?

edit: Android is 4.0.3

edit2: its the same behavior on 2.3.4

Posted: 2012-04-09, 12:47 UTC
by ghisler(Author)
There is no BT command via "Send" in Android. Maybe you have installed an APP which does it?

Anyway, I didn't see any speed differences between my internal send function and other apps. Can you give me more details, please?

Posted: 2012-04-14, 17:54 UTC
by Kedge
I forgot to subscribe the thread...

On my Asus Tnsformer Prime and my Sony Ericsson Xperia Ray there is a Bluetooth.apk preinstalled which I assume to be a standard Android application.

It is on both devices a system app.

When I long click on a file in TC I get the 'Send to' option. This mostly gives me bluetooth, and email as destinations. When I choose bluetooth the transfer rate is much higher then via the copy-> bluetooth option.

I could upload the bluetooth.apk if you like.

Posted: 2012-04-16, 13:42 UTC
by ghisler(Author)
Then just use that instead of the internal function. I guess that your device's function is written in native C code, which is of course faster than the Android Java code used in most of TC...

Posted: 2012-04-16, 14:15 UTC
by Kedge
The problem is that the system bluetooth function is restricted regarding file extension. My tablet for instance does not allow to send or receive apk files. Thats the reason I would like to use the TC transfer method.

But it is a small problem since I don't want to transfer HD movies via BT.

Thanks

Posted: 2012-04-16, 14:54 UTC
by ghisler(Author)
Could you measure the time it takes to send a certain file (at least 500 kBytes) to the same target? I would like to compare it to the speed I see on my phone. Here I don't see any big speed differences between TC and other Bluetooth tools (which use the same Java functions).

TC is using the block size returned by the Bluetooth function as the optimum size, so I don't really see what I could improve.

Posted: 2012-04-16, 17:56 UTC
by Kedge
I made a test with the tc_rc5.apk.

from tablet to phone

TC BT: 50sec
System BT 10sec

from phone to tablet

TC BT: 3min
System BT: 15sec

Quite some differences.

Posted: 2012-05-11, 08:45 UTC
by Kedge
With RC7 the transfer speed increased significantly.

System BT and TC BT have now same transfer speed.

What did it?

Vielen Dank!

Posted: 2012-05-11, 10:29 UTC
by ghisler(Author)
TC was telling the receipient that it accepts only 512 bytes per packet (because it doesn't receive data, only send). Unfortunately the other side then told TC that it also accepts only 512 Byte packets. I thought that the two directions would be independent, but apparently they are not. By telling the other side that TC can accept 32kByte packets, I can send that large packets too...