OESF Portables Forum

Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => Python => Topic started by: enodr on November 26, 2006, 12:59:22 pm

Title: Wifi Scanner In Python (pyqt + Pyiw)
Post by: enodr on November 26, 2006, 12:59:22 pm
Here is a sample pyqt app using the pyiw bindings:

[img]http://www.geek-fr.com/_media/projects/python_wifi2.png\" border=\"0\" class=\"linked-image\" /]

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

PS: file to run is wifi.py
Title: Wifi Scanner In Python (pyqt + Pyiw)
Post by: nilch on December 06, 2006, 11:29:59 pm
./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
Title: Wifi Scanner In Python (pyqt + Pyiw)
Post by: bam on December 07, 2006, 03:10:51 am
verfied, this is what I get as well.
Title: Wifi Scanner In Python (pyqt + Pyiw)
Post by: enodr on December 07, 2006, 03:51:07 am
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 (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.
Title: Wifi Scanner In Python (pyqt + Pyiw)
Post by: nilch on December 07, 2006, 11:03:58 am
-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)
Title: Wifi Scanner In Python (pyqt + Pyiw)
Post by: nilch on January 05, 2007, 09:54:09 am
bump
Title: Wifi Scanner In Python (pyqt + Pyiw)
Post by: enodr on January 05, 2007, 12:13:48 pm
Quote
bump
[div align=\"right\"][a href=\"index.php?act=findpost&pid=150152\"][{POST_SNAPBACK}][/a][/div]

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.