OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: BarryW on January 28, 2007, 06:18:04 pm

Title: Switch Between Wireless Networks?
Post by: BarryW on January 28, 2007, 06:18:04 pm
I'm running into the same problem I've had with the other non-Sharp roms.  What's the easiest way to switch between different wireless networks?
Title: Switch Between Wireless Networks?
Post by: Capn_Fish on January 28, 2007, 09:37:42 pm
Quote
I'm running into the same problem I've had with the other non-Sharp roms.  What's the easiest way to switch between different wireless networks?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152772\"][{POST_SNAPBACK}][/a][/div]

In Betas 1, 2, and 3 you can set different profiles and use a console command to switch between them (cardctl scheme _____). In r121 you can set up a wifi script for each network. I can post more details on my setup if you're running r121 and want them.
Title: Switch Between Wireless Networks?
Post by: InSearchOf on January 28, 2007, 09:40:17 pm
I'm eagerly looking for a user friendly, functional and light network/wifi app for pdaxrom... if anyone has suggestions... let me know and it may be included in the next release...

Late
Title: Switch Between Wireless Networks?
Post by: adf on January 28, 2007, 09:56:55 pm
wasn't work started on a set of elftk tools to replace the python applets we have in beta3?  maybe I missed the point? it is easy enough to keep mutiple configs 2 clicks away with network app in beta3, logh it takes a few seconds to load
Title: Switch Between Wireless Networks?
Post by: InSearchOf on January 28, 2007, 10:07:00 pm
Quote
wasn't work started on a set of elftk tools to replace the python applets we have in beta3?  maybe I missed the point? it is easy enough to keep mutiple configs 2 clicks away with network app in beta3, logh it takes a few seconds to load
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152783\"][{POST_SNAPBACK}][/a][/div]

The person that started working on it is busy with work and school so he couldn't futher his development... I started looking at the python tools but realized we are still lacking the wireless scanning module available in alot of the current apps out there now...

Late
Title: Switch Between Wireless Networks?
Post by: BarryW on January 29, 2007, 12:16:51 am
Quote
Quote
I'm running into the same problem I've had with the other non-Sharp roms.  What's the easiest way to switch between different wireless networks?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152772\"][{POST_SNAPBACK}][/a][/div]

In Betas 1, 2, and 3 you can set different profiles and use a console command to switch between them (cardctl scheme _____). In r121 you can set up a wifi script for each network. I can post more details on my setup if you're running r121 and want them.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152779\"][{POST_SNAPBACK}][/a][/div]


Yep, that would be cool.
Title: Switch Between Wireless Networks?
Post by: Sorearse on January 29, 2007, 09:01:30 am
I think wifi radar should meet your needs. I used to run it under beta 4. It lists all networks detected, and allows the user to enter and store any wep keys etc, then connect.

However, these days I use WPA supplicant which is configured to connect to known networks first (like my home wpa secured router), but then to connect to any open networks. But I still need to run a small script to disconnect, restart wpa_supplicant, then run dhcpcd to get a new ip address.  My script looks like this - it's not perfect but does connect most of the time. I've assigned the script to a  button on my xfce panel, and a key combination for easy connecting.

/etc/rc.d/init.d/wpa_supplicant stop
pccardctl eject
sleep 3
pccardctl insert
sleep 3
/etc/rc.d/init.d/wpa_supplicant start
sleep 3
dhcp wlan0
sleep 3
ping -c3 www.google.com

Regards
Sorearse
Title: Switch Between Wireless Networks?
Post by: InSearchOf on January 29, 2007, 09:17:29 am
Quote
I think wifi radar should meet your needs. I used to run it under beta 4. It lists all networks detected, and allows the user to enter and store any wep keys etc, then connect.

However, these days I use WPA supplicant which is configured to connect to known networks first (like my home wpa secured router), but then to connect to any open networks. But I still need to run a small script to disconnect, restart wpa_supplicant, then run dhcpcd to get a new ip address.  My script looks like this - it's not perfect but does connect most of the time. I've assigned the script to a  button on my xfce panel, and a key combination for easy connecting.

/etc/rc.d/init.d/wpa_supplicant stop
pccardctl eject
sleep 3
pccardctl insert
sleep 3
/etc/rc.d/init.d/wpa_supplicant start
sleep 3
dhcp wlan0
sleep 3
ping -c3 www.google.com

Regards
Sorearse
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152814\"][{POST_SNAPBACK}][/a][/div]


I actually just built it for pdaxrom... but I didnt try it yet... the gui looks like... but the config menu looks like it my expand outside of the viewable area... that was the only issue I thought I may run into... but only time will tell... I will let you know how it all goes....

Late
Title: Switch Between Wireless Networks?
Post by: BarryW on January 29, 2007, 01:22:26 pm
Who's feed has wifi radar?  I'm not finding it in the r121 feed.



Okay, found it.  Doesn't work though.  It doesn't find anything.
Title: Switch Between Wireless Networks?
Post by: InSearchOf on January 29, 2007, 02:05:45 pm
Quote
Who's feed has wifi radar?  I'm not finding it in the r121 feed.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152837\"][{POST_SNAPBACK}][/a][/div]

I just built is locally... I didnt put it up yet... I will post it tonight if everything it fine and well...

Late
Title: Switch Between Wireless Networks?
Post by: Capn_Fish on January 29, 2007, 02:47:15 pm
Quote
Quote
Quote
I'm running into the same problem I've had with the other non-Sharp roms.  What's the easiest way to switch between different wireless networks?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152772\"][{POST_SNAPBACK}][/a][/div]

In Betas 1, 2, and 3 you can set different profiles and use a console command to switch between them (cardctl scheme _____). In r121 you can set up a wifi script for each network. I can post more details on my setup if you're running r121 and want them.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152779\"][{POST_SNAPBACK}][/a][/div]


Yep, that would be cool.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152786\"][{POST_SNAPBACK}][/a][/div]
First, you make a script to put in /bin, /usr/bin, your home dir, etc. It looks like this:

(wifi.sh, or whatever you want to name it.)
Code: [Select]
#!/bin/bash
/path/to/other/scripts/1

mv /path/to/other/scripts/2 /path/to/other/scripts/3
mv /path/to/other/scripts/1 /path/to/other/scripts/2
mv /path/to/other/scripts/3 /path/to/other/scripts/1

chmod a+x /path/to/other/scripts/1
chmod a+x /path/to/other/scripts/2

Then, in /path/to/other/scripts/, make two scripts:

1 (be sure to name it "1" or edit the other scripts accordingly):
Code: [Select]
#!/bin/bash
pccardctl insert 1
killall dhcpcd
ifconfig wlan0 down
iwconfig wlan0 essid (SSIDNAME) mode managed key (KEY) channel (CHANNEL) power on
dhcpcd wlan0

2 (Same as for the above script except for call this one "2":
Code: [Select]
#!/bin/bash
pccardctl eject 1

The script you run only calls the script that either turns your wifi on or off, then switches the on script and the off script so the next time it's run it will do the opposite. You can make different sets of these in their own directories with their own script to call each one. For instance you can have wifi-home.sh for your home network with the path /path/to/other/scripts/wifi-home/ and wifi-work.sh with the path /path/to/other/scripts/wifi-work/.

Unless I mistyped something, that should work. I assume it would work in non-r121 versions with tweaks (like changing pccardctl to cardctl), but I can't guarentee it.
Title: Switch Between Wireless Networks?
Post by: BarryW on February 07, 2007, 01:42:23 pm
Quote
Quote
Who's feed has wifi radar?  I'm not finding it in the r121 feed.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152837\"][{POST_SNAPBACK}][/a][/div]

I just built is locally... I didnt put it up yet... I will post it tonight if everything it fine and well...

Late
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152843\"][{POST_SNAPBACK}][/a][/div]


Does it work??
Title: Switch Between Wireless Networks?
Post by: hermocom on February 08, 2007, 04:24:54 am
Hi guys,

I just jumped upon this thread, so sorry for not replying earlier.

My XCardscheme may be what you want. It allows easy GUI-based switching between the schemes defined in the Lan & Wifi config.

You can download or feed it from here:
http://www.hermocom.com/feeds/pdaxrom1.1.0beta3/ (http://www.hermocom.com/feeds/pdaxrom1.1.0beta3/)

It needs Xdialog.

Daniel
Title: Switch Between Wireless Networks?
Post by: psycoman on February 08, 2007, 05:47:32 am
This is only for beta[1,2,3] ? rigth ?
Title: Switch Between Wireless Networks?
Post by: hermocom on February 08, 2007, 06:59:00 am
it has been developed under and for beta3.
Not sure if it works under other versions, but since it is entirely script-based and just uses Xdialog for GUI output, it should at least be very easily portable, maybe simply works under other beta versions.

Daniel
Title: Switch Between Wireless Networks?
Post by: InSearchOf on February 08, 2007, 11:50:50 am
Quote
it has been developed under and for beta3.
Not sure if it works under other versions, but since it is entirely script-based and just uses Xdialog for GUI output, it should at least be very easily portable, maybe simply works under other beta versions.

Daniel
[div align=\"right\"][a href=\"index.php?act=findpost&pid=153467\"][{POST_SNAPBACK}][/a][/div]

That will not work with 2.6.x kernels due to the fact that starting on that kernel series... cardctl changed to pccardctl and with pccardctl you can't switch schemes.
That is the reason the working Lan & Wifi config app stopped working in the beta4 and up releases...

and BarryW... something didnt work with that when I tried it... compiling that is... but I really cant remember what it was... I've been so busy with the new job that I have no free time... maybe this weekend I will get back into "pdaXrom World"

Late