OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Wifi Scanner In Python (pyqt + Pyiw)
enodr
post Nov 26 2006, 09:59 AM
Post #1





Group: Members
Posts: 133
Joined: 5-April 06
Member No.: 9,537



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
Attached File(s)
Attached File  wifi.zip ( 21.57K ) Number of downloads: 65
 
Go to the top of the page
 
+Quote Post
nilch
post Dec 6 2006, 08:29 PM
Post #2





Group: Members
Posts: 668
Joined: 3-December 03
From: US
Member No.: 1,034



./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
Go to the top of the page
 
+Quote Post
bam
post Dec 7 2006, 12:10 AM
Post #3





Group: Members
Posts: 1,213
Joined: 9-June 05
From: Gobi Desert, Mongolia
Member No.: 7,306



verfied, this is what I get as well.
Go to the top of the page
 
+Quote Post
enodr
post Dec 7 2006, 12:51 AM
Post #4





Group: Members
Posts: 133
Joined: 5-April 06
Member No.: 9,537



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.
Go to the top of the page
 
+Quote Post
nilch
post Dec 7 2006, 08:03 AM
Post #5





Group: Members
Posts: 668
Joined: 3-December 03
From: US
Member No.: 1,034



-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)
Go to the top of the page
 
+Quote Post
nilch
post Jan 5 2007, 06:54 AM
Post #6





Group: Members
Posts: 668
Joined: 3-December 03
From: US
Member No.: 1,034



bump
Go to the top of the page
 
+Quote Post
enodr
post Jan 5 2007, 09:13 AM
Post #7





Group: Members
Posts: 133
Joined: 5-April 06
Member No.: 9,537



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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th December 2014 - 11:33 AM