mrw wrote: > Well, it works, and with the longer red icon as well. > But I'm not sure what you intend to achieve with the -ifconfig eth1 down > ; ifconfig eth1 up-. I suspect that all it does is to delay -udhcp-'s > attempt to renew the lease. Hence, possibly, the red icon. Also bear in > mind that SqueezePlay only updates the icon every 5 seconds. > ... > I was intending that this log should simply show it taking longer. But, > oh dear, udhcp didn't complete on this occasion ! I wasn't expecting > that. The red light stayed on for a long time ! But everything > apparently was working fine... > Five minutes later: Turns out to have failed a "gateway" check, because > no valid gateway: ... > But I don't know why. I guess -udhcp- was interrupted and never > finished. > I should have checked with -ip route-
Right. I read through the Networking.lua code to see what it was doing, then to the icon, and setting the status, and got lost! But in the meantime, in investigating a too-long red icon, checking routing (cat /proc/net/route), the gateway was missing, and didn't return for quite a while. Apparently, the re-association alone caused this entry to be deleted, hence the down/up reset, which I thought would trigger a lease renewal to restore the entry. It did, but not rapidly enough. But then, using your tip, wpa_cli reassoc ; kill -s USR1 `cat /var/run/udhcpc.eth1.pid` ; cat /proc/net/route works very quickly, the gateway entry is still there, and the icon does not turn red at all, an apparent big improvement over the previous code. However, after doing this several times, my radio on the TTL serial now works with the just re-association alone, perhaps beaten into submission? I wonder knowing what is causing the gateway entry to be deleted, and that 'arp' 'address in use' message seen earlier? Perhaps this also will improve the success rate of the so-called ResetQuick() method. This deserves some testing to make sure there are no side effects. Thanks again. ------------------------------------------------------------------------ POMdev's Profile: http://forums.slimdevices.com/member.php?userid=70558 View this thread: http://forums.slimdevices.com/showthread.php?t=109953 _______________________________________________ Radio mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/radio
