The new year hasn't started well as a Yun WiFi issue continues to haunt me.
OpenWRTYun Attitude Adjustment 1 | Load: 0.15 0.08 0.06
I have had a pair of Yuns on my desk/bench since last August. Fact is I thought I had bricked the first one when the WiFi quit unexpectedly within a week or so. So I bought another a few days later. It too has exhibited the WiFI drop-out issue, though not as often. The first one recovered mysteriously after I got the second. I had immediately updated them and reflashed one twice. I don't know if i have missed something obscure.
If I am debugging or composing code, I run direct on USB [Serial()]. To exercise the sketch [via Console()] over WiFi, I generally run the Yun(s) on an uninterruptable 5V Li-Ion Battery pack that stays on a charger, a configuration I thought would resolve any power-up issues. The Wifi Bug has haunted me from the beginning. I use an ASUS RT68U for wireless and never have any issues with the other gear on my household network.
I admit that I have just begun to scratch the surface of the C++ programming of the Arduino, but the WiFi is the only feature on the Yun that beats me up. I have attached a typical testing sketch that just gets A2D data from A0, A1, A2 and writes it to the SD Card. That works fine.
When WiFi drops off, either Yun won't always restart in Wifi. Further I thought I had forever corrupted one or both because I chose to alter the wlan to static with a fixed address. After resetting, they sometimes recover to the 192.168.240.1 default, sometimes not. Sometimes it defaults to DHCP and I find it in the wireless addresses listed on the router config panel. Sometimes the blue wlan netdev 'link' LED comes back when the wifi comes up, (as I think I have it configured), sometimes not.
The robust feature set of Linino-Openwrt is desirable but I can't begin to think the product will suffice in the remote application I've proposed for our community well-house, which is to notify me by msg or e-mail the service company if the pumps or 3-PH electricity go down.
Anyway, after multiple tries this week I got both Yun's to reset and recover on DHCP. Not where I wanted but at least I know they aren't entirely useless. Hoping a clue comes along, as this issue was also experienced by one or more users describing their experience on GitHub.
Now, I am still not sure I have the WLAN Blue LED properly activated on the advanced configuration page. I can activate (save & apply) the blue LED triggered by netdev, wlan0, link, and save the setup in the configuration panel. I power off and back on, wait for a restart, and soon, say a couple of minutes, the IP shows up in the router's list of wireless devices, as it should. Shortly thereafter, the blue LED comes ON. When I start the console (monitor over wifi ) I will eventually get the printed data from the sketch, but the Blue LED has now mysteriously turned OFF. I reopen the configuration files and I can see that the settings are as I saved them. What is happening? (or not) Does this behavior have anything to do with the SD card write? I can SSH into the SD file and see the data updating.
I need to get the hardware behavior sorted out before I start making a dashboard to display various data types that i want to retrieve from an array of the yun's - if they can be made reliable over wifi. All suggestions appreciated. BTW this is my first chance to 'code' since visual basic. mercy.
EOL
BYUn_SD_Logger-3cha2d-jan4.ino (2.81 KB)


