[How To]Increase mobile data speeds when tethering through USB - Android Software Development

I was having a mess about today with my connected and remembered TCP optimizer.
I ran this on the HTC modem used for tethering and used optimal settings.
After restarting my computer and re-tethered my phone, I am achieving between 15% - 18% speed increase.
My thoughts are that maybe these setting could be implemented into drivers?
If anyone can Assist me in doing this would be a great help.
Bates060

Related

Speed issues with tethered 8525

I'm having a tether problem that I'm hoping somebody can help me with. Getting the actual tethering to work is no problem, I've been able to tether via DUN, Bluetooth, PDANet and also with Internet Sharing on the new ROM.
The problem I have is with speed. I'm in an HSDPA area and am getting HSDPA data (this is definate). Tethering using any of the above methods to my XP Pro PC with a USB cable (USB 2.0 ports) gives me a peak speed of roughly 600kbps - like clockwork (Bluetooth, of course, is slower.) For the longest time I believe the problem was something with the phone but then when I connected my phone to another PC I got the speed I expected (1 - 1.1 Mbps) consistently. That guys phone also get similar speeds on his PC. Connect his phone to my PC and the speeds go to 600 kbps.
I've updated every driver and piece of software that I can think of but I can not get the problem fixed. I'm pulling out my hair (and don't have alot to spare anymore.)
Any ideas???
Bob
Anybody have any ideas? This is driving me nuts. I hate to have to go get an aircard when I know that this can work.
On a side note, I borrowed an AirCard and got as high as 1800 on the download (3 blocks from the tower . . . ) which was cool.
Thanks!
Fixed - needed to increase the RWIN value (per dslreports.com). See http://www.howardforums.com/showthread.php?t=1116230
Thanks,
Unbelievable! works like a charm!

SpeedTest reports lower speed

I used 2 apps to compare. SpeedTest.net and Xtremelabs Speedtest. I have a 2Mb connection and it test correct on my laptop both wired and wireless but with those 2 apps, my DHD reports ~223Kbits. I run the test several times (around 20 times) and it always shows similar results. Only one run which I did after returning home showed 2Mb. Never saw the same again.
Anyone noticed the same? maybe it's the way those apps measure or is it my phone?
You tested what ? Your phone connected via WiFi to your home internet, or your phone GSM/EDGE/HSPA connection ?
The home internet can be explained by downloading something else through other computers on your network or by lower wifi speed negitiated between your phone and wifi router.
If you measured your mobile connection, it could be that you simply don't have HSPA inside your house and it drops to EDGE or UMTS -> sub-300kbit speeds.
faugusztin said:
You tested what ? Your phone connected via WiFi to your home internet, or your phone GSM/EDGE/HSPA connection ?
The home internet can be explained by downloading something else through other computers on your network or by lower wifi speed negitiated between your phone and wifi router.
If you measured your mobile connection, it could be that you simply don't have HSPA inside your house and it drops to EDGE or UMTS -> sub-300kbit speeds.
Click to expand...
Click to collapse
thanks,
I already know what you mention.
I test wifi connection. It is supposed to check data transfer rate between my local wifi connection and the Internet. I do the same on my laptop at same location and get 2Mbits.
My mobile connection here is unstable=(sometimes GPRS sometimes 3G) so I won't bother to test from here. I am only concerned about wifi results.
Are you getting those correct?
In case of WiFi, there are many factors which can slow it down. But since you are using the WiFi on your laptop too, we can exclude factors like interference from other WiFi networks or any other factors which could make your connection to your router problematic.
This brings it down to the phone itself. Now the questions is - do you use any kind of WiFi security ? If yes, can you turn it off just for test (yes, i'm asking you to have a unsecured WiFi network for a while). This way you can exclude the possibility that it's the encryption which slows you down. If it will speed up, your problem lies in encryption, and that brings up the question if you have USB debugging enabled or not - you should have, as it fixes the 100% CPU usage bug. If your CPU is used up thanks to this bug, then of course all encryption is slower, which means your data transfer is slower.
faugusztin said:
In case of WiFi, there are many factors which can slow it down. But since you are using the WiFi on your laptop too, we can exclude factors like interference from other WiFi networks or any other factors which could make your connection to your router problematic.
This brings it down to the phone itself. Now the questions is - do you use any kind of WiFi security ? If yes, can you turn it off just for test (yes, i'm asking you to have a unsecured WiFi network for a while). This way you can exclude the possibility that it's the encryption which slows you down. If it will speed up, your problem lies in encryption, and that brings up the question if you have USB debugging enabled or not - you should have, as it fixes the 100% CPU usage bug. If your CPU is used up thanks to this bug, then of course all encryption is slower, which means your data transfer is slower.
Click to expand...
Click to collapse
Strange, you know what? I connected to USB in order to sync and verify USB debugging (it was on anyway) but after sync, I run the test and it shows above 2mbits but one time it showed 1,2Mbits. The same goes with xtremelabs speedtest.
Now, I can't tell if it's due to the usb connection. I restarted my phone earlier anyway and it still measured slow connection at the time that my laptop was measuring high.
I ran the test so many times that I am 99% sure that the only difference this time was the connection to usb for sync.
I can't exaplain this, I don't know if you can
Then, after a while I try again and it goes down again. I sync but still stays down so that's irrelevant.
I perform the same test on my laptop right after this one and from the same location and it's always high.
I don't know how to explain this

[Q] USB tethering

Is there a way I can USB tether my tablet to my phone? I believe 3.1 has USB host support, so if I got the USB adapter for my tablet would it be able to use it for internet? I don't want to buy the adapter before knowing if it's going to work.
The reason I'm asking is that I've always used USB tethering on my Evo 4G when tethering to my laptop, and I get great speeds. However, I tried wifi tethering for the first time today with my Galaxy Tab and found that download speeds won't go above 250 kilobits/sec, while upload speeds are 1.2Mbit/sec. From my phone the speedtest still shows 6-7Mbit/sec download speeds, which is the same that I get over USB tethering. Wifi tethered download speeds are also this slow when using my laptop. I tried disabling encryption and disabling CPU scaling (ie set min and max freq at 1Ghz) in case the phone was CPU bound, but it had no effect. The actual load on the phone was minimal during a wifi tethered speed test (3% usage). So there must be something wrong with wifi tethering on my phone.
Ingenium13 said:
Is there a way I can USB tether my tablet to my phone? I believe 3.1 has USB host support, so if I got the USB adapter for my tablet would it be able to use it for internet? I don't want to buy the adapter before knowing if it's going to work.
The reason I'm asking is that I've always used USB tethering on my Evo 4G when tethering to my laptop, and I get great speeds. However, I tried wifi tethering for the first time today with my Galaxy Tab and found that download speeds won't go above 250 kilobits/sec, while upload speeds are 1.2Mbit/sec. From my phone the speedtest still shows 6-7Mbit/sec download speeds, which is the same that I get over USB tethering. Wifi tethered download speeds are also this slow when using my laptop. I tried disabling encryption and disabling CPU scaling (ie set min and max freq at 1Ghz) in case the phone was CPU bound, but it had no effect. The actual load on the phone was minimal during a wifi tethered speed test (3% usage). So there must be something wrong with wifi tethering on my phone.
Click to expand...
Click to collapse
<<would also like to connect tab to evo using tether ( my tablet sees it and displays "connected" but nothing loads in a browser.
[email protected] said:
<<would also like to connect tab to evo using tether ( my tablet sees it and displays "connected" but nothing loads in a browser.
Click to expand...
Click to collapse
Hmm, I wonder if logcat and/or dmesg have any useful info. It could be an issue of the usb networking driver not being present, or it could be something simple like the tablet not using dhcp to ask for an IP or DNS server.

[Q] getting low transfer speeds with wifi tethered defy

Yesterday, I wanted to move some large files (> 2G) from my laptop (running Fedora 16) to my defy (running CM7.2). So I started wifi tethering (with data disabled) on defy and connected my laptop to it. With droidSSHd running on the device, I tried to transfer the files with scp. To my surprise, the transfer speeds I got were around 1.5-2MB/s !! The connection speed was showing as 54Mbps though...
Is this the max speed possible with this kind of connection? or is there any tweak/trick available to get better speeds?
PS: Tweaking net.tcp.*, wifi channel, MTU etc did not help much.
chaitanya.shende said:
Yesterday, I wanted to move some large files (> 2G) from my laptop (running Fedora 16) to my defy (running CM7.2). So I started wifi tethering (with data disabled) on defy and connected my laptop to it. With droidSSHd running on the device, I tried to transfer the files with scp. To my surprise, the transfer speeds I got were around 1.5-2MB/s !! The connection speed was showing as 54Mbps though...
Is this the max speed possible with this kind of connection? or is there any tweak/trick available to get better speeds?
PS: Tweaking net.tcp.*, wifi channel, MTU etc did not help much.
Click to expand...
Click to collapse
For me also its pretty much the same!

WiFi hotspot very flakey?

Hi
Stock ROM, try to connect an ASUS laptop to the hotspot.
USB tethering works fine but charges the battery too high / drains the laptop battery.
I swear in the past it wasn't so sensitive but now I connect but seemingly as soon as I try to do anything on the connection, it dies.
Anybody else experiencing this sort of continual flakeyness?
Tried all the options I can think of:
- 2.4 v 5Ghz band flipping
- Disabling DNSfilter (though USB tethering works fine with it on)
- disabling power saving on the laptop WiFi adaptor
Possibly more changes I can't recall just now.
Would appreciate any constructive ideas, thanks for reading!

Categories

Resources