will not download codes while programming new RA

New members questions
Post Reply
bmeyer0627
Posts: 6
Joined: Tue May 26, 2015 2:57 pm

will not download codes while programming new RA

Post by bmeyer0627 »

hey! so I'm sure theres a logical explanation but for whatever reason when I go to start uploading the codes on my new RA it says that there is an error and that it cant upload. the download for the drivers was successful and the icon has appeared but I cant upload codes. ideas?
i throw peanuts at old ladies
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: will not download codes while programming new RA

Post by cosmith71 »

PC or Mac?

Make sure you've selected the correct COM port under Tools->Serial Port.

The RA needs to be connected to either the relay box or the USB temp port power cable (it has to have power).

Make sure the programmer cable is plugged in with the black wire all the way to the right.

A screen shot showing the error might be helpful too.

--Colin
keepLearning
Posts: 3
Joined: Sat Mar 26, 2016 2:19 pm

Re: will not download codes while programming new RA

Post by keepLearning »

I got errors while the simple code being compiled too. I can roll back to the default code but that is it. I use the wizard to try something like keep the relay outlets on and turn off when in feed mode.

///////////////////

This line below got an error
ReefAngel.FeedingModePortsE[0] = 0;

FeedingModePortsE is not a member of ReefAngel class. I download the reef angel installer from the download link. It looks like i have a mismatched in the library version. Any help is appreciated.

//////////////////

#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_NokiaLCD.h>
#include <RA_ATO.h>
#include <RA_Joystick.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <RA_PWM.h>
#include <Timer.h>
#include <Memory.h>
#include <InternalEEPROM.h>
#include <RA_Colors.h>
#include <RA_CustomColors.h>
#include <Salinity.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <DCPump.h>
#include <PAR.h>
#include <ReefAngel.h>

////// Place global variable code below here


////// Place global variable code above here


void setup()
{
// This must be the first line
ReefAngel.Init(); //Initialize controller
ReefAngel.AddStandardMenu(); // Add Standard Menu

ReefAngel.Use2014Screen(); // Let's use 2014 Screen
ReefAngel.AddWaterLevelExpansion(); // Water Level Expansion Module
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port1Bit | Port2Bit | Port3Bit | Port4Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit;
ReefAngel.FeedingModePortsE[0] = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = 0;
ReefAngel.WaterChangePortsE[0] = 0;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
ReefAngel.LightsOnPortsE[0] = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = 0;
ReefAngel.OverheatShutoffPortsE[0] = 0;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;


// Ports that are always on
ReefAngel.Relay.On( Port1 );
ReefAngel.Relay.On( Port2 );
ReefAngel.Relay.On( Port3 );
ReefAngel.Relay.On( Port4 );
ReefAngel.Relay.On( Port5 );
ReefAngel.Relay.On( Port6 );
ReefAngel.Relay.On( Port7 );
ReefAngel.Relay.On( Port8 );

////// Place additional initialization code below here


////// Place additional initialization code above here
}

void loop()
{
////// Place your custom code below here


////// Place your custom code above here

// This should always be the last line
ReefAngel.ShowInterface();
}
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: will not download codes while programming new RA

Post by rimai »

Do you have the relay expansion module?
If you don't make sure to not select it.
If you do, make sure to assign something to the relay ports of the relay expansion.
Roberto.
keepLearning
Posts: 3
Joined: Sat Mar 26, 2016 2:19 pm

Re: will not download codes while programming new RA

Post by keepLearning »

I double checked. Rookie mistake. :-)

Thank you for your help.
Post Reply