Internal bluetooth file transfer slow

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Kedge
Junior Member
Junior Member
Posts: 14
Joined: 2012-03-15, 10:07 UTC

Internal bluetooth file transfer slow

Post 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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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?
Author of Total Commander
https://www.ghisler.com
Kedge
Junior Member
Junior Member
Posts: 14
Joined: 2012-03-15, 10:07 UTC

Post 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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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...
Author of Total Commander
https://www.ghisler.com
Kedge
Junior Member
Junior Member
Posts: 14
Joined: 2012-03-15, 10:07 UTC

Post 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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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.
Author of Total Commander
https://www.ghisler.com
Kedge
Junior Member
Junior Member
Posts: 14
Joined: 2012-03-15, 10:07 UTC

Post 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.
Kedge
Junior Member
Junior Member
Posts: 14
Joined: 2012-03-15, 10:07 UTC

Post by *Kedge »

With RC7 the transfer speed increased significantly.

System BT and TC BT have now same transfer speed.

What did it?

Vielen Dank!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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...
Author of Total Commander
https://www.ghisler.com
Post Reply