You Are Here:

Community: Developer Discussion Boards

#1 Old [ANN] Automatic access point selector - 2008-08-15, 22:08

Join Date: Nov 2005
Posts: 12
lhuovine
Offline
Registered User
Hello.

In a couple of experiments I've made lately the experimental programs had to automatically select the most suitable access point (WLAN or cell) currently available.

For that purpose I wrote a small PyS60 module that digs out some information regarding the access points configured to the phone. Then it scans the available WLAN and cell networks using Chris Berger's elocation and wlantools modules. Based on the scanning results the module then opens the 'best' network connection available.

If someone is interested the module and instructions are available at http://www.iki.fi/lasse/mobile/python.html
Note that the SIS package must be signed with DevCert at least for now...

For sure the code is very immature and the module requires still quite lots of improvements but in my experiments it seems to work pretty well.
Reply With Quote

#2 Old Re: [ANN] Automatic access point selector - 2008-08-15, 22:12

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Hi lhuovine,

Nice work !

Will surely give it a try when I find some time !

Best Regards,
Croozeus
Reply With Quote

#3 Old Re: [ANN] Automatic access point selector - 2008-08-15, 23:28

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
Quote:
Originally Posted by lhuovine View Post
Hello.

In a couple of experiments I've made lately the experimental programs had to automatically select the most suitable access point (WLAN or cell) currently available.

For that purpose I wrote a small PyS60 module that digs out some information regarding the access points configured to the phone. Then it scans the available WLAN and cell networks using Chris Berger's elocation and wlantools modules. Based on the scanning results the module then opens the 'best' network connection available.

If someone is interested the module and instructions are available at http://www.iki.fi/lasse/mobile/python.html
Note that the SIS package must be signed with DevCert at least for now...

For sure the code is very immature and the module requires still quite lots of improvements but in my experiments it seems to work pretty well.
Hello ,

I have been looking at your source code:

In the documentation :
Using the module autoap (this one is using apinfo from lhuovine , wlantools and elocation (both from Christophe Berger)

>>> import autoap
>>> nws = autoap.NetworkSelector()
>>> nws.setSelectionCriteria(criteria) #= This is optional, see below!
>>> status = nws.openNetworkConnection():
>>> if status == True:
... < do your stuff here, e.g. open http connection to somewehere >
... nws.closeNetworkConnection()


Provided API:

apinfo.wlanAPs():
-----------------
The function returns a list of the configured WLAN access points along with
their IAPid and network name (aka SSID). For example,
[{'iapid': 3, 'nwname': u'HomeWlan'}
{'iapid': 2, 'nwname': u'OfficeWlan'},
{'iapid': 9, 'nwname': u'CoffeeShop'}]

apinfo.cellAPs():
-----------------
The function returns a list of the configured GPRS access points that are
capable for Internet access along with their IAPid and network name.
See apinfo.wlanAPs() for a detailed example.

apinfo.version():
-------------------
Returns the version number of the wlaninfo module as a tuple (x,y,z).


apinfo api use


Code:
import apinfo
print apinfo.wlanAPs()
print apinfo.cellAPs()
Great module thanks for releasing it to us !

EDIT : Now I understood how it works !
BR
Cyke64


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Last edited by cyke64 : 2008-08-15 at 23:59.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Point & Packet Data Setting on Nokia 6633 ramusunkara Wired and Wireless interfaces 1 2007-08-19 04:44
Changing J2ME access point on 7270 aidygallagher Mobile Java General 2 2006-10-23 19:52
Access point creation problem stv2005 Symbian Networking & Messaging 0 2005-05-11 19:25
6600 + WAP Access Point = NO Internet? tzihx2 Mobile Java Networking & Messaging & Security 0 2005-05-11 16:23
setting access point for tcp/ip connection on 7650 suckho Symbian Networking & Messaging 7 2003-11-13 11:28

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia