| Reply | « Previous Thread | Next Thread » |
|
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. |
|
Hi lhuovine,
Nice work ! Will surely give it a try when I find some time ! Best Regards, Croozeus |
|
Quote:
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() 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 | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| 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 |