Page 1 of 1

Reef Angel AWOL

Posted: Tue Oct 27, 2015 4:36 am
by Rodasphoto
My RA+ is turning my lights on at the wrong times and won't respond to commands via portal or the app on my phone. I tried reseting the time and making sure my connections are tight. What else can I check? I will probably reload my code when I get home.

Re: Reef Angel AWAL

Posted: Tue Oct 27, 2015 6:14 pm
by Rodasphoto
So I disconnected everything and tried my dimming module on its own connected directly and it worked. I also checked both relay boxes as well. So I know its not the dimming module or the relay boxes.. I noticed that the light on the expansion module does not light up. : (

Also of note is that the timing of events is off. I have my lights to turn off b/w 19:00 and 18:00 and they are still on.

I tried to upload my code again and it gets to about 90% then hangs indefinitely.

Re: Reef Angel AWOL

Posted: Tue Oct 27, 2015 7:18 pm
by Rodasphoto
So the cable to the expansion module was the issue. But still can't upload my code.

Sent from my Nexus 6 using Tapatalk

Re: Reef Angel AWOL

Posted: Tue Oct 27, 2015 9:10 pm
by rimai
Can you upload any other code?

Re: Reef Angel AWOL

Posted: Wed Oct 28, 2015 8:24 am
by Rodasphoto
rimai wrote:Can you upload any other code?

I will try tonight when I get home from work.

Re: Reef Angel AWOL

Posted: Wed Oct 28, 2015 2:42 pm
by Rodasphoto
So I tried uploading the preloaded code and get the same results. Also when I came home my lights were off, the light on the expansion module was off, the red light on the RA was blinking, and the screen was cycling between all menus.

Sent from my Nexus 6 using Tapatalk

Re: Reef Angel AWOL

Posted: Wed Oct 28, 2015 4:03 pm
by rimai
Did you try loading with just the head unit ando USB power cable?
Blinking redo status means bus lock.
Disconnect any expansion module and see which one is causing the problem.

Re: Reef Angel AWOL

Posted: Wed Oct 28, 2015 5:18 pm
by Rodasphoto
I tired to upload it with it connected to both VGA and USB. I have never tried to do it any other way.
I know its not the dimming module as my lights dim and turn on/off normally.

What are causes of bus lock?

Re: Reef Angel AWOL

Posted: Wed Oct 28, 2015 5:22 pm
by rimai
You can use the USB power cable if you have one.
You can use it to power the head unit without the relay box.
The bus lock is caused by something in the expansion bus.
You just stated the lights were not working in the previous post.
Please disconnect all modules and probes to see if the bus lock stops.

Re: Reef Angel AWOL

Posted: Fri Oct 30, 2015 1:11 pm
by Rodasphoto
So no bus lock. I tried to upload code to the controller with only connected to USB and it only gets to 90% and then hangs. Also one the channels on my dimming expansion quit working.

Sent from my Nexus 6 using Tapatalk

Re: Reef Angel AWOL

Posted: Fri Oct 30, 2015 2:05 pm
by rimai
Does i0t hangs on 90% on any code?
Try this code:

Code: Select all

void setup()
{
}
void loop()
{
}

Re: Reef Angel AWOL

Posted: Sat Oct 31, 2015 10:59 am
by Rodasphoto
rimai wrote:Does i0t hangs on 90% on any code?
Try this code:

Code: Select all

void setup()
{
}
void loop()
{
}
I get the following when trying to upload the code above:
The following features were automatically added:
Watchdog Timer
Version Menu

The following features were detected:
Simple Menu
Binary sketch size: 466 bytes (of a 32,256 byte maximum)
Rebooting Reef Angel Controller
avrdude: stk500_recv(): programmer is not responding

Re: Reef Angel AWOL

Posted: Sat Oct 31, 2015 12:38 pm
by rimai
Is it regular RA or RA+?

Re: Reef Angel AWOL

Posted: Sat Oct 31, 2015 12:43 pm
by Rodasphoto
RA+

Re: Reef Angel AWOL

Posted: Tue Nov 03, 2015 8:22 am
by Rodasphoto
I ordered some new USB cables in hopes that this fix the issues I am having.

But I am curious as to why I can't it hangs when trying to upload code to the controller.

Re: Reef Angel AWOL

Posted: Tue Nov 03, 2015 10:11 am
by lnevo
You've got the wrong board configured if this is an RA+. It's saying you only have 32k available which means it's looking for a standard board.

Re: Reef Angel AWOL

Posted: Tue Nov 03, 2015 10:23 am
by lnevo
Go to Tools -> Board -> ReefAngel Plus Controller

Re: Reef Angel AWOL

Posted: Tue Nov 03, 2015 10:24 am
by Rodasphoto
lnevo wrote:You've got the wrong board configured if this is an RA+. It's saying you only have 32k available which means it's looking for a standard board.
I have been using Reef Angel Controller w/optiboot. Should I use Reef Angel Plus Controller? Sorry for the dumb question.

Sent from my Nexus 6 using Tapatalk

Many thanks. I did not see you had posted when I asked using Tapatalk.

Re: Reef Angel AWOL

Posted: Tue Nov 03, 2015 11:25 am
by lnevo
So it's working now?

Re: Reef Angel AWOL

Posted: Tue Nov 03, 2015 11:29 am
by Rodasphoto
I will have to try when I get home later tonight. I will post once I try.

Re: Reef Angel AWOL

Posted: Tue Nov 03, 2015 12:20 pm
by lnevo
Cool. Keep us posted! :)

Re: Reef Angel AWOL

Posted: Tue Nov 03, 2015 1:47 pm
by Rodasphoto
Just tried with the board set to Reef Angel Controller and serial port set to /dev/tty.usbserial-A901MIKW. I got the following error:
The following features were automatically added:
Watchdog Timer
Version Menu

The following features were detected:
Dimming Signal
Wifi Attachment
Relay Expansion Module
Dimming Expansion Module
2014 Main Screen
Extra Font - Medium Size (8x8 pixels)
Number of Relay Expansion Modules: 1
Simple Menu
Binary sketch size: 60,704 bytes (of a 258,048 byte maximum)
Binary sketch size: 60,704 bytes (of a 258,048 byte maximum)
Rebooting Reef Angel Controller
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

Re: Reef Angel AWOL

Posted: Sun Nov 15, 2015 2:45 pm
by Rodasphoto
So I have tried running the controller with just the dimming expansion no bus lock. I tried running the controller with the expansion hub and dimming module- bus lock. Expansion hub and expansion hub- bus lock. This leads me to think that maybe my expansion hub is bad. I noticed the led on the expansion hub starts off bright and then goes dim to off as time passes. Maybe Rimai will let me exchange it for a working one. I also have yet been able to update my code. I am not sure what else to do/check. I have changed all of the USB cables.

Sent from my Nexus 6 using Tapatalk

Re: Reef Angel AWOL

Posted: Sun Nov 15, 2015 3:52 pm
by lnevo
Expansion hub and expansion hub?

Re: Reef Angel AWOL

Posted: Sun Nov 15, 2015 4:17 pm
by Rodasphoto
lnevo wrote:Expansion hub and expansion hub?
Expansion hub and expansion module. The one that allows for an set of relays to plug equipment into.

Sent from my Nexus 6 using Tapatalk

Re: Reef Angel AWOL

Posted: Sun Nov 15, 2015 4:19 pm
by lnevo
Gotcha. Yeah sounds like a bad hub then.

Re: Reef Angel AWOL

Posted: Mon Nov 16, 2015 7:51 am
by Rodasphoto
rimai wrote:Does i0t hangs on 90% on any code?
Try this code:

Code: Select all

void setup()
{
}
void loop()
{
}
Just tried upload the code above and got the following error
avrdude: stk500v2_command(): unknown status 0x01
avrdude: stk500v2_disable(): failed to leave programming mode