Portal address unreachable
-
- Posts: 84
- Joined: Sun Mar 11, 2012 10:38 am
Portal address unreachable
I tried logging onto the portal and cant get any updated info from the reef angel. Where do I start looking to figure out whats wrong?
Re: Portal address unreachable
Is your wifi blinking blue?
Do you have the Portal() function in your code?
Do you have the Portal() function in your code?
Roberto.
-
- Posts: 84
- Joined: Sun Mar 11, 2012 10:38 am
Re: Portal address unreachable
yes the blue light is blinking. I havent made any changes to the code in over a month. The portal says displaying last data from Sep 9th
-
- Posts: 84
- Joined: Sun Mar 11, 2012 10:38 am
Re: Portal address unreachable
#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 <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
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port5Bit | Port6Bit | Port7Bit | Port8Bit;
ReefAngel.FeedingModePortsE[0] = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port7Bit | Port8Bit;
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 = Port1Bit;
ReefAngel.OverheatShutoffPortsE[0] = 0;
// The T3 probe is tank temperature and overheat functions
ReefAngel.TempProbe = T3_PROBE;
ReefAngel.OverheatProbe = T3_PROBE;
// Overheat temperature setting
InternalMemory.OverheatTemp_write( 840 );
// Ports that are always on Pump-8 Wavemakers-5&6
ReefAngel.Relay.On( Port8 );
ReefAngel.Relay.On( Port5 );
ReefAngel.Relay.On( Port6 );
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.StandardHeater( Port1,751,761 );
ReefAngel.StandardATO( Port2,390 );
ReefAngel.StandardLights( Port3,21,0,9,0 );
//ReefAngel.Wavemaker( Port5,60 );
//ReefAngel.Wavemaker( Port6,60 );
ReefAngel.Relay.DelayedOn( Port7,3 );
//Actinic Lights
ReefAngel.StandardLights( Box1_Port1,11,0,22,0 );
//Moon Light Driver
ReefAngel.StandardLights( Box1_Port2,22,0,8,0 );
//Morning Lights
ReefAngel.StandardLights( Box1_Port3,11,30,21,30 );
//High Noon Lights
ReefAngel.StandardLights( Box1_Port4,12,0,21,0 );
// This next line will run cooling fans for the tank
ReefAngel.StandardFan( Box1_Port5,790,805 );
//Moon Light 9V
ReefAngel.StandardLights( Box1_Port8,21,59,8,1 );
ReefAngel.PWM.SetDaylight( PWMSlope(12,0,21,0,10,100,240,10) );
ReefAngel.PWM.SetActinic( PWMSlope(11,0,22,0,10,100,60,10) );
////// Place your custom code below here
if (ReefAngel.Params.Temp[T1_PROBE]>0)
{
if (ReefAngel.Params.Temp[T1_PROBE] >= 860) ReefAngel.Relay.On(Box1_Port7);
if (ReefAngel.Params.Temp[T1_PROBE] <= 820) ReefAngel.Relay.Off(Box1_Port7);
}
////// Place your custom code above here
// This should always be the last line
ReefAngel.Portal( "grafspee1217" );
ReefAngel.ShowInterface();
}
void DrawCustomMain()
{
int x,y;
char text[10];
// Parameters
#if defined DisplayLEDPWM && ! defined RemoveAllLights
ReefAngel.LCD.DrawMonitor( 15, 62, ReefAngel.Params,
ReefAngel.PWM.GetDaylightValue(), ReefAngel.PWM.GetActinicValue() );
#else // defined DisplayLEDPWM && ! defined RemoveAllLights
ReefAngel.LCD.DrawMonitor( 15, 62, ReefAngel.Params );
#endif // defined DisplayLEDPWM && ! defined RemoveAllLights
pingSerial();
// Main Relay Box
byte TempRelay = ReefAngel.Relay.RelayData;
TempRelay &= ReefAngel.Relay.RelayMaskOff;
TempRelay |= ReefAngel.Relay.RelayMaskOn;
ReefAngel.LCD.DrawOutletBox( 12, 93, TempRelay );
pingSerial();
// Relay Expansion
TempRelay = ReefAngel.Relay.RelayDataE[0];
TempRelay &= ReefAngel.Relay.RelayMaskOffE[0];
TempRelay |= ReefAngel.Relay.RelayMaskOnE[0];
ReefAngel.LCD.DrawOutletBox( 12, 106, TempRelay );
pingSerial();
// Date and Time
ReefAngel.LCD.DrawDate( 6, 122 );
pingSerial();
}
void DrawCustomGraph()
{
ReefAngel.LCD.DrawGraph( 5, 5 );
}
Re: Portal address unreachable
Everything was working fine for months, then all of a sudden the iPhone App would give download errors and the portal reported address unreachable. However, data continued to be logged and the web charts would work fine and report recent data as would the iPhone app history feature. I tried reconfiguring the wireless module, with no change.
If I unplug the wireless and plug it back in, everything works fine for about 3 minutes, then the address becomes unreachable again (though obviously it can still be reached since the last update time is always within the last hour and the webcharts are pretty up to date, even when the address has been unreachable for days.).
If I unplug the wireless and plug it back in, everything works fine for about 3 minutes, then the address becomes unreachable again (though obviously it can still be reached since the last update time is always within the last hour and the webcharts are pretty up to date, even when the address has been unreachable for days.).
Re: Portal address unreachable
Your LAN ip address has most likely changed and you will have to reconfigure your port forwarding to point it to your new ip address.
Roberto.
Re: Portal address unreachable
I have reset my port forwarding info, but that did not help. If I reboot the wireless module (unplug it from the head unit and rep lug it in) then everything works fine for a minute or two. The iPhone App works and the portal says the address is reachable. After a couple minutes both the app and the portal are unable to reach the unit, however, new data continues to be logged from the unit, though sometimes this stops for a while (as it did yesterday afternoon). When I try and refresh from the iPhone App, I see the wireless units light flash whenever I hit the refresh button, though I get a unable to download error.
--Dave
--Dave
Re: Portal address unreachable
Try some of the solutions here:
http://forum.reefangel.com/viewtopic.php?f=3&t=1871
http://forum.reefangel.com/viewtopic.php?f=3&t=1871
Roberto.
Re: Portal address unreachable
Roberto,
The configuration of the wifi module or of the gateway does not appear to be the issue. Both are correct and work for several minutes and I can access my controller from the web, or from the iPhone and can view the collected data from the portal.
However, after about five minutes after plugging in the wifi unit, the portal and the iphone app both claim the address becomes unreachable -- but the address is still clearly reachable as the portal continues to gather temperature, Ph and relay data from my controller which both the iphone and portal website are happy to display on the web charts. What I can't do (starting about 5 minutes after the wifi module is powered up) is get live updates from my controller (though I can get data delayed only a few minutes, by looking at the web charts). And manually controlling the relays over the network gets erratic (though still works most of the time).
The system used to work perfectly, but I started having problems when I switched from a ReefAngle to a ReefAngel plus module. It is very frustrating.
--Dave
The configuration of the wifi module or of the gateway does not appear to be the issue. Both are correct and work for several minutes and I can access my controller from the web, or from the iPhone and can view the collected data from the portal.
However, after about five minutes after plugging in the wifi unit, the portal and the iphone app both claim the address becomes unreachable -- but the address is still clearly reachable as the portal continues to gather temperature, Ph and relay data from my controller which both the iphone and portal website are happy to display on the web charts. What I can't do (starting about 5 minutes after the wifi module is powered up) is get live updates from my controller (though I can get data delayed only a few minutes, by looking at the web charts). And manually controlling the relays over the network gets erratic (though still works most of the time).
The system used to work perfectly, but I started having problems when I switched from a ReefAngle to a ReefAngel plus module. It is very frustrating.
--Dave
Re: Portal address unreachable
Did you add any expansion module with the RA+ upgrade too?
You may need to increase the flush size in your wifi attachment.
Do you know how to use putty or Tera Term?
You may need to increase the flush size in your wifi attachment.
Do you know how to use putty or Tera Term?
Roberto.