OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: Capn_Fish on May 02, 2007, 04:56:12 pm

Title: New Network Config Utility
Post by: Capn_Fish on May 02, 2007, 04:56:12 pm
I have written a wireless config utility for pdaXrom that works with 2.6.x kernels, and probably 2.4.x. A package for 2.6.x kernels is attached, as is the source code. If you compile it yourself, make the directory /home/root/Choices/wlanconfig. It probably will only run as root.

Have fun, and feedback is welcome.

EDIT: Fixed a (major) bug, will upload the new source and a new package ASAP.
EDIT2: New stuff attached.
EDIT3: More bugs found. New stuff will be up ASAP.
EDIT4: I think all the bugs are worked out, so here's version 1.0. Any feedback is still welcome.
EDIT5: Forgot to remove some junk I used for debugging. New stuff attached.
EDIT6: Updated to v1.1, now with static IP address support. Not fully tested. Changelog also added to source code.
EDIT7: Updated to v1.2.Flags added to the executable. Type #wlanconfig help to see them.
EDIT8: Updated to v1.3. Feedback is now given after connecting, profile listing works better, and a few other things. See page 3 of this thread and/or the changelog for more details. Note that if you are updating from an older version, you must rename ~/Choices/wlanconfig/active to ~/.../.active.
EDIT9: Updated to v0.1 of the rewrite (v2). See changelog for details.
EDIT10: Wlanconfig2-2 is now out! Now with a GUI (in FLTK). Get my FLTK build from the new packages thread to use it (1.1.7).
EDIT11: A very small update. Just turned power management on, as my card got really hot with it off. YMMV.
EDIT12: Updated the stuff to v0.2 with support for interface selection. You need to add your interface (eg, wlan0) on a new line in your profiles for this release to work!
EDIT13: new ipk up, source will be soon
EDIT14: Source is up now.

To build it, run fltk-config --compile wlanconfig2-2.cxx when in the source directory.

Also, it can run in console mode by passing the "console" flag on the command line, and the ipk name should be "wlanconfig2-2..."
Title: New Network Config Utility
Post by: adf on May 02, 2007, 08:25:59 pm
Quote
I have written a wireless config utility for pdaXrom that works with 2.6.x kernels, and probably 2.4.x. A package for 2.6.x kernels is attached, as is the source code. If you compile it yourself, make the directory /home/root/Choices/wlanconfig. It probably will only run as root.

Have fun, and feedback is welcome.

EDIT: Fixed a (major) bug, will upload the new source and a new package ASAP.
EDIT2: New stuff attached.
EDIT3: More bugs found. New stuff will be up ASAP.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160304\"][{POST_SNAPBACK}][/a][/div]
Excellent!  Very good news!
Title: New Network Config Utility
Post by: Capn_Fish on May 02, 2007, 08:46:32 pm
At least somebody's showing some interest.  
I've got all of the bugs worked out AFAICT, so I'm going to attach version 1.0 in my first post.

Still, testing is welcome.
Title: New Network Config Utility
Post by: InSearchOf on May 02, 2007, 09:55:37 pm
Thanks for the effort... I haven't had a chance to try it out... but I will

Late
Title: New Network Config Utility
Post by: Capn_Fish on May 02, 2007, 09:58:10 pm
Cool.

It doesn't have a GUI, but it works great (and is totally keyboard-driven). My hope is that somebody can take the code and write a frontend for it so that it can replace the broken lan & wifi tool in pdaXrom.
Title: New Network Config Utility
Post by: Meanie on May 02, 2007, 10:17:17 pm
Quote
Cool.

It doesn't have a GUI, but it works great (and is totally keyboard-driven). My hope is that somebody can take the code and write a frontend for it so that it can replace the broken lan & wifi tool in pdaXrom.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160332\"][{POST_SNAPBACK}][/a][/div]

well, a few comments.

you are hardcoding /home/root, wouldn't reading the $HOME variable of the current user or ~/Choices/wlanconfig be a better choice?

also, you are assuming everyone is using dhcp. some people actually assign static ip addresses and have more complex gateway and routing configs as well as multiple dns entries.
Title: New Network Config Utility
Post by: Capn_Fish on May 02, 2007, 10:35:51 pm
Quote
Quote
Cool.

It doesn't have a GUI, but it works great (and is totally keyboard-driven). My hope is that somebody can take the code and write a frontend for it so that it can replace the broken lan & wifi tool in pdaXrom.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160332\"][{POST_SNAPBACK}][/a][/div]

well, a few comments.

you are hardcoding /home/root, wouldn't reading the $HOME variable of the current user or ~/Choices/wlanconfig be a better choice?

also, you are assuming everyone is using dhcp. some people actually assign static ip addresses and have more complex gateway and routing configs as well as multiple dns entries.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160334\"][{POST_SNAPBACK}][/a][/div]
Can I just put $HOME in my code instead of /home/root?

If there is a good page on how to set up the static ip/complex gateways/multiple DNS stuff, I may be able to add it in, but I'm really new to C++, so no guarentees.

Thanks for the input. I'll do my best to fix up the code tomorrow (for the $HOME thing). Others are free to modify it as well.
Title: New Network Config Utility
Post by: Meanie on May 02, 2007, 10:43:23 pm
Quote
Quote
Quote
Cool.

It doesn't have a GUI, but it works great (and is totally keyboard-driven). My hope is that somebody can take the code and write a frontend for it so that it can replace the broken lan & wifi tool in pdaXrom.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160332\"][{POST_SNAPBACK}][/a][/div]

well, a few comments.

you are hardcoding /home/root, wouldn't reading the $HOME variable of the current user or ~/Choices/wlanconfig be a better choice?

also, you are assuming everyone is using dhcp. some people actually assign static ip addresses and have more complex gateway and routing configs as well as multiple dns entries.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160334\"][{POST_SNAPBACK}][/a][/div]
Can I just put $HOME in my code instead of /home/root?

If there is a good page on how to set up the static ip/complex gateways/multiple DNS stuff, I may be able to add it in, but I'm really new to C++, so no guarentees.

Thanks for the input. I'll do my best to fix up the code tomorrow (for the $HOME thing). Others are free to modify it as well.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160336\"][{POST_SNAPBACK}][/a][/div]

have a look at my net.agent script for an example. it sets up wifi and usb ethernet with either dhcp or static ip depending on the config options.
Title: New Network Config Utility
Post by: sdjf on May 02, 2007, 11:04:59 pm
Are you guys including debugging output to a logfile as a standard now?

All it takes in the calls to dhcpcd is adding a -d, plus you have to enable the log in  /etc/syslog.conf.

I've been working on a script to do this for all ROMs.  Are you interested in seeing it?

I would add something else to it other than dhcpcd if I knew what else people used, but I guess you could do that yourselves sooner.
sdjf
Title: New Network Config Utility
Post by: Meanie on May 02, 2007, 11:48:56 pm
Quote
Are you guys including debugging output to a logfile as a standard now?

All it takes in the calls to dhcpcd is adding a -d, plus you have to enable the log in  /etc/syslog.conf.

I've been working on a script to do this for all ROMs.  Are you interested in seeing it?

I would add something else to it other than dhcpcd if I knew what else people used, but I guess you could do that yourselves sooner.
sdjf
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160339\"][{POST_SNAPBACK}][/a][/div]

debugging should not be enabled by default on a Zaurus. It just slows down the already slow IO, therefore, no
Title: New Network Config Utility
Post by: daniel3000 on May 03, 2007, 03:01:05 am
Thanks Fish!

But please let me know - why do you say the LAN&WIFI app is broken?

Here it works okay, and I have recently added basic WPA support which is still in testing stage:

https://www.oesf.org/forums/index.php?showtopic=23804 (https://www.oesf.org/forums/index.php?showtopic=23804)

daniel
Title: New Network Config Utility
Post by: Meanie on May 03, 2007, 04:24:48 am
Quote
Thanks Fish!

But please let me know - why do you say the LAN&WIFI app is broken?

Here it works okay, and I have recently added basic WPA support which is still in testing stage:

https://www.oesf.org/forums/index.php?showtopic=23804 (https://www.oesf.org/forums/index.php?showtopic=23804)

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

probably because he is using 2.6 kernel where there is no cardctrl but some other command instead. if 2.6 kernel is still using the same scheme format and location as before then that would be the only change requried.
however, this new tool does more than configure the wifi profile, it also makes  a connection which the python tool does not do.
Title: New Network Config Utility
Post by: sdjf on May 03, 2007, 09:29:01 am
Quote
probably because he is using 2.6
   kernel where there is no cardctrl but
   some other command instead.

Is there a cardctrl command in some kernels as well as a cardctl command, or was that a typo?

Thanks,
sdjf
Title: New Network Config Utility
Post by: InSearchOf on May 03, 2007, 11:04:00 am
Quote
Quote
probably because he is using 2.6
   kernel where there is no cardctrl but
   some other command instead.

Is there a cardctrl command in some kernels as well as a cardctl command, or was that a typo?

Thanks,
sdjf
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160367\"][{POST_SNAPBACK}][/a][/div]

AFAIK, just cartctl...

Late
Title: New Network Config Utility
Post by: grog on May 03, 2007, 12:49:58 pm
Quote
Quote
Quote
probably because he is using 2.6 kernel where there is no cardctrl but some other command instead.
Is there a cardctrl command in some kernels as well as a cardctl command, or was that a typo?[div align=\"right\"][a href=\"index.php?act=findpost&pid=160367\"][{POST_SNAPBACK}][/a][/div]
AFAIK, just cartctl...[div align=\"right\"][a href=\"index.php?act=findpost&pid=160377\"][{POST_SNAPBACK}][/a][/div]
r197

Code: [Select]
$ uname -a
Linux zaurus 2.6.16 #1 PREEMPT Wed Apr 11 15:59:50 UTC 2007 armv5tel unknown
$ pccardctl
pcmciautils 014
Copyright (C) 2004-2005 Dominik Brodowski, (C) 1999 David A. Hinds
Report errors and bugs to , please.
invalid or unknown argument
Usage: pccardctl COMMAND
Supported commands are:
        ls
        insert
        eject
        suspend
        resume
        reset
        info
        status
        config
        ident
Title: New Network Config Utility
Post by: InSearchOf on May 03, 2007, 01:24:11 pm
Quote
Quote
Quote
Quote
probably because he is using 2.6 kernel where there is no cardctrl but some other command instead.
Is there a cardctrl command in some kernels as well as a cardctl command, or was that a typo?[div align=\"right\"][a href=\"index.php?act=findpost&pid=160367\"][{POST_SNAPBACK}][/a][/div]
AFAIK, just cartctl...[div align=\"right\"][a href=\"index.php?act=findpost&pid=160377\"][{POST_SNAPBACK}][/a][/div]
r197

Code: [Select]
$ uname -a
Linux zaurus 2.6.16 #1 PREEMPT Wed Apr 11 15:59:50 UTC 2007 armv5tel unknown
$ pccardctl
pcmciautils 014
Copyright (C) 2004-2005 Dominik Brodowski, (C) 1999 David A. Hinds
Report errors and bugs to , please.
invalid or unknown argument
Usage: pccardctl COMMAND
Supported commands are:
        ls
        insert
        eject
        suspend
        resume
        reset
        info
        status
        config
        ident
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160378\"][{POST_SNAPBACK}][/a][/div]
They were talking about 2.4 kernel...

I thought

Late
Title: New Network Config Utility
Post by: Capn_Fish on May 03, 2007, 02:23:54 pm
Quote
have a look at my net.agent script for an example. it sets up wifi and usb ethernet with either dhcp or static ip depending on the config options.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160338\"][{POST_SNAPBACK}][/a][/div]
It just occurred to me...If you have a script that does this already, why should I make another one?

Also, where is said script?
Title: New Network Config Utility
Post by: sdjf on May 03, 2007, 02:36:51 pm
About pccardctl, looks like the difference is it adds 2 options (ls and info).  I would guess it works the same otherwise?  I guess I will check a man page when have more time.  This is helpful info.

Thanks,
sdjf
Title: New Network Config Utility
Post by: Capn_Fish on May 03, 2007, 02:43:05 pm
Quote
About pccardctl, looks like the difference is it adds 2 options (ls and info).  I would guess it works the same otherwise?  I guess I will check a man page when have more time.  This is helpful info.

Thanks,
sdjf
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160383\"][{POST_SNAPBACK}][/a][/div]
I thought that pccardctl didn't accept schemes (e.g. no 'pccardctl scheme xyz'), and that was the big difference?
Title: New Network Config Utility
Post by: Capn_Fish on May 03, 2007, 03:03:35 pm
OK, I've added support for static IP addresses. I'll test it now and see if it works.
Title: New Network Config Utility
Post by: Capn_Fish on May 03, 2007, 06:18:39 pm
Packages and source updated to version 1.1. Static IP addresses are now supported and the source now has a changelog.

This release is not fully tested, but it should be good.

Comments/bug reports/criticism/requests (no guarentees) are still welcome and encouraged.
Title: New Network Config Utility
Post by: sdjf on May 03, 2007, 06:20:07 pm
Quote
I thought that pccardctl didn't
   accept schemes (e.g. no 'pccardctl
   scheme xyz'), and that was the big difference?

Whoops!  My oversight...haven't had time to find a man page, and I forgot about the schemes as never use them.  Was talking about the command list for cardctl.

sorry,
sdjf
Title: New Network Config Utility
Post by: Capn_Fish on May 03, 2007, 06:28:29 pm
Quote
Quote
I thought that pccardctl didn't
   accept schemes (e.g. no 'pccardctl
   scheme xyz'), and that was the big difference?

Whoops!  My oversight...haven't had time to find a man page, and I forgot about the schemes as never use them.  Was talking about the command list for cardctl.

sorry,
sdjf
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160396\"][{POST_SNAPBACK}][/a][/div]
No big deal.
Title: New Network Config Utility
Post by: Meanie on May 03, 2007, 09:28:44 pm
Quote
Quote
have a look at my net.agent script for an example. it sets up wifi and usb ethernet with either dhcp or static ip depending on the config options.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=160338\")
It just occurred to me...If you have a script that does this already, why should I make another one?

Also, where is said script?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160381\"][{POST_SNAPBACK}][/a][/div]

it's part of pdaXii13 customisation, [a href=\"http://www.tyrannozaurus.com/feed/pdaXii13/build/pdaXii13-custom.tgz]http://www.tyrannozaurus.com/feed/pdaXii13...ii13-custom.tgz[/url]
Title: New Network Config Utility
Post by: HoloVector on May 11, 2007, 12:00:21 am
Capn Fish,

Thanks for the handy tool.  I find it is very useful for the issue I am having with my wifi card in R198.  Can I pass variables to it directly from the terminal without using your interface?  My wifi card needs a deactivate before I can activate it.  I would like to include your tool in a shell script that would run a deactivate then activate everytime I insert the card.  I tried the obvious ones like wlanconfig deactivate and wlanconfig 2 but they don't work.
Title: New Network Config Utility
Post by: Meanie on May 11, 2007, 02:27:48 am
Quote
Capn Fish,

Thanks for the handy tool.  I find it is very useful for the issue I am having with my wifi card in R198.  Can I pass variables to it directly from the terminal without using your interface?  My wifi card needs a deactivate before I can activate it.  I would like to include your tool in a shell script that would run a deactivate then activate everytime I insert the card.  I tried the obvious ones like wlanconfig deactivate and wlanconfig 2 but they don't work.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=161011\"][{POST_SNAPBACK}][/a][/div]


personally, i think that tool should be written as a X GUI, and the text version should be command line driven
the best would be if the tool automatically starts a GUI if no command line option was given, but if command line arguments are passed, it just does what it is told to do without popping up the GUI....
Title: New Network Config Utility
Post by: Capn_Fish on May 11, 2007, 07:45:18 am
I'm working on that. That's why I was asking about GTK/FLTK/QT in the other thread.  
Title: New Network Config Utility
Post by: HoloVector on May 11, 2007, 01:12:51 pm
Thanks Capn Fish.  I'm especially looking forward to the command line addition to your utility.  Although the GUI would be appreciated too especially for profile setups.
Title: New Network Config Utility
Post by: Capn_Fish on May 11, 2007, 04:20:28 pm
I still need to figure out how to pass command line variables. Once I find a place documenting it, I'll probably have a version with it implemented within a few hours (likely within an hour).

So....Anybody got a place with docs on the subject?  
Title: New Network Config Utility
Post by: HoloVector on May 11, 2007, 04:36:16 pm
Thank you very much.  I wish I did have the information for you but, I'm pretty much clueless when it comes to dev type work.
Title: New Network Config Utility
Post by: sdjf on May 11, 2007, 05:21:37 pm
I'm lost.  I know passing variables in shell scripts, but is that or isn't that what you want?

If it's a PCMCIA device, then cardctl (or the similar pccardctl) could be what you need to suspend, resume, reset...which options are appropriate depend on the state of the device when you use cardctl/pccardctl.

In qtopia roms, qcop would also be needed, but I understand this is just pdaX-flavor, right?

sdjf
Title: New Network Config Utility
Post by: sdjf on May 11, 2007, 05:30:25 pm
Another comment.  No time to search for specific docs, but if the arguments are whole words, they can be addressed as $1, $2, $3, and so on, within the script.

Advanced Bash Scripting Guide may help:
http://tldp.org/LDP/abs/html (http://tldp.org/LDP/abs/html)
There also is a pdf somewhere that makes an easier read.

sdjf
Title: New Network Config Utility
Post by: Capn_Fish on May 11, 2007, 07:01:45 pm
I'm actually looking for how to to it (pass variables/flags to a program) in C++.
Title: New Network Config Utility
Post by: sdjf on May 11, 2007, 07:23:37 pm
Oops...I did download the source and see it isn't bash.  Are you sure you want to just overwrite the directories instead of testing for their presence and only making them if they don't already exist?  I'm wondering  if something might get lost that way, or it would generate an error?

sdjf
Title: New Network Config Utility
Post by: sdjf on May 11, 2007, 07:39:32 pm
Try this: http://www.lix.polytechnique.fr/~liberti/t...nosolutions.pdf (http://www.lix.polytechnique.fr/~liberti/teaching/c++/intro/exercises-nosolutions.pdf)

Google's advanced search helps...I don't know C++ but there seems to be example of command-line input in it.

sdjf
Title: New Network Config Utility
Post by: Capn_Fish on May 12, 2007, 12:57:17 pm
The files are about to be updated. See the first post for details.
Title: New Network Config Utility
Post by: Capn_Fish on May 12, 2007, 12:57:56 pm
The files are about to be updated. See the first post for details.
Title: New Network Config Utility
Post by: Capn_Fish on May 15, 2007, 02:47:30 pm
Are there any features (besides a GUI) that people find to be missing from the app?
Title: New Network Config Utility
Post by: grog on May 15, 2007, 09:58:20 pm
Quote
Are there any features (besides a GUI) that people find to be missing from the app?[div align=\"right\"][a href=\"index.php?act=findpost&pid=161369\"][{POST_SNAPBACK}][/a][/div]

First off, GREAT GREAT GREAT utility. Many thanks.

Since you asked , a few requests:

- instead of showing 'active' as a profile, can the active profile be marked in the list (say with a '*')?

- can the profile list be shown one per line (would make it easier to read IMHO)?

- for setting the active profile, can the existing profiles be presented in a list to be selected?

- can we have an option to run ifconfig/iwconfig to show the connection details? Or maybe have that run after a connection is made to indicate success.

thanks
Title: New Network Config Utility
Post by: Capn_Fish on May 16, 2007, 10:33:41 am
Quote
Quote
Are there any features (besides a GUI) that people find to be missing from the app?[div align=\"right\"][a href=\"index.php?act=findpost&pid=161369\"][{POST_SNAPBACK}][/a][/div]

First off, GREAT GREAT GREAT utility. Many thanks.

Since you asked , a few requests:

1. instead of showing 'active' as a profile, can the active profile be marked in the list (say with a '*')?

2. can the profile list be shown one per line (would make it easier to read IMHO)?

3. for setting the active profile, can the existing profiles be presented in a list to be selected?

-4.can we have an option to run ifconfig/iwconfig to show the connection details? Or maybe have that run after a connection is made to indicate success.

thanks
[div align=\"right\"][a href=\"index.php?act=findpost&pid=161400\"][{POST_SNAPBACK}][/a][/div]
1. I can probably do that, but it won't be the first thing to go in, as it appears to be more difficult than the others.

EDIT: How about having the "active" profile simply not shown, then having the active profile name listed at the bottom:

Code: [Select]
>6
profileA
profileB
profileC
profileD
Active: /home/xyz/Choices/wlanconfig/profileC

2. Easily done. (done)

3. Probably (see #1) EDIT: I made it so it'll list the profiles before you select the active one...I'm working on having it complain if the file/profile doesn't exist.

4. I can have it be run after making any connection or have a prompt after making said connection saying "Would you like to see the details of your connection?" or something like that. Which would be better/less annoying? And for passing stuff in the command line to skip the UI? (done, up for changing)

EDIT: It'll have to be the same for both UI and no UI, as they use the same code.

EDIT: iwconfig, ifconfig, or both?

Thanks for the input.
Title: New Network Config Utility
Post by: grog on May 16, 2007, 11:20:53 am
Quote
1. I can probably do that, but it won't be the first thing to go in, as it appears to be more difficult than the others.

EDIT: How about having the "active" profile simply not shown, then having the active profile name listed at the bottom:

Code: [Select]
>6
profileA
profileB
profileC
profileD
Active: /home/xyz/Choices/wlanconfig/profileC
works for me.

Quote
2. Easily done. (done)
kewl

Quote
3. Probably (see #1) EDIT: I made it so it'll list the profiles before you select the active one...I'm working on having it complain if the file/profile doesn't exist.
double kewl

Quote
4. I can have it be run after making any connection or have a prompt after making said connection saying "Would you like to see the details of your connection?" or something like that. Which would be better/less annoying? And for passing stuff in the command line to skip the UI? (done, up for changing)
I'd say have it default to coming up if being run interactively, otherwise no.

Quote
EDIT: It'll have to be the same for both UI and no UI, as they use the same code.
I don't see that as a problem.

Quote
EDIT: iwconfig, ifconfig, or both?
iwconfig I guess, specifcally for the affected interface (wlan0).

good work! keep it up!! thanks
Title: New Network Config Utility
Post by: Capn_Fish on May 16, 2007, 12:12:50 pm
I'm posting new stuff within a few minutes. I didn't get to making the app check for files' existance, so I'm going to make a new version soon that is "idiot proof," ie will complain if something is wrong and not fail silently like it does now.  
Title: New Network Config Utility
Post by: grog on May 23, 2007, 11:14:41 am
I had to drop off the radar for a while (new addition to the family, now even less spare time  ). I just downloaded 1.3, thanks for the changes, they work great.

One more request . Can you add an option to show the settings of a profile? Either prompting for the profile to show, or maybe just the active one, whatever you think. This can be as simple as just spitting the file out, but would be better if the settings could be labeled so we know what they are.

thanks again.
Title: New Network Config Utility
Post by: Capn_Fish on May 23, 2007, 02:05:26 pm
Quote
I had to drop off the radar for a while (new addition to the family, now even less spare time  ). I just downloaded 1.3, thanks for the changes, they work great.

One more request . Can you add an option to show the settings of a profile? Either prompting for the profile to show, or maybe just the active one, whatever you think. This can be as simple as just spitting the file out, but would be better if the settings could be labeled so we know what they are.

thanks again.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=161883\"][{POST_SNAPBACK}][/a][/div]
Just so I don't get this wrong, you want an option in the menu that just spits out the raw stuff stored in the profile file, so output would be something like this:

Code: [Select]
SSID: somessid
Key: xxxxxxxxxx
IP: dhcp

IP could of course actually be an IP address.
Title: New Network Config Utility
Post by: grog on May 23, 2007, 03:12:49 pm
Quote
Just so I don't get this wrong, you want an option in the menu that just spits out the raw stuff stored in the profile file, so output would be something like this:

Code: [Select]
SSID: somessid
Key: xxxxxxxxxx
IP: dhcp
IP could of course actually be an IP address.[div align=\"right\"][a href=\"index.php?act=findpost&pid=161896\"][{POST_SNAPBACK}][/a][/div]
That is precisely what I had in mind. thks
Title: New Network Config Utility
Post by: Capn_Fish on May 23, 2007, 05:34:22 pm
Quote
Quote
Just so I don't get this wrong, you want an option in the menu that just spits out the raw stuff stored in the profile file, so output would be something like this:

Code: [Select]
SSID: somessid
Key: xxxxxxxxxx
IP: dhcp
IP could of course actually be an IP address.[div align=\"right\"][a href=\"index.php?act=findpost&pid=161896\"][{POST_SNAPBACK}][/a][/div]
That is precisely what I had in mind. thks
[div align=\"right\"][a href=\"index.php?act=findpost&pid=161899\"][{POST_SNAPBACK}][/a][/div]
It'll probably get done either today or tomorrow.
Title: New Network Config Utility
Post by: Capn_Fish on May 27, 2007, 11:22:26 am
Sorry this is taking so long. I found some bugs that could lead to having incorrect information inputted/outputted that are taking a while to sort out.
Title: New Network Config Utility
Post by: Capn_Fish on May 27, 2007, 11:30:31 am
I think I'm going for a rewrite here. This is just WAY full of bugs, and I should be able to make it more efficient. Don't worry, I'll keep the old code around, just in case.
Title: New Network Config Utility
Post by: grog on May 27, 2007, 11:54:02 am
Quote
Sorry this is taking so long. I found some bugs that could lead to having incorrect information inputted/outputted that are taking a while to sort out.[div align=\"right\"][a href=\"index.php?act=findpost&pid=162132\"][{POST_SNAPBACK}][/a][/div]
Quote
I think I'm going for a rewrite here. This is just WAY full of bugs, and I should be able to make it more efficient. Don't worry, I'll keep the old code around, just in case.[div align=\"right\"][a href=\"index.php?act=findpost&pid=162133\"][{POST_SNAPBACK}][/a][/div]
Hey, take your time. And I'm sorry for opening such a big can-o-worms     I'm sure I can speak for all of us that we really appreciate your hard work on this.
Title: New Network Config Utility
Post by: Capn_Fish on May 27, 2007, 12:12:50 pm
I really enjoy coding, so it's not really work for me.

But really, I should thank you. I had no idea that there were so many issues with the code, and you made me notice them. Plus the way I'm doing it now requires me to learn how to use pointers, which is something I've been meaning to learn to do for a long time*.

I also wasn't really apologizing for it taking a long time, it was more for me saying that it would be done in a couple days than not having it done.

*A note to all of you who are knowledgeable about C++: I WILL have questions concerning these  
Title: New Network Config Utility
Post by: Capn_Fish on June 02, 2007, 01:57:11 pm
Just a quick update on the rewrite. I have gotten around the major issue I've been facing, so progress should be made fairly quickly.
Title: New Network Config Utility
Post by: Capn_Fish on June 02, 2007, 10:31:48 pm
OK, everything is implemented and streamlined. It should solve all of the potential issues of the previous app while still being compatible with the profiles. I'm thinking about adding a command line option to list the a profile's contents, but source and a package should be up tomorrow, regardless of whether I add that in.
Title: New Network Config Utility
Post by: Capn_Fish on June 03, 2007, 12:45:08 pm
Can somebody who knows C++ look at the code? When you try to list the contents of a profile, you get extra junk at the end (the full path to the profile). I'm kind of stuck, as I have the character arrays and strings wiped multiple times.

Thanks, and let me know if you have questions on what does what.

THIS IS NOT INTENDED AS A RELEASE!
Title: New Network Config Utility
Post by: Capn_Fish on June 14, 2007, 11:42:47 am
It's been a long time in coming, but the rewrite is done (and hopefully bug-free). I'm packaging it up now, so the stuff should be up in a minute or so.

Feedback/feature requests are still welcome and encouraged.
Title: New Network Config Utility
Post by: Capn_Fish on July 01, 2007, 09:11:30 pm
I just discovered that static IPs weren't actually static. Could sombody post the steps (in ifconfig and iwconfig if applicable) to setting up a static IP address so I can fix it?

I'm also thinking of adding in WPA support. Could somebody post the steps to setting up WPA as well?

Thanks.
Title: New Network Config Utility
Post by: Capn_Fish on July 03, 2007, 07:35:20 pm
OK, I'm working on adding a GUI (finally!), and here is the current design. Feedback/comments/suggestions would be appreciated.

It's being written in FLTK, so it should be fairly quick and light.
Title: New Network Config Utility
Post by: adf on July 03, 2007, 09:01:42 pm
Quote
OK, I'm working on adding a GUI (finally!), and here is the current design. Feedback/comments/suggestions would be appreciated.

It's being written in FLTK, so it should be fairly quick and light.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=164253\"][{POST_SNAPBACK}][/a][/div]
looks nice... I appreciate the use of fltk. Maybe we will see a full featured ede on the Z someday....
Title: New Network Config Utility
Post by: Capn_Fish on July 03, 2007, 10:21:52 pm
Quote
Quote
OK, I'm working on adding a GUI (finally!), and here is the current design. Feedback/comments/suggestions would be appreciated.

It's being written in FLTK, so it should be fairly quick and light.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=164253\"][{POST_SNAPBACK}][/a][/div]
looks nice... I appreciate the use of fltk. Maybe we will see a full featured ede on the Z someday....
[div align=\"right\"][a href=\"index.php?act=findpost&pid=164260\"][{POST_SNAPBACK}][/a][/div]
Is that a build request?

I mostly am using FLTK because it is natively in C++, so it is easier to use. It has the side effect of being lightweight.
Title: New Network Config Utility
Post by: Capn_Fish on July 04, 2007, 06:16:45 pm
Here's a test binary for pdaXrom latest (sorry classic folks, a source package will be up soon). Take a look at the help option. Some stuff has changed. Requires FLTK 1.1.7 (from the new packages thread).

Remove the .txt extention; it's a binary.

Also, I'm looking for a logo to use. If somebody would care to design one (64x64 or 128x128 is preferable) and post it here, I'd be happy to use it.

Also new in the soon-to-be source package is a roadmap of where I'm hoping this will go. I'll probably stick it and the chagelog int the soon-to-be ipk later as well.

Enjoy!
Title: New Network Config Utility
Post by: Capn_Fish on July 06, 2007, 02:41:45 pm
Wlanconfig2-2 0.1 is out, now with a (n ugly) GUI! See the first post for files and more details.

There is also roadmap file in the source, and both a roadmap and a changelog in the ipk in /usr/share/doc/wlanconfig2-2/.

Feedback is still welcome (even on the ugly GUI) and encouraged.
Title: New Network Config Utility
Post by: Capn_Fish on July 08, 2007, 12:06:45 pm
Suggestions and criticism are also wanted (Makes it much easier to improve the app )

I am also still looking for a logo, so if anybody cares to share artistic/Gimping talent, it would be much appreciated.
Title: New Network Config Utility
Post by: Capn_Fish on July 12, 2007, 01:51:29 pm
A very small update. See the first post/changelog for downloads and details.
Title: New Network Config Utility
Post by: Fushnchupsh on July 22, 2007, 07:46:06 pm
Hey Capn.  Thanks for all of your hard work!  I was noticing that the tool searches for hardware listed as wlan0.  My card, however is listed as eth0.  Could you make switching between the two an option?

--Fish
Title: New Network Config Utility
Post by: Capn_Fish on July 22, 2007, 09:23:04 pm
Sure. I've been planning some new stuff anyway, so I'll add it in. It may take a while (I just got back from vacation and probably will have stuff to catch up on).
Title: New Network Config Utility
Post by: Fushnchupsh on July 22, 2007, 10:27:46 pm
great, thanks again
Title: New Network Config Utility
Post by: Capn_Fish on July 29, 2007, 05:58:51 pm
OK, I got it done, but have been too lazy to get new stuff up. It'll be up soon.
Title: New Network Config Utility
Post by: Capn_Fish on July 30, 2007, 11:59:54 am
I got the stuff up, but I am thinking there is a higher chance of bugs being present in this release than in previous releases, so post any issues here or PM me with them (compliments, feature requests, and/or comments are welcome as well ).
Title: New Network Config Utility
Post by: walts on August 01, 2007, 02:45:29 pm
I seem to be hopping around trying to find the right thread.  
Basically I'm trying to get wireless networking (WPA) going on a c1000 with r198.  I've flashed the ROM, and installed Meanie's sp8 (which helps a lot!), installed hostap-utils, and followed Capn_fish's instructions Here (https://www.oesf.org/forums/index.php?showtopic=24233&hl=prism2_srec&st=30)

Since none of the handy utilities seem to work for me, I'm trying to edit the appropriate files myself and that's the subject of this post.

Network.py from this thread is looking for
/etc/pcmcia/wireless.opts
/etc/pcmcia/network.opts
/etc/sysconfig/wireless

... none of which exist on my Z.

I'm looking for some way to tell the Z that I have a wireless card at all.  
ifup wlan0 returns "No configuration for device wlan0"
I would expect to define wlan0 in /etc/network/interfaces, but ther is no such directory.

I'm happy to RTFM but I can't seem to find it!

Help, please?

Walt
Title: New Network Config Utility
Post by: Meanie on August 02, 2007, 02:37:19 am
Quote
I seem to be hopping around trying to find the right thread. 
Basically I'm trying to get wireless networking (WPA) going on a c1000 with r198.  I've flashed the ROM, and installed Meanie's sp8 (which helps a lot!), installed hostap-utils, and followed Capn_fish's instructions Here (https://www.oesf.org/forums/index.php?showtopic=24233&hl=prism2_srec&st=30)

Since none of the handy utilities seem to work for me, I'm trying to edit the appropriate files myself and that's the subject of this post.

Network.py from this thread is looking for
/etc/pcmcia/wireless.opts
/etc/pcmcia/network.opts
/etc/sysconfig/wireless

... none of which exist on my Z.

I'm looking for some way to tell the Z that I have a wireless card at all. 
ifup wlan0 returns "No configuration for device wlan0"
I would expect to define wlan0 in /etc/network/interfaces, but ther is no such directory.

I'm happy to RTFM but I can't seem to find it!

Help, please?

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

the config files you are trying to edit are for 2.4 kernel while you are using a version of pdaXrom with 2.6 kernel.
you need to use the network.py for the new pdaXrom which supports the 2.6 kernel.

also for wpa to work, either your network card has an updated firmware flashed to it permanently or the network config subsystem will upload a firmware each time you try to initialise your network card.

in pdaXii13, this is done automatically, but not yet in the new pdaXrom with 2.6 kernel.

also, appropriate hostap drivers and tools needs to be installed. this is important since installing an older version will break things. r198 already has the latest. wpa-supplicant also needs to be installed and correctly configured. wifi radar can help configure your network since it can handle all kinds of config.
the wlan config tool that capt fish made does a very good job for configuring basic wifi network settings but nothing beyond that.
Title: New Network Config Utility
Post by: Capn_Fish on August 02, 2007, 10:47:44 pm
I found a bug (the interface isn't shut down with the "off" command, "/home/root/Choi: no such interface" or some such error), so don't report that one. I'll update the stuff sometime in the relatively near future.
Title: New Network Config Utility
Post by: Capn_Fish on August 04, 2007, 04:53:50 pm
OK, I got the new stuff up.

If you want a new feature, have found a bug, or have a comment, go ahead and post it or PM me with it.