Reef Angel AWOL

Basic / Standard Reef Angel hardware
Post Reply
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Reef Angel AWOL

Post 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.
Last edited by Rodasphoto on Tue Oct 27, 2015 6:15 pm, edited 1 time in total.
Image
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Reef Angel AWAL

Post 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.
Image
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Reef Angel AWOL

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

Re: Reef Angel AWOL

Post by rimai »

Can you upload any other code?
Roberto.
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Reef Angel AWOL

Post by Rodasphoto »

rimai wrote:Can you upload any other code?

I will try tonight when I get home from work.
Image
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Reef Angel AWOL

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

Re: Reef Angel AWOL

Post 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.
Roberto.
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Reef Angel AWOL

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

Re: Reef Angel AWOL

Post 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.
Roberto.
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Reef Angel AWOL

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

Re: Reef Angel AWOL

Post by rimai »

Does i0t hangs on 90% on any code?
Try this code:

Code: Select all

void setup()
{
}
void loop()
{
}
Roberto.
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Reef Angel AWOL

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

Re: Reef Angel AWOL

Post by rimai »

Is it regular RA or RA+?
Roberto.
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Reef Angel AWOL

Post by Rodasphoto »

RA+
Image
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Reef Angel AWOL

Post 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.
Image
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Reef Angel AWOL

Post 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.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Reef Angel AWOL

Post by lnevo »

Go to Tools -> Board -> ReefAngel Plus Controller
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Reef Angel AWOL

Post 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.
Image
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Reef Angel AWOL

Post by lnevo »

So it's working now?
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Reef Angel AWOL

Post by Rodasphoto »

I will have to try when I get home later tonight. I will post once I try.
Image
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Reef Angel AWOL

Post by lnevo »

Cool. Keep us posted! :)
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Reef Angel AWOL

Post 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
Image
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Reef Angel AWOL

Post 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
Image
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Reef Angel AWOL

Post by lnevo »

Expansion hub and expansion hub?
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Reef Angel AWOL

Post 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
Image
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Reef Angel AWOL

Post by lnevo »

Gotcha. Yeah sounds like a bad hub then.
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Reef Angel AWOL

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