Re: om2009 activating wifi

2009-07-23 Thread Aapo Rantalainen
Most of the time I use only one essid, so I have this script to activate wlan:

mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage
org.freesmartphone.Usage.SetResourcePolicy WiFi enabled
iwconfig eth0 essid ESSID_NAME
ifup eth0

-Aapo Rantalainen

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: om2009 activating wifi

2009-07-23 Thread Al Johnson
On Thursday 23 July 2009, pike wrote:
> Hi
>
> >> Is there a way to request WiFi activation from
> >> FSO straight from the command line ?
> >
> > Yes, if you search the archive you'll find some mdbus or dbus-send
> > examples, or as saied you may use fsoraw.
>
> Sorry, I found none. I'm sure I just dont
> really know what I'm looking for.
>
> Anyway, mdbus helped me out:
> alltogether this is my way to
> get wifi from scratch that doesnt
>
> die every 20 secs :
> > # keep the screen alive
> > mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage \
> > org.freesmartphone.Usage.SetResourcePolicy \
> > Display enabled
> >
> > # power up wifi
> > mdbus -s org.freesmartphone.odeviced \
> > /org/freesmartphone/Device/PowerControl/WiFi \
> > org.freesmartphone.Device.PowerControl.SetPower True

This one would be better:
mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage \
org.freesmartphone.Usage.SetResourcePolicy \
WiFi enabled

> >
> > # bounce eth0
> > ifdown eth0; ifup eth0
> >
>  > # more custom stuff
>
> thanks,
> *-pike
>
> ___
> Openmoko community mailing list
> community@lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: om2009 activating wifi

2009-07-22 Thread pike
Hi

>> Is there a way to request WiFi activation from
>> FSO straight from the command line ?
> 
> Yes, if you search the archive you'll find some mdbus or dbus-send
> examples, or as saied you may use fsoraw.

Sorry, I found none. I'm sure I just dont
really know what I'm looking for.

Anyway, mdbus helped me out:
alltogether this is my way to
get wifi from scratch that doesnt
die every 20 secs :

> # keep the screen alive
> mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage \
> org.freesmartphone.Usage.SetResourcePolicy \
> Display enabled
> 
> # power up wifi
> mdbus -s org.freesmartphone.odeviced \
> /org/freesmartphone/Device/PowerControl/WiFi \
> org.freesmartphone.Device.PowerControl.SetPower True
> 
> # bounce eth0
> ifdown eth0; ifup eth0
 >
 > # more custom stuff


thanks,
*-pike

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: om2009 activating wifi

2009-07-22 Thread Nicola Mfb
On Wed, Jul 22, 2009 at 11:28 PM, jeremy jozwik wrote:
> On Wed, Jul 22, 2009 at 2:18 PM, pike wrote:
>> none of the gui's ever got me a connection.
>> it's working fine now after doing it manually
>> a 1000 times and finally wrapping that up in
>> a shell script today.
>
>> $2c,
>> *-pike
>
> thanks, but woish! making this:
> http://wiki.openmoko.org/wiki/GTA02_WLAN#Sample_wpa_supplicant.conf
>
> will have to wait till i get home. no way im writing that out key by
> key on the moko

There are a lot of GUI WiFi managers available.

I did some WiFi brainstorming for a while, however often WiFi does not
work out of the box on the freerunner, see some considerations on
http://wiki.openmoko.org/wiki/WiFi_Managers

If you are lucky this may work for you, but be aware of it pre-pre-pre
alpha status and bad inclination from the author to complete or
support it :)

http://wiki.openmoko.org/wiki/NWA

Regards

Nicola

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: om2009 activating wifi

2009-07-22 Thread Nicola Mfb
On Wed, Jul 22, 2009 at 11:22 PM, pike wrote:
[...]
>> It talks to FSO to request WiFi activation, FSO will turn on the WiFi.
>> If your WiFi manager requests the WiFi resource directly to FSO you do
>> not need to activate the WiFi in paroli.
>
> OK. I dont really understand that last sentence,
> but thats ok :-) I suppose it means f.e. MoFi could
> talk to FSO too, if it wanted (perhaps it even
> does).
>
> Is there a way to request WiFi activation from
> FSO straight from the command line ?

Yes, if you search the archive you'll find some mdbus or dbus-send
examples, or as saied you may use fsoraw.

Nicola

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: om2009 activating wifi

2009-07-22 Thread jeremy jozwik
On Wed, Jul 22, 2009 at 2:18 PM, pike wrote:
> none of the gui's ever got me a connection.
> it's working fine now after doing it manually
> a 1000 times and finally wrapping that up in
> a shell script today.

> $2c,
> *-pike

thanks, but woish! making this:
http://wiki.openmoko.org/wiki/GTA02_WLAN#Sample_wpa_supplicant.conf

will have to wait till i get home. no way im writing that out key by
key on the moko

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: om2009 activating wifi

2009-07-22 Thread pike
Hi

>> I have to 'activate' the wifi driver in paroli first.
> That's a feature, not a bug ;)
yep

>> So the question is, what does "activate" mean
>> in paroli ? what does it do ?
> 
> It talks to FSO to request WiFi activation, FSO will turn on the WiFi.
> If your WiFi manager requests the WiFi resource directly to FSO you do
> not need to activate the WiFi in paroli.

OK. I dont really understand that last sentence,
but thats ok :-) I suppose it means f.e. MoFi could
talk to FSO too, if it wanted (perhaps it even
does).

Is there a way to request WiFi activation from
FSO straight from the command line ?

thanks,
*-pike

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: om2009 activating wifi

2009-07-22 Thread pike
Hi


> are there any other tips for wifi? ive tried monfi and saskia and
> still have yet to get a connection at work or home.
> so besides this usb0 thing and turning on the wifi radio what other
> steps are there?

none of the gui's ever got me a connection.
it's working fine now after doing it manually
a 1000 times and finally wrapping that up in
a shell script today.

How it works manually depends on your setup.

If you're not using wep or wpa (like i dont),
its basicly a combination of the right
/etc/network/interfaces, ifup, ifdown (and
iwconfig to speed it up). ifup should call
udhcpc for you. iwlist is your friend, too.

if you are using wep or wpa, i guess you'd
need to write a wpa_supplicant.

All that is described here
http://wiki.openmoko.org/wiki/Wireless_Networking

except for how to exactly set up
/etc/network/interfaces.
I figured that out by reading examples...

Indeed, it wasnt easy. For me.

$2c,
*-pike



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: om2009 activating wifi

2009-07-22 Thread Nicola Mfb
On Wed, Jul 22, 2009 at 11:03 PM, pike wrote:
> Hi
>
[...]
> I have to 'activate' the wifi driver in paroli first.
> Before that, eth0 is just completely non-existant as
> a device; ifup,ifdown,iwconfig and friends will just
> not see it. eth0 - no such device.

That's a feature, not a bug ;)

> So the question is, what does "activate" mean
> in paroli ? what does it do ?

It talks to FSO to request WiFi activation, FSO will turn on the WiFi.
If your WiFi manager requests the WiFi resource directly to FSO you do
not need to activate the WiFi in paroli.


Nicola

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: om2009 activating wifi

2009-07-22 Thread pike
Hi

>> One thing you must do, is "ifdown usb0" in the command line.

Or "route del default gw 192.168.0.202".

But I've removed the default usb route from /etc/networking/.
I *never* connect outwards through usb. I use a mac.
So I dont have to do that anymore. What I tried to say is,
its all working fine now .. except

I have to 'activate' the wifi driver in paroli first.
Before that, eth0 is just completely non-existant as
a device; ifup,ifdown,iwconfig and friends will just
not see it. eth0 - no such device.

So the question is, what does "activate" mean
in paroli ? what does it do ?

thanks,
*-pike


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: om2009 activating wifi

2009-07-22 Thread jeremy jozwik
On Wed, Jul 22, 2009 at 1:42 PM, Rui Miguel Silva Seabra wrote:
> One thing you must do, is "ifdown usb0" in the command line.
>
> Don't forget to do "ifup usb0" if you want usb connectivity again :)
> Rui

are there any other tips for wifi? ive tried monfi and saskia and
still have yet to get a connection at work or home.
so besides this usb0 thing and turning on the wifi radio what other
steps are there?

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: om2009 activating wifi

2009-07-22 Thread Rui Miguel Silva Seabra
On Wed, Jul 22, 2009 at 10:35:25PM +0200, pike wrote:
> and another one - I have scripts to connect
> to my wifi, several ways, it all works, but
> only after I "activated" the wifi driver.
> 
> The only way I know how to do that is through
> Paroli settings. Is there a way to do it
> from the command line ?

One thing you must do, is "ifdown usb0" in the command line.

Don't forget to do "ifup usb0" if you want usb connectivity again :)
Rui

-- 

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community