Timeout error

Do you have a question on how to do something.
Ask in here.
Post Reply
stephy
Posts: 26
Joined: Sat Jun 02, 2012 1:36 am
Location: Livorno (Italy)

Timeout error

Post by stephy »

Today I updated libraries and try to upload a new code to my RA. Before I never had problems uploading.

arduino log:

Code: Select all

The following features were automatically added:
Watchdog Timer
Version Menu

The following features were detected:
Dimming Signal
RF Expansion Module
Wifi Attachment
Extra Font - Medium Size (8x8 pixels)
Date/Time Setup Menu
Simple Menu
Dimensione del file binario dello sketch: 35.534 bytes (su un massimo di 258.048 bytes)
C:\Program Files\Reef Angel Controller\hardware/tools/avr/bin/avrdude -CC:\Program Files\Reef Angel Controller\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -P\\.\COM3 -b115200 -D -Uflash:w:C:\Users\TINOZ2~1.5\AppData\Local\Temp\build8625544596654132806.tmp\ott23.cpp.hex:i 

avrdude: Version 5.11.1, compiled on Apr  1 2012 at 09:58:16
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Program Files\Reef Angel Controller\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : \\.\COM3
         Using Programmer              : stk500v2
         Overriding Baud Rate          : 115200
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] 
avrdude: Recv: 
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

avrdude done.  Thank you.

my code:

Code: Select all

#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 <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.AddDateTimeMenu();
  ReefAngel.SetTemperatureUnit( Celsius );  // set to Celsius Temperature
  ReefAngel.AddWifi ();

  // Ports toggled in Feeding Mode
  ReefAngel.FeedingModePorts = 0;
  // Ports toggled in Water Change Mode
  ReefAngel.WaterChangePorts = 0;
  // Ports toggled when Lights On / Off menu entry selected
  ReefAngel.LightsOnPorts = 0;
  // Ports turned off when Overheat temperature exceeded
  ReefAngel.OverheatShutoffPorts = 0;
  // Use T1 probe as temperature and overheat functions
  ReefAngel.TempProbe = T1_PROBE;
  ReefAngel.OverheatProbe = T1_PROBE;
  // Set the Overheat temperature setting
  InternalMemory.OverheatTemp_write( 309 );

  // Ports that are always on
  ReefAngel.Relay.On( Port4 );

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


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

void loop()
{
  ReefAngel.LCD.DrawLargeText(COLOR_STEELBLUE,COLOR_WHITE,28,121,"Tinozzina"); // Display Reef Angel banner  
  ReefAngel.ActinicLights( Port1 );
  ReefAngel.DayLights( Port2 );
  ReefAngel.MoonLights( Port3 );
  ReefAngel.StandardHeater( Port5 );
  ReefAngel.StandardFan( Port6 );
  ReefAngel.Relay.DelayedOn( Port7 );
  ReefAngel.PWM.SetDaylight( MoonPhase() );
  ReefAngel.RF.UseMemory = true;

  if ( ReefAngel.RF.Mode != Feeding_Start)
  {
    if (hour()==9)
    {
      if (minute()>0)
        ReefAngel.RF.SetMode( Lagoon,65,10 );
      else
        ReefAngel.RF.SetMode(Feeding_Stop,0,0); //Temp fix for coming out of Night mode
    }
    else if (hour()==10 && minute()<5)
      ReefAngel.RF.SetMode( Constant,90,10 );
    else if (hour()==13 && minute()<30)
      ReefAngel.RF.SetMode( Smart_NTM,90,3 );
    else if (hour()==19 && minute()<5)
      ReefAngel.RF.SetMode( Constant,90,10 );
    else if (hour()==20 && minute()<30)
      ReefAngel.RF.SetMode( Smart_NTM,90,3 );
    else if (hour()==21)
      ReefAngel.RF.SetMode( Lagoon,65,10 );
    else if (hour()>=22 || hour()<10)
      ReefAngel.RF.SetMode( Night,80,10 );
    else
      ReefAngel.RF.SetMode( ReefCrest,75,10 );
  }
  ////// Place your custom code below here


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

  // This should always be the last line
  ReefAngel.Portal( "stephy" );
  ReefAngel.ShowInterface();
}


Suggestions?
Stephy

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

Re: Timeout error

Post by rimai »

You seem to be using the wrong version of avrdude.
The avrdude version you have is not the correct one.

avrdude: Version 5.11.1, compiled on Apr 1 2012 at 09:58:16
This is the original distribution from the Arduino team and I actually recompiled to create a RA specific avrdude.
Let me check if the RA installer has the wrong version.
Roberto.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Timeout error

Post by rimai »

Yeah :(
I packaged the wrong avrdude.
Let me repackage it. Sorry.
Roberto.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Timeout error

Post by rimai »

Ok, I repackaged it and updated the download section of website.
Please download the newest installer 1.0.2a
Roberto.
stephy
Posts: 26
Joined: Sat Jun 02, 2012 1:36 am
Location: Livorno (Italy)

Re: Timeout error

Post by stephy »

Working, thanks :-)

Any news about new version of client suite...?
Stephy

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

Re: Timeout error

Post by rimai »

Dave is working on that and he had some problems with Windows8 compatibility.
Roberto.
Post Reply