mrw wrote:
> The following sequence of events seems to work. One point is that, in
> -wpa_supplicant.conf-, the current network is not "disabled", so, on
> restarting, -wpa_supplicant- will automatically attempt to reconnect. I
> think that's how it is, anyway.
> -wpa_cli- will not run without -wpa_supplicant- running, basically (I
> think) because the control socket (-/var/run/wpa_supplicant/eth1-) is
> not present. Latest source code seems to add an --r- option to keep it
> running regardless.
> SqueezePlay appears to be unfazed, it seems to re-establish its
> connection to the control socket when -wpa_supplicant- is restarted.
> (See -/tmp- for extant sockets created by -wpa_cli- and SqueezePlay).
>
> But I don't know how robust it all is...
>
> Sourcing this script: ... Gives this log output: ... Here's a second log
> dump. It seemed to take rather longer to get fully going, I think.
> ...
What is your radio's signal level? That 45 seconds does seem like a long
time. I set my radio on the TTL serial connection to the far-away AP for
a Link Quality:32/94 Signal level:-63 dBm, pretty low, although some
users have even lower. At boot, this radio connects after 29 seconds.
However, during testing of 0.8.0, and an "ifconfig eth1 down", some
truly horrifying delays were observed:
Code:
--------------------
Mar 26 21:23:53 root: wlan stopped
Mar 26 21:23:53 root: wlan: starting
what's this?
Mar 26 21:31:06 root: Starting wpa_supplicant
Mar 26 21:31:10 root: Started wpa_supplicant
Mar 26 21:31:10 root: wlan started
--------------------
I added additional logging to /etc/init.d/wlan 33973,
attached, because there were long times associated with killing and/or
launching dhcpc.
Here, long delays are caused by the radio not completing the dhcp
handshakes because of poor reception. Because dhcp can take so long, the
0.8.0 script has been modified to increase hold off delays after a reset
before attempting a subsequent full reset.
+-------------------------------------------------------------------+
|Filename: wlan_0801.zip |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=33973|
+-------------------------------------------------------------------+
------------------------------------------------------------------------
POMdev's Profile: http://forums.slimdevices.com/member.php?userid=70558
View this thread: http://forums.slimdevices.com/showthread.php?t=111663
_______________________________________________
Radio mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/radio