seanhold3n / android-wifi-tether

Automatically exported from code.google.com/p/android-wifi-tether
0 stars 0 forks source link

Works for a couple days then stops #677

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Which device (manufacturer, type)?
evo 4g
Which firmware is installed?
stock firmware
What version of wireless tether are you using?
pre-11
What steps will reproduce the problem?
1.start wifi tether
2.tether runs for at least a day without problem
3.lose connectivity

What is the expected output? What do you see instead?

I expect wireless tether to work for months at a time. instead it works for a 
day but then even though the application appears to be working correctly and 
the connected devices can still see the SSID broadcast I am unable to browse. 
restarting tether (tapping stop tether and then start tether) solves the 
problem for another day or two and then I have to repeat the process.

Please provide any additional information below.

If there was a timer that automatically restarted the tether every day (or a 
setting that would let you control something like this) I think that you could 
have months of uptime.

Original issue reported on code.google.com by barron....@gmail.com on 1 Nov 2010 at 11:31

GoogleCodeExporter commented 9 years ago
Well ... tethering can be started/stopped by commandline. Using adb:

adb shell
cd /data/data/android.tether/bin
./tether start 1
./tether stop 1

(Note: You need to start tethering at least one time via gui - because this 
creates a device-specific configuration-file - 
/data/data/android.tether/conf/tether.conf)

Now. As far as I know ... busybox includes "crontab". So, you could use the 
busybox-contrab to restart tethering every day (or do some checking or whatever 
and decide if a restart is required).

Original comment by harald....@gmail.com on 2 Nov 2010 at 9:12

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I tried using adb as you mentioned:

First I launched the wifi-tether from the gui. After this I issued the 
following commands:

Last login: Wed Nov  3 17:01:52 on ttys000
Thomas-Barrons-MacBook-Pro:~ lizabeth$ cd android-sdk-mac_x86/
Thomas-Barrons-MacBook-Pro:android-sdk-mac_x86 lizabeth$ cd tools/
Thomas-Barrons-MacBook-Pro:tools lizabeth$ ./adb shell
# cd /data/data/android.tether/bin
# ./tether stop 1
about to run: [/data/data/android.tether/bin/iptables -D FORWARD -j 
wireless-tether]
iptables v1.3.7: Couldn't find target `wireless-tether'

Try `iptables -h' or 'iptables --help' for more information.
about to run: [/data/data/android.tether/bin/ifconfig tiwlan0 down]
error: SIOCGIFFLAGS (No such device)
script result was []
# 

what am I doing wrong?

Original comment by barron....@gmail.com on 3 Nov 2010 at 9:14

GoogleCodeExporter commented 9 years ago
OOPS ok read in another thread that this problem occurs with hero-roms (I'm 
using the hero to test as I don't have another EVO to work with at the moment. 
So I need to implement a fix on the evo but currently am testing on the hero 
(Cyanogenmod 6 Sprint)

Original comment by barron....@gmail.com on 3 Nov 2010 at 9:20