Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
dselvey
Old
(Last edited by dselvey; 6th December 2010 at 07:27 PM.)
#1  
Junior Member - OP
Thanks Meter 0
Posts: 19
Join Date: Nov 2009
Location: Nottingham
Default android-wifi-tether and various ROMs

PROBLEM SOLVED, See below

Hi all,

I'm getting seriously confused with android-wifi-tether not working! Basically i have tried various custom ROMs (all Android 2.1) and various versions of wifi tether. I've even installed jacobs newer kernels.

There are no errors when i start tether. But when i connect with a laptop (tried many) the laptop goes through the motion of connecting successfully, the phone does not acknowledge the laptops connection and the laptop does not get a proper IP address.

I checked it out with Logcat, no errors on android-wifi-tether start, and when a computer connects, no logs are generated at all.

It has been working on the phone when i was running Wildpuzzle 2.1 1.0.0 i reverted to the rom but still nothing.

I've always installed a fresh rom with a full wipe also.

Whats interesting is i flashed my other halfs wildfire and it has the same issue (although not tried a variety of roms on it).

If anyone has any suggestions or ways of diagnosing. I would really appreciate it!!

There is something lingering somewhere on the phone.

Many Thanks, Dan
HTC Wildfire on Three: WildPuzzleROM 2.2 v0.5
HTC Tattoo on O2: HCDR.ROM 1.7 (SOLD!)
HTC Touch 3G on O2: Megade 1.7.6

Other Halfs Phone:
HTC Wildfire on Three: WildPuzzleROM 2.2 v0.2
 
HCDR.Jacob
Old
#2  
HCDR.Jacob's Avatar
Recognized Developer
Thanks Meter 544
Posts: 1,046
Join Date: Jun 2010
Location: Gateshead

 
DONATE TO ME
Quote:
Originally Posted by dselvey View Post
Hi all,

I'm getting seriously confused with android-wifi-tether not working! Basically i have tried various custom ROMs (all Android 2.1) and various versions of wifi tether. I've even installed jacobs newer kernels.

There are no errors when i start tether. But when i connect with a laptop (tried many) the laptop goes through the motion of connecting successfully, the phone does not acknowledge the laptops connection and the laptop does not get a proper IP address.

I checked it out with Logcat, no errors on android-wifi-tether start, and when a computer connects, no logs are generated at all.

It has been working on the phone when i was running Wildpuzzle 2.1 1.0.0 i reverted to the rom but still nothing.

I've always installed a fresh rom with a full wipe also.

Whats interesting is i flashed my other halfs wildfire and it has the same issue (although not tried a variety of roms on it).

If anyone has any suggestions or ways of diagnosing. I would really appreciate it!!

There is something lingering somewhere on the phone.

Many Thanks, Dan
My kernel only fixes it for 2.2 ROMs (and not Sense atm)

No luck if you're on 2.1, sorry.
Main Phone:
- Samsung Galaxy S III GT-I9300
ROM:
[4.0.4] CM9 Nightly w/ Ninphetamin3 kernel

Main Tablet:
- Samsung Galaxy Tab 10.1 WiFi (P7510)
ROM:
[4.0.4] CM9 Nightly

Other devices: Huawei Ideos S7, Nexus S I9020, Huawei U8800, ZTE Blade x2, HTC Wildfire, HTC Tattoo

Donate
 
crazygrazy
Old
#3  
Junior Member
Thanks Meter 0
Posts: 15
Join Date: Sep 2010
Location: London
I had this problem on 2.1 and had to find a new bin file as described in /code.google.com/p/android-wifi-tether/wiki/Setup_HTC_Desire_Incredible. After I did this it all worked OK.

I now use Cyangenmod 6.1 RC2 Build 41 and use the internal Froyo 2.2 Wifi tether and it works just fine. ( Thanks Jacob )
 
HCDR.Jacob
Old
#4  
HCDR.Jacob's Avatar
Recognized Developer
Thanks Meter 544
Posts: 1,046
Join Date: Jun 2010
Location: Gateshead

 
DONATE TO ME
Quote:
Originally Posted by crazygrazy View Post
I had this problem on 2.1 and had to find a new bin file as described in /code.google.com/p/android-wifi-tether/wiki/Setup_HTC_Desire_Incredible. After I did this it all worked OK.

I now use Cyangenmod 6.1 RC2 Build 41 and use the internal Froyo 2.2 Wifi tether and it works just fine. ( Thanks Jacob )
Didn't think that would work for 2.1 but I was clearly wrong xD
Main Phone:
- Samsung Galaxy S III GT-I9300
ROM:
[4.0.4] CM9 Nightly w/ Ninphetamin3 kernel

Main Tablet:
- Samsung Galaxy Tab 10.1 WiFi (P7510)
ROM:
[4.0.4] CM9 Nightly

Other devices: Huawei Ideos S7, Nexus S I9020, Huawei U8800, ZTE Blade x2, HTC Wildfire, HTC Tattoo

Donate
 
dselvey
Old
#5  
Junior Member - OP
Thanks Meter 0
Posts: 19
Join Date: Nov 2009
Location: Nottingham
i had to also run the

Code:
ip route add table gprs 192.168.2.0/24 dev eth0 proto kernel scope link src 192.168.2.254
is there anyway this fix can be included with 2.1 roms automatically?
HTC Wildfire on Three: WildPuzzleROM 2.2 v0.5
HTC Tattoo on O2: HCDR.ROM 1.7 (SOLD!)
HTC Touch 3G on O2: Megade 1.7.6

Other Halfs Phone:
HTC Wildfire on Three: WildPuzzleROM 2.2 v0.2
 
dselvey
Old
#6  
Junior Member - OP
Thanks Meter 0
Posts: 19
Join Date: Nov 2009
Location: Nottingham
Looks like i spoke to soon, gets an IP now and the phone acknowledges the connection but i cannot ping anything from the laptop :S
HTC Wildfire on Three: WildPuzzleROM 2.2 v0.5
HTC Tattoo on O2: HCDR.ROM 1.7 (SOLD!)
HTC Touch 3G on O2: Megade 1.7.6

Other Halfs Phone:
HTC Wildfire on Three: WildPuzzleROM 2.2 v0.2
 
dselvey
Old
#7  
Junior Member - OP
Thanks Meter 0
Posts: 19
Join Date: Nov 2009
Location: Nottingham
It appears if i run

Code:
ip route add table gprs 192.168.2.0/24 dev eth0 proto kernel scope link src 192.168.2.254.
once tethering has been started it begins to work and the laptop can download.

Any ideas?
HTC Wildfire on Three: WildPuzzleROM 2.2 v0.5
HTC Tattoo on O2: HCDR.ROM 1.7 (SOLD!)
HTC Touch 3G on O2: Megade 1.7.6

Other Halfs Phone:
HTC Wildfire on Three: WildPuzzleROM 2.2 v0.2
 
dselvey
Old
#8  
Junior Member - OP
Thanks Meter 0
Posts: 19
Join Date: Nov 2009
Location: Nottingham
Thumbs up Problem fixed!!

I thought i'd share:

I edited
/data/data/android.tether/bin/fixroute.sh

after the sleep 2

and before the done at the end of the file i added

Code:
/system/bin/ip route add table gprs 192.168.2.0/24 dev eth0 proto kernel scope link src 192.168.2.254
I also modified the sleep to 10, just in case it need a few seconds for eth0 to kick in.

Works perfectly and everytime.

Of course you need to do it everytime you install the binaries.
HTC Wildfire on Three: WildPuzzleROM 2.2 v0.5
HTC Tattoo on O2: HCDR.ROM 1.7 (SOLD!)
HTC Touch 3G on O2: Megade 1.7.6

Other Halfs Phone:
HTC Wildfire on Three: WildPuzzleROM 2.2 v0.2

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Nandroid Manager Receives Major Update

Do you find yourself obsessively jumping from ROM to ROM? And do you hate having to restore a full … more

Careers in Android: Recruiter Reveals How Resumes are Chosen – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

HttpClient Tutorial to Upload and Download with Your App

Developers wanting to interact with the Internet need to choose a package to do the … more

Profile Flow: A Tasker Alternative

By now, we’re all quite familiar with Tasker, the personal automation app that seems to be able to … more