Wifi trouble

Expansion modules and attachments
Post Reply
HodagReef
Posts: 33
Joined: Wed Jun 13, 2012 12:19 pm

Wifi trouble

Post by HodagReef »

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.
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Wifi trouble

Post by cosmith71 »

That function is still in beta. It doesn't work very well.

Use the Portal instead.

--Colin
HodagReef
Posts: 33
Joined: Wed Jun 13, 2012 12:19 pm

Re: Wifi trouble

Post by HodagReef »

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
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Wifi trouble

Post by cosmith71 »

Do you have a blinking green light on the WiFi module?
HodagReef
Posts: 33
Joined: Wed Jun 13, 2012 12:19 pm

Re: Wifi trouble

Post by HodagReef »

yes the light was blinking green
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Wifi trouble

Post by rimai »

The last time your controller sent data to the portal server was 08/15/14.
Do you have this in your code?

Code: Select all

ReefAngel.Portal("HodagReef");
Roberto.
HodagReef
Posts: 33
Joined: Wed Jun 13, 2012 12:19 pm

Re: Wifi trouble

Post by HodagReef »

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?
HodagReef
Posts: 33
Joined: Wed Jun 13, 2012 12:19 pm

Re: Wifi trouble

Post by HodagReef »

Not at home right now, so I can not check code. But will later today.
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Re: Wifi trouble

Post by lnevo »

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
HodagReef
Posts: 33
Joined: Wed Jun 13, 2012 12:19 pm

Re: Wifi trouble

Post by HodagReef »

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?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Wifi trouble

Post by rimai »

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.
Roberto.
HodagReef
Posts: 33
Joined: Wed Jun 13, 2012 12:19 pm

Re: Wifi trouble

Post by HodagReef »

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?
HodagReef
Posts: 33
Joined: Wed Jun 13, 2012 12:19 pm

Re: Wifi trouble

Post by HodagReef »

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? 

  
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Wifi trouble

Post by cosmith71 »

Post your code, please.
HodagReef
Posts: 33
Joined: Wed Jun 13, 2012 12:19 pm

Re: Wifi trouble

Post by HodagReef »

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();
}
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Wifi trouble

Post by lnevo »

Your DDNS line is wrong. It is supposed to be a comment but a backslash by mistake. Change the \ Your DDNS to // Your DDNS
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Wifi trouble

Post by cosmith71 »

Should it be //?

--Colin
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Re: Wifi trouble

Post by lnevo »

Oh yeah :)
HodagReef
Posts: 33
Joined: Wed Jun 13, 2012 12:19 pm

Re: Wifi trouble

Post by HodagReef »

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?
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Wifi trouble

Post by binder »

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
billw
Posts: 38
Joined: Sat Aug 04, 2012 1:20 pm
Location: Lexington, KY

Re: Wifi trouble

Post by billw »

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
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.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Wifi trouble

Post by rimai »

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
Roberto.
Reefology
Posts: 237
Joined: Fri Dec 26, 2014 6:38 pm

Re: Wifi trouble

Post by Reefology »

HodagReef 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?
It was the wizard. I had the same issue a few days ago that drove me batty :twisted: All good now :D
Image
Reefology
Posts: 237
Joined: Fri Dec 26, 2014 6:38 pm

Re: Wifi trouble

Post by Reefology »

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
Image
billw
Posts: 38
Joined: Sat Aug 04, 2012 1:20 pm
Location: Lexington, KY

Re: Wifi trouble

Post by billw »

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
Thanks, Roberto!
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Wifi trouble

Post by rimai »

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
Are you using Arduino on your linux or Windows?
Roberto.
Reefology
Posts: 237
Joined: Fri Dec 26, 2014 6:38 pm

Re: Wifi trouble

Post by Reefology »

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?
Image
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Re: Wifi trouble

Post by lnevo »

No its not normal. Theres something wrong in your setup or the code. Does it compile on the windows box?
HodagReef
Posts: 33
Joined: Wed Jun 13, 2012 12:19 pm

Re: Wifi trouble

Post by HodagReef »

Update - back up and running. Thanks for the support!
Post Reply