Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Developers

Automatically connect to dummy connection

 

 

Maemo developers RSS feed   Index | Next | Previous | View Threaded


jeyhan.lau at transtech

Nov 16, 2009, 6:16 PM

Post #1 of 2 (335 views)
Permalink
Automatically connect to dummy connection

Hi all,

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.


Cheers,
Jey Han
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


matan at svgalib

Nov 17, 2009, 1:02 AM

Post #2 of 2 (310 views)
Permalink
Re: Automatically connect to dummy connection [In reply to]

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.

_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers

Maemo developers RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.