| Author |
Message |
maddox
Joined: 28 Sep 2007 Posts: 453 Location: sometimes in France
|
Posted: Sat 03 Nov 2007, 18:34 Post subject:
|
|
hello plinej,
did it bit by bit, echo ..
grep cell ->
this is where it breaks, as you're looking for a bracket that doesn't exist in my output.
thanks and hope it helps
maddox
|
|
Back to top
|
|
 |
plinej
Joined: 13 Aug 2006 Posts: 1517
|
Posted: Sat 03 Nov 2007, 18:45 Post subject:
|
|
ahh, okay. I'll have 0.3.2 up shortly.
|
|
Back to top
|
|
 |
maddox
Joined: 28 Sep 2007 Posts: 453 Location: sometimes in France
|
Posted: Sat 03 Nov 2007, 19:04 Post subject:
|
|
hello plinej,
now i get this as a channel -> lima 6
thats the tail part
maddox
Last edited by maddox on Sat 03 Nov 2007, 23:59; edited 1 time in total
|
|
Back to top
|
|
 |
plinej
Joined: 13 Aug 2006 Posts: 1517
|
Posted: Sat 03 Nov 2007, 19:15 Post subject:
|
|
Okay, I'll use grep to only have numbers in the results.
grep -o [0-9] should work. I'll package up 0.3.3 in a minute.
--edit--
Okay it needs to be this:
grep -o [0-9][0-9]*
since it may or may not be a double digit channel.
|
|
Back to top
|
|
 |
plinej
Joined: 13 Aug 2006 Posts: 1517
|
Posted: Sat 03 Nov 2007, 19:29 Post subject:
|
|
Okay, 0.3.3 is up. Thank you maddox for testing! I want to make sure this works for everybody so please leave some testing feedback.
|
|
Back to top
|
|
 |
maddox
Joined: 28 Sep 2007 Posts: 453 Location: sometimes in France
|
Posted: Sat 03 Nov 2007, 19:44 Post subject:
|
|
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
|
|
Back to top
|
|
 |
plinej
Joined: 13 Aug 2006 Posts: 1517
|
Posted: Sat 03 Nov 2007, 19:53 Post subject:
|
|
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.
|
|
Back to top
|
|
 |
plinej
Joined: 13 Aug 2006 Posts: 1517
|
Posted: Sat 03 Nov 2007, 22:52 Post subject:
|
|
updated to 0.3.4, just some minor code cleanup.
|
|
Back to top
|
|
 |
plinej
Joined: 13 Aug 2006 Posts: 1517
|
Posted: Sun 04 Nov 2007, 00:43 Post subject:
|
|
updated to 0.4
|
|
Back to top
|
|
 |
plinej
Joined: 13 Aug 2006 Posts: 1517
|
Posted: Mon 05 Nov 2007, 14:02 Post subject:
|
|
updated to 0.5
|
|
Back to top
|
|
 |
maddox
Joined: 28 Sep 2007 Posts: 453 Location: sometimes in France
|
Posted: Mon 05 Nov 2007, 19:07 Post subject:
|
|
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: | 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: | | 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
| Quote: | 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
|
|
Back to top
|
|
 |
plinej
Joined: 13 Aug 2006 Posts: 1517
|
Posted: Mon 05 Nov 2007, 20:40 Post subject:
|
|
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.
|
|
Back to top
|
|
 |
maddox
Joined: 28 Sep 2007 Posts: 453 Location: sometimes in France
|
Posted: Tue 06 Nov 2007, 22:16 Post subject:
|
|
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: | 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
|
|
Back to top
|
|
 |
plinej
Joined: 13 Aug 2006 Posts: 1517
|
Posted: Tue 06 Nov 2007, 22:42 Post subject:
|
|
Alright, I'll see what I can do. Thanks for the feedback.
|
|
Back to top
|
|
 |
plinej
Joined: 13 Aug 2006 Posts: 1517
|
Posted: Tue 06 Nov 2007, 23:26 Post subject:
|
|
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.
|
|
Back to top
|
|
 |
|