SOLVED: Tether with android tablet - Touch Pro, Fuze Themes and Apps

Hi,
I am having a problem using WM6.5 (EnergyRom Titanium) together with the Wifi Router in the Rom or WMWifiRouter for providing internet access to my MID816 Android Froyo Tablet.
First of all and for completeness, I had to make a little change to the WPA_supplicant.conf file in the tablet:
Code:
Ctrl_interface=DIR=/data/system/wpa_supplicant GROUP=wifi
eapol_version=2
update_config=1
[B]ap_scan=2[/B]
network={
ssid="droidhoc"
scan_ssid=1
key_mgmt=NONE
group=WEP104
auth_alg=OPEN SHARED
[B]priority=99[/B]
mode=1
}
The bold lines are the ones I needed to change.
After that I tried using the wifi Router and WMWifirouter with wep enabled (and the extra line in wpa_supplicant.conf), but that didn't seem to work, for some reason my tablet wouldn't connect.
Next I tried without wep and well it did connect (both WMWifiRouter and the tablet confirmed this)... but I couldn't access the internet for some reason.
I tried the same using the TP and my laptop and my laptop didn't have any problem connecting to the internet using wmwifirouter on the TP.
Next I tried installing XDANDROID on the TP and after some initial problems I got Gingerbread running on it.
I installed Barnacle Wifi Tether on the TP (the build in only gave errors), got it running without wep and connected to it with my tablet on the first try.
It even gave internet access to my tablet.
SUCCESS... well not completely.
XDANDROID, although a wonderfull development, seriously drains the battery of my TP (RAPH100)... so it is not the best alternative when traveling. It gives a temporary solution, but still.
So, after all this, I'm thinking, if xdandroid can connect and pass through the internet to my tablet, WM6.5 should be able to also.
Just, I have no idea what the big difference is here.
So, if anyone could help me figure out how to get wmwifirouter working with my tablet, that would be incredibly helpfull. Maybe someone does know what the big difference is between using wmwifirouter and barnacle wifi tether ...
TIA

Probably best to ask that question (since it is related to a specific project) HERE

I see, but the thing is, that I don't have a problem when using xdandroid...
The only thing that is giving met trouble is wmwifirouter :s

The reason it won't connect is the same reason why my wife's tablet or my PSP won't either. They connect in infrastructure mode only. The wifi router creates an adhoc connection. I hope this helps. I really, really wanted my PSP to be able to use the wifi router.

It's solved!
I stumbled across this post today: http://www.slatedroid.com/topic/385...-to-look-here/page__view__findpost__p__125320
the adhoc switching app doesn't work, but the line I have to use in the terminal does
This is the line I have to use in the terminal to be able to connect to the internet:
Code:
setprop net.dns1 192.168.3.1
Now, If only I could get that modeswitching program to work or even better use simple scripts to copy the correct wpa_supplicant.conf file and immediatly execute the above line...

And this (http://forum.xda-developers.com/showthread.php?t=486486) did the trick
I made 2 scripts:
adhoc
Code:
cat /data/misc/wifi/wpa_supplicant.conf.adhoc > /data/misc/wifi/wpa_supplicant.conf
setprop net.dns1 192.168.3.1
This one I have to use before turning on wifi and after the connection is made (could also have made 2 scripts but this works just as well
And returning to the normal connection mode
normal
Code:
cat /data/misc/wifi/wpa_supplicant.conf.normal > /data/misc/wifi/wpa_supplicant.conf

Related

A cry for help!!!

I want to ask anyone with better knowledge of the android os for help.
I need to be able to connect to ADHOC networks. I have a laptop with LAN internet connection and I want to connect my G1 to the laptop's wi-fi. I used to do that with windows mobile.
YES I know there are similar topics, but they are all abandoned and ignored.
I almost feel that it's forbidden to talk about that.
WHY I need that. I live in a country with NO unlimited data plans and very expensive mobile internet. That's it. I want to be able to sync, download and watch youtube while relaxing on the sofa at home without pennies dropping off my pockets for every tiny byte I download.
OK HERE's THE SOLUTION. Thanks to everyone who made the great tutorials available to us :
http://hydtech.wordpress.com/2009/09/14/how-to-connect-to-ad-hoc-networks-using-tmobile-g1-android/
The important part is to tweak the windows part - you need to tell the broadband/adsl internet connection to share itself to the Private wireless network (the network manging your Wireless adapter). If you are having trouble with the windows part (say you connect and have full bars on the phone but no access to web) google ICS (internet connection sharing) in windows and you should get it working.
*Important notice: AdHoc will drain your battery very fast (1hour tops)
Maybe one of the reasons they disabled it... If you cant cope with taht - get a router. I'm cheap and I'm using it like that
Possible solution
I downloaded aNETSHARE - a free aplication for wifi tethering posted on this forum as well. Inside the apk there is a tiwlan_ini file which might be executed when running the app so you can create adhoc connection on the phone. I have replaced the /etc/wifi/tiwlan.ini with this file and tonight I'm gonna try it on the laptop, but I guess it will only enable creation of adhoc networks on the phone.
Am I talking to myself?
I it's not the tiwlan.ini to be edited. There is a wpa_suplicant.conf file where the AP are stored. I will edit it tomorow and see if it works. Helloo unix gurus. Have some mercy on my mortal soul and help a little.
axlastro said:
I it's not the tiwlan.ini to be edited. There is a wpa_suplicant.conf file where the AP are stored. I will edit it tomorow and see if it works. Helloo unix gurus. Have some mercy on my mortal soul and help a little.
Click to expand...
Click to collapse
wish i could help, by the time someone does youll of figured it out lol
axlastro said:
I it's not the tiwlan.ini to be edited. There is a wpa_suplicant.conf file where the AP are stored. I will edit it tomorow and see if it works. Helloo unix gurus. Have some mercy on my mortal soul and help a little.
Click to expand...
Click to collapse
You do want to use a modified tiwlan.ini, but do not replace the system one.
Simply create a new one somewhere and use a command like this
Code:
insmod /system/lib/modules/wlan.ko
wlan_loader -f /system/etc/wifi/Fw1251r1c.bin -e /proc/calibration -i /data/local/tiwlan.ini
netcfg tiwlan0 dhcp
setprop net.dns1 208.67.222.222
The last two lines are to set up the proper IP address and dns server.
the backend of the wifi config gui uses wpa_supplicant. simply edit this and add whatever type of wireless connection you want. this is how we obtained wpa2 enterprise support. it was capable, the gui is just setup, for some reason, to ignore wpa2 enterprise/adhoc/whatever networks.
here's the original post from forever ago
http://forum.xda-developers.com/archive/index.php/t-450915.html
... Wouldn't it be easier to turn your laptop into an Access Point?
Assuming you are under Windows, you can enable ICS (Internet Connection Sharing) and then use your G1 to connect to that.
Many people do the same to connect their XBOX360 for example to their laptop or computer to go online.
NeoBlade said:
... Wouldn't it be easier to turn your laptop into an Access Point?
Assuming you are under Windows, you can enable ICS (Internet Connection Sharing) and then use your G1 to connect to that.
Many people do the same to connect their XBOX360 for example to their laptop or computer to go online.
Click to expand...
Click to collapse
This is what he's trying to do. The thing is, by default a G1 does not see/connect to Ad-hoc connections, which is what the ICS setup will create.
All the information he needs to get his G1 to see/connect to Ad-hoc networks has been listed in this thread by now. Whether or not he will read any of it is another story.
Aaaahh... My bad. I thought the programs already had such a feature >_< Would be interested in this also incase I don't have any signal for whatever reason.
billc.cn said:
You do want to use a modified tiwlan.ini, but do not replace the system one.
Simply create a new one somewhere and use a command like this
Code:
insmod /system/lib/modules/wlan.ko
wlan_loader -f /system/etc/wifi/Fw1251r1c.bin -e /proc/calibration -i /data/local/tiwlan.ini
netcfg tiwlan0 dhcp
setprop net.dns1 208.67.222.222
The last two lines are to set up the proper IP address and dns server.
Click to expand...
Click to collapse
Thank you! I needed some help on that.
So if I create a internet connection in XP I have to specify a dns there and then enter the same dns in the last line, right?
I actually replaced the system tiwlan.ini (i kept the original) with the one from the aNETSHARE.apk but as expected it created an AP on the G1. I guess I will have to modify the WPA_SUPPLUCANT.CONF too. it should be something like
SSID="test adhoc"
MODE=1 (i think 1 stands for adhoc)
and some other lines i dont remember like the encryption mode and frequency. There are plenty of sample config files. Tonight I will try to do it.
But the question is - what do I modify in tiwlan.ini - is it only the line adhoc=0 to adhoc=1 enough or should I specify ip address and dns there too.
btw I did configure an adhoc network using the wifiHELPER app but all it did was add it to my wifi connections list without being able to see it. The only option was to "forget" the network.
Anyway. I think you helped enough, I will figure read the thread pointed by breaultm. Thanks. I actually couldn't find this very thread cos I searched with "adhoc" as a keyword. Thank you again. I really don't see why they omitted the support for this type of connection. My guess - either a security concern or they just want to make you pay for data plan.
Some reason you don't just use a wireless access point? They're DIRT CHEAP... for example: http://www.infonec.com/site/main.php?module=detail&id=352591 -- thats a wireless router (just disable dhcp server and don't use the wan port) PLUS a wireless nic for $34 CDN.
lbcoder said:
Some reason you don't just use a wireless access point? They're DIRT CHEAP... for example: http://www.infonec.com/site/main.php?module=detail&id=352591 -- thats a wireless router (just disable dhcp server and don't use the wan port) PLUS a wireless nic for $34 CDN.
Click to expand...
Click to collapse
Well, I know. The cheapest routers are like 35 USD here in Bulgaria. Why not buy one? Call me cheap, but I'd better buy a bigger sd card first (I use a 4gb one now). I used to connect wirelessly with a pocketPC to the laptop and the connection was very stable. If I can't manage to connect the hard way then I will buy a router...

Wireless Tether never works for me!

Hey guys so ive tried ever wireless tether app under the sun and none ever seem to work for me.
Im running Cyan's 4.01, PdaNet the wired version works flawlessly for me when i tether it to my computer, however done of the wireless ones EVER work for me, ive tried both aNetshare and the "Wireless Tether for Root" App that is floating around on the forums here, neither have ever worked for me
i have absolutely no problems connecting my computer to my G1 via wifi when using these programs, however the connection is always Peer to Peer and Local only, never internet and it never works
any ideas?
What OS are you trying to tether with?
Ensure your wifi network settings have DHCP set....
ALSO if you're wifi uses a NON-Microsoft Wifi settings software (e.g. Intel's or Broadcom) disable it and use the microsoft stack.
Are you trying to connect via Ad-hoc? Also are you using the WEP encryption? Does it give you any errors or just doesn't seem to connect?
The computer im connecting with is running Vista.
Im not using any form of WEP encryption is 100% open, it has no problems connecting peer to peer but the internet is inaccesible via tethering, it connects fine with no errors but it states local only with no internet access
Also as another side note, i use a program called SwiFTP which runs FTP via wifi so i can transfer file to and from my computer and G1 wirelessly , however that system never works, whenever i go to enable it, it says "Error Opening port, check your network connection" and the program does not work, ive tried changing different ports, i used the default port 2121 and it cannot open it, i also tried other random ones like 23 etc and it can never open a port or seem to work
Are you trying to connect via Ad-Hoc?
No, im using "Wireless Tether for Root Users" app downloaded off this forum
I think that is the problem. When you try to connect to the G1 on your computer, you have to set up the computer to connect via Ad-Hoc, not on the G1.
Not sure of the entire setup process, but go to the control panel and click on set up network connections (or something along that line) somewhere in the options of connection types there should be Ad-Hoc. You will have to enter the network name and confiure the WEP encryption, but it is pretty easy.
You should be able to figure it out from there. Let me know if you have any more problems.
access control option
have you checked the access control settings? if this is enabled, you have to manually allow the machines internet connection.
Hey, I had to apk's fo rthis the signed_andtether_1_52-pre2.apk did not work. The file labeled Signed_andtetehr_1_52.apk works everytime.
Firewall?
Sure your Vista Firewall is on? If so FORCE it off and try again...

[SOLVED]Tether over wi-fi?

Today i forgot my usb data cable at home and found myself desperately looking for an internet connection with my laptop. Ive downloaded 'bernacle wifi tether' , tetherblu and '' wireless tether for root users''.
Neitherr worked for me. In all of those my laptop could see the network those apps produced but could not connect even at maximum signal strenght.
Did anyone ever succeed with wifi tether on the n1?
Edit:rooted with cm 5.0.6
ive used barnacle, its pretty nice
any messages on why it couldnt connect? your laptop support ad-hoc networks?
Sorry for my noobility ..i dont know what is an ad hoc network. I dont receive any errors, it tryes to connect until it times uot saying it couldnt connect or repair the connection of unlnown reasons. Im using vista x64 on an n80x5 assus notebook. Could it be that i need some additional drivers for the n1?
No, you don't need any drivers to connect to WiFi.
Tested WiFi teather for root when downloaded it, works perfectly.
Check your laptop settings, I'd guess that it has absolutely nothing to do with the phone.
Barnacle became my #1 wifi tether program. works evertime. it might be the way you have your laptop setup or something. WiFi teather for root works also.
If you have static ip on your laptop...then none of those will work. Set your laptop to obtain ip automatically...i bet it work then.
Problem solved !
it was indeed a problem with my network adapter's driver.
Works great now!
thank you!

[Q]Samsung Galaxy Tab wifi adhoc network connecting issue.

I got a new Samsung Galaxy tab recently. In the first place, it could not see the adhoc network shared from my laptop. (Another device can connect to it.)
Then, I did lots of research and rooted it then changed wpa_supplicant file as discussed in the forum.
Now, I can see my adhoc network. BUT, when I tap it and try to connect to it, it fails on "Authenticating XXXX(adhoc)..." and Disconnected.
Can anybody help? The adhoc is really important to me, as I do not have a big capped Mobile Internet Plan. Without the network, the Samsung Galaxy Tab turns to a big size PSP.
Many thanks in advance.
BTW, it works on normal wireless network without any issue (At home).
It's your first post, so I'll cut you a little slack, but next time, use search first before asking!
If you had, you'd have found threads like this which should help you.
Remember - search is your friend!
Regards,
Dave
Thanks for your quick response.
I have searched and tried for nearly 2 weeks and followed the exact percedures mentioned in that thread, but no luck.
I believe it is a seperate issue and may need a little bit more tweak to solve it.
Cheers,
GA
My apologies! I didn't read your post fully, and didn't notice that you'd already tried wpa_supplicant.
Are you running Windows 7? If so, I suggest trying Connectify or Virtual Router which turns your laptop into an infrastructure hotspot.
Regards,
Dave
Yes, I am running WIN7 and I have tried to used both Connectify and Virtual Router. But, I have an "OLD" (2 years) Lenovo T61 and the wifi card (Intel 4695AGN) is not supported by ether Connectify or Virtual Router. (Please see following message.)
C:\Windows\system32>netsh wlan set hostednetwork mode=allow ssid=vodafone_one key=Galaxy_P1000!
The hosted network mode has been set to allow.
The SSID of the hosted network has been successfully changed.
The user key passphrase of the hosted network has been successfully changed.
C:\Windows\system32>netsh wlan start hostednetwork
The hosted network couldn't be started.
The group or resource is not in the correct state to perform the requested operation.
C:\Windows\system32>
I have nearly the same Problem:
- Windows 7 (64 bit) on my Laptop (Dell Studio XPS 1640) and installed Connetify.
- Connetctify says it is not able to run as AccessPoint but AdHoc works fine, i.e. with my phone (Experia X1).
- My Galaxy Tab can see Connectify (after applyingthe suggested wpa_supplicant) but hungs with something like “Getting IP-Adress from…” and then switches the Connectify-Link to “Disabled”.
I tried it also with disabled Firewall, just to be sure: same result. Has someone a nice idea to this? Would really make me happy!
Cheers,
Thomas
please post your exact model of the galaxy tab and the software version
chroma5632 said:
My Galaxy Tab can see Connectify (after applyingthe suggested wpa_supplicant) but hungs with something like “Getting IP-Adress from…” and then switches the Connectify-Link to “Disabled”.
Click to expand...
Click to collapse
The following thread contains a discussion about adhoc wifi tethering.
http://forum.xda-developers.com/showthread.php?t=932082&page=48
Try using Wifi Analyzer to see if the channel you are using is congested. I too was having problems getting my Galaxy Tab to connect to an adhoc wifi connection, but was able to successfully connect after changing the default channel 11 to a less congested channel.
Thanks for your input! The Glaxay is GT-P1000 FROYO.XWJJ3.
Have tried with different channels. Default was 1. Changed to 3, than even the Experia X1 did no more work. With channel 5,6 and 7 the Experia works, but the Galaxy does not: tries to get IP Adress and then disables the Connectify-Link.
Cheers
Thomas
Hi, I had the same problem with my ace,but i could manage to connect to my ad-hoc network. but the problem now is i only connect, i still cant browse in internet with my phone,
what i did was to make an ad-hoc network-->turned internet sharing on.
and then in my phone-->wireless network-->wireless setting-->advance-->(then i have putted a tick for use static IP and then putted the Ipv4 address in gateway and for IP address the same thing as Gateway but with the change at the end of it and 255.255.255.0 for netmask and 8.8.8.8 for DNS1 and 8.8.4.4 for DNS2 and saved it,so i could connect to ad-hoc but still no internet connection

WiFi Adhoc working with wpa_supplicant tweak !

Good news, the wpa_supplicant replacement tweak works on the Streak 7 too so the silly "neutering" by Google (to please the carriers apparently) can be circumvented. You can now connect to WiFi AdHoc networks, that's generally the type of network that a tethered smartphone creates, iPhone/iPad with MyWy, Barnacle on Android (http://szym.net/barnacle/), etc...
The Streak uses the v0.6.10 version.
Original trick is here : http://forum.xda-developers.com/showthread.php?t=754961
Since there was some confusion with the files I am uploading the one I used to make it easier.
The way I installed is :
- RootExplorer (requires rooted device)
- Go to /system/bin/
- Tap R/W at the top so it becomes R/O
- rename existing wpa_supplicant in /system/bin/ to wpa_supplicant.old
- paste new wpa_supplicant
- start and restart wifi
If you prefer to use adb, this command should do it :
adb push wpa_supplicant /system/bin/
You'd have to rename the existing one first though.
Hope it helps !
What exactly will this do?
Sent from my Dell Streak 7 using XDA App
Lets you connect to WiFi AdHoc networks, that's generally the type of network that a tethered smartphone creates, iPhone/iPad with MyWy, Barnacle on Android (http://szym.net/barnacle/), etc...
My s7 connects to my phones hot spot no problem?
Sent from my Dell Streak 7
Good for you, but that's probably because your phone creates a REAL wireless network like a wireless station, most tethering apps don't, like MyWi on the iPhone/iPad.
i have a streak 5 and with patches i got on other sites. They let me see the ad-hoc networks (*) but don't let me connect. All it does is go to obtaining ip address and the keeps looping at that.
Would this one act differently or will it not work for my little streak 5?
Probably wouldn't be any different, but that's strange, what AdHoc networks are you trying to connect to? Try to set their WiFi channel to 11 to see if it helps.
i tried to connect to my ar.drone and also a ad-hoc network i created on my pc. My wpa_supplicant is 0.5 on my streak at the moment. could that be the problem?
I can connect my ardrone to my pc. I can connect a laptop to my pc. But i can't get the streak past the "obtaining ip address". When i use static it connects right away but it connect nowhere.
With the new version of streakdroid it can with the ad-hoc fix included. When it didn't work i tried other ones and all with the same result. So i'm expanding my search to include similar systems.
Awesome!!!
webvan said:
Good news, the wpa_supplicant replacement tweak works on the Streak 7 too so the silly "neutering" by Google (to please the carriers apparently) can be circumvented. You can now connect to WiFi AdHoc networks, that's generally the type of network that a tethered smartphone creates, iPhone/iPad with MyWy, Barnacle on Android (http://szym.net/barnacle/), etc...
The Streak uses the v0.6.10 version.
Original trick is here : http://forum.xda-developers.com/showthread.php?t=754961
Since there was some confusion with the files I am uploading the one I used to make it easier.
The way I installed is :
- RootExplorer (requires rooted device)
- Go to /system/bin/
- Tap R/W at the top so it becomes R/O
- rename existing wpa_supplicant in /system/bin/ to wpa_supplicant.old
- paste new wpa_supplicant
- start and restart wifi
If you prefer to use adb, this command should do it :
adb push wpa_supplicant /system/bin/
You'd have to rename the existing one first though.
Hope it helps !
Click to expand...
Click to collapse
THANK YOU SOOOOOOO MUCH!!! This worked perfectly on my Streak 7......I even ended up buying "Root Tools" for this but ended up really liking it!
I can finally hook up to the iphone 4 data plan I'm already paying for ;-)
works for me
Thanks for the help.
Error Message-DjSteve HoneyComb RC3
I get an error message when trying to turn on wifi on DJSteve's HoneyComb RC3 version.
Awesome
Thank you so much for this! Works great from my Hero to DS7
Finally working "Adhoc"!!
Use this method on my rooted, stock 2.2.2, T-Mobile S7, works great!! Thanks.
My S7 finally sees and can connect to the adhoc networks.
Tried the S7 on two phones using "adhoc" wifi tethering, both works!!
First one, my old but beloved Nokia 5800, using "JoikuSpot", S7 sees the adhoc network and connect to it with "wep enable" with no problem.
Second one, Sony Ericsson Xperia X10 mini pro, stock android 2.1, rooted, using "Barnacle". S7 can see the Adhoc network but have a hard time obtaining IP or may I say most of the time failed to connect. Then I went onto the Barnacle forum and they suggest a solution, which is first connect another device to the Barnacle first then connect your S7 after that. Somehow this method works. By the way this method also works on iPads. Barnacle aware of this problem, and is working on it. So what I do is first "jump start" the network connection by using either my laptop computer or my retired 1G iphone, both works great, after that adding addition connection to the Barnacle network is a piece of cake.
Once again, thanks "webvan" for the information and the mod. This finally make my S7 complete!!
Does this file need to be switched back for any reason or will it be ok if its left in place?
I mean will it change anything else by leaving it?
Someone please help me. I follow the steps by OP and when I try to access wifi I get a error and can't connect. Any ideas what I am doing wrong.
Worked great for me! I'm really mad at tmobile for not updating the s7 4g, I will enjoy halting my data plan.
Sent from my Dell Streak 7 using xda premium
i followed the instructions precisely, but when i turn on the wifi, it says "obtaining IP address...." then it turns itself off.... i returned to the old wpa_supplicant file (the original)
any idea about how to fix this?
I have a similar problem with my dell streak 7 honeycomb 3.2.
I can connect to Ad-hoc network created with my Android 2.1 phone. Every thing seems to work ok but after using internet browser for few secounds wifi is going down. Also if I connect to another, infrastructure network after that, problem repeats until reboot.
I used adb to push patched wpa_supplicant. To make it executable i used command:
adb shell chmod 777 system/bin/wpa_supplicant
I'm having the same problem. After applying the patched wpa_supplicant file using adb I can no longer stay connected to infrastructure networks. Ad-hoc networks stay connected fine. I've tried deleting the connections and re-adding them to no avail. A reboot or disabling/re-enabling the wireless works for about a minute and then it disconnects.
At this point I'm ready to go back to the stock wpa_supplicant file, if I could find a copy of it somewhere.
Any suggestions would be greatly appreciated.
jason331 said:
I'm having the same problem. After applying the patched wpa_supplicant file using adb I can no longer stay connected to infrastructure networks. Ad-hoc networks stay connected fine. I've tried deleting the connections and re-adding them to no avail. A reboot or disabling/re-enabling the wireless works for about a minute and then it disconnects.
At this point I'm ready to go back to the stock wpa_supplicant file, if I could find a copy of it somewhere.
Any suggestions would be greatly appreciated.
Click to expand...
Click to collapse
Are you on HC? I am still on stock and it works fine on either ad-hoc or normal points.

Categories

Resources