Wifi trouble
Wifi trouble
Do not know where to start, but here it is:
I have read many of the forum post and worked with my internet provider and router company to get 2000 port opened. It now open, good.
I run the the Wifi set up and get an IP address (static) from the router.
Open web browser and enter http://192.168.1.XXX:2000/wifi. The Reef Angel Controller page comes and shows data... then it loses it and ths pops up: Unable to retrieve data - Ooops.
refresh the page and sometime the data comes back....
Do not know what the next step in trouble shooting.
I have read many of the forum post and worked with my internet provider and router company to get 2000 port opened. It now open, good.
I run the the Wifi set up and get an IP address (static) from the router.
Open web browser and enter http://192.168.1.XXX:2000/wifi. The Reef Angel Controller page comes and shows data... then it loses it and ths pops up: Unable to retrieve data - Ooops.
refresh the page and sometime the data comes back....
Do not know what the next step in trouble shooting.
Re: Wifi trouble
That function is still in beta. It doesn't work very well.
Use the Portal instead.
--Colin
Use the Portal instead.
--Colin
Re: Wifi trouble
I get this when I open the portal Connection Status: Unreachable Address.
- I used the Wifi Utility to set up the Wifi device
- received IP address from router
- made that IP address static in the router and port forward (2000) that same IP address.
- checked the port 2000 on using http://ping.eu/port-chk/ and it said it was open.
Still not able to connect. One thing I did notice, when using the Wifi Utility tool, it said that it found my router and was attempting to set up port forwarding… but never does.
Can someone help with next steps in troubleshooting?
Thanks,
Troy
- I used the Wifi Utility to set up the Wifi device
- received IP address from router
- made that IP address static in the router and port forward (2000) that same IP address.
- checked the port 2000 on using http://ping.eu/port-chk/ and it said it was open.
Still not able to connect. One thing I did notice, when using the Wifi Utility tool, it said that it found my router and was attempting to set up port forwarding… but never does.
Can someone help with next steps in troubleshooting?
Thanks,
Troy
Re: Wifi trouble
Do you have a blinking green light on the WiFi module?
Re: Wifi trouble
yes the light was blinking green
Re: Wifi trouble
The last time your controller sent data to the portal server was 08/15/14.
Do you have this in your code?
Do you have this in your code?
Code: Select all
ReefAngel.Portal("HodagReef");
Roberto.
Re: Wifi trouble
I did not change the the code. When I open the portal this is what comes up:
Reef Angel wifi address: 65.30.20.XXX:2000 (I hid the address)
My reefangelid: HodagReef
Connection Status: Unreachable Address
Last Update: 8/15/2014 3:52:21 AM
Displaying data from:Webbanner databas
As you see, my set up has not been working. I thought id I got rid of the Time Warner modem/router and separated the modem (Motorola) and router (Linksys AC 1200) this would help. I have the SSID on the Wifi linked to the 2.4 GHz band on the router. The 5 GHz band channel would give me IP 0.0.0.0, I’m guessing it would not connect. I seem that I'm having the same issue, before I switched the routers. Any suggestions?
Reef Angel wifi address: 65.30.20.XXX:2000 (I hid the address)
My reefangelid: HodagReef
Connection Status: Unreachable Address
Last Update: 8/15/2014 3:52:21 AM
Displaying data from:Webbanner databas
As you see, my set up has not been working. I thought id I got rid of the Time Warner modem/router and separated the modem (Motorola) and router (Linksys AC 1200) this would help. I have the SSID on the Wifi linked to the 2.4 GHz band on the router. The 5 GHz band channel would give me IP 0.0.0.0, I’m guessing it would not connect. I seem that I'm having the same issue, before I switched the routers. Any suggestions?
Re: Wifi trouble
Not at home right now, so I can not check code. But will later today.
Re: Wifi trouble
Your port forwarding is not working. Use the IP address that the portal shows in that web site to check..
Also since it seems like you ahve two routers now, you have to have a forwarding setup on both.
Motoral -> Linksys -> RA
Also since it seems like you ahve two routers now, you have to have a forwarding setup on both.
Motoral -> Linksys -> RA
Re: Wifi trouble
Ok if I check IP 65.30.20.XXX:2000 that is on my portal page, the port is closed. When I type in my internet provider IP address, it is open.... Boy I do not have a strong grasp on port forwarding.
Ok, I used a router detector and it only one is listed. How can I check if my modem (Motorola) is as acting like a router?
Ok, I used a router detector and it only one is listed. How can I check if my modem (Motorola) is as acting like a router?
Re: Wifi trouble
Did you check if you have that line in your code?
I think your port forwarding is correct.
You just need to send data to the server to update to your latest ip address.
The one showing in the portal is from several months ago and it most likely have changed since.
Everytime you send data to the server, it updates that ip address. So, it is very important to have your controller send data to the server.
I think your port forwarding is correct.
You just need to send data to the server to update to your latest ip address.
The one showing in the portal is from several months ago and it most likely have changed since.
Everytime you send data to the server, it updates that ip address. So, it is very important to have your controller send data to the server.
Roberto.
Re: Wifi trouble
I will check the code in a few hours, when I get home. One thing I did notice during the Wifi device set-up is that I never receive the message – Now forwarding to IP XXX.XXX.XXX.XXX. I remember that I received this message during the set-up last year. Does this mean anything?
Re: Wifi trouble
Ok, I just went ahead and ran the RA wizard again. Now I'm getting error when I try to upload to the controller
I copied what was at the bottom of the RA wizard:
The following features were detected:
Wifi Attachment
2014 Main Screen
Extra Font - Medium Size (8x8 pixels)
pH Expansion Module
Water Level Expansion Module
Simple Menu
RA_Preloaded:83: error: stray '\' in program
RA_Preloaded.cpp:87:61: error: too many decimal points in number
RA_Preloaded.cpp: In function 'void setup()':
RA_Preloaded:47: error: 'class ReefAngelClass' has no member named 'FeedingModePortsE'
RA_Preloaded:50: error: 'class ReefAngelClass' has no member named 'WaterChangePortsE'
RA_Preloaded:53: error: 'class ReefAngelClass' has no member named 'LightsOnPortsE'
RA_Preloaded:56: error: 'class ReefAngelClass' has no member named 'OverheatShutoffPortsE'
RA_Preloaded.cpp: In function 'void loop()':
RA_Preloaded:83: error: 'Your' was not declared in this scope
RA_Preloaded:83: error: expected `;' before 'DDNS'
Reef Angel Libraries Found: Development
Reef Angel Libraries Version: 1.1.1
What can I do to fix this issue?
I copied what was at the bottom of the RA wizard:
The following features were detected:
Wifi Attachment
2014 Main Screen
Extra Font - Medium Size (8x8 pixels)
pH Expansion Module
Water Level Expansion Module
Simple Menu
RA_Preloaded:83: error: stray '\' in program
RA_Preloaded.cpp:87:61: error: too many decimal points in number
RA_Preloaded.cpp: In function 'void setup()':
RA_Preloaded:47: error: 'class ReefAngelClass' has no member named 'FeedingModePortsE'
RA_Preloaded:50: error: 'class ReefAngelClass' has no member named 'WaterChangePortsE'
RA_Preloaded:53: error: 'class ReefAngelClass' has no member named 'LightsOnPortsE'
RA_Preloaded:56: error: 'class ReefAngelClass' has no member named 'OverheatShutoffPortsE'
RA_Preloaded.cpp: In function 'void loop()':
RA_Preloaded:83: error: 'Your' was not declared in this scope
RA_Preloaded:83: error: expected `;' before 'DDNS'
Reef Angel Libraries Found: Development
Reef Angel Libraries Version: 1.1.1
What can I do to fix this issue?
Re: Wifi trouble
Post your code, please.
Re: Wifi trouble
Here is what the RA wizard generated:
#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.Use2014Screen(); // Let's use 2014 Screen
ReefAngel.AddPHExpansion(); // pH Expansion Module
ReefAngel.AddWaterLevelExpansion(); // Water Level Expansion Module
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port5Bit;
ReefAngel.FeedingModePortsE[0] = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port5Bit | Port7Bit;
ReefAngel.WaterChangePortsE[0] = 0;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port5Bit;
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;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 800 );
// Ports that are always on
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.WavemakerRandom( Port5,105,75 );
ReefAngel.StandardHeater( Port7,756,766 );
////// Place your custom code below here
////// Place your custom code above here
// This should always be the last line
ReefAngel.Portal( "HodagReef" );
ReefAngel.DDNS( "HodagReef" ); \ Your DDNS is HodagReef-174.xxx.xxx.xxx.myreefangel.com
ReefAngel.ShowInterface();
}
#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.Use2014Screen(); // Let's use 2014 Screen
ReefAngel.AddPHExpansion(); // pH Expansion Module
ReefAngel.AddWaterLevelExpansion(); // Water Level Expansion Module
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port5Bit;
ReefAngel.FeedingModePortsE[0] = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port5Bit | Port7Bit;
ReefAngel.WaterChangePortsE[0] = 0;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port5Bit;
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;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 800 );
// Ports that are always on
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.WavemakerRandom( Port5,105,75 );
ReefAngel.StandardHeater( Port7,756,766 );
////// Place your custom code below here
////// Place your custom code above here
// This should always be the last line
ReefAngel.Portal( "HodagReef" );
ReefAngel.DDNS( "HodagReef" ); \ Your DDNS is HodagReef-174.xxx.xxx.xxx.myreefangel.com
ReefAngel.ShowInterface();
}
Wifi trouble
Your DDNS line is wrong. It is supposed to be a comment but a backslash by mistake. Change the \ Your DDNS to // Your DDNS
Re: Wifi trouble
Should it be //?
--Colin
--Colin
Re: Wifi trouble
Ok - at work now but will change later tonight. Thanks everyone for the help. For my education, did I cause this? or did the RA wizard generated the error?
Re: Wifi trouble
he will probably need to remove the Expansion relay lights, overheattemp, etc variables since he does not appear to have an expansion relay box. i cannot post the exact code right now because im on my ipad, but im sure others know what i am talking about and can help out.
Sent from my iPad mini
Sent from my iPad mini
Re: Wifi trouble
The wizard's code generator does that. I've experienced the same thing. I solved it by just leaving that field blank in the RA wizard.lnevo wrote:Your DDNS line is wrong. It is supposed to be a comment but a backslash by mistake. Change the \ Your DDNS to // Your DDNS
Re: Wifi trouble
The RA generated this error, but the newer release has this bug fixed.
You can grab the lastest here:
http://www.reefangel.com/update/files/t ... Wizard.jar
Overwrite the one located in your \Documents\Arduino\tools\Wizard\tool folder
You can grab the lastest here:
http://www.reefangel.com/update/files/t ... Wizard.jar
Overwrite the one located in your \Documents\Arduino\tools\Wizard\tool folder
Roberto.
Re: Wifi trouble
It was the wizard. I had the same issue a few days ago that drove me batty All good nowHodagReef wrote:Ok - at work now but will change later tonight. Thanks everyone for the help. For my education, did I cause this? or did the RA wizard generated the error?
Re: Wifi trouble
Thanks for the update Roberto. however, I am now getting 2 other errors?
'class ReefAngelClass' has no member named 'DDNS'
'class ReefAngelClass' has no memeber named 'Use2014 screen'
Thanks
'class ReefAngelClass' has no member named 'DDNS'
'class ReefAngelClass' has no memeber named 'Use2014 screen'
Thanks
Re: Wifi trouble
Thanks, Roberto!rimai wrote:The RA generated this error, but the newer release has this bug fixed.
You can grab the lastest here:
http://www.reefangel.com/update/files/t ... Wizard.jar
Overwrite the one located in your \Documents\Arduino\tools\Wizard\tool folder
Re: Wifi trouble
Are you using Arduino on your linux or Windows?Reefology wrote:Thanks for the update Roberto. however, I am now getting 2 other errors?
'class ReefAngelClass' has no member named 'DDNS'
'class ReefAngelClass' has no memeber named 'Use2014 screen'
Thanks
Roberto.
Re: Wifi trouble
Lol, thought you might ask that. I use both but test trial runs on linux before creating and unloading on windows. Because I got the error, never bothered to try it on windows. So these error are sticky on a linux system?
Re: Wifi trouble
No its not normal. Theres something wrong in your setup or the code. Does it compile on the windows box?
Re: Wifi trouble
Update - back up and running. Thanks for the support!