problem whit wifi

Expansion modules and attachments
Post Reply
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: problem whit wifi

Post by rimai »

It's the same procedure explained in the manual.
http://www.reefangel.com/files/Reef%20A ... 20v1.3.pdf
Upload the code, attach the wifi and open tera term.
Roberto.
petruzzelli
Posts: 22
Joined: Wed Mar 30, 2011 3:04 am

Re: problem whit wifi

Post by petruzzelli »

rimai wrote:It's the same procedure explained in the manual.
http://www.reefangel.com/files/Reef%20A ... 20v1.3.pdf
Upload the code, attach the wifi and open tera term.
ok
but now i have problem whit sketch too big
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: problem whit wifi

Post by rimai »

The code above does not exceed memory.
Don't add it to your own code.
Just use it as is.
You may need to convert to standard libraries if you are getting compile errors: http://forum.reefangel.com/viewtopic.php?f=8&t=2
Roberto.
petruzzelli
Posts: 22
Joined: Wed Mar 30, 2011 3:04 am

Re: problem whit wifi

Post by petruzzelli »

rimai wrote:The code above does not exceed memory.
Don't add it to your own code.
Just use it as is.
You may need to convert to standard libraries if you are getting compile errors: http://forum.reefangel.com/viewtopic.php?f=8&t=2
1) i know i dont att it
2) i made http://forum.reefangel.com/viewtopic.php?f=8&t=2
but
Binary sketch size: 34512 bytes (of a 30720 byte maximum)
it is my pde
// Autogenerated file by RAGen (v1.0.4.92), (07/27/2011 00:09)
// RA_072711_0009.pde
//
// This version designed for v0.8.5 Beta 12 or later

/* The following features are enabled for this PDE File:
#define DisplayImages
#define DosingPumpIntervalSetup
#define OverheatSetup
#define DateTimeSetup
#define VersionMenu
#define DirectTempSensor
#define DisplayLEDPWM
#define wifi
#define StandardLightSetup
*/


#include <ReefAngel_Features.h>
#include <ReefAngel_Globals.h>
#include <ReefAngel_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <ReefAngel_EEPROM.h>
#include <ReefAngel_NokiaLCD.h>
#include <ReefAngel_ATO.h>
#include <ReefAngel_Joystick.h>
#include <ReefAngel_LED.h>
#include <ReefAngel_TempSensor.h>
#include <ReefAngel_Relay.h>
#include <ReefAngel_PWM.h>
#include <ReefAngel_Timer.h>
#include <ReefAngel_Memory.h>
#include <ReefAngel.h>


void setup()
{
ReefAngel.Init(); //Initialize controller
ReefAngel.SetTemperatureUnit(1); // set to Celsius Temperature

// Ports that are always on
ReefAngel.Relay.On(Port1);
ReefAngel.Relay.On(Port2);
ReefAngel.Relay.On(Port8);
}

void loop()
{
ReefAngel.ShowInterface();

// Specific functions
ReefAngel.StandardLights(Port3);
ReefAngel.DosingPumpRepeat1(Port4);
ReefAngel.DosingPumpRepeat2(Port5);
ReefAngel.StandardFan(Port6);
ReefAngel.StandardHeater(Port7);
}
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: problem whit wifi

Post by rimai »

Ok, so maybe you didn't have ReefAngel_Features.h file setup correctly.
Here is what you need to do:
1. Make sure you close Arduino IDE.
2. Open the file ReefAngel_Features.h located at "Documents\Arduino\libraries\ReefAngel_Features"
3. Change the contents to this:

Code: Select all

#define VersionMenu
#define wifi
4. Save the file
5. Open Arduino IDE
6. Upload your PDE file again.
Roberto.
petruzzelli
Posts: 22
Joined: Wed Mar 30, 2011 3:04 am

Re: problem whit wifi

Post by petruzzelli »

rimai wrote:Ok, so maybe you didn't have ReefAngel_Features.h file setup correctly.
Here is what you need to do:
1. Make sure you close Arduino IDE.
2. Open the file ReefAngel_Features.h located at "Documents\Arduino\libraries\ReefAngel_Features"
3. Change the contents to this:

Code: Select all

#define VersionMenu
#define wifi
4. Save the file
5. Open Arduino IDE
6. Upload your PDE file again.
sorry change in whit mode' i delete and?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: problem whit wifi

Post by rimai »

Can you please rephrase? I did not understand. :(
Roberto.
petruzzelli
Posts: 22
Joined: Wed Mar 30, 2011 3:04 am

Re: problem whit wifi

Post by petruzzelli »

rimai wrote:Can you please rephrase? I did not understand. :(
sorry
what i do? i opene the features.h and?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: problem whit wifi

Post by rimai »

Just change the contents.
Delete everything and place just these 2 lines:

Code: Select all

#define VersionMenu
#define wifi
Roberto.
petruzzelli
Posts: 22
Joined: Wed Mar 30, 2011 3:04 am

Re: problem whit wifi

Post by petruzzelli »

rimai wrote:Just change the contents.
Delete everything and place just these 2 lines:

Code: Select all

#define VersionMenu
#define wifi
ok roberto
sorry
i have 2 street
the first
settig reefangel whit this software
1) ReefAngelInstaller.exe
2)RAGen-v104-v08516 Installer.exe

second street
1) download arduino 0.22 software on www.arduino.cc
2) download libraries Version 0.8.3.11
3) download curtbinder-ReefAngel-v0.8.5.16-0-ge9a7435
4) RAGen-v104-v08516 Installer.exe

whit ragen i made memory pde and ra pde
if i use this file whit the first street i have sketch too big, if i use the second street it is ok but i dond have comunication whit wifi
why?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: problem whit wifi

Post by rimai »

Use 1st option.
After you install ReefAngelInstaller and RAGen, you have to one of these 2:

1. Edit the file ReefAngel_Features.h with just the following:
The file has to be edited after you generate your PDE. Everytime you generate a PDE file, RAGen will overwrite whatever change you've made to the file.

Code: Select all

#define VersionMenu
#define wifi
2. just uncheck everything from the RAGen when generating the file, except wifi.
You are picking too many choices of RAGen.
features.jpg
features.jpg (43.26 KiB) Viewed 2110 times
Roberto.
petruzzelli
Posts: 22
Joined: Wed Mar 30, 2011 3:04 am

Re: problem whit wifi

Post by petruzzelli »

ok tnx
now is all ok
Post Reply