Help - Search - Members - Calendar
Full Version: Wifi Scanner In Python (pyqt + Pyiw)
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > Python
enodr
Here is a sample pyqt app using the pyiw bindings:



and the package attached (will run only on Sharp ROM compatible).

PS: file to run is wifi.py
nilch
./wifi.py
Using device: wlan0

Version [ PyIW ]: (0, 3, 1)
Version [ libiw/WE ]: 21
Version [ kernel/WE ]: 16

Display size = 480x640
Traceback (most recent call last):
File "./wifi.py", line 44, in ?
for net in iface.Scan():
pyiw.error: Unable to read scan data


above is the error i get when I ran the script.
internet connection is already on. just a note - I ran the script ftom /mnt/card location where I have it all copied.

am using kopsis python.
Hope this helps in resolving the error and is helpful for you. would be gladto use this tool.

thanks
bam
verfied, this is what I get as well.
enodr
Could you post more detailed information about setup:
- kernel version
- wifi card
- interface name
- python version

I am not sure about Kopsis Python. I am using Python and pyiw from http://sharpromfeed.home.linuxtogo.org

The script uses by default wlan0 as interface. If yours has a different name, juste edit the script and change the interface name (at the beginning of the script).

Also I am using the hostap driver.

As the 2.4.18 sharp and cacko kernels are using wireless extensions version 16 some bugs are expected (for example signal quality does not report correctly for me), but it does work for detecting networks.
nilch
-Am using Cacko 1.23 ROM on Zaurus SL-1000
-Linux Kernel 2.4.20
-Wifi Card is a Symbol Spectrum 24 wireless Networker card

-As I can see from the error message itself the interface names is wlan0

-Python version is 2.4 (from Kopsis python for the Zaurus)
nilch
bump
enodr
QUOTE(nilch @ Jan 5 2007, 06:54 AM)
bump
*


I have not played with pyiw since your last post! It's working fine on my setup, so I cannot say more. Maybe a problem with the wifi card firmware version?

If you need a wifi manager, try the port of wpa-gui I made for sharprom. I am using it everyday and it works great and it's faster than python/qt.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.