[maemo-developers] How I can deploy an Ad-Hoc WLAN connection with terminal commands?

From: Martin Wegner martinator.de at arcor.de
Date: Sat Dec 13 07:47:27 EET 2008
Hello,

the "dbus-send --type=method_call --system --dest=com.nokia.icd
/com/nokia/icd com.nokia.icd.connect..." command works only if there is
no active connection :(

Can someone tell me the disconnect command, please?

And is there a command which tell me the "network id" when I know the
"network name" or SSID?

Thank you very much!

Greetings, Martin



Matan Ziv-Av schrieb:
> On Thu, 27 Nov 2008, Martin Wegner wrote:
>
>> Hello,
>>
>> I have a Nokia N800 Device and currently I use iwconfig to deploy an
>> Ad-Hoc WLAN connection with this commands:
>>
>> /sbin/ifconfig wlan0 up
>> /sbin/ifconfig wlan0 192.168.1.1 netmask 255.255.255.0
>> /sbin/iwconfig wlan0 mode Ad-Hoc essid Kopan key s:blablub
>>
>> This works but the Maemo GUI and some internals don't recognize this
>> connection.
>> The Maemo GUI implementation don't use iwconfig.
>> I know that I can use the Maemo GUI to deploy this connection but I need
>> a way to do this with and only with terminal commands.
>>
>> It would be very great if someone can say me which commands I need to
>> deploy this Ad-Hoc WLAN connection so that there is no difference to a
>> "GUI made connection".
>>
>> I searched in the internet and find the information that the GUI
>> connection settings are saved in XML files in
>> /var/lib/gconf/system/osso/connectivity/IAP/My_Connection so that I can
>> generate the correct XML file.
>> But the big question is how to deploy this connection.
>
> If by deploy you mean activate the connection after you set it up
> correctly (using GUI or gconf), then you can use dbus for that:
>
> 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.
>
>

More information about the maemo-developers mailing list