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

Peter Nijs peter at familienijs.be
Sat Jul 26 18:04:32 CEST 2008


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:

root at om-gta02:~# iwconfig
lo        no 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=<I'm not showing that!>
> > >      priority=8
> > > }
> > >
> > >
> > > Now here's what I do:--------------------------------------------
> > > root at om-gta02:~# 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
> > > root at om-gta02:~# iwconfig
> > > lo        no 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
> > >
> > > root at om-gta02:~# 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)
> > >
> > > root at om-gta02:~#
> > >
> > > 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.
> > >
> > > -----------------------------------------------------------------------
> > >-
> > >
> > > _______________________________________________
> > > Openmoko community mailing list
> > > community at lists.openmoko.org
> > > http://lists.openmoko.org/mailman/listinfo/community


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.openmoko.org/pipermail/community/attachments/20080726/02d11c57/attachment.pgp 


More information about the community mailing list