Connection Status:Unreachable Address & WiFi problems

Related to the Portal
User avatar
Posts: 51
Joined: Thu Mar 21, 2013 2:19 am
Location: South Africa
PostPosted: Mon Dec 16, 2013 10:04 am
I'm still struggling to get my web portal to work :oops:
Upgraded to the plus board but now the LCD does not work, looks like the LCD screen is not compatable with the new Plus board?

Here is my new Code for the Plus Board (Don't know if there is a fault in my code maybe?)

#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 <ReefAngel.h>


void setup()
{
ReefAngel.Init();

InternalMemory.OverheatTemp_write( 260 );
InternalMemory.HeaterTempOn_write( 250 );
InternalMemory.HeaterTempOff_write( 255 );
InternalMemory.ChillerTempOn_write( 260 );
InternalMemory.ChillerTempOff_write( 255 );
InternalMemory.ATOExtendedTimeout_write( 100 );
InternalMemory.ATOHourInterval_write( 0 );
InternalMemory.WaterLevelLow_write( 10 );
InternalMemory.WaterLevelHigh_write( 15 );
InternalMemory.DP1RepeatInterval_write( 30 );
InternalMemory.DP1Timer_write( 30 );
InternalMemory.DP2RepeatInterval_write( 30 );
InternalMemory.DP2Timer_write( 120 );
InternalMemory.DelayedStart_write( 4 );
InternalMemory.PWMSlopeStartD_write( 0 );
InternalMemory.PWMSlopeEndD_write( 45 );
InternalMemory.PWMSlopeStartA_write( 5 );
InternalMemory.PWMSlopeEndA_write( 60 );
InternalMemory.PWMSlopeStart0_write( 0 );
InternalMemory.PWMSlopeEnd0_write( 45 );
InternalMemory.PWMSlopeStart1_write( 5 );
InternalMemory.PWMSlopeEnd1_write( 60 );
InternalMemory.PWMSlopeStart2_write( 10 );
InternalMemory.PWMSlopeEnd2_write( 45 );
InternalMemory.PWMSlopeStart3_write( 0 );
InternalMemory.PWMSlopeEnd3_write( 40 );
InternalMemory.IMCheck_write(0xCF06A31E);
ReefAngel.LCD.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL+20, MENU_START_ROW*3, "Memory Updated");
ReefAngel.LCD.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL+25, MENU_START_ROW*6, "You can now");
ReefAngel.LCD.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL+25, MENU_START_ROW*7, "upload your");
ReefAngel.LCD.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL+33, MENU_START_ROW*8, "INO code");
}

void loop()
{
wdt_reset();
}


I used this site, as mentioned in another thread: http://www.canyouseeme.org/
and its working
Success: I can see your service on 41.151.xxx.xxx on port (2000)
Your ISP is not blocking port 2000

Registered on no-ip.com
http://xxxxx.no-ip.org:2000/
and its working

Got a ZyXEL NBG4115 router
Port forwarding is setup and Dynamic DNS

I can access my RA through home and away function via the android App and the Reef Angle PC Client. But my web port gives Connection Status:Unreachable Address :!:

Any suggestions? What can possible be wrong???
Image

Posts: 12166
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Mon Dec 16, 2013 10:12 am
This code is just internal memory code.
It doesn't do anything for your controller.
I recommend you generate another code with the wizard and choose hard coded settings to make it easy.
As far as your screen, you probably have a gen1 screen and the RA+ board is setup for gen3 screen.
viewtopic.php?f=2&t=3111
So, to set it up for gen1 screens, you need this in your code:
Code: Select all
  InternalMemory.LCDID_write(255);

Place it right above ReefAngel.Init();
Roberto.

Posts: 12166
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Mon Dec 16, 2013 10:15 am
When you generate the new code, make sure you have this in there:
Code: Select all
ReefAngel.Portal("Express%20Reef");

This is what is going to enable the portal. The wizard is supposed to place it in there for you though.
Roberto.
User avatar
Posts: 51
Joined: Thu Mar 21, 2013 2:19 am
Location: South Africa
PostPosted: Mon Dec 16, 2013 10:23 am
Thank you Roberto, Now the screen is working :-) Happy days!!!
This is my code now...

#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 <ReefAngel.h>

// Initialize Buzzer variables
byte buzzer=0;
byte overheatflag=0;
byte atoflag=0;

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


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


void setup()
{
// This must be the first line
InternalMemory.LCDID_write(255);
ReefAngel.Init(); //Initialize controller
ReefAngel.SetTemperatureUnit( Celsius ); // set to Celsius Temperature

ReefAngel.Use2014Screen(); // Let's use 2014 Screen
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port6Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port1Bit | Port6Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port2Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 260 );


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

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


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

void loop()
{
ReefAngel.SingleATO( true,Port1,100,0 );
ReefAngel.StandardHeater( Port2,250,255 );
ReefAngel.StandardFan( Port3,255,260 );
ReefAngel.DosingPumpRepeat( Port4,0,30,30 );
ReefAngel.Relay.DelayedOn( Port6,4 );
ReefAngel.DosingPumpRepeat( Port8,0,30,120 );
ReefAngel.PWM.SetDaylight( PWMParabola(7,0,20,0,0,45,0) );
ReefAngel.PWM.SetActinic( PWMParabola(6,0,21,0,5,60,5) );
ReefAngel.PWM.SetChannel( 0, PWMParabola(7,0,21,0,0,45,0) );
ReefAngel.PWM.SetChannel( 1, PWMParabola(6,0,21,0,5,60,5) );
ReefAngel.PWM.SetChannel( 2, PWMParabola(7,0,20,0,10,45,10) );
ReefAngel.PWM.SetChannel( 3, PWMParabola(7,0,20,0,0,40,0) );
overheatflag = InternalMemory.read( Overheat_Exceed_Flag );
atoflag = InternalMemory.read( ATO_Exceed_Flag );
buzzer = overheatflag + atoflag;
if ( buzzer >= 1 ) buzzer = 100;
ReefAngel.PWM.SetChannel( 4, buzzer );

////// Place your custom code below here


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

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


But the web portal is still not working, but I see it says : Last Update:Monday, December 16, 2013 11:19:56 AM
So something tells me there is something wrong, but nothing majors???
Image
User avatar
Posts: 51
Joined: Thu Mar 21, 2013 2:19 am
Location: South Africa
PostPosted: Mon Dec 16, 2013 10:24 am
Roberto where must I add this?

ReefAngel.Portal("Express%20Reef");
Image
User avatar
Posts: 51
Joined: Thu Mar 21, 2013 2:19 am
Location: South Africa
PostPosted: Mon Dec 16, 2013 10:32 am
Ok changed ReefAngel.Portal( "Express Reef" ); to ReefAngel.Portal("Express%20Reef");

but it is still not working?
Image

Posts: 12166
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Mon Dec 16, 2013 11:27 am
I can see updates.
Is it working now?
Roberto.
User avatar
Posts: 51
Joined: Thu Mar 21, 2013 2:19 am
Location: South Africa
PostPosted: Mon Dec 16, 2013 11:34 am
It updated

My reefangelid:
Express Reef
Connection Status:
Unreachable Address

Last Update:
Monday, December 16, 2013 8:06:34 PM
Displaying data from:
Webbanner database

but it is not working still says Unreachable Address
Image
User avatar
Posts: 5339
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Mon Dec 16, 2013 11:58 am
That is the port forwarding part.
User avatar
Posts: 51
Joined: Thu Mar 21, 2013 2:19 am
Location: South Africa
PostPosted: Mon Dec 16, 2013 1:50 pm
@rimai, still not get it to work, last update was Monday, December 16, 2013 10:01:50 PM still get "Unreachable Address" :-(
Image
Next

Return to Portal

Who is online

Users browsing this forum: No registered users and 1 guest