Hi,
I need some help with the following problem.
I'm using wlantools in a loop. At start it is working fine scanning wlans. However, after few minutes, while walking with the phone around (so wlans are changing) the script crashes within wlantools.scan() without any exception and Python exit.
I narrowed it down to the following simple script which scans in a loop:
import e32
import wlantools
def my_scan():
w = wlantools.scan()
return w
while True:
w = my_scan()
if (w == None):
print(0)
else:
l=len(w)
print(l)
for i in w:
print(' %s'%(i['SSID']))
e32.ao_sleep(1)
##############################
I must say it doesn't crash while i'm sitting in one place. only when wlans are changing.
I'm running:
Nokia N95 8gb, S60 3rd FP1
Python 1.4.5
wlantools: wlantools-PyS60_1_4_5_3rdEdFP1.sis (which I signed with Symbian Online sign. and gave it all capabilities)
Both Python and wlantools are installed on the memory of the phone.
Any idea what could it be? maybe some dependency on bad library?? I ran out of ideas!?
Thanks
a lot
Yossi

Reply With Quote


