Controller randomly resetting

Basic / Standard Reef Angel hardware
Meshmez
Posts: 32
Joined: Fri May 11, 2012 2:44 pm

Re: Controller randomly resetting

Post by Meshmez »

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.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Controller randomly resetting

Post by rimai »

To update the wifi, you need to use Tera Term and use the following command:

Code: Select all

ftp u
save
reboot
Then, you need to connect again and use the following to activate the wifi again:

Code: Select all

set w j 1
Roberto.
User avatar
jsclownfish
Posts: 375
Joined: Mon Oct 24, 2011 7:52 pm
Location: Saint Louis

Re: Controller randomly resetting

Post by jsclownfish »

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
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Controller randomly resetting

Post by rimai »

Cool Term
Roberto.
MortenB
Posts: 6
Joined: Tue Jun 19, 2012 3:14 pm

Re: Controller randomly resetting

Post by MortenB »

Roberto - The WDT workaround worked for me. Many thanks, MB
kimacom
Posts: 33
Joined: Fri Jul 27, 2012 9:52 am

Re: Controller randomly resetting

Post by kimacom »

Thank, GOD.
It worked that code added and no more reset now.
Great! thanks roberto.

tim
btorrenga
Posts: 100
Joined: Mon Apr 16, 2012 10:22 pm

Re: Controller randomly resetting

Post by btorrenga »

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.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Controller randomly resetting

Post by rimai »

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.
Roberto.
Bo0sted_Rafi
Posts: 75
Joined: Thu Mar 21, 2013 12:11 pm

Re: Controller randomly resetting

Post by Bo0sted_Rafi »

If I update the wifi firmware I need to configure again? The complete instructions its just adding that to the code?
Image
User avatar
jsclownfish
Posts: 375
Joined: Mon Oct 24, 2011 7:52 pm
Location: Saint Louis

Re: Controller randomly resetting

Post by jsclownfish »

I went the route of updating the firmware on the wifi and it has been fine since.
-Jon
Piper
Posts: 298
Joined: Fri Jul 20, 2012 7:13 am
Location: Oakley, CA

Re: Controller randomly resetting

Post by Piper »

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
User avatar
jsclownfish
Posts: 375
Joined: Mon Oct 24, 2011 7:52 pm
Location: Saint Louis

Re: Controller randomly resetting

Post by jsclownfish »

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. :)
Last edited by jsclownfish on Fri Aug 09, 2013 12:37 pm, edited 1 time in total.
Bo0sted_Rafi
Posts: 75
Joined: Thu Mar 21, 2013 12:11 pm

Re: Controller randomly resetting

Post by Bo0sted_Rafi »

The complete instructions for the update and if the update to the wifi adapters needs to reconfigure again?
Image
Mike S
Posts: 82
Joined: Tue Dec 27, 2011 7:26 pm

Re: Controller randomly resetting

Post by Mike S »

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
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Controller randomly resetting

Post by rimai »

Yeah, try increasing the WDT.
The next patch will fix this issue.
Roberto.
Mike S
Posts: 82
Joined: Tue Dec 27, 2011 7:26 pm

Re: Controller randomly resetting

Post by Mike S »

That did the trick. Thanks
rossbryant1956
Posts: 471
Joined: Sat Jan 14, 2012 2:08 pm
Location: Montgomery Village, MD

Re: Controller randomly resetting

Post by rossbryant1956 »

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.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Controller randomly resetting

Post by rimai »

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?
Roberto.
rossbryant1956
Posts: 471
Joined: Sat Jan 14, 2012 2:08 pm
Location: Montgomery Village, MD

Re: Controller randomly resetting

Post by rossbryant1956 »

rimai wrote:What expansion modules are you using?

I have most of them: 3 relays, i/o, pHE. Salinity, multiple float valves, multiple temp probes, etc.
This humming of the buzzer is probably because the signal on that channel is not strong enough.

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
What channel are you using and what does the controller show for that channel?
I am using the daylight channel with this command:

Code: Select all

 ReefAngel.PWM.SetDaylight(100-(ReefAngel.IO.GetChannel(0)*100));
Because it was acting so crazy last nite I ripped out all the new code to get back to basics so I could put the tanks to bed. It appears to have been stable all night and all day. The i/o unit is currently unplugged and all the code that called that unit is commented out. I am about to plug it back in to see if the problems re-occur. Let me know if you have any immediate questions. Thx
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.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Controller randomly resetting

Post by rimai »

If it is showing 20%, you either did not code anything for that channel or it or you have lights on mode.
Roberto.
Mike S
Posts: 82
Joined: Tue Dec 27, 2011 7:26 pm

Re: Controller randomly resetting

Post by Mike S »

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?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Controller randomly resetting

Post by rimai »

Yes, I applied the patch to the libraries.
Do you have the RA Client installed in any computer?
Roberto.
Mike S
Posts: 82
Joined: Tue Dec 27, 2011 7:26 pm

Re: Controller randomly resetting

Post by Mike S »

I do on an old desktop but I'm fairly certain that it has been off for months. Ill double check that.
Mike S
Posts: 82
Joined: Tue Dec 27, 2011 7:26 pm

Re: Controller randomly resetting

Post by Mike S »

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.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Controller randomly resetting

Post by rimai »

And this only happens if you plug the wifi?
Roberto.
Mike S
Posts: 82
Joined: Tue Dec 27, 2011 7:26 pm

Re: Controller randomly resetting

Post by Mike S »

Yep
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Controller randomly resetting

Post by rimai »

Is it an RA or RA+?
Can you remove the Portal function from your code and see if it makes any difference?
Roberto.
Mike S
Posts: 82
Joined: Tue Dec 27, 2011 7:26 pm

Re: Controller randomly resetting

Post by Mike S »

RA+. Ill give that a shot tomorrow morning. You are talking about this right?

ReefAngel.Portal( )
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Controller randomly resetting

Post by rimai »

Yes.
Roberto.
Mike S
Posts: 82
Joined: Tue Dec 27, 2011 7:26 pm

Re: Controller randomly resetting

Post by Mike S »

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?
Post Reply