Page 2 of 3

Re: Controller randomly resetting

Posted: Sat Aug 03, 2013 9:52 pm
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.

Re: Controller randomly resetting

Posted: Sat Aug 03, 2013 10:33 pm
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

Re: Controller randomly resetting

Posted: Sun Aug 04, 2013 8:57 am
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

Re: Controller randomly resetting

Posted: Sun Aug 04, 2013 8:58 am
by rimai
Cool Term

Re: Controller randomly resetting

Posted: Sun Aug 04, 2013 9:06 am
by MortenB
Roberto - The WDT workaround worked for me. Many thanks, MB

Re: Controller randomly resetting

Posted: Sun Aug 04, 2013 10:47 am
by kimacom
Thank, GOD.
It worked that code added and no more reset now.
Great! thanks roberto.

tim

Re: Controller randomly resetting

Posted: Sun Aug 04, 2013 10:55 am
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.

Re: Controller randomly resetting

Posted: Sun Aug 04, 2013 12:33 pm
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.

Re: Controller randomly resetting

Posted: Sun Aug 04, 2013 5:47 pm
by Bo0sted_Rafi
If I update the wifi firmware I need to configure again? The complete instructions its just adding that to the code?

Re: Controller randomly resetting

Posted: Mon Aug 05, 2013 9:45 am
by jsclownfish
I went the route of updating the firmware on the wifi and it has been fine since.
-Jon

Re: Controller randomly resetting

Posted: Mon Aug 05, 2013 9:57 am
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

Re: Controller randomly resetting

Posted: Wed Aug 07, 2013 1:34 pm
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. :)

Re: Controller randomly resetting

Posted: Thu Aug 08, 2013 7:03 am
by Bo0sted_Rafi
The complete instructions for the update and if the update to the wifi adapters needs to reconfigure again?

Re: Controller randomly resetting

Posted: Sun Sep 01, 2013 6:48 pm
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

Re: Controller randomly resetting

Posted: Mon Sep 02, 2013 1:32 pm
by rimai
Yeah, try increasing the WDT.
The next patch will fix this issue.

Re: Controller randomly resetting

Posted: Mon Sep 02, 2013 2:32 pm
by Mike S
That did the trick. Thanks

Re: Controller randomly resetting

Posted: Wed Sep 04, 2013 4:50 pm
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?

Re: Controller randomly resetting

Posted: Thu Sep 05, 2013 8:20 am
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?

Re: Controller randomly resetting

Posted: Thu Sep 05, 2013 4:25 pm
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

Re: Controller randomly resetting

Posted: Thu Sep 05, 2013 5:17 pm
by rimai
If it is showing 20%, you either did not code anything for that channel or it or you have lights on mode.

Re: Controller randomly resetting

Posted: Tue Nov 26, 2013 3:18 pm
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?

Re: Controller randomly resetting

Posted: Tue Nov 26, 2013 3:39 pm
by rimai
Yes, I applied the patch to the libraries.
Do you have the RA Client installed in any computer?

Re: Controller randomly resetting

Posted: Tue Nov 26, 2013 3:49 pm
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.

Re: Controller randomly resetting

Posted: Tue Nov 26, 2013 6:16 pm
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.

Re: Controller randomly resetting

Posted: Tue Nov 26, 2013 6:29 pm
by rimai
And this only happens if you plug the wifi?

Re: Controller randomly resetting

Posted: Tue Nov 26, 2013 6:31 pm
by Mike S
Yep

Re: Controller randomly resetting

Posted: Tue Nov 26, 2013 7:28 pm
by rimai
Is it an RA or RA+?
Can you remove the Portal function from your code and see if it makes any difference?

Re: Controller randomly resetting

Posted: Tue Nov 26, 2013 7:36 pm
by Mike S
RA+. Ill give that a shot tomorrow morning. You are talking about this right?

ReefAngel.Portal( )

Re: Controller randomly resetting

Posted: Tue Nov 26, 2013 7:37 pm
by rimai
Yes.

Re: Controller randomly resetting

Posted: Wed Nov 27, 2013 6:59 am
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?