Re: [maemo-users] Re: Connect to WLAN from command line

2007-01-09 Thread Frantisek Dufka

Fabio Forno wrote:

I've got the same problem. With gconftool I can set the value of
"timeout_wlan" to any value, but after fee seconds (about ten) it
disconnects.


Same here, happens also with DUMMY IAP type. Timeout setting seems to 
have no effect on this. But it has to be possible somehow since when 
done manually via UI it does not autoclose even if there is no network 
traffic. I wonder where this manual vs automatic flag is stored. Cannot 
find it with gconftool. It is a shame since this is the last bit I'm 
missing in my bluetooth PAN setup script to make it one menu item issue.


Frantisek
___
maemo-users mailing list
maemo-users@maemo.org
https://maemo.org/mailman/listinfo/maemo-users


Re: [maemo-users] Re: Connect to WLAN from command line

2007-01-09 Thread Fabio Forno

On 1/9/07, Michael Stepanov <[EMAIL PROTECTED]> wrote:

Did you specify an option in the connection manager do not break WLAN
connection never? Maybe it may help to resolve this problem.


I've got the same problem. With gconftool I can set the value of
"timeout_wlan" to any value, but after fee seconds (about ten) it
disconnects.

My connectivity settings at the moment are:

gconftool-2 -a /system/osso/connectivity/IAP
timeout_dun_cs = 30
wlan_tx_power = 8
current = (no value set)
timeout_wlan = 60
flightmode_wlan = false
last_used_iap = rfid
auto_connect = WLAN
timeout_dun_ps = 0
disconnect_on_cover = true

Any idea?

--
Fabio Forno, PhD
Istituto Superiore Mario Boella
Jabber ID: xmpp:[EMAIL PROTECTED]
** Try Jabber http://www.jabber.org
___
maemo-users mailing list
maemo-users@maemo.org
https://maemo.org/mailman/listinfo/maemo-users


Re: [maemo-users] Re: Connect to WLAN from command line

2007-01-08 Thread Michael Stepanov

On 1/6/07, Pigeon <[EMAIL PROTECTED]> wrote:


>  Download the iwconfig packages, once you got them you will have the
>  iwconfig iwspy iwlist etc. Look for a howto to use it. Remember
>  first to ifup wlan0.
>  iwlist will give you the broadcast AP, but if you want to put one
>  manually you should use
>  iwconfig wlan0 ssid "XYZ" key 1011010101AB
>
>Well, I installed wireless tools package and tried to use it:


I had to do something similiar. However iwconfig simply won't work
properly for some reason, I asked around a while ago:

http://www.mail-archive.com/maemo-users@maemo.org/msg01896.html


Anyway, I figured a working but dodgy way to get it working.

Firstly you have to setup the wireless connection at the usual GUI
configuration. Make sure this works.

Then I have a script that runs:

dbus-send --type=method_call --system --dest=com.nokia.icd/com/nokia/icd
com.nokia.icd.connect string:${IAP} uint32:0

where $IAP is the identifier (name) of the wireless connection you've
setup in the GUI config.



Good way!

   What's even worse is, I have to run that command line every 5

seconds or so (I put it in the script in a while loop to run that and
then sleep 5), as the connection daemon seems to disconnect
automatically. I think it disconnects if there's no application using
the N770 framework/lib to make network connections. So if I have some
custom software that uses the network it won't help either.



Did you specify an option in the connection manager do not break WLAN
connection never? Maybe it may help to resolve this problem.

Pigeon.


___
maemo-users mailing list
maemo-users@maemo.org
https://maemo.org/mailman/listinfo/maemo-users





--
Cheers,
Michael
___
maemo-users mailing list
maemo-users@maemo.org
https://maemo.org/mailman/listinfo/maemo-users


Re: [maemo-users] Re: Connect to WLAN from command line

2007-01-08 Thread Ted Zlatanov
On  5 Jan 2007, [EMAIL PROTECTED] wrote:

> What's even worse is, I have to run that command line every 5
> seconds or so (I put it in the script in a while loop to run that and
> then sleep 5), as the connection daemon seems to disconnect
> automatically. I think it disconnects if there's no application using
> the N770 framework/lib to make network connections. So if I have some
> custom software that uses the network it won't help either.

Quoting Kalle Valo:

> You are interested in osso_iap_connect() call with OSSO_IAP_ANY IAP.
> This document gives more information:

> http://maemo.org/platform/docs/howtos/howto_connectivity_guide.html

So you just need a very small program that calls this, then sleeps
forever, I'd assume (maybe it needs an exit handler, I don't know).  I
can't install Scratchbox to develop for ITOS2006 on my machine here,
so maybe someone else can compile that and try it.

Hmm, is there a way to call osso_* functions from Perl?

Ted
___
maemo-users mailing list
maemo-users@maemo.org
https://maemo.org/mailman/listinfo/maemo-users


Re: [maemo-users] Re: Connect to WLAN from command line

2007-01-05 Thread Marius Gedminas
On Sat, Jan 06, 2007 at 09:57:00AM +1100, Pigeon wrote:
> I had to do something similiar. However iwconfig simply won't work
> properly for some reason, I asked around a while ago:
> 
> http://www.mail-archive.com/maemo-users@maemo.org/msg01896.html
> 
> 
> Anyway, I figured a working but dodgy way to get it working.
> 
> Firstly you have to setup the wireless connection at the usual GUI
> configuration. Make sure this works.
> 
> Then I have a script that runs:
> 
> dbus-send --type=method_call --system --dest=com.nokia.icd /com/nokia/icd 
> com.nokia.icd.connect string:${IAP} uint32:0
> 
> where $IAP is the identifier (name) of the wireless connection you've
> setup in the GUI config.
> 
> What's even worse is, I have to run that command line every 5
> seconds or so (I put it in the script in a while loop to run that and
> then sleep 5), as the connection daemon seems to disconnect
> automatically. I think it disconnects if there's no application using
> the N770 framework/lib to make network connections. So if I have some
> custom software that uses the network it won't help either.

Do you know how to use /usr/bin/connectivity_preload.sh on the 770?  See
http://maemo.org/platform/docs/howtos/howto_connectivity_guide.html
for more information.

I've written a small shell script that wraps ssh and automatically
brings up the WLAN if it isn't on already.  Maemo keeps the connection
up as long as my ssh session is active.  (Of course it only works for
sessions from the 770 to some remote server.  It would be cool if
ssh my-nokia brought its wifi up, but there's a chicken-and-egg problem
here.)

Marius Gedminas
-- 
Which is worse: ignorance or apathy?  Who knows?  Who cares?


signature.asc
Description: Digital signature
___
maemo-users mailing list
maemo-users@maemo.org
https://maemo.org/mailman/listinfo/maemo-users


[maemo-users] Re: Connect to WLAN from command line

2007-01-05 Thread Pigeon
>  Download the iwconfig packages, once you got them you will have the
>  iwconfig iwspy iwlist etc. Look for a howto to use it. Remember
>  first to ifup wlan0.
>  iwlist will give you the broadcast AP, but if you want to put one
>  manually you should use
>  iwconfig wlan0 ssid "XYZ" key 1011010101AB
> 
>Well, I installed wireless tools package and tried to use it:


I had to do something similiar. However iwconfig simply won't work
properly for some reason, I asked around a while ago:

http://www.mail-archive.com/maemo-users@maemo.org/msg01896.html


Anyway, I figured a working but dodgy way to get it working.

Firstly you have to setup the wireless connection at the usual GUI
configuration. Make sure this works.

Then I have a script that runs:

dbus-send --type=method_call --system --dest=com.nokia.icd /com/nokia/icd 
com.nokia.icd.connect string:${IAP} uint32:0

where $IAP is the identifier (name) of the wireless connection you've
setup in the GUI config.

What's even worse is, I have to run that command line every 5
seconds or so (I put it in the script in a while loop to run that and
then sleep 5), as the connection daemon seems to disconnect
automatically. I think it disconnects if there's no application using
the N770 framework/lib to make network connections. So if I have some
custom software that uses the network it won't help either.


Pigeon.

___
maemo-users mailing list
maemo-users@maemo.org
https://maemo.org/mailman/listinfo/maemo-users