![]() |
How to connect to specific wlan in Terminal (dbus, iwconfig?)
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. |
Re: How to connect to specific wlan in Terminal (dbus, iwconfig?)
One could easily script this in bash and run it as a cron... dbus isn't needed.
|
Re: How to connect to specific wlan in Terminal (dbus, iwconfig?)
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. |
Re: How to connect to specific wlan in Terminal (dbus, iwconfig?)
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 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. |
All times are GMT. The time now is 20:18. |
vBulletin® Version 3.8.8