Page 2 of 4
Posted: Sat 03 Nov 2007, 23:44
by maddox
thanks a lot plinej
it's working for me now,
I will try 2 digit channel tomorrow and a different wifi stick. was a ZyXEL B-220- 802.11b with module-> zd1201
new one Hercules 802.11g with module -> rt2570
thanks maddox
Posted: Sat 03 Nov 2007, 23:53
by plinej
Thanks for the feedback. 2 digit channels are showing up fine for me so I would imagine with my revised line of code they should work fine for you.
Posted: Sun 04 Nov 2007, 02:52
by plinej
updated to 0.3.4, just some minor code cleanup.
Posted: Sun 04 Nov 2007, 04:43
by plinej
updated to 0.4
Posted: Mon 05 Nov 2007, 18:02
by plinej
updated to 0.5
Posted: Mon 05 Nov 2007, 23:07
by maddox
hello plinej
as promised tried out other wifi stick.. sorry bad news follows
looks like one of these buggy sticks!
wifi usb stick -> hercules HWGUSB2-54 usb2 54mb/s and it uses module ->rt2570 -> rausb0
# looks like there's a bug in "iwconfig essid" or the module, read on :
i'm using a HIDDEN 7 character essid, if i type in rxtv
Code: Select all
ifconfig rausb0 up
iwconfig rausb0 essid "1234567" channel 6 mode managed key off
iwconfig
the iwconfig ESSID = "123456" but it should be ESSID = "1234567"
it's missing the last character (nber 7) of the ESSID,
my fix -> add a space after the LAST character of essid, this works for me.
Code: Select all
iwconfig rausb0 essid "1234567 " channel 6 mode managed key off
Complication for your program : This stick outputs most of it's usefull info with the iwconfig command.
iwconfig command output :
rausb0 RT2500USB WLAN ESSID:"xxxxxxx" Nickname:""
Mode:Managed Frequency=2.412 GHz
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality=0/100 Signal level:-120 dBm Noise level:57 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
on start Pwireless 0.5 displays correctly Hidden/essid
Added a profile for my hidden essid
in the profile window :
1st box is for iwconfig commands -> it does NOT display the interface(device) or mode variable
2nd box is for dhcpcd -> it does NOT display the interface(device) variable
so even if i add them in and save the profile, it forgets them upon pwireless restart
pwireless-1-IWCONFIG -> iwconfig essid "xxxxxxx " channel 6 ap key off bit auto rate auto txpower auto (no interface/device after iwconfig and no mode variable)
Pwireless-dhcp -> dhcpcd (no interface/device after command)
If i manually type the commands in rxtv the stick works fine.
i'm using it now !
sorry about this
maddox
Posted: Tue 06 Nov 2007, 00:40
by plinej
No need for an apology, I appreciate you testing this. What would really help me out is if you could send me all of your Pwireless files in /tmp/. Just tar or zip them up and attach them to a PM to me.
Posted: Wed 07 Nov 2007, 02:16
by maddox
hello plinej,
been digging... Toutou 2.17+X, man this stick doesn't like it..
used connection wizard to configure the stick, then rebooted -> hanged Toutou on boot
looks like, etc/rausb0wireless (ifconfig & iwconfig commands) and etc/rausb0mode (dhcpcd command) don't run one after the other as they should.
1st major bug -> essid truncated (last character) as explained before, fixed it with extra space.
2nd bug -> seems like dhcpcd tries to run before interface is fully configured.
fixed hang with a few sleeps and 3 iwconfig parameter lines instead of 1 line
still wont autoconnect, but doesn't hang on boot, dhcpcd early problem...
really was a bit off topic but...
Pwireless 0.5 report..
these are my default values just after "add profile" in Pwireless 0.5
Code: Select all
iwconfig essid "" channel ap key ENTER-THE-KEY bit auto rate auto txpower auto
dhcpcd
# there is no "interface variable" after iwconfig and before essid
# dhcpcd has no "interface variable" after it.
# you've got the interface variable correctly "rausb0", shows in Pwireless
# there is no " mode variable" , you can't get it because you don't have the interface variable to retrieve it
Here is the output of my /tmp/Pwireless* files
Pwireless
rausb0 No scan results
Pwireless-device
(my comment, file is empty)
Pwireless-dhcp
dhcp
Pwireless-open
false
Pwireless-ssid
test-pwireless
let me know if you want more info
maddox
Posted: Wed 07 Nov 2007, 02:42
by plinej
Alright, I'll see what I can do. Thanks for the feedback.
Posted: Wed 07 Nov 2007, 03:26
by plinej
0.6 is now up
Maddox, this should correctly find your device now. My scripts initially searched for 802.11 in the iwconfig output but I see yours doesn't output that. Instead now it searches for the line with ESSID: to find the device. I also added a "sleep 3" between the iwconfig & dhcpcd commands.
Posted: Wed 07 Nov 2007, 03:59
by maddox
hello plinej,
great the "interface variable" is there
Code: Select all
iwconfig rausb0 essid "" channel auto ap auto key ENTER-THE-KEY bit auto rate auto txpower auto
dhcpcd rausb0
: ( still missing mode:managed in iwconfig line.
Code: Select all
rxtv iwconfig output
rausb0 RT2500USB WLAN ESSID:"xxxxxxx" Nickname:""
Mode:Managed Frequency=2.437 GHz Access Point: xx:xx:xx:xx:xx:xx
Bit Rate=54 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality=94/100 Signal level:-31 dBm Noise level:53 dBm
hey, thanks for your effort and time
maddox
Posted: Wed 07 Nov 2007, 04:02
by plinej
I don't have setting the mode anywhere in the script. I just get iwconfig errors when trying to set the mode.
--edit--
disregard that, mode seems to be working okay for me. I'll add it to the next update.
Posted: Wed 07 Nov 2007, 04:20
by maddox
hello plinej,
sorry about the mode:managed
should have been
my mistake, sorry
maddox
Posted: Wed 07 Nov 2007, 05:03
by plinej
maddox, I figured that's what you meant. I updated to 0.6.1 which adds "mode" to the iwconfig options.
Posted: Wed 07 Nov 2007, 13:05
by tempestuous
maddox wrote:the iwconfig ESSID = "123456" but it should be ESSID = "1234567"
it's missing the last character (nber 7) of the ESSID
That's a known problem with older versions of the Ralink drivers. I contributed the fixed version of the rt2570 driver (compatible with Puppy2.17) here -
http://www.murga-linux.com/puppy/viewtopic.php?t=20171
Posted: Wed 07 Nov 2007, 19:26
by maddox
hello tempestuous,
thanks for the link, saved the last hair left on my head, was scratching too hard!
and plinej, many thanks for your time and effort.
will install the mentioned pets and keep you posted
maddox
Posted: Thu 08 Nov 2007, 01:43
by maddox
hello plinej,
After installing the 2 pets (new-network wizard & rt2570) things have changed. The stick is configured and UP while doing the following tests. I just ran each prog without creating a profile or trying to connect, to see what each prog displayed on start.
ver 3 to 3.1 -> correctly displayed -> mode managed , encrypt open , but NO channel nber
ver 3.2 -> correctly displayed -> mode managed , encrypt open , but channel (lima 6)
ver 3.3 to 4 -> correctly displayed -> mode managed , channel 6 , encrypt open
# after ver. 4 -> mode , channel , encrypt -> are broken , looks like my doing. Seems like i sent you on the wrong track, after version 4, soooooory
ver 5 -> displayed hidden essid , no mode , no channel , no encrypt
ver 6 -> displayed hidden essid , no mode , channel auto , no encrypt , ap mac auto
ver 6.1 -> correctly displayed -> IP addr - hidden essid , no mode , channel auto , no encrypt , ap mac auto
Still willing to test if you're interested..
Toutou doesn't hang on boot anymore with the 2 pet's, but still no autoconnect. btw, tried to unistall new network-wizard pet, it broke esmourguit's connection-wizard, so reinstalled it.
# Stopped loosing my hair after using NOP's and sleep's.
maddox
Posted: Thu 08 Nov 2007, 18:56
by plinej
Alright, I should be able to work on it tonight if you can either PM me or post your output of "iwlist scanning" & "iwconfig". There must be some other little differences between my output and yours.
Posted: Fri 09 Nov 2007, 05:13
by plinej
0.7 is now up.
maddox, I plugged in your iwlist & iwconfig outputs into my script and I got the correctly desired outputs after some more code modification. Let me know if it works for you.
Posted: Sun 11 Nov 2007, 03:21
by plinej
0.7.1 is now posted