Author Topic: New Network Config Utility  (Read 18559 times)

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
New Network Config Utility
« Reply #30 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
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
New Network Config Utility
« Reply #31 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
There also is a pdf somewhere that makes an easier read.

sdjf
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
New Network Config Utility
« Reply #32 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++.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
New Network Config Utility
« Reply #33 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
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
New Network Config Utility
« Reply #34 on: May 11, 2007, 07:39:32 pm »
Try this: http://www.lix.polytechnique.fr/~liberti/t...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
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
New Network Config Utility
« Reply #35 on: May 12, 2007, 12:57:17 pm »
The files are about to be updated. See the first post for details.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
New Network Config Utility
« Reply #36 on: May 12, 2007, 12:57:56 pm »
The files are about to be updated. See the first post for details.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
New Network Config Utility
« Reply #37 on: May 15, 2007, 02:47:30 pm »
Are there any features (besides a GUI) that people find to be missing from the app?
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
New Network Config Utility
« Reply #38 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
GROG!

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
New Network Config Utility
« Reply #39 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.
« Last Edit: May 16, 2007, 11:12:42 am by Capn_Fish »
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
New Network Config Utility
« Reply #40 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
GROG!

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
New Network Config Utility
« Reply #41 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.  
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
New Network Config Utility
« Reply #42 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.
GROG!

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
New Network Config Utility
« Reply #43 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.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
New Network Config Utility
« Reply #44 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
GROG!