Re: Fast questions (email, GPRS, WiFi...)

2008-07-26 Thread Peter Nijs
After a while it became clear it was only reproducible when my neo can visibly 
see my router. When there's concrete in between it doesn't work for my neo. 
My notebook on the other hand reports 60% signal strength and can connect in 
seconds.

When udhcpc is sending "discovers" I can see on my router it is receiving 
these discovers and is assigning my neo an ip. Unfortunatly udhcpc keeps 
sending "discovers" as if it doesn't hear my router's respons.

Sometimes udhcpc outputs a couple of this lines "Sending select for 
192.168.1.92...". At these moments I can see on my router the lease time for 
that ip is forever. But after udhcpc outputted a couple of these lines it 
reverts to sending "discovers".

When I leave udhcpc running for like 10 minutes it finally also receives a 
lease time which is quite forever (140773632 seconds). My router reports it 
as forever.

Here's my iwconfig output if it can be of any use:

[EMAIL PROTECTED]:~# iwconfig
lono wireless extensions.

usb0  no wireless extensions.

eth0  AR6000 802.11g  ESSID:"PN"
  Mode:Managed  Frequency:2.462 GHz  Access Point: 00:0E:2E:BA:1E:51
  Bit Rate=1 Mb/s   Tx-Power=15 dBm   Sensitivity=0/3
  Retry:on
  Encryption key:off
  Power Management:off
  Link Quality:172/94  Signal level:-179 dBm  Noise level:-96 dBm
  Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
  Tx excessive retries:39  Invalid misc:0   Missed beacon:0

I think it's mainly a bug in udhcpc which maibe isn't fully compatible with my 
edimax router and dhcp server.

Peter Nijs

Op Friday 25 July 2008 01:27:58 schreef Peter Nijs:
> With udhcpc eth0 immediatly after ifup eth0 I seem to get an IP
> (reproducably!). I also did ifdown usb0 now before I did ifup eth0. I was
> planning to that _after_ I got an IP on eth0. Thanks for the help!
>
> Peter Nijs
>
> Op Thursday 24 July 2008 23:09:12 schreef Jim Morris:
> > Make sure you do ifdown usb0 before ifup eth0
> >
> > Then if dhcp does not get a lease first time through (which for me is
> > about 50/50) then you can do this from the console which always gets the
> > lease for me.
> >
> >  > udhcpc eth0
> >
> > After that wifi should work.
> >
> > Peter Nijs wrote:
> > > After a whole lot of tweaking I still cannot get an IP from my wireless
> > > router. My current setup looks like this:
> > >
> > > /etc/network/interfaces:---
> > > # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
> > >
> > > # The loopback interface
> > > auto lo
> > > iface lo inet loopback
> > >
> > > # Wireless interfaces
> > > iface wlan0 inet dhcp
> > > wireless_mode managed
> > > wireless_essid any
> > > iface atml0 inet dhcp
> > >
> > > # Wired or wireless interfaces
> > > iface eth0 inet dhcp
> > >wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
> > >
> > > iface eth1 inet dhcp
> > >
> > > # Ethernet/RNDIS gadget (g_ether)
> > > # ... or on host side, usbnet and random hwaddr
> > > auto usb0
> > > iface usb0 inet static
> > >   address 192.168.0.202
> > >   netmask 255.255.255.0
> > >   network 192.168.0.0
> > >   gateway 192.168.0.200
> > >   up echo nameserver 192.168.0.200 >/etc/resolv.conf
> > >
> > > # Bluetooth networking
> > > iface bnep0 inet dhcp
> > >
> > >
> > > /etc/wpa_supplicant/wpa_supplicant:
> > >--  ctrl_interface=/var/run/wpa_supplicant
> > > ctrl_interface_group=0
> > > eapol_version=1
> > > ap_scan=1
> > > fast_reauth=0
> > >
> > > network={
> > >  ssid="PN"
> > >  scan_ssid=1
> > >  key_mgmt=NONE
> > >  wep_tx_keyidx=0
> > >
> > >  wep_key0=
> > >  priority=8
> > > }
> > >
> > >
> > > Now here's what I do:
> > > [EMAIL PROTECTED]:~# ifup eth0
> > > sed: unrecognized option `--quiet'
> > > BusyBox v1.11.1 (2008-07-18 00:49:01 CEST) multi-call binary
> > >
> > > Usage: sed [-efinr] pattern [files...]
> > >
> > > WPA: Configuring Interface
> > > ioctl[SIOCSIWENCODEEXT]: Operation not supported
> > > ioctl[SIOCSIWENCODEEXT]: Operation not supported
> > > ioctl[SIOCSIWENCODEEXT]: Operation not supported
> > > ioctl[SIOCSIWENCODEEXT]: Operation not supported
> > > udhcpc (v1.11.1) started
> > > run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1
> > > Sending discover...
> > > Sending discover...
> > > Sending discover...
> > > No lease, failing
> > > [EMAIL PROTECTED]:~# iwconfig
> > > lono wireless extensions.
> > >
> > > usb0  no wireless extensions.
> > >
> > > eth0  AR6000 802.11g  ESSID:"PN"
> > >   Mode:Managed  Frequency:2.462 GHz  Access Point:
> > > 00:0E:2E:BA:1E:51 Bit Rate=36 Mb/s   Tx-Power=15 dBm   Sensitivity=0/3
> > >   Retry:on
> > >   Encryption key:897B-9067-4C99-1AC7-B433-AABB-01   Security
> > > mode:open Power Management:off
> > >   Link Quality:180/94  Signal level:-171 dBm  Noise level:-96
> > > dBm Rx invalid nwid:

Re: Fast questions (email, GPRS, WiFi...)

2008-07-26 Thread Peter Nijs
Ok, I switched to wpa. I had to change the key anyway (If you watch the 
iwconfig output I posted, you can see my wep-key :P ).

Peter

Op Friday 25 July 2008 00:06:38 schreef Evan:
>  "wep_key0="
>
>  its wep, therefore obsolete. if anyone lives near you and wants to know
> your key, they will take the 10 minutes or less that it takes to crack any
> wep key. consider wpa
>
>
>  Jim Morris wrote:
> Make sure you do ifdown usb0 before ifup eth0
>
> Then if dhcp does not get a lease first time through (which for me is about
> 50/50) then you can do this from the console which always gets the lease
> for me.
>
>  > udhcpc eth0
>
> After that wifi should work.
>
> Peter Nijs wrote:
>
> After a whole lot of tweaking I still cannot get an IP from my wireless
> router. My current setup looks like this:
>
> /etc/network/interfaces:---
> # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
>
> # The loopback interface
> auto lo
> iface lo inet loopback
>
> # Wireless interfaces
> iface wlan0 inet dhcp
> wireless_mode managed
> wireless_essid any
> iface atml0 inet dhcp
>
> # Wired or wireless interfaces
> iface eth0 inet dhcp
>wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
>
> iface eth1 inet dhcp
>
> # Ethernet/RNDIS gadget (g_ether)
> # ... or on host side, usbnet and random hwaddr
> auto usb0
> iface usb0 inet static
> address 192.168.0.202
> netmask 255.255.255.0
> network 192.168.0.0
> gateway 192.168.0.200
> up echo nameserver 192.168.0.200 >/etc/resolv.conf
>
> # Bluetooth networking
> iface bnep0 inet dhcp
>
>
> /etc/wpa_supplicant/wpa_supplicant:
>-- ctrl_interface=/var/run/wpa_supplicant
> ctrl_interface_group=0
> eapol_version=1
> ap_scan=1
> fast_reauth=0
>
> network={
>  ssid="PN"
>  scan_ssid=1
>  key_mgmt=NONE
>  wep_tx_keyidx=0
>
>  wep_key0=
>  priority=8
> }
>
>
> Now here's what I do:
> [EMAIL PROTECTED]:~# ifup eth0
> sed: unrecognized option `--quiet'
> BusyBox v1.11.1 (2008-07-18 00:49:01 CEST) multi-call binary
>
> Usage: sed [-efinr] pattern [files...]
>
> WPA: Configuring Interface
> ioctl[SIOCSIWENCODEEXT]: Operation not supported
> ioctl[SIOCSIWENCODEEXT]: Operation not supported
> ioctl[SIOCSIWENCODEEXT]: Operation not supported
> ioctl[SIOCSIWENCODEEXT]: Operation not supported
> udhcpc (v1.11.1) started
> run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1
> Sending discover...
> Sending discover...
> Sending discover...
> No lease, failing
> [EMAIL PROTECTED]:~# iwconfig
> lono wireless extensions.
>
> usb0  no wireless extensions.
>
> eth0  AR6000 802.11g  ESSID:"PN"
>   Mode:Managed  Frequency:2.462 GHz  Access Point:
> 00:0E:2E:BA:1E:51 Bit Rate=36 Mb/s   Tx-Power=15 dBm   Sensitivity=0/3
>   Retry:on
>   Encryption key:897B-9067-4C99-1AC7-B433-AABB-01   Security
> mode:open Power Management:off
>   Link Quality:180/94  Signal level:-171 dBm  Noise level:-96 dBm
>   Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>   Tx excessive retries:7  Invalid misc:0   Missed beacon:1
>
> [EMAIL PROTECTED]:~# ifconfig eth0
> eth0  Link encap:Ethernet  HWaddr 00:12:CF:8E:E6:8D
>   UP BROADCAST MULTICAST  MTU:1500  Metric:1
>   RX packets:646 errors:0 dropped:0 overruns:0 frame:0
>   TX packets:419 errors:0 dropped:0 overruns:0 carrier:0
>   collisions:0 txqueuelen:1000
>   RX bytes:278955 (272.4 KiB)  TX bytes:20950 (20.4 KiB)
>
> [EMAIL PROTECTED]:~#
>
> While udhcpc is sending discovers I can see my router is leasing my neo a
> valid ip for 60 seconds each "sending discover".
>
> Sometimes, in very rare cases I can get a decent lease. But that is not
> reproducible. I think it's happened three times to me the last three days.
>
> Anyone knows how I could get an IP reliably?
>
> Peter Nijs
>
> Op Sunday 13 July 2008 01:05:12 schreef Jim Morris:
>
> arne anka wrote:
>
> well, i did what
> http://wiki.openmoko.org/wiki/GTA02_wlan
> says -- adding
>
> iface eth0 inet dhcp
> wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
>
> Ok that worked, although I have some routing issues now. The manual method
> did not work though.
>
>  > iwconfig
>
> eth0  AR6000 802.11g  ESSID:"morrisnetwork2"
>Mode:Managed  Frequency:2.422 GHz  Access Point:
> 00:1D:5A:BB:FA:A9 Bit Rate=48 Mb/s   Tx-Power=16 dBm   Sensitivity=0/3
>Retry:on
>Encryption key:off
>Power Management:off
>Link Quality:207/94  Signal level:-144 dBm  Noise level:-96 dBm
>Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>Tx excessive retries:17  Invalid misc:0   Missed beacon:11
>
> Although it says encryption key off, but I presume wpa_supplicant is
> handling that.
>
>  > ifconfig
>
> eth0  Link encap:Ethernet  HWaddr 00:12:CF:

Re: Fast questions (email, GPRS, WiFi...)

2008-07-25 Thread Charles-Henri Gros
Yaroslav Halchenko wrote:
>> Is it possible to leave the USB connection up, so you can work on the
>> Freerunner via ssh, and at the same time bring up the WIFI?
> sure -- just have wifi and usb0 on different networks (e.g.
> 192.168.0.0/24 for usb and 192.168.1.0/24 for wifi). the only glitch
> might come if you are going to access internet and by default usb0 sets
> up itself as a gateway interface -- so just remove it from the route or
> directly from usb0 definition in interfaces

I use this:

iface eth0 inet dhcp
  wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
  up route del default dev usb0


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


Re: Fast questions (email, GPRS, WiFi...)

2008-07-24 Thread Peter Nijs
With udhcpc eth0 immediatly after ifup eth0 I seem to get an IP 
(reproducably!). I also did ifdown usb0 now before I did ifup eth0. I was 
planning to that _after_ I got an IP on eth0. Thanks for the help!

Peter Nijs

Op Thursday 24 July 2008 23:09:12 schreef Jim Morris:
> Make sure you do ifdown usb0 before ifup eth0
>
> Then if dhcp does not get a lease first time through (which for me is about
> 50/50) then you can do this from the console which always gets the lease
> for me.
>
>  > udhcpc eth0
>
> After that wifi should work.
>
> Peter Nijs wrote:
> > After a whole lot of tweaking I still cannot get an IP from my wireless
> > router. My current setup looks like this:
> >
> > /etc/network/interfaces:---
> > # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
> >
> > # The loopback interface
> > auto lo
> > iface lo inet loopback
> >
> > # Wireless interfaces
> > iface wlan0 inet dhcp
> > wireless_mode managed
> > wireless_essid any
> > iface atml0 inet dhcp
> >
> > # Wired or wireless interfaces
> > iface eth0 inet dhcp
> >wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
> >
> > iface eth1 inet dhcp
> >
> > # Ethernet/RNDIS gadget (g_ether)
> > # ... or on host side, usbnet and random hwaddr
> > auto usb0
> > iface usb0 inet static
> > address 192.168.0.202
> > netmask 255.255.255.0
> > network 192.168.0.0
> > gateway 192.168.0.200
> > up echo nameserver 192.168.0.200 >/etc/resolv.conf
> >
> > # Bluetooth networking
> > iface bnep0 inet dhcp
> >
> >
> > /etc/wpa_supplicant/wpa_supplicant:--
> > ctrl_interface=/var/run/wpa_supplicant
> > ctrl_interface_group=0
> > eapol_version=1
> > ap_scan=1
> > fast_reauth=0
> >
> > network={
> >  ssid="PN"
> >  scan_ssid=1
> >  key_mgmt=NONE
> >  wep_tx_keyidx=0
> >
> >  wep_key0=
> >  priority=8
> > }
> >
> >
> > Now here's what I do:
> > [EMAIL PROTECTED]:~# ifup eth0
> > sed: unrecognized option `--quiet'
> > BusyBox v1.11.1 (2008-07-18 00:49:01 CEST) multi-call binary
> >
> > Usage: sed [-efinr] pattern [files...]
> >
> > WPA: Configuring Interface
> > ioctl[SIOCSIWENCODEEXT]: Operation not supported
> > ioctl[SIOCSIWENCODEEXT]: Operation not supported
> > ioctl[SIOCSIWENCODEEXT]: Operation not supported
> > ioctl[SIOCSIWENCODEEXT]: Operation not supported
> > udhcpc (v1.11.1) started
> > run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1
> > Sending discover...
> > Sending discover...
> > Sending discover...
> > No lease, failing
> > [EMAIL PROTECTED]:~# iwconfig
> > lono wireless extensions.
> >
> > usb0  no wireless extensions.
> >
> > eth0  AR6000 802.11g  ESSID:"PN"
> >   Mode:Managed  Frequency:2.462 GHz  Access Point:
> > 00:0E:2E:BA:1E:51 Bit Rate=36 Mb/s   Tx-Power=15 dBm   Sensitivity=0/3
> >   Retry:on
> >   Encryption key:897B-9067-4C99-1AC7-B433-AABB-01   Security
> > mode:open Power Management:off
> >   Link Quality:180/94  Signal level:-171 dBm  Noise level:-96 dBm
> >   Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
> >   Tx excessive retries:7  Invalid misc:0   Missed beacon:1
> >
> > [EMAIL PROTECTED]:~# ifconfig eth0
> > eth0  Link encap:Ethernet  HWaddr 00:12:CF:8E:E6:8D
> >   UP BROADCAST MULTICAST  MTU:1500  Metric:1
> >   RX packets:646 errors:0 dropped:0 overruns:0 frame:0
> >   TX packets:419 errors:0 dropped:0 overruns:0 carrier:0
> >   collisions:0 txqueuelen:1000
> >   RX bytes:278955 (272.4 KiB)  TX bytes:20950 (20.4 KiB)
> >
> > [EMAIL PROTECTED]:~#
> >
> > While udhcpc is sending discovers I can see my router is leasing my neo a
> > valid ip for 60 seconds each "sending discover".
> >
> > Sometimes, in very rare cases I can get a decent lease. But that is not
> > reproducible. I think it's happened three times to me the last three
> > days.
> >
> > Anyone knows how I could get an IP reliably?
> >
> > Peter Nijs
> >
> > Op Sunday 13 July 2008 01:05:12 schreef Jim Morris:
> >> arne anka wrote:
> >>> well, i did what
> >>> http://wiki.openmoko.org/wiki/GTA02_wlan
> >>> says -- adding
> >>>
> >>> iface eth0 inet dhcp
> >>> wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
> >>
> >> Ok that worked, although I have some routing issues now. The manual
> >> method did not work though.
> >>
> >>  > iwconfig
> >>
> >> eth0  AR6000 802.11g  ESSID:"morrisnetwork2"
> >>Mode:Managed  Frequency:2.422 GHz  Access Point:
> >> 00:1D:5A:BB:FA:A9 Bit Rate=48 Mb/s   Tx-Power=16 dBm   Sensitivity=0/3
> >>Retry:on
> >>Encryption key:off
> >>Power Management:off
> >>Link Quality:207/94  Signal level:-144 dBm  Noise level:-96
> >> dBm Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0 Tx
> >> excessive retries:17  Invalid misc:0   Missed beacon:11
> >>
> >> Although it says encryption k

Re: Fast questions (email, GPRS, WiFi...)

2008-07-24 Thread Evan




"wep_key0="

its wep, therefore obsolete. if anyone lives near you and wants to know
your key, they will take the 10 minutes or less that it takes to crack
any wep key. consider wpa


Jim Morris wrote:

  Make sure you do ifdown usb0 before ifup eth0

Then if dhcp does not get a lease first time through (which for me is about 50/50)
then you can do this from the console which always gets the lease for me.

 > udhcpc eth0

After that wifi should work.

Peter Nijs wrote:
  
  
After a whole lot of tweaking I still cannot get an IP from my wireless 
router. My current setup looks like this:

/etc/network/interfaces:---
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
 
# The loopback interface
auto lo
iface lo inet loopback

# Wireless interfaces
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid any
iface atml0 inet dhcp

# Wired or wireless interfaces
iface eth0 inet dhcp
   wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

iface eth1 inet dhcp

# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
auto usb0
iface usb0 inet static
	address 192.168.0.202
	netmask 255.255.255.0
	network 192.168.0.0
	gateway 192.168.0.200
	up echo nameserver 192.168.0.200 >/etc/resolv.conf

# Bluetooth networking
iface bnep0 inet dhcp


/etc/wpa_supplicant/wpa_supplicant:--
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=0

network={
 ssid="PN"
 scan_ssid=1
 key_mgmt=NONE
 wep_tx_keyidx=0

 wep_key0=
 priority=8
}


Now here's what I do:
[EMAIL PROTECTED]:~# ifup eth0
sed: unrecognized option `--quiet'
BusyBox v1.11.1 (2008-07-18 00:49:01 CEST) multi-call binary

Usage: sed [-efinr] pattern [files...]

WPA: Configuring Interface
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
udhcpc (v1.11.1) started
run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1
Sending discover...
Sending discover...
Sending discover...
No lease, failing
[EMAIL PROTECTED]:~# iwconfig
lono wireless extensions.

usb0  no wireless extensions.

eth0  AR6000 802.11g  ESSID:"PN"
  Mode:Managed  Frequency:2.462 GHz  Access Point: 00:0E:2E:BA:1E:51
  Bit Rate=36 Mb/s   Tx-Power=15 dBm   Sensitivity=0/3
  Retry:on
  Encryption key:897B-9067-4C99-1AC7-B433-AABB-01   Security mode:open
  Power Management:off
  Link Quality:180/94  Signal level:-171 dBm  Noise level:-96 dBm
  Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
  Tx excessive retries:7  Invalid misc:0   Missed beacon:1

[EMAIL PROTECTED]:~# ifconfig eth0
eth0  Link encap:Ethernet  HWaddr 00:12:CF:8E:E6:8D
  UP BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:646 errors:0 dropped:0 overruns:0 frame:0
  TX packets:419 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:278955 (272.4 KiB)  TX bytes:20950 (20.4 KiB)

[EMAIL PROTECTED]:~#

While udhcpc is sending discovers I can see my router is leasing my neo a 
valid ip for 60 seconds each "sending discover".

Sometimes, in very rare cases I can get a decent lease. But that is not 
reproducible. I think it's happened three times to me the last three days.

Anyone knows how I could get an IP reliably?

Peter Nijs

Op Sunday 13 July 2008 01:05:12 schreef Jim Morris:


  arne anka wrote:
  
  
well, i did what
http://wiki.openmoko.org/wiki/GTA02_wlan
says -- adding

iface eth0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

  
  Ok that worked, although I have some routing issues now. The manual method
did not work though.

 > iwconfig

eth0  AR6000 802.11g  ESSID:"morrisnetwork2"
   Mode:Managed  Frequency:2.422 GHz  Access Point:
00:1D:5A:BB:FA:A9 Bit Rate=48 Mb/s   Tx-Power=16 dBm   Sensitivity=0/3
   Retry:on
   Encryption key:off
   Power Management:off
   Link Quality:207/94  Signal level:-144 dBm  Noise level:-96 dBm
   Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
   Tx excessive retries:17  Invalid misc:0   Missed beacon:11

Although it says encryption key off, but I presume wpa_supplicant is
handling that.

 > ifconfig

eth0  Link encap:Ethernet  HWaddr 00:12:CF:74:20:A8
   inet addr:192.168.1.70  Bcast:192.168.1.255  Mask:255.255.255.0
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   RX packets:1657 errors:0 dropped:0 overruns:0 frame:0
   TX packets:832 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:1000
   RX bytes:725595 (708.5 K

Re: Fast questions (email, GPRS, WiFi...)

2008-07-24 Thread Yaroslav Halchenko

> Is it possible to leave the USB connection up, so you can work on the
> Freerunner via ssh, and at the same time bring up the WIFI?
sure -- just have wifi and usb0 on different networks (e.g.
192.168.0.0/24 for usb and 192.168.1.0/24 for wifi). the only glitch
might come if you are going to access internet and by default usb0 sets
up itself as a gateway interface -- so just remove it from the route or
directly from usb0 definition in interfaces
-- 
Yaroslav Halchenko
Research Assistant, Psychology Department, Rutgers-Newark
Student  Ph.D. @ CS Dept. NJIT
Office: (973) 353-5440x263 | FWD: 82823 | Fax: (973) 353-1171
101 Warren Str, Smith Hall, Rm 4-105, Newark NJ 07102
WWW: http://www.linkedin.com/in/yarik

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


Re: Fast questions (email, GPRS, WiFi...)

2008-07-24 Thread Al Johnson
It's also worth using wpa_cli  to see whether wpa_supplicant it associating 
with the AP properly.

On Thursday 24 July 2008, Jim Morris wrote:
> Make sure you do ifdown usb0 before ifup eth0
>
> Then if dhcp does not get a lease first time through (which for me is about
> 50/50) then you can do this from the console which always gets the lease
> for me.
>
>  > udhcpc eth0
>
> After that wifi should work.
>
> Peter Nijs wrote:
> > After a whole lot of tweaking I still cannot get an IP from my wireless
> > router. My current setup looks like this:
> >
> > /etc/network/interfaces:---
> > # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
> >
> > # The loopback interface
> > auto lo
> > iface lo inet loopback
> >
> > # Wireless interfaces
> > iface wlan0 inet dhcp
> > wireless_mode managed
> > wireless_essid any
> > iface atml0 inet dhcp
> >
> > # Wired or wireless interfaces
> > iface eth0 inet dhcp
> >wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
> >
> > iface eth1 inet dhcp
> >
> > # Ethernet/RNDIS gadget (g_ether)
> > # ... or on host side, usbnet and random hwaddr
> > auto usb0
> > iface usb0 inet static
> > address 192.168.0.202
> > netmask 255.255.255.0
> > network 192.168.0.0
> > gateway 192.168.0.200
> > up echo nameserver 192.168.0.200 >/etc/resolv.conf
> >
> > # Bluetooth networking
> > iface bnep0 inet dhcp
> >
> >
> > /etc/wpa_supplicant/wpa_supplicant:--
> > ctrl_interface=/var/run/wpa_supplicant
> > ctrl_interface_group=0
> > eapol_version=1
> > ap_scan=1
> > fast_reauth=0
> >
> > network={
> >  ssid="PN"
> >  scan_ssid=1
> >  key_mgmt=NONE
> >  wep_tx_keyidx=0
> >
> >  wep_key0=
> >  priority=8
> > }
> >
> >
> > Now here's what I do:
> > [EMAIL PROTECTED]:~# ifup eth0
> > sed: unrecognized option `--quiet'
> > BusyBox v1.11.1 (2008-07-18 00:49:01 CEST) multi-call binary
> >
> > Usage: sed [-efinr] pattern [files...]
> >
> > WPA: Configuring Interface
> > ioctl[SIOCSIWENCODEEXT]: Operation not supported
> > ioctl[SIOCSIWENCODEEXT]: Operation not supported
> > ioctl[SIOCSIWENCODEEXT]: Operation not supported
> > ioctl[SIOCSIWENCODEEXT]: Operation not supported
> > udhcpc (v1.11.1) started
> > run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1
> > Sending discover...
> > Sending discover...
> > Sending discover...
> > No lease, failing
> > [EMAIL PROTECTED]:~# iwconfig
> > lono wireless extensions.
> >
> > usb0  no wireless extensions.
> >
> > eth0  AR6000 802.11g  ESSID:"PN"
> >   Mode:Managed  Frequency:2.462 GHz  Access Point:
> > 00:0E:2E:BA:1E:51 Bit Rate=36 Mb/s   Tx-Power=15 dBm   Sensitivity=0/3
> >   Retry:on
> >   Encryption key:897B-9067-4C99-1AC7-B433-AABB-01   Security
> > mode:open Power Management:off
> >   Link Quality:180/94  Signal level:-171 dBm  Noise level:-96 dBm
> >   Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
> >   Tx excessive retries:7  Invalid misc:0   Missed beacon:1
> >
> > [EMAIL PROTECTED]:~# ifconfig eth0
> > eth0  Link encap:Ethernet  HWaddr 00:12:CF:8E:E6:8D
> >   UP BROADCAST MULTICAST  MTU:1500  Metric:1
> >   RX packets:646 errors:0 dropped:0 overruns:0 frame:0
> >   TX packets:419 errors:0 dropped:0 overruns:0 carrier:0
> >   collisions:0 txqueuelen:1000
> >   RX bytes:278955 (272.4 KiB)  TX bytes:20950 (20.4 KiB)
> >
> > [EMAIL PROTECTED]:~#
> >
> > While udhcpc is sending discovers I can see my router is leasing my neo a
> > valid ip for 60 seconds each "sending discover".
> >
> > Sometimes, in very rare cases I can get a decent lease. But that is not
> > reproducible. I think it's happened three times to me the last three
> > days.
> >
> > Anyone knows how I could get an IP reliably?
> >
> > Peter Nijs
> >
> > Op Sunday 13 July 2008 01:05:12 schreef Jim Morris:
> >> arne anka wrote:
> >>> well, i did what
> >>> http://wiki.openmoko.org/wiki/GTA02_wlan
> >>> says -- adding
> >>>
> >>> iface eth0 inet dhcp
> >>> wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
> >>
> >> Ok that worked, although I have some routing issues now. The manual
> >> method did not work though.
> >>
> >>  > iwconfig
> >>
> >> eth0  AR6000 802.11g  ESSID:"morrisnetwork2"
> >>Mode:Managed  Frequency:2.422 GHz  Access Point:
> >> 00:1D:5A:BB:FA:A9 Bit Rate=48 Mb/s   Tx-Power=16 dBm   Sensitivity=0/3
> >>Retry:on
> >>Encryption key:off
> >>Power Management:off
> >>Link Quality:207/94  Signal level:-144 dBm  Noise level:-96
> >> dBm Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0 Tx
> >> excessive retries:17  Invalid misc:0   Missed beacon:11
> >>
> >> Although it says encryption key off, but I presume wpa_supplicant is
> >> handling that.
> >>
> >>  > ifconfig
> >>
> >> eth0  Link encap:Ethernet  HWaddr 

Re: Fast questions (email, GPRS, WiFi...)

2008-07-24 Thread Dale Schumacher
On Thu, Jul 24, 2008 at 4:09 PM, Jim Morris <[EMAIL PROTECTED]> wrote:
>
> Make sure you do ifdown usb0 before ifup eth0
>
> Then if dhcp does not get a lease first time through (which for me is about 
> 50/50)
> then you can do this from the console which always gets the lease for me.
>
>  > udhcpc eth0
>
> After that wifi should work.
>
> Peter Nijs wrote:
> > After a whole lot of tweaking I still cannot get an IP from my wireless
> > router. My current setup looks like this:

OK.  This feels like it's going to be a dumb questions, but I'm going
to ask it anyway.

Is it possible to leave the USB connection up, so you can work on the
Freerunner via ssh, and at the same time bring up the WIFI?

If so, can be made to work both when routing through the host to the
internet as well as when you're only using ssh as an easier way to
work on the Freerunner.

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


Re: Fast questions (email, GPRS, WiFi...)

2008-07-24 Thread Jim Morris
Make sure you do ifdown usb0 before ifup eth0

Then if dhcp does not get a lease first time through (which for me is about 
50/50)
then you can do this from the console which always gets the lease for me.

 > udhcpc eth0

After that wifi should work.

Peter Nijs wrote:
> After a whole lot of tweaking I still cannot get an IP from my wireless 
> router. My current setup looks like this:
> 
> /etc/network/interfaces:---
> # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
>  
> # The loopback interface
> auto lo
> iface lo inet loopback
> 
> # Wireless interfaces
> iface wlan0 inet dhcp
> wireless_mode managed
> wireless_essid any
> iface atml0 inet dhcp
> 
> # Wired or wireless interfaces
> iface eth0 inet dhcp
>wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
> 
> iface eth1 inet dhcp
> 
> # Ethernet/RNDIS gadget (g_ether)
> # ... or on host side, usbnet and random hwaddr
> auto usb0
> iface usb0 inet static
>   address 192.168.0.202
>   netmask 255.255.255.0
>   network 192.168.0.0
>   gateway 192.168.0.200
>   up echo nameserver 192.168.0.200 >/etc/resolv.conf
> 
> # Bluetooth networking
> iface bnep0 inet dhcp
> 
> 
> /etc/wpa_supplicant/wpa_supplicant:--
> ctrl_interface=/var/run/wpa_supplicant
> ctrl_interface_group=0
> eapol_version=1
> ap_scan=1
> fast_reauth=0
> 
> network={
>  ssid="PN"
>  scan_ssid=1
>  key_mgmt=NONE
>  wep_tx_keyidx=0
> 
>  wep_key0=
>  priority=8
> }
> 
> 
> Now here's what I do:
> [EMAIL PROTECTED]:~# ifup eth0
> sed: unrecognized option `--quiet'
> BusyBox v1.11.1 (2008-07-18 00:49:01 CEST) multi-call binary
> 
> Usage: sed [-efinr] pattern [files...]
> 
> WPA: Configuring Interface
> ioctl[SIOCSIWENCODEEXT]: Operation not supported
> ioctl[SIOCSIWENCODEEXT]: Operation not supported
> ioctl[SIOCSIWENCODEEXT]: Operation not supported
> ioctl[SIOCSIWENCODEEXT]: Operation not supported
> udhcpc (v1.11.1) started
> run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1
> Sending discover...
> Sending discover...
> Sending discover...
> No lease, failing
> [EMAIL PROTECTED]:~# iwconfig
> lono wireless extensions.
> 
> usb0  no wireless extensions.
> 
> eth0  AR6000 802.11g  ESSID:"PN"
>   Mode:Managed  Frequency:2.462 GHz  Access Point: 00:0E:2E:BA:1E:51
>   Bit Rate=36 Mb/s   Tx-Power=15 dBm   Sensitivity=0/3
>   Retry:on
>   Encryption key:897B-9067-4C99-1AC7-B433-AABB-01   Security mode:open
>   Power Management:off
>   Link Quality:180/94  Signal level:-171 dBm  Noise level:-96 dBm
>   Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>   Tx excessive retries:7  Invalid misc:0   Missed beacon:1
> 
> [EMAIL PROTECTED]:~# ifconfig eth0
> eth0  Link encap:Ethernet  HWaddr 00:12:CF:8E:E6:8D
>   UP BROADCAST MULTICAST  MTU:1500  Metric:1
>   RX packets:646 errors:0 dropped:0 overruns:0 frame:0
>   TX packets:419 errors:0 dropped:0 overruns:0 carrier:0
>   collisions:0 txqueuelen:1000
>   RX bytes:278955 (272.4 KiB)  TX bytes:20950 (20.4 KiB)
> 
> [EMAIL PROTECTED]:~#
> 
> While udhcpc is sending discovers I can see my router is leasing my neo a 
> valid ip for 60 seconds each "sending discover".
> 
> Sometimes, in very rare cases I can get a decent lease. But that is not 
> reproducible. I think it's happened three times to me the last three days.
> 
> Anyone knows how I could get an IP reliably?
> 
> Peter Nijs
> 
> Op Sunday 13 July 2008 01:05:12 schreef Jim Morris:
>> arne anka wrote:
>>> well, i did what
>>> http://wiki.openmoko.org/wiki/GTA02_wlan
>>> says -- adding
>>>
>>> iface eth0 inet dhcp
>>> wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
>> Ok that worked, although I have some routing issues now. The manual method
>> did not work though.
>>
>>  > iwconfig
>>
>> eth0  AR6000 802.11g  ESSID:"morrisnetwork2"
>>Mode:Managed  Frequency:2.422 GHz  Access Point:
>> 00:1D:5A:BB:FA:A9 Bit Rate=48 Mb/s   Tx-Power=16 dBm   Sensitivity=0/3
>>Retry:on
>>Encryption key:off
>>Power Management:off
>>Link Quality:207/94  Signal level:-144 dBm  Noise level:-96 dBm
>>Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>>Tx excessive retries:17  Invalid misc:0   Missed beacon:11
>>
>> Although it says encryption key off, but I presume wpa_supplicant is
>> handling that.
>>
>>  > ifconfig
>>
>> eth0  Link encap:Ethernet  HWaddr 00:12:CF:74:20:A8
>>inet addr:192.168.1.70  Bcast:192.168.1.255  Mask:255.255.255.0
>>UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>>RX packets:1657 errors:0 dropped:0 overruns:0 frame:0
>>TX packets:832 errors:0 dropped:0 overruns:0 carrier:0
>>co

Re: Fast questions (email, GPRS, WiFi...)

2008-07-24 Thread Peter Nijs
After a whole lot of tweaking I still cannot get an IP from my wireless 
router. My current setup looks like this:

/etc/network/interfaces:---
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
 
# The loopback interface
auto lo
iface lo inet loopback

# Wireless interfaces
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid any
iface atml0 inet dhcp

# Wired or wireless interfaces
iface eth0 inet dhcp
   wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

iface eth1 inet dhcp

# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
auto usb0
iface usb0 inet static
address 192.168.0.202
netmask 255.255.255.0
network 192.168.0.0
gateway 192.168.0.200
up echo nameserver 192.168.0.200 >/etc/resolv.conf

# Bluetooth networking
iface bnep0 inet dhcp


/etc/wpa_supplicant/wpa_supplicant:--
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=0

network={
 ssid="PN"
 scan_ssid=1
 key_mgmt=NONE
 wep_tx_keyidx=0

 wep_key0=
 priority=8
}


Now here's what I do:
[EMAIL PROTECTED]:~# ifup eth0
sed: unrecognized option `--quiet'
BusyBox v1.11.1 (2008-07-18 00:49:01 CEST) multi-call binary

Usage: sed [-efinr] pattern [files...]

WPA: Configuring Interface
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
udhcpc (v1.11.1) started
run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1
Sending discover...
Sending discover...
Sending discover...
No lease, failing
[EMAIL PROTECTED]:~# iwconfig
lono wireless extensions.

usb0  no wireless extensions.

eth0  AR6000 802.11g  ESSID:"PN"
  Mode:Managed  Frequency:2.462 GHz  Access Point: 00:0E:2E:BA:1E:51
  Bit Rate=36 Mb/s   Tx-Power=15 dBm   Sensitivity=0/3
  Retry:on
  Encryption key:897B-9067-4C99-1AC7-B433-AABB-01   Security mode:open
  Power Management:off
  Link Quality:180/94  Signal level:-171 dBm  Noise level:-96 dBm
  Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
  Tx excessive retries:7  Invalid misc:0   Missed beacon:1

[EMAIL PROTECTED]:~# ifconfig eth0
eth0  Link encap:Ethernet  HWaddr 00:12:CF:8E:E6:8D
  UP BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:646 errors:0 dropped:0 overruns:0 frame:0
  TX packets:419 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:278955 (272.4 KiB)  TX bytes:20950 (20.4 KiB)

[EMAIL PROTECTED]:~#

While udhcpc is sending discovers I can see my router is leasing my neo a 
valid ip for 60 seconds each "sending discover".

Sometimes, in very rare cases I can get a decent lease. But that is not 
reproducible. I think it's happened three times to me the last three days.

Anyone knows how I could get an IP reliably?

Peter Nijs

Op Sunday 13 July 2008 01:05:12 schreef Jim Morris:
> arne anka wrote:
> > well, i did what
> > http://wiki.openmoko.org/wiki/GTA02_wlan
> > says -- adding
> >
> > iface eth0 inet dhcp
> > wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
>
> Ok that worked, although I have some routing issues now. The manual method
> did not work though.
>
>  > iwconfig
>
> eth0  AR6000 802.11g  ESSID:"morrisnetwork2"
>Mode:Managed  Frequency:2.422 GHz  Access Point:
> 00:1D:5A:BB:FA:A9 Bit Rate=48 Mb/s   Tx-Power=16 dBm   Sensitivity=0/3
>Retry:on
>Encryption key:off
>Power Management:off
>Link Quality:207/94  Signal level:-144 dBm  Noise level:-96 dBm
>Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>Tx excessive retries:17  Invalid misc:0   Missed beacon:11
>
> Although it says encryption key off, but I presume wpa_supplicant is
> handling that.
>
>  > ifconfig
>
> eth0  Link encap:Ethernet  HWaddr 00:12:CF:74:20:A8
>inet addr:192.168.1.70  Bcast:192.168.1.255  Mask:255.255.255.0
>UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>RX packets:1657 errors:0 dropped:0 overruns:0 frame:0
>TX packets:832 errors:0 dropped:0 overruns:0 carrier:0
>collisions:0 txqueuelen:1000
>RX bytes:725595 (708.5 KiB)  TX bytes:37892 (37.0 KiB)
>
>
> So its connected to my access point, and I turned off eth0, but I cannot
> ping the wireless, I'll work on that it may be routing or it may be
> encryption.
>
> Thanks all.




signature.asc
Description: This is a digitally signed message part.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/com

Re: Fast questions (email, GPRS, WiFi...)

2008-07-15 Thread Brad Pitcher
What do you do at step 5 where the instructions only apply to ASU?
-Brad

Yaroslav Halchenko wrote:
> wow... someone (at best original author) should simply create a project
> within openmoko.org for those openmokoscripts and see if it could be
> improved even further or simply polished enough so it is easily
> installable from the repository with 1 line instead of 8 step
> directions. But viva to DocTomoe for crafting and to papa-piet for
> sharing the finding ;-)
>
> On Mon, 14 Jul 2008, papa-piet wrote:
>
>   
>> Hi Ian,
>> check out that one:
>> http://freeyourphone.de/portal_v1/viewtopic.php?f=21&t=295#p2956
>> 
>
>
>   
>> Peter K.
>> aka papa-piet
>> find me at
>> http://freeyourphone.de
>> 
>
>
>   
>> ian douglas schrieb:
>> 
>>> Steve / Brenda,
>>>   
>
>   
>>> Are there any solid instructions yet on getting GPRS data working?
>>>   
>
>   
>>> -id
>>>   
>
>
>   
>>> steve wrote:
>>>   
>>>>  Brenda,
>>>> 
>
>   
>>>>get the instructions for using WIFI on freerunner posted to the wiki.
>>>> 
>
>   
>>>>Michael assist.
>>>>     
>
>   
>>>> Steve
>>>> 
>
>   
>>>> -Original Message-
>>>> From: [EMAIL PROTECTED]
>>>> [mailto:[EMAIL PROTECTED] On Behalf Of ian douglas
>>>> Sent: Friday, July 11, 2008 4:32 PM
>>>> To: List for Openmoko community discussion
>>>> Subject: Re: Fast questions (email, GPRS, WiFi...)
>>>> 
>
>   
>>>> Diego Fernández Durán wrote:
>>>> 
>>>>>   - Is there any UI to conect using WiFi? and with GPRS?
>>>>> - Is network-manager been ported?
>>>>>   - The NM backend?
>>>>>   - Anybody is doing an UI for this?
>>>>>   
>
>   
>>>> I havne't seen any wifi UI applicaiton yet. I SSH'd into my Freerunner,
>>>> edited /etc/wpa_supplicant/wpa_supplicant.conf to alter the essid and key,
>>>> typed "ifup eth0", then unplugged the USB cable, opened a terminal, ran
>>>> "ifconfig usb0 down", opened the browser and navigated just fine.
>>>> 
>
>   
>>>> After rebooting, it seems that usb0 is auto-activated, and while the Wifi
>>>> device is supposedly 'on', it doesn't appear in an "ifconfig" dump ... I 
>>>> ran
>>>> "ifconfig down usb0" and "ifup eth0" and it failed to connect to the wifi
>>>> using my recently-edited wpa_supplicant.conf file.
>>>> 
>
>   
>>>> I'm sure somebody is working on an app to automate this, but they'll have 
>>>> to
>>>> rearrange the priority of routing traffic in the app so a user can specify
>>>> "start up the wifi and use that connect as the default route".
>>>> 
>
>   
>>>> -id
>>>> 
>
>
>   
>>>> ___
>>>> 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
>>>> 
>
>   
>>> ___
>>> 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
>> 
>
>
>   


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


Re: Fast questions (email, GPRS, WiFi...)

2008-07-15 Thread Marco Trevisan (Treviño)
Yaroslav Halchenko wrote:
> On Mon, 14 Jul 2008, papa-piet wrote:
>> Hi Ian,
>> check out that one:
>> http://freeyourphone.de/portal_v1/viewtopic.php?f=21&t=295#p2956
> wow... someone (at best original author) should simply create a project
> within openmoko.org for those openmokoscripts and see if it could be
> improved even further or simply polished enough so it is easily
> installable from the repository with 1 line instead of 8 step
> directions. But viva to DocTomoe for crafting and to papa-piet for
> sharing the finding ;-)

I agree. Really a great work!
Maybe it should be reported also in the wiki?!

-- 
Treviño's World - Life and Linux
http://www.3v1n0.net/


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


Re: Fast questions (email, GPRS, WiFi...)

2008-07-14 Thread Yaroslav Halchenko
wow... someone (at best original author) should simply create a project
within openmoko.org for those openmokoscripts and see if it could be
improved even further or simply polished enough so it is easily
installable from the repository with 1 line instead of 8 step
directions. But viva to DocTomoe for crafting and to papa-piet for
sharing the finding ;-)

On Mon, 14 Jul 2008, papa-piet wrote:

> Hi Ian,
> check out that one:
> http://freeyourphone.de/portal_v1/viewtopic.php?f=21&t=295#p2956


> Peter K.
> aka papa-piet
> find me at
> http://freeyourphone.de


> ian douglas schrieb:
> > Steve / Brenda,

> > Are there any solid instructions yet on getting GPRS data working?

> > -id


> > steve wrote:
> >>  Brenda,

> >>get the instructions for using WIFI on freerunner posted to the wiki.

> >>Michael assist.

> >> Steve

> >> -Original Message-
> >> From: [EMAIL PROTECTED]
> >> [mailto:[EMAIL PROTECTED] On Behalf Of ian douglas
> >> Sent: Friday, July 11, 2008 4:32 PM
> >> To: List for Openmoko community discussion
> >> Subject: Re: Fast questions (email, GPRS, WiFi...)

> >> Diego Fernández Durán wrote:
> >>>   - Is there any UI to conect using WiFi? and with GPRS?
> >>> - Is network-manager been ported?
> >>>   - The NM backend?
> >>>   - Anybody is doing an UI for this?

> >> I havne't seen any wifi UI applicaiton yet. I SSH'd into my Freerunner,
> >> edited /etc/wpa_supplicant/wpa_supplicant.conf to alter the essid and key,
> >> typed "ifup eth0", then unplugged the USB cable, opened a terminal, ran
> >> "ifconfig usb0 down", opened the browser and navigated just fine.

> >> After rebooting, it seems that usb0 is auto-activated, and while the Wifi
> >> device is supposedly 'on', it doesn't appear in an "ifconfig" dump ... I 
> >> ran
> >> "ifconfig down usb0" and "ifup eth0" and it failed to connect to the wifi
> >> using my recently-edited wpa_supplicant.conf file.

> >> I'm sure somebody is working on an app to automate this, but they'll have 
> >> to
> >> rearrange the priority of routing traffic in the app so a user can specify
> >> "start up the wifi and use that connect as the default route".

> >> -id


> >> ___
> >> 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

> > ___
> > 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


-- 
Yaroslav Halchenko
Research Assistant, Psychology Department, Rutgers-Newark
Student  Ph.D. @ CS Dept. NJIT
Office: (973) 353-5440x263 | FWD: 82823 | Fax: (973) 353-1171
101 Warren Str, Smith Hall, Rm 4-105, Newark NJ 07102
WWW: http://www.linkedin.com/in/yarik

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


Re: Fast questions (email, GPRS, WiFi...)

2008-07-14 Thread papa-piet
Hi Ian,
check out that one:
http://freeyourphone.de/portal_v1/viewtopic.php?f=21&t=295#p2956


Peter K.
aka papa-piet
find me at
http://freeyourphone.de


ian douglas schrieb:
> Steve / Brenda,
> 
> Are there any solid instructions yet on getting GPRS data working?
> 
> -id
> 
> 
> steve wrote:
>>  Brenda,
>>
>>get the instructions for using WIFI on freerunner posted to the wiki.
>>
>>Michael assist.
>>
>> Steve
>>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of ian douglas
>> Sent: Friday, July 11, 2008 4:32 PM
>> To: List for Openmoko community discussion
>> Subject: Re: Fast questions (email, GPRS, WiFi...)
>>
>> Diego Fernández Durán wrote:
>>>   - Is there any UI to conect using WiFi? and with GPRS?
>>> - Is network-manager been ported?
>>>   - The NM backend?
>>>   - Anybody is doing an UI for this?
>>
>> I havne't seen any wifi UI applicaiton yet. I SSH'd into my Freerunner,
>> edited /etc/wpa_supplicant/wpa_supplicant.conf to alter the essid and key,
>> typed "ifup eth0", then unplugged the USB cable, opened a terminal, ran
>> "ifconfig usb0 down", opened the browser and navigated just fine.
>>
>> After rebooting, it seems that usb0 is auto-activated, and while the Wifi
>> device is supposedly 'on', it doesn't appear in an "ifconfig" dump ... I ran
>> "ifconfig down usb0" and "ifup eth0" and it failed to connect to the wifi
>> using my recently-edited wpa_supplicant.conf file.
>>
>> I'm sure somebody is working on an app to automate this, but they'll have to
>> rearrange the priority of routing traffic in the app so a user can specify
>> "start up the wifi and use that connect as the default route".
>>
>> -id
>>
>>
>> ___
>> 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
> 
> ___
> 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: Fast questions (email, GPRS, WiFi...)

2008-07-14 Thread ian douglas
Steve / Brenda,

Are there any solid instructions yet on getting GPRS data working?

-id


steve wrote:
>  Brenda,
> 
>get the instructions for using WIFI on freerunner posted to the wiki.
> 
>Michael assist.
> 
> Steve
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of ian douglas
> Sent: Friday, July 11, 2008 4:32 PM
> To: List for Openmoko community discussion
> Subject: Re: Fast questions (email, GPRS, WiFi...)
> 
> Diego Fernández Durán wrote:
>>   - Is there any UI to conect using WiFi? and with GPRS?
>> - Is network-manager been ported?
>>   - The NM backend?
>>   - Anybody is doing an UI for this?
> 
> 
> I havne't seen any wifi UI applicaiton yet. I SSH'd into my Freerunner,
> edited /etc/wpa_supplicant/wpa_supplicant.conf to alter the essid and key,
> typed "ifup eth0", then unplugged the USB cable, opened a terminal, ran
> "ifconfig usb0 down", opened the browser and navigated just fine.
> 
> After rebooting, it seems that usb0 is auto-activated, and while the Wifi
> device is supposedly 'on', it doesn't appear in an "ifconfig" dump ... I ran
> "ifconfig down usb0" and "ifup eth0" and it failed to connect to the wifi
> using my recently-edited wpa_supplicant.conf file.
> 
> I'm sure somebody is working on an app to automate this, but they'll have to
> rearrange the priority of routing traffic in the app so a user can specify
> "start up the wifi and use that connect as the default route".
> 
> -id
> 
> 
> ___
> 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

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


Re: Fast questions (email, GPRS, WiFi...)

2008-07-13 Thread Łukasz Holetzke
>
> > I've been trying for several hours to get wifi working, it never seems to
> connect although it can
> > see my station.
> >
> > I tried this too as it makes sense to turn off usb0, but that didn't seem
> to work either, I wrote
> > this script to make it easy from console (I also tried ifconfig usb0
> down)
> >
> > ifdown usb0
> > wpa_supplicant -ieth0 -c/etc/wpa_supplicant/wpa_supplicant.conf -B
> > sleep 10
> > udhcpc eth0 &
> >
> >
>
I have a similar issue too. wpa_supplicant.conf didn't worked for me at all.
Using iwconfig eth0 essid wep_ap key 128_bit_key_in_hex doesn't associate
with my access point.
I found a small workaround for this:
iwconfig eth0  key .
and after that
iwconfig eth0 essid 
That connected me to the ap.
udhcpd doesn't work for me.
sending discover over lan the dhcpd on a server didn't see that.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fast questions (email, GPRS, WiFi...)

2008-07-12 Thread Jim Morris
Jim Morris wrote:
> Alexander Syring wrote:
>> I think you have to bring up a nameserver
>>
>> echo namserver 1.2.3.4 > /etc/resolv.conf
>>^ ip of nameserver to use
>>
>>
>>
> 
> Good point, I already have a hardwired resolv.conf, and the wifi and usb can 
> use the same dns for now.
> 
> Wifi does seem to work ok for me now the trick was to use the second setup 
> from the wiki not the first.

Hmmm ok resolv.conf gets wiped out, and does not get set with what the dhcp 
server tells it, and the
up echo nameserver xx.xx.xx.xx >/etc/resolv.conf
trick doesn't work for eth0.

Need to work on that.

-- 
Jim Morris, http://blog.wolfman.com

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


Re: Fast questions (email, GPRS, WiFi...)

2008-07-12 Thread Jim Morris
Alexander Syring wrote:
> I think you have to bring up a nameserver
> 
> echo namserver 1.2.3.4 > /etc/resolv.conf
>^ ip of nameserver to use
> 
> 
>

Good point, I already have a hardwired resolv.conf, and the wifi and usb can 
use the same dns for now.

Wifi does seem to work ok for me now the trick was to use the second setup from 
the wiki not the first.

Thanks
Jim


-- 
Jim Morris, http://blog.wolfman.com

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


Re: Fast questions (email, GPRS, WiFi...)

2008-07-12 Thread Jim Morris
Alexander Syring wrote:
> And probably you have to del the usb0 default route
> 
> route del default gw 192.168.0.202
> 

That seems to happen automatically when I do

ifdown usb0
ifup eth0

routes look good now, but wifi is flaky, keeps just stopping, but as the ssh 
also freezes its hard 
to say why.

-- 
Jim Morris, http://blog.wolfman.com

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


Re: Fast questions (email, GPRS, WiFi...)

2008-07-12 Thread Alexander Syring
And probably you have to del the usb0 default route

route del default gw 192.168.0.202

 
Am Sonntag, 13. Juli 2008 01:14:59 schrieb Jim Morris:
> Ok using these scripts u and d (below) and the suggestion below it works,
> but is unreliable, I can ssh into it over wifi, but it quickly loses its
> connection, not sure why yet.
>
> # u this turns on wifi and usb0 off
> ifdown usb0
> ifup eth0
>
> # d this brings back usb0
> ifdown eth0
> killall wpa_supplicant
> ifup usb0
>
> Jim Morris wrote:
> > arne anka wrote:
> >> well, i did what
> >> http://wiki.openmoko.org/wiki/GTA02_wlan
> >> says -- adding
> >>
> >> iface eth0 inet dhcp
> >> wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
> >
> > Ok that worked, although I have some routing issues now. The manual
> > method did not work though.
> >
> >  > iwconfig
> >
> > eth0  AR6000 802.11g  ESSID:"morrisnetwork2"
> >Mode:Managed  Frequency:2.422 GHz  Access Point:
> > 00:1D:5A:BB:FA:A9 Bit Rate=48 Mb/s   Tx-Power=16 dBm   Sensitivity=0/3
> >Retry:on
> >Encryption key:off
> >Power Management:off
> >Link Quality:207/94  Signal level:-144 dBm  Noise level:-96
> > dBm Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0 Tx excessive
> > retries:17  Invalid misc:0   Missed beacon:11
> >
> > Although it says encryption key off, but I presume wpa_supplicant is
> > handling that.
> >
> >  > ifconfig
> >
> > eth0  Link encap:Ethernet  HWaddr 00:12:CF:74:20:A8
> >inet addr:192.168.1.70  Bcast:192.168.1.255 
> > Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >RX packets:1657 errors:0 dropped:0 overruns:0 frame:0
> >TX packets:832 errors:0 dropped:0 overruns:0 carrier:0
> >collisions:0 txqueuelen:1000
> >RX bytes:725595 (708.5 KiB)  TX bytes:37892 (37.0 KiB)
> >
> >
> > So its connected to my access point, and I turned off eth0, but I cannot
> > ping the wireless, I'll work on that it may be routing or it may be
> > encryption.
> >
> > Thanks all.


P.S. sorry for CC

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


Re: Fast questions (email, GPRS, WiFi...)

2008-07-12 Thread Alexander Syring
I think you have to bring up a nameserver

echo namserver 1.2.3.4 > /etc/resolv.conf
   ^ ip of nameserver to use



Am Sonntag, 13. Juli 2008 01:14:59 schrieb Jim Morris:
> Ok using these scripts u and d (below) and the suggestion below it works,
> but is unreliable, I can ssh into it over wifi, but it quickly loses its
> connection, not sure why yet.
>
> # u this turns on wifi and usb0 off
> ifdown usb0
> ifup eth0
>
> # d this brings back usb0
> ifdown eth0
> killall wpa_supplicant
> ifup usb0
>
> Jim Morris wrote:
> > arne anka wrote:
> >> well, i did what
> >> http://wiki.openmoko.org/wiki/GTA02_wlan
> >> says -- adding
> >>
> >> iface eth0 inet dhcp
> >> wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
> >
> > Ok that worked, although I have some routing issues now. The manual
> > method did not work though.
> >
> >  > iwconfig
> >
> > eth0  AR6000 802.11g  ESSID:"morrisnetwork2"
> >Mode:Managed  Frequency:2.422 GHz  Access Point:
> > 00:1D:5A:BB:FA:A9 Bit Rate=48 Mb/s   Tx-Power=16 dBm   Sensitivity=0/3
> >Retry:on
> >Encryption key:off
> >Power Management:off
> >Link Quality:207/94  Signal level:-144 dBm  Noise level:-96
> > dBm Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0 Tx excessive
> > retries:17  Invalid misc:0   Missed beacon:11
> >
> > Although it says encryption key off, but I presume wpa_supplicant is
> > handling that.
> >
> >  > ifconfig
> >
> > eth0  Link encap:Ethernet  HWaddr 00:12:CF:74:20:A8
> >inet addr:192.168.1.70  Bcast:192.168.1.255 
> > Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >RX packets:1657 errors:0 dropped:0 overruns:0 frame:0
> >TX packets:832 errors:0 dropped:0 overruns:0 carrier:0
> >collisions:0 txqueuelen:1000
> >RX bytes:725595 (708.5 KiB)  TX bytes:37892 (37.0 KiB)
> >
> >
> > So its connected to my access point, and I turned off eth0, but I cannot
> > ping the wireless, I'll work on that it may be routing or it may be
> > encryption.
> >
> > Thanks all.



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


Re: Fast questions (email, GPRS, WiFi...)

2008-07-12 Thread Jim Morris
Ok using these scripts u and d (below) and the suggestion below it works, but 
is unreliable, I can 
ssh into it over wifi, but it quickly loses its connection, not sure why yet.

# u this turns on wifi and usb0 off
ifdown usb0
ifup eth0

# d this brings back usb0
ifdown eth0
killall wpa_supplicant
ifup usb0


Jim Morris wrote:
> arne anka wrote:
>> well, i did what
>> http://wiki.openmoko.org/wiki/GTA02_wlan
>> says -- adding
>>
>> iface eth0 inet dhcp
>> wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
>>
> 
> Ok that worked, although I have some routing issues now. The manual method 
> did not work though.
> 
>  > iwconfig
> eth0  AR6000 802.11g  ESSID:"morrisnetwork2"
>Mode:Managed  Frequency:2.422 GHz  Access Point: 00:1D:5A:BB:FA:A9
>Bit Rate=48 Mb/s   Tx-Power=16 dBm   Sensitivity=0/3
>Retry:on
>Encryption key:off
>Power Management:off
>Link Quality:207/94  Signal level:-144 dBm  Noise level:-96 dBm
>Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>Tx excessive retries:17  Invalid misc:0   Missed beacon:11
> 
> Although it says encryption key off, but I presume wpa_supplicant is handling 
> that.
> 
>  > ifconfig
> eth0  Link encap:Ethernet  HWaddr 00:12:CF:74:20:A8
>inet addr:192.168.1.70  Bcast:192.168.1.255  Mask:255.255.255.0
>UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>RX packets:1657 errors:0 dropped:0 overruns:0 frame:0
>TX packets:832 errors:0 dropped:0 overruns:0 carrier:0
>collisions:0 txqueuelen:1000
>RX bytes:725595 (708.5 KiB)  TX bytes:37892 (37.0 KiB)
> 
> 
> So its connected to my access point, and I turned off eth0, but I cannot ping 
> the wireless, I'll 
> work on that it may be routing or it may be encryption.
> 
> Thanks all.
> 


-- 
Jim Morris, http://blog.wolfman.com

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


Re: Fast questions (email, GPRS, WiFi...)

2008-07-12 Thread arne anka
> Although it says encryption key off, but I presume wpa_supplicant is  
> handling that.

says here, too. but since my ap does only wpa and the fr can reach inet  
it's probably only cosmetic.


> So its connected to my access point, and I turned off eth0, but I cannot  
> ping the wireless,

either it's a typo or a blunder -- eth0 _is_ the wireless. if you turn off  
eth0, wlan is gone.

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


Re: Fast questions (email, GPRS, WiFi...)

2008-07-12 Thread Jim Morris
arne anka wrote:
> well, i did what
> http://wiki.openmoko.org/wiki/GTA02_wlan
> says -- adding
> 
> iface eth0 inet dhcp
> wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
> 

Ok that worked, although I have some routing issues now. The manual method did 
not work though.

 > iwconfig
eth0  AR6000 802.11g  ESSID:"morrisnetwork2"
   Mode:Managed  Frequency:2.422 GHz  Access Point: 00:1D:5A:BB:FA:A9
   Bit Rate=48 Mb/s   Tx-Power=16 dBm   Sensitivity=0/3
   Retry:on
   Encryption key:off
   Power Management:off
   Link Quality:207/94  Signal level:-144 dBm  Noise level:-96 dBm
   Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
   Tx excessive retries:17  Invalid misc:0   Missed beacon:11

Although it says encryption key off, but I presume wpa_supplicant is handling 
that.

 > ifconfig
eth0  Link encap:Ethernet  HWaddr 00:12:CF:74:20:A8
   inet addr:192.168.1.70  Bcast:192.168.1.255  Mask:255.255.255.0
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   RX packets:1657 errors:0 dropped:0 overruns:0 frame:0
   TX packets:832 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:1000
   RX bytes:725595 (708.5 KiB)  TX bytes:37892 (37.0 KiB)


So its connected to my access point, and I turned off eth0, but I cannot ping 
the wireless, I'll 
work on that it may be routing or it may be encryption.

Thanks all.

-- 
Jim Morris, http://blog.wolfman.com

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


Re: Fast questions (email, GPRS, WiFi...)

2008-07-12 Thread arne anka
well, i did what
http://wiki.openmoko.org/wiki/GTA02_wlan
says -- adding

iface eth0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

to /etc/network/interfaces. make sure, the path to wpa_supplicant.conf  
matches yours.
to fire wkan w/ wpa up i have to do

ifup eth0

not sure, though, what's the diff between ifup eth0 and ifconfig eth0 up  
internally, but only the first yielded results.

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


Re: Fast questions (email, GPRS, WiFi...)

2008-07-12 Thread Jim Morris
Russell Sears wrote:
> I do this:
> 
> ifdown eth0
> iwconfig eth0 essid "TheEssid" && ifup eth0 && ifdown usb0
> 
> I haven't setup wpa or even wep though...
> 
> - What does iwconfig say before you do udhcpc?  Did the card associate 
> with the access point (non-zero link quality)?  Did the card discover 
> the access points MAC address?
> 
> - What does "ifconfig -a" say after udhcpc?  "route -n"?

 > iwlist scanning
eth0  Scan completed :
   Cell 01 - Address: 00:1D:5A:BB:FA:A9
 ESSID:""
 Mode:Master
 Frequency:2.422 GHz (Channel 3)
 Quality=45/94  Signal level=-50 dBm  Noise level=-95 dBm
 Encryption key:on
 Extra:bcn_int=100
 
Extra:wpa_ie=dd1a0050f2010150f2020250f2040050f2020150f202
 
Extra:rsn_ie=3018010fac02020fac04000fac02010fac02
 
Extra:wmm_ie=dd180050f2020101050003a427a442435e0062322f00

So it sees my AP, I do have ESSID broadcast turned off, I'll try with it on in 
a sec.

 > iwconfig
eth0  AR6000 802.11g  ESSID:""
   Mode:Managed  Bit Rate=1 Mb/s   Tx-Power=0 dBm   Sensitivity=0/3
   Retry:on
   Encryption key:off
   Power Management:on
   Link Quality:0/94  Signal level:-95 dBm  Noise level:-96 dBm
   Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
   Tx excessive retries:0  Invalid misc:0   Missed beacon:0

So its not connected

 > ifconfig -a
eth0  Link encap:Ethernet  HWaddr 00:12:CF:74:20:A8
   UP BROADCAST MULTICAST  MTU:1500  Metric:1
   RX packets:324 errors:0 dropped:0 overruns:0 frame:0
   TX packets:156 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:1000
   RX bytes:150058 (146.5 KiB)  TX bytes:7223 (7.0 KiB)

eth0:avah Link encap:Ethernet  HWaddr 00:12:CF:74:20:A8
   inet addr:169.254.6.213  Bcast:169.254.255.255  Mask:255.255.0.0
   UP BROADCAST MULTICAST  MTU:1500  Metric:1

 > netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags   MSS Window  irtt Iface
192.168.0.0 0.0.0.0 255.255.255.0   U 0 0  0 usb0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0  0 eth0
0.0.0.0 192.168.0.200   0.0.0.0 UG0 0  0 usb0

(I have not disabled usb0 at this point)

Should I use iwconfig or ifconfig to setup eth0, its not clear?
I am currently doing exactly what it says on the GTA02 wlan wiki page.

 > udhcpc eth0

just scans indefinately Although that may be becuase eth0 needs to be disabled. 
but right now it 
obviously is not connected to the AP.



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


Re: Fast questions (email, GPRS, WiFi...)

2008-07-12 Thread Jim Morris
I'll try these things but without a usb connection and ssh terminal they are 
all very hard to do
from the on screen terminal window :)

My access point shows up in the scan list, but does not connect, and I don't 
see and errors.


Russell Sears wrote:
> I do this:
> 
> ifdown eth0
> iwconfig eth0 essid "TheEssid" && ifup eth0 && ifdown usb0
> 
> I haven't setup wpa or even wep though...
> 
> - What does iwconfig say before you do udhcpc?  Did the card associate 
> with the access point (non-zero link quality)?  Did the card discover 
> the access points MAC address?
> 
> - What does "ifconfig -a" say after udhcpc?  "route -n"?
> 
> -Rusty
> 
> 
> Jim Morris wrote:
>> ian douglas wrote:
>>
>>> I havne't seen any wifi UI applicaiton yet. I SSH'd into my Freerunner,
>>> edited /etc/wpa_supplicant/wpa_supplicant.conf to alter the essid and
>>> key, typed "ifup eth0", then unplugged the USB cable, opened a terminal,
>>> ran "ifconfig usb0 down", opened the browser and navigated just fine.
>>>
>>
>> I've been trying for several hours to get wifi working, it never seems 
>> to connect although it can see my station.
>>
>> I tried this too as it makes sense to turn off usb0, but that didn't 
>> seem to work either, I wrote this script to make it easy from console 
>> (I also tried ifconfig usb0 down)
>>
>> ifdown usb0
>> wpa_supplicant -ieth0 -c/etc/wpa_supplicant/wpa_supplicant.conf -B
>> sleep 10
>> udhcpc eth0 &
>>
>>
>> Any other ideas?
>>
>> Thanks
>>
> 
> 


-- 
Jim Morris, http://blog.wolfman.com


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


Re: Fast questions (email, GPRS, WiFi...)

2008-07-12 Thread Al Johnson
There is an unofficial set of instructions at:
  http://wiki.openmoko.org/wiki/GTA02_wlan
I've added the wpa-conf line to /etc/network/interfaces and it usually works, 
with the caveats at the bottom of that page, and so long as I've dropped usb0 
or otherwise sorted the routing. Any improvement to the methods described 
would be most welcome!

On Saturday 12 July 2008, steve wrote:
>  Brenda,
>
>get the instructions for using WIFI on freerunner posted to the wiki.
>
>Michael assist.
>
> Steve
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of ian douglas
> Sent: Friday, July 11, 2008 4:32 PM
> To: List for Openmoko community discussion
> Subject: Re: Fast questions (email, GPRS, WiFi...)
>
> Diego Fernández Durán wrote:
> >   - Is there any UI to conect using WiFi? and with GPRS?
> > - Is network-manager been ported?
> >   - The NM backend?
> >   - Anybody is doing an UI for this?
>
> I havne't seen any wifi UI applicaiton yet. I SSH'd into my Freerunner,
> edited /etc/wpa_supplicant/wpa_supplicant.conf to alter the essid and key,
> typed "ifup eth0", then unplugged the USB cable, opened a terminal, ran
> "ifconfig usb0 down", opened the browser and navigated just fine.
>
> After rebooting, it seems that usb0 is auto-activated, and while the Wifi
> device is supposedly 'on', it doesn't appear in an "ifconfig" dump ... I
> ran "ifconfig down usb0" and "ifup eth0" and it failed to connect to the
> wifi using my recently-edited wpa_supplicant.conf file.
>
> I'm sure somebody is working on an app to automate this, but they'll have
> to rearrange the priority of routing traffic in the app so a user can
> specify "start up the wifi and use that connect as the default route".
>
> -id
>
>
> ___
> 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



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


RE: Fast questions (email, GPRS, WiFi...)

2008-07-11 Thread steve
 Brenda,

   get the instructions for using WIFI on freerunner posted to the wiki.

   Michael assist.

Steve

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ian douglas
Sent: Friday, July 11, 2008 4:32 PM
To: List for Openmoko community discussion
Subject: Re: Fast questions (email, GPRS, WiFi...)

Diego Fernández Durán wrote:
>   - Is there any UI to conect using WiFi? and with GPRS?
> - Is network-manager been ported?
>   - The NM backend?
>   - Anybody is doing an UI for this?


I havne't seen any wifi UI applicaiton yet. I SSH'd into my Freerunner,
edited /etc/wpa_supplicant/wpa_supplicant.conf to alter the essid and key,
typed "ifup eth0", then unplugged the USB cable, opened a terminal, ran
"ifconfig usb0 down", opened the browser and navigated just fine.

After rebooting, it seems that usb0 is auto-activated, and while the Wifi
device is supposedly 'on', it doesn't appear in an "ifconfig" dump ... I ran
"ifconfig down usb0" and "ifup eth0" and it failed to connect to the wifi
using my recently-edited wpa_supplicant.conf file.

I'm sure somebody is working on an app to automate this, but they'll have to
rearrange the priority of routing traffic in the app so a user can specify
"start up the wifi and use that connect as the default route".

-id


___
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: Fast questions (email, GPRS, WiFi...)

2008-07-11 Thread Russell Sears
I do this:

ifdown eth0
iwconfig eth0 essid "TheEssid" && ifup eth0 && ifdown usb0

I haven't setup wpa or even wep though...

- What does iwconfig say before you do udhcpc?  Did the card associate 
with the access point (non-zero link quality)?  Did the card discover 
the access points MAC address?

- What does "ifconfig -a" say after udhcpc?  "route -n"?

-Rusty


Jim Morris wrote:
> ian douglas wrote:
> 
>> I havne't seen any wifi UI applicaiton yet. I SSH'd into my Freerunner,
>> edited /etc/wpa_supplicant/wpa_supplicant.conf to alter the essid and
>> key, typed "ifup eth0", then unplugged the USB cable, opened a terminal,
>> ran "ifconfig usb0 down", opened the browser and navigated just fine.
>>
> 
> I've been trying for several hours to get wifi working, it never seems to 
> connect although it can 
> see my station.
> 
> I tried this too as it makes sense to turn off usb0, but that didn't seem to 
> work either, I wrote 
> this script to make it easy from console (I also tried ifconfig usb0 down)
> 
> ifdown usb0
> wpa_supplicant -ieth0 -c/etc/wpa_supplicant/wpa_supplicant.conf -B
> sleep 10
> udhcpc eth0 &
> 
> 
> Any other ideas?
> 
> Thanks
> 


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


Re: Fast questions (email, GPRS, WiFi...)

2008-07-11 Thread Jim Morris
ian douglas wrote:

> I havne't seen any wifi UI applicaiton yet. I SSH'd into my Freerunner,
> edited /etc/wpa_supplicant/wpa_supplicant.conf to alter the essid and
> key, typed "ifup eth0", then unplugged the USB cable, opened a terminal,
> ran "ifconfig usb0 down", opened the browser and navigated just fine.
> 

I've been trying for several hours to get wifi working, it never seems to 
connect although it can 
see my station.

I tried this too as it makes sense to turn off usb0, but that didn't seem to 
work either, I wrote 
this script to make it easy from console (I also tried ifconfig usb0 down)

ifdown usb0
wpa_supplicant -ieth0 -c/etc/wpa_supplicant/wpa_supplicant.conf -B
sleep 10
udhcpc eth0 &


Any other ideas?

Thanks

-- 
Jim Morris, http://blog.wolfman.com

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


Re: Fast questions (email, GPRS, WiFi...)

2008-07-11 Thread ian douglas
Diego Fernández Durán wrote:
>   - Is there any UI to conect using WiFi? and with GPRS?
> - Is network-manager been ported?
>   - The NM backend?
>   - Anybody is doing an UI for this?


I havne't seen any wifi UI applicaiton yet. I SSH'd into my Freerunner,
edited /etc/wpa_supplicant/wpa_supplicant.conf to alter the essid and
key, typed "ifup eth0", then unplugged the USB cable, opened a terminal,
ran "ifconfig usb0 down", opened the browser and navigated just fine.

After rebooting, it seems that usb0 is auto-activated, and while the
Wifi device is supposedly 'on', it doesn't appear in an "ifconfig" dump
... I ran "ifconfig down usb0" and "ifup eth0" and it failed to connect
to the wifi using my recently-edited wpa_supplicant.conf file.

I'm sure somebody is working on an app to automate this, but they'll
have to rearrange the priority of routing traffic in the app so a user
can specify "start up the wifi and use that connect as the default route".

-id


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


Fast questions (email, GPRS, WiFi...)

2008-07-11 Thread Diego Fernández Durán
Hi all,

 My FR is here! :) The 8GB Sandisk card works flawlessly.
 Now a few simple questions:

  - Is there any UI to conect using WiFi? and with GPRS?
- Is network-manager been ported?
  - The NM backend?
  - Anybody is doing an UI for this?
  - Can I help? [1]

  - Is there any email client for OpenMoko?
- With special features like vibrate on new mail?
- Can I help? [1]

  - [Important] As I understand FSO will be the backend and ASU the
frontend. Is there any image that I can flash in my FR that uses ASU
over FSO? (In the wiki I've read about Stable Hybrid but there's no
images).

  
  Thanks!


 [1] I've knowledge of C & GTK.  If The apps must be programed in the
Enlight framework I can learn :)

-- 
Diego Fdez. Durán <[EMAIL PROTECTED]> | http://www.goedi.net
GPG : 925C 9A21 7A11 3B13 6E43 50DB F579 D119 90D2 66BB



signature.asc
Description: Esta parte del mensaje está firmada	digitalmente
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community