Rebooting the Wifi unit
Rebooting the Wifi unit
Hey guys. is there anyway to have to WIFI unit reboot itself every few hours. I've been having issues when the unit will stop communicating and I would have to go home and unplug the wifi and replug it to get it to work again. Any help would be appreciated.
Thank you
Thank you
Re: Rebooting the Wifi unit
There is a thread on this already. I can't remember where right now and I'm not in a position to look for it now.
Re: Rebooting the Wifi unit
Sacohen wrote:There is a thread on this already. I can't remember where right now and I'm not in a position to look for it now.
I figured as such.. but i cant seem to find it anywhere. I've searched on various keywords already... any help would be greatly appreciated
Re: Rebooting the Wifi unit
I found this in an old thread. Did anything ever come of this? Would this code work to setup a reboot every x hrs?
rimai wrote:Do you have any software pulling data from RA, such as Client or gadget?
Try adding this to your loop():Let me know how it goes.Code: Select all
if (millis()%3600000<500) { Serial.print("$$$"); wdt_reset(); delay(700); wdt_reset(); Serial.println("reboot"); }
Re: Rebooting the Wifi unit
That reboots the head unit. This was setting on the WiFi unit directly. However, the big issues were fixed with the 4.x firmware.. are you updated? Those with continuing issues went with external antennas which helped a lot. Hopefully roberto will chime in soon. I'm sure he remembers.
Re: Rebooting the Wifi unit
Yeah, I think updating the firmware and getting better signal will greatly improve your situation.
Roberto.
Re: Rebooting the Wifi unit
http://www.microchip.com/support/KBArti ... D=KB100337
From the Microchip website:
When upgrading firmware from a version lower than 4.0, a two-step upgrade process is required to achieve the full functionality of v4.XX firmware. The process for this upgrade is shown below, for both the RN131 and RN171 modules. Note that the firmware image names are different between the two modules.
1. Update the firmware .img file to version 4.xx using the ftp update command. Then reboot, factory R, and reboot to boot into the new firmware image.
2. Download the .mif file using the ftp update command. Issue a factory R, and reboot.
For RN131 module
From the Microchip website:
When upgrading firmware from a version lower than 4.0, a two-step upgrade process is required to achieve the full functionality of v4.XX firmware. The process for this upgrade is shown below, for both the RN131 and RN171 modules. Note that the firmware image names are different between the two modules.
1. Update the firmware .img file to version 4.xx using the ftp update command. Then reboot, factory R, and reboot to boot into the new firmware image.
2. Download the .mif file using the ftp update command. Issue a factory R, and reboot.
For RN131 module
// update the img file
ftp update wifly3-400.img
// required sequence
reboot
$$$
factory R
reboot
// update the mif file
ftp update wifly3-400.mif
// required sequence
// module automatically reboots after .mif download, so first reboot removed
$$$
factory R
reboot
Roberto.
Re: Rebooting the Wifi unit
How do I check the firmware? I brought the unit last year.... So i figured it should be updated. But how do i check
Re: Rebooting the Wifi unit
Use teraterm or putty.
When you enter command mode, it will tell you which version it is.
When you enter command mode, it will tell you which version it is.
Roberto.
Re: Rebooting the Wifi unit
After each update, you'll probably also need to re-enable auto-join (it's disabled by default in v4.0 and above):
set wlan join 1
save
set wlan join 1
save
Re: Rebooting the Wifi unit
Here is the link for the external antenna if you ever want to modify, it made quite a difference for me.
http://forum.reefangel.com/viewtopic.ph ... al+antenna
http://forum.reefangel.com/viewtopic.ph ... al+antenna