Controller randomly resetting
Re: Controller randomly resetting
I am out of town so I can't try any of the temp fixes. But it is still resetting, and I'm sure my firmware is old.
Re: Controller randomly resetting
To update the wifi, you need to use Tera Term and use the following command:
Then, you need to connect again and use the following to activate the wifi again:
Code: Select all
ftp u
save
reboot
Code: Select all
set w j 1
Roberto.
- jsclownfish
- Posts: 375
- Joined: Mon Oct 24, 2011 7:52 pm
- Location: Saint Louis
Re: Controller randomly resetting
is there a Mac alternative to Tera Term? 'Big brother' locked out applications added to my laptop, so now I'm stuck trying to use my mac.
-Jon
-Jon
Re: Controller randomly resetting
Roberto - The WDT workaround worked for me. Many thanks, MB
Re: Controller randomly resetting
Thank, GOD.
It worked that code added and no more reset now.
Great! thanks roberto.
tim
It worked that code added and no more reset now.
Great! thanks roberto.
tim
Re: Controller randomly resetting
What other side effects dies that line of code present? I am not sure how it works, and so am curious what other behavior might change.
Re: Controller randomly resetting
No side effect.
The Watchdog's sole purpose is to watch for the controller.
So, the controller needs to say "Hey, I'm alive" at least once every so often. In our case, we choose to use 1 seconds timeout.
If the controller doesn't ping the watchdog within one second, the watchdog would assume the controller is not alive and it reboots it.
The problem is that the HTML page being returned by the server was taking more than one second to be processed and it was causing the WDT to reboot the controller.
Increasing to 2 seconds allowed enough time for the controller to clean up the HTML page from the server and get back to the WDT to let WDT it was still alive.
It's just a matter of designer preference to decide what the timeout is going to be.
I've seen a lot of people even using 8 seconds. It all depends on how soon you want to consider your controller is dead if something goes wrong.
The Watchdog's sole purpose is to watch for the controller.
So, the controller needs to say "Hey, I'm alive" at least once every so often. In our case, we choose to use 1 seconds timeout.
If the controller doesn't ping the watchdog within one second, the watchdog would assume the controller is not alive and it reboots it.
The problem is that the HTML page being returned by the server was taking more than one second to be processed and it was causing the WDT to reboot the controller.
Increasing to 2 seconds allowed enough time for the controller to clean up the HTML page from the server and get back to the WDT to let WDT it was still alive.
It's just a matter of designer preference to decide what the timeout is going to be.
I've seen a lot of people even using 8 seconds. It all depends on how soon you want to consider your controller is dead if something goes wrong.
Roberto.
-
- Posts: 75
- Joined: Thu Mar 21, 2013 12:11 pm
Re: Controller randomly resetting
If I update the wifi firmware I need to configure again? The complete instructions its just adding that to the code?
- jsclownfish
- Posts: 375
- Joined: Mon Oct 24, 2011 7:52 pm
- Location: Saint Louis
Re: Controller randomly resetting
I went the route of updating the firmware on the wifi and it has been fine since.
-Jon
-Jon
Re: Controller randomly resetting
I updated my firmware to the latest and seems to be fine now. The only problem I ever had on the old firmware was the Adnroid app would report a bad URL a few (2-10) times a day at random. The new firmware seems to have resolved that issue.
~Charlie
~Charlie
- jsclownfish
- Posts: 375
- Joined: Mon Oct 24, 2011 7:52 pm
- Location: Saint Louis
Re: Controller randomly resetting
Roberto, any word on the server issues? I ask because the firmware update seems to have stopped the reset problem, but I can only hold a connection for a short time and then it is not accessible. Since I didn't have that problem previously I don't know if it is a firmware difference in the wifi or something with the server.
Thanks,
Jon
**nevermind. I did a factory reset and started over and it hasn't dropped in the last 24 hours.
Thanks,
Jon
**nevermind. I did a factory reset and started over and it hasn't dropped in the last 24 hours.
Last edited by jsclownfish on Fri Aug 09, 2013 12:37 pm, edited 1 time in total.
-
- Posts: 75
- Joined: Thu Mar 21, 2013 12:11 pm
Re: Controller randomly resetting
The complete instructions for the update and if the update to the wifi adapters needs to reconfigure again?
Re: Controller randomly resetting
Does this issue only effect the older wifi firmware? I uploaded some new code today and also updated my wifi module firmware to 4.0. Afterwards I noticed that my T5's on my expansion relay were cycling off and on every 5 to 10 minutes. I could here the relay clicking on and off. After watching it for a while, I noticed that the wifi module seemed to be acting a little odd so I unplugged it and the problem has seemed to go away.
Is it simply a matter of adding some code to increase the WDT timeout by a few seconds? Thanks
Is it simply a matter of adding some code to increase the WDT timeout by a few seconds? Thanks
Re: Controller randomly resetting
Yeah, try increasing the WDT.
The next patch will fix this issue.
The next patch will fix this issue.
Roberto.
Re: Controller randomly resetting
That did the trick. Thanks
-
- Posts: 471
- Joined: Sat Jan 14, 2012 2:08 pm
- Location: Montgomery Village, MD
Re: Controller randomly resetting
My unit is currently exhibiting these symptoms and the wifi is unplugged. I have been working on the code. Also my buzzer, currently plugged into PWM, is emitting a low tone regardless of its state. Is this watchdog as well?
Roscoe's Reefs - Starting Over Again:
Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
Re: Controller randomly resetting
What expansion modules are you using?
This humming of the buzzer is probably because the signal on that channel is not strong enough.
What channel are you using and what does the controller show for that channel?
This humming of the buzzer is probably because the signal on that channel is not strong enough.
What channel are you using and what does the controller show for that channel?
Roberto.
-
- Posts: 471
- Joined: Sat Jan 14, 2012 2:08 pm
- Location: Montgomery Village, MD
Re: Controller randomly resetting
I am using the daylight channel with this command:rimai wrote:What expansion modules are you using?This humming of the buzzer is probably because the signal on that channel is not strong enough.
I have most of them: 3 relays, i/o, pHE. Salinity, multiple float valves, multiple temp probes, etc.What channel are you using and what does the controller show for that channel?
It has been working beautifully for months but as I added more to the i/o unit, it started the resetting. I think something is sending out a bogus signal on that PWM channel. (I don't use PWM at all, except for the buzzers) Portal has both PWM channels at 20% but nothing in my code sets that up
Code: Select all
ReefAngel.PWM.SetDaylight(100-(ReefAngel.IO.GetChannel(0)*100));
Roscoe's Reefs - Starting Over Again:
Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
Re: Controller randomly resetting
If it is showing 20%, you either did not code anything for that channel or it or you have lights on mode.
Roberto.
Re: Controller randomly resetting
Hi Roberto,
Has there been any updates on this issue. I had been experiencing issues with relays randomly turning on and off. Add in WDT temporarily fixed the problem but it returned after a few days. I tried increasing WDT but for some reason it wouldn't upload with anything higher than 3. After struggling with it I just decided to leave the WiFi unit unplugged.
I update my libraries last week and uploaded new code. I plugged the wifi back in and it behaved fine for about a days before dropping its connection. A few relays are now cycling on and off again. I haven't tried adding WDT back to my code yet. Any thoughts?
Has there been any updates on this issue. I had been experiencing issues with relays randomly turning on and off. Add in WDT temporarily fixed the problem but it returned after a few days. I tried increasing WDT but for some reason it wouldn't upload with anything higher than 3. After struggling with it I just decided to leave the WiFi unit unplugged.
I update my libraries last week and uploaded new code. I plugged the wifi back in and it behaved fine for about a days before dropping its connection. A few relays are now cycling on and off again. I haven't tried adding WDT back to my code yet. Any thoughts?
Re: Controller randomly resetting
Yes, I applied the patch to the libraries.
Do you have the RA Client installed in any computer?
Do you have the RA Client installed in any computer?
Roberto.
Re: Controller randomly resetting
I do on an old desktop but I'm fairly certain that it has been off for months. Ill double check that.
Re: Controller randomly resetting
The computers are off. It appears to only be the expansion relay that is affected. All ports are cycling on and off every few minutes. I did have to make a long cable (15 feet) so that I could place the expansion relay near my tank. I'm not sure if that could have anything to do with it.
Re: Controller randomly resetting
Is it an RA or RA+?
Can you remove the Portal function from your code and see if it makes any difference?
Can you remove the Portal function from your code and see if it makes any difference?
Roberto.
Re: Controller randomly resetting
RA+. Ill give that a shot tomorrow morning. You are talking about this right?
ReefAngel.Portal( )
ReefAngel.Portal( )
Re: Controller randomly resetting
I removed the portal function and am still having the same issue. I checked and confirmed that I am using library 1.1.0. Any ideas?