[maemo-developers] Automatically connect to dummy connection
From: Matan Ziv-Av matan at svgalib.orgDate: Tue Nov 17 11:02:00 EET 2009
- Previous message: Automatically connect to dummy connection
- Next message: Upgrade Description and Package Interface fun
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 17 Nov 2009, Jey Han Lau wrote: > I am trying to find a way to connect to a "dummy" connection > automatically for a Nokia N810. I have bluetooth PAN installed and have > scripts that make it pair it with another device automatically, but > whenever I browse the web the "Select a Connection" dialog box would pop > up and I'd have to manually select the "dummy" connection. Is there > anyway using a command or something to make it always connect to a dummy > connection, so that the user will not be prompted the select connection > dialog box? > > It shouldn't be too hard... but I just couldn't find information on this > on the Internet. The command to connect is: dbus-send --type=method_call --system --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:$NET uint32:0 where $NET is the network name (that appears in the connect dialog) before diablo, and network id since diablo. You can find the network id by running: gconftool-2 -R /system/osso/connectivity/IAP Or (if you have egrep installed): gconftool-2 -R /system/osso/connectivity/IAP | egrep IAP\|name If you want to disconnect, the command is: dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true -- Matan.
- Previous message: Automatically connect to dummy connection
- Next message: Upgrade Description and Package Interface fun
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]