Reply
Thread Tools
Posts: 156 | Thanked: 90 times | Joined on Jan 2010
#1
I would like to schedule connection to specific wlans with fcron method (http://talk.maemo.org/showthread.php?t=38417). For example: connect every day at 6 pm to wlan "Home".

But I don't know which dbus call to use to connect to specific wlan (which is saved in N900). I suspect this is not possible so I was thinking further, to do it via iwconfig (wireless tools), but in a way that it would be integrated well in Maemo. dbus calls work superb so I would prefer this option. However, I couldn't find anything useful with dbus-monitor.
 
Posts: 46 | Thanked: 5 times | Joined on Sep 2009
#2
One could easily script this in bash and run it as a cron... dbus isn't needed.
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#3
It is possible. See here for example.

http://www.mail-archive.com/maemo-us.../msg02507.html

You might (depending upon use case) to send a disconnect command first, since connect command is ignored if already connected.

Note that you don't use connection name, but connection ID.
__________________
My repository

"N900 community support for the MeeGo-Harmattan" Is the new "Mer is Fremantle for N810".

No more Nokia devices for me.
 

The Following User Says Thank You to Matan For This Useful Post:
Posts: 156 | Thanked: 90 times | Joined on Jan 2010
#4
It works! dbus call is:

Code:
dbus-send --type=method_call --system --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:IAP uint32:0
IAP is internet access point identifier and can be obtained with:

gconftool -R /system/osso/connectivity/IAP

Also keep in mind that phone has to be disconnected in order to connect via this call.

But one question still remains: how to automatically connect to GPRS AP? This method DOES NOT work for GPRS unfortunately.
 

The Following 2 Users Say Thank You to rooted For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 20:42.