So I've been roaming around the NC's system directories comparing the way the NC is layed out with Ubuntu, FreeBSD and OS X.
A couple observations:
1) I can't figure out where the NC stores the wifi access point SSIDs and keys. Does anyone know this?
2) I noticed that all of the configuration files seem to exist for tethering the NC and having it act as a WiFi card, though I can't for the life of me come up with a reason to do that. Has anyone played with this before I delve into it?
My hope I that this thread will become a source of NC wifi info.
zendrummer74 said:
So I've been roaming around the NC's system directories comparing the way the NC is layed out with Ubuntu, FreeBSD and OS X.
A couple observations:
1) I can't figure out where the NC stores the wifi access point SSIDs and keys. Does anyone know this?
2) I noticed that all of the configuration files seem to exist for tethering the NC and having it act as a WiFi card, though I can't for the life of me come up with a reason to do that. Has anyone played with this before I delve into it?
My hope I that this thread will become a source of NC wifi info.
Click to expand...
Click to collapse
1. /system/etc/wifi/wpa_supplicant.conf
2. no real reason to want to tether off of the NC that I can think of. I have tethered from my phone to the NC, but can't say I have any reason to try the other way at this point. In the future who knows what we might be able to do with this.
Looking through the file system you will see that B&N really did not try very hard to build their own specific file system, a ton of the vanilla android system is left behind. One day when we are able to have our own custom ROM's I would think that a ton of this extra stuff will be cut out to improve speed and battery life.
Thanks for the response.
I've had fun poking around the OS file system.
The /system/etc/wifi/wpa_supplicant.conf file is the template file, not the actual file where the wifi settings are stored.
The actual file where wifi settings are stored is at /data/misc/wifi/wpa_supplicant.conf
The template file shows that an example network configuration for a WEP WiFi Access Point would look like:
Code:
network={
ssid="actual_access_point_name_goes_here"
key_mgmt=NONE
auth_alg=OPEN SHARED
wep_key0=somehexidecimalkeythatis40charslong
priority=nn ##this is the priority rank in which you have want to connect to a wifi access point with more than one SSID is in range
The network configuration for a Ad Hoc WEP WiFi Access Point would look like:
Code:
network={
ssid="actual_access_point_name_goes_here"
key_mgmt=NONE
auth_alg=OPEN SHARED
wep_key0=somehexidecimalkeythatis40charslong
priority=nn ##this is the priority rank in which you have want to connect to a wifi access point with more than one SSID is in range
mode=1
The network configuration for a WPA WiFi Access Point would look like:
Code:
network={
ssid="actual_access_point_name_goes_here"
psk=somehexidecimalkeythatis40charslong
priority=nn ##this is the priority rank in which you have want to connect to a wifi access point with more than one SSID is in range
If I understand it correctly, you will need to remount the filesystem in read/write mode in order to pull/edit/push the file from the NC to your computer, edit the file, and then push it back and remount. I'm going to try this next and document the steps.
My whole purpose for this is that I have a long list of WEP, WPA, WPA2 wifi hotspots that I connect to on a regular basis. Typing in the 100+ hex keys for each hotspot is a royal pain without cut/paste. Instead it is just easier to pull down the file, edit it, and then push it back to the NC.
The reason you'd want to tether the NC to your laptop is if your laptop didn't have built in wifi (I know, I know, what kind of laptop doesn't have wifi?).
Some older laptops don't have wifi, and perhaps the wifi is broken so tethering could be a viable option.
Related
When i use WLAN the 3G/GSM connection is lost after a few minutes and i have to reboot the phone to get it back. Does anybody know why this might be? Could it be the Radio?
I think its turning it off because your connecting to the internet through the wifi, when you disable wifi it should re-enable the 3g connection, but if it doesnt you can turn on the data connection...
thats what it sounds like is going on from your post. When I turn on wifi it will drop the data connection but has always reconnected to it once I disable wifi or I go outside of my wifi's range and something try's to connect to the net...
Yes, it is logical, you could not have opened two types of connection concurrently. One type closed another one.
ive had the same problem, when i connect to wi-fi i lose the data connection and it doesnt let me browse until i turn wi-fi off...i dont understand the point of wi-fi if u cant browse with the speed since the data connection is lost?
Thanks men! By turning on the data connection after i used wifi it reconnected!
timace said:
ive had the same problem, when i connect to wi-fi i lose the data connection and it doesnt let me browse until i turn wi-fi off...i dont understand the point of wi-fi if u cant browse with the speed since the data connection is lost?
Click to expand...
Click to collapse
What Wifi allows you to do us connect wirelessly to another connection, at home its my DSL, which is much faster than the edge network, and if I did not have an unlimited data plan wouldnt add to my phone bill. In that way its very usefull. Seeing how its faster and available at home or in places where your cell signal might not be strong or available you can use it to get online.
But you need to tell it your no longer using wifi for it to reconnect through the network to deliver data to you again.
10332007 said:
What Wifi allows you to do us connect wirelessly to another connection, at home its my DSL, which is much faster than the edge network, and if I did not have an unlimited data plan wouldnt add to my phone bill. In that way its very usefull. Seeing how its faster and available at home or in places where your cell signal might not be strong or available you can use it to get online.
But you need to tell it your no longer using wifi for it to reconnect through the network to deliver data to you again.
Click to expand...
Click to collapse
ok so when it comes to wi-fi im a big newbie, i have a tmo wing and have flashed (upgraded) rom...i also have dsl at home how is it i can connect and access this...when i search for wi-fi it usually only picks up my neighbors connections never my own...?
If you have a wifi router or your modem has a build in wifi option you go into your modem to set it up. Most modems / routers come with it broadcasting the SSID so you should see something (usually the default is the name of the manufacturer)
If you have your paperwork you can open your web browser and type in the address to open the internal OS and make changes as you see fit. For example mine is a linksys and its default address was http://192.168.1.1, most routers used to default to that but since a lot of modems are coming out with build in os and firewalls they have that IP so routers can be changed like mine. Once in the OS you can set up your pw so no one else can play with your settings
Navigate to the Wireless section and there should be a bunch of settings. I renamed my WiFi name to match my home network, and disabled the SSID broadcast. Then changed the chanel for some of my other devices, if you dont have anything that requires this leave it alone. Then enable WEP or other protection, 128 bit wep is pretty decent and anyone hacking through it will probably be disappointed with your lack of juicy goods.
Once you have the SSID and the Key encription you go to your phone and mirror the information into the WiFi settings. The web will be a 26 or so string of letters / numbers that will equal the password you set. These must be typed in perfectly or it will not work, took me 6 or so tries to get it typed in correctly but once its in you wont need to do it again unless you reset the phone or change the network settings.
If all that goes through open IE on the phone and hit up google or something, if it loads your online.
Thats a jumbled and messy tutorial, I can fix it to be more user friendly if you need me to do it, but with you not seeing any SSID but your neighbors your wifi is either non existant or disabled...
10332007 said:
If you have a wifi router or your modem has a build in wifi option you go into your modem to set it up. Most modems / routers come with it broadcasting the SSID so you should see something (usually the default is the name of the manufacturer)
If you have your paperwork you can open your web browser and type in the address to open the internal OS and make changes as you see fit. For example mine is a linksys and its default address was http://192.168.1.1, most routers used to default to that but since a lot of modems are coming out with build in os and firewalls they have that IP so routers can be changed like mine. Once in the OS you can set up your pw so no one else can play with your settings
Navigate to the Wireless section and there should be a bunch of settings. I renamed my WiFi name to match my home network, and disabled the SSID broadcast. Then changed the chanel for some of my other devices, if you dont have anything that requires this leave it alone. Then enable WEP or other protection, 128 bit wep is pretty decent and anyone hacking through it will probably be disappointed with your lack of juicy goods.
Once you have the SSID and the Key encription you go to your phone and mirror the information into the WiFi settings. The web will be a 26 or so string of letters / numbers that will equal the password you set. These must be typed in perfectly or it will not work, took me 6 or so tries to get it typed in correctly but once its in you wont need to do it again unless you reset the phone or change the network settings.
If all that goes through open IE on the phone and hit up google or something, if it loads your online.
Thats a jumbled and messy tutorial, I can fix it to be more user friendly if you need me to do it, but with you not seeing any SSID but your neighbors your wifi is either non existant or disabled...
Click to expand...
Click to collapse
thanks for the quick reply, ill give it a try...might need the more user friendly version lol sorry
Its no problem, the biggest thing will be weather or not you have a wifi router or modem. Then depending on the brand the IP you have to type in to log into the modem. Each router / modem will have paperwork with it that tells you how to do it, some are different but thankfully most are the same.
The un is usually blank and the pw is usually admin, sometimes now they dont even put one unless you specify it. Once your in the OS its pretty self explanitory, there are lots of things to not mess with, but in the wifi area you can look over my post and figure most of it out,
if you get hung up on somethin just post what it is and ill see what I can do
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...
Hey guys im looking for a network security analyzer that can essentially sniff out WEP and possibly WPA keys on wireless networks.
Any suggestions?
Never on PPC, maybe in like 20 years.
Well that may be true. IDK. I was searching and found a few tools, but they are years old and all the links are dead now.
Well if you want to do this right you do it with Linux using Kismet, airsnort, airsnort-ng and aircrack. I suppose it's *remotely* possible you could boot up an android port on your fuze and somehow install those programs and get to a command line. On a Windows machine, all I know of is Wireshark, used mainly for wardriving.
As far as your phone goes, Airscanner is a packet sniffer that may work on your phone. But you have to start wifi and actually join the network you want to sniff (I'm pretty sure) so you won't be getting any wifi password but perhaps if you know how to parse data from a packet sniffer theoretically text someone sends on instant message to someone. If your Fuze is like my Tilt 2, you start it, hit continue for the 30 day demo (plenty of time for you to realize this is not going to help you), then select Broadcom 802.11 DHD Network Adapter (again, that's for my phone, not necessarily yours -- if it doesn't work keep trying others).
Then you have to somehow get this thing on promiscuous mode otherwise you're just sniffing your own packets.
You have to be very good and determined to crack even a WEP key with the right tools which you do not have. If I were you I would just ask whoever owns the router nicely to let you use their network. Or use GPRS.
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
Hi,
I've read alot about wifi tethering on the forums, but I'm curious if the Nook Color (rooted) is able to become a wifi hotspot itself. The reason being, I have some wireless ip cameras that I'd like to set it up as baby monitors and it would be convenient be able to watch the stream directly on the nook (instead of having to go from ip cam --> router --> nook). This would be a significantly better setup than using the stuff they sell at toysrus/target etc (and cheaper too, in some ways).
From what I've read, there's lots of info on properly setting a tethering on a phone and connect the nook to that, but nothing on having a nook as its own hotspot. Also, this would be an LAN, so there's no need for an actual connection to the web.
Thanks,
Joey
PS. Sorry if I didn't post in the correct subforum, as I'm a new member, I can't post in the development section yet.
joey12345 said:
Hi,
I've read alot about wifi tethering on the forums, but I'm curious if the Nook Color (rooted) is able to become a wifi hotspot itself. The reason being, I have some wireless ip cameras that I'd like to set it up as baby monitors and it would be convenient be able to watch the stream directly on the nook (instead of having to go from ip cam --> router --> nook). This would be a significantly better setup than using the stuff they sell at toysrus/target etc (and cheaper too, in some ways).
From what I've read, there's lots of info on properly setting a tethering on a phone and connect the nook to that, but nothing on having a nook as its own hotspot. Also, this would be an LAN, so there's no need for an actual connection to the web.
Thanks,
Joey
PS. Sorry if I didn't post in the correct subforum, as I'm a new member, I can't post in the development section yet.
Click to expand...
Click to collapse
Wow, what a good idea. I hope you get a positive answer on this since it would open up even more capability.
Double post.
Tethering requires 2 ip connections: one for wifi and one to the rest of the net. On the phone that would be the wifi and the carrier network. Since the NC only has wifi you cannot tether.
What maybe could work if you can operate your cameras in ad-hoc wifi mode (like computer to computer without a router). You would definitely need an other linux kernel on the NC to do that. Do not know if the Cyanogenmod kernels allow for ad-hoc wifi mode on the NC.
Check on the development forum for ad-hoc wifi, again assuming your cameras can work in ad-hoc mode.
The purpose is for a LAN (closed feed), so a carrier network would be unnecessary.
I know that Barnacle Wifi Tether has the option setup a connection (and forgo the data/carrier network (under "Local Mode -- Don't wait for data connection)).
My particular problem, is the ip cam doesn't allow for ad-hoc networks ( I believe the scene is working on opening the firmware and adding this feature).
It sounds like to me, that Barnacle Tether can issue DHCP and I can connect two Nooks together. Fun fact, but useless in many ways, cuz what's the point in connecting 2 nooks.
I'm curious if anyone else might be able to shed some light on this issue. Is it possible to have the nook act as a router or an access point?
-Joey
PS. To connect the 2 nooks together, I had to enable ad hoc mode by changing the wpa_supplicant file (in another post).
PSS. For those who are interested in doing what I'm doing, my current setup for my house includes several ip cameras, router, nook color (using "ip cam viewer" software). Everything runs great inside my house as the router takes care of business. I can view/pan/tilt the baby monitor (ip cam) around on my nook which is excellent. My particular ip cam can also record audio and play audio, so I can hear the baby, but unfortunately the nook has NO mic, so I can't talk back (but who would need too??).
PSSS. The issue is currently, I can't take one of the cameras away from home (vacation or to visit family) without taking a spare router/access point with me. I was hoping for one less thing to carry (but at least routers are pretty small and cheap these days).
tvoverbeek said:
Tethering requires 2 ip connections: one for wifi and one to the rest of the net. On the phone that would be the wifi and the carrier network. Since the NC only has wifi you cannot tether.
What maybe could work if you can operate your cameras in ad-hoc wifi mode (like computer to computer without a router). You would definitely need an other linux kernel on the NC to do that. Do not know if the Cyanogenmod kernels allow for ad-hoc wifi mode on the NC.
Check on the development forum for ad-hoc wifi, again assuming your cameras can work in ad-hoc mode.
Click to expand...
Click to collapse
Joey, have you been able to come up with any updates? I am looking to get an android tablet and foscam ip camera for a similar set up. One thing that I can't figure out is how to make a direct connection to the camera without the need for a router when travelling to friends and family. Thanks!
No luck so far, the nook can't act as a HOT SPOT, and foscam/ipcam development doesn't have any updates either (for ad-hoc connections).
The cheapest solution (both time/money) is to buy a wireless AP (ASUS WL-330gE - newegg has this item for $22 after rebate). The problem is obviously the extra unit and the power cord that comes with it. It's a small unit and I can glue it down to the ipcam.
It's not the most elegant solution (tablet --> wireless AP --> ipcam), but it's still fairly small and cheaper than the stuff at babyrus.
part16john said:
Joey, have you been able to come up with any updates? I am looking to get an android tablet and foscam ip camera for a similar set up. One thing that I can't figure out is how to make a direct connection to the camera without the need for a router when travelling to friends and family. Thanks!
Click to expand...
Click to collapse