How to setup your wifi attachment

New members questions
AlanM
Posts: 263
Joined: Wed Jan 01, 2014 7:26 am

Re: How to setup your wifi attachment

Post by AlanM »

To make sure that it's putting out data that the portal or the apps will understand you can always do

http://your.internal.ip.address:2000/r99

and you should see an XML document which has all of the data that the portal or app would show.

Then once you know that's working you can work on the port forwarding to let the portal reach down into your ReefAngel to get live data and to let you change settings on your RA using the portal functions.
tom_swell
Posts: 19
Joined: Wed Sep 03, 2014 12:40 am

Re: How to setup your wifi attachment

Post by tom_swell »

I've tried setting up port forwarding on my router but for some reason it's not working. I don't have a static IP address and can't get one, does this mean I can't port forward? I've never had this problem when i've needed to forward ports for games before.

Also overnight when nothing has changed at all, the blue lights on the wifi have started flashing. I've been asleep all night, no one has touched it so why has it randomly stopped working?
Image
AlanM
Posts: 263
Joined: Wed Jan 01, 2014 7:26 am

Re: How to setup your wifi attachment

Post by AlanM »

tom_swell wrote:I've tried setting up port forwarding on my router but for some reason it's not working. I don't have a static IP address and can't get one, does this mean I can't port forward? I've never had this problem when i've needed to forward ports for games before.

Also overnight when nothing has changed at all, the blue lights on the wifi have started flashing. I've been asleep all night, no one has touched it so why has it randomly stopped working?
You don't need static ip. Portal detects your ip in real time. If you know how to port forward it seems like you don't have your wifi connected well to your router. I had trouble keeping mine connected to my fios actiontec router. You don't have one of those, do you?
tom_swell
Posts: 19
Joined: Wed Sep 03, 2014 12:40 am

Re: How to setup your wifi attachment

Post by tom_swell »

Hmm no I have a netgear dgn2200v3. I'm not entirely sure, now i can't see the port forwarding exemption in my router settings and when i try and test to see if the port is open i get told it is closed. But when i try adding in port forwarding on my router it says that the rule already exists :\
Image
tom_swell
Posts: 19
Joined: Wed Sep 03, 2014 12:40 am

Re: How to setup your wifi attachment

Post by tom_swell »

So i plugged in the wifi attachment to my pc and ran the Utility as it clearly wasn't working. I seem to be getting a lot of Unknown errors and being told to take the plug in and out. Then when it does work and i try and connect i get this:

Code: Select all

Opening Serial Port...
Verifying speed at 9600 baud
Connected to serial port COM4
> $$$
> set u b 57600
> set s p 0
> save
> reboot
Verifying speed at 57600 baud
Removing connection to COM4
Connected to serial port COM4
> $$$
< CMD
Wifi is communicating at 57600 baud rate

> reboot
< reboot
Removing connection to COM4
---------------------------------------------------------------------
Wifi Attachment Connected to COM4
---------------------------------------------------------------------

Opening Serial Port...
Connected to serial port COM4
> $$$
< CMD
> ls
< ls
< 
< FL#    SIZ   FLAGS
<   2  86328   3 wifly-GSX-400  
<   4  74920   3 web_app-GSX-106  
<   7  46632   3 wps_app-GSX-131  
<   9  66240   3 eap_app-GSX-101  
<  11  37282   0 web_config.html  
<  21    512   0 link.html  
<  22   7268   0 logo.png  
<  24   1052  10 config  
<  25  88548   3 wifly-GSX-441-r1057  
<  26   1052  10 user  
< 
< 145 Free, Boot=25, Backup=2
< <4.41> 
> load user
< load user
< AOK
< <4.41> 
> save
< save
< Storing in config
< <4.41> 
> save
< save
< Storing in config
< <4.41> 
> set o d ReefAngelWifi
< set o d ReefAngelWifi
< AOK
< <4.41> 
> set w l 5
< set w l 5
< AOK
< <4.41> 
> set w s **********
< set w s **********
< AOK
< <4.41> 
> set w p **************
< set w p **************
< AOK
< <4.41> 
> set w k 00000000000000000000000000
< set w k 00000000000000000000000000
< AOK
< <4.41> 
> set ftp address 198.175.253.161
< set ftp address 198.175.253.161
< AOK
< <4.41> 
> save
< save
< Storing in config
< <4.41> 
> reboot
< reboot
> $$$
< CMD
> show n
< show n
< SSid=NETGEAR36
< Chan=6
< Assoc=OK
< Rate=12, 24Mb
< Auth=OK
< Mode=MIXED
< DHCP=FAIL
< Boot=0
< Time=OK
< Links=1
< <4.41> 
> get i
< get i
< IF=UP
< DHCP=ON
< IP=0.0.0.0:2000
< NM=0.0.0.0
< GW=0.0.0.0
< HOST=198.171.134.6:80
< PROTO=TCP,
< MTU=1524
< FLAGS=0x6
< TCPMODE=0x0
< BACKUP=0.0.0.0
< <4.41> 
> reboot
< reboot
Removing connection to COM4
---------------------------------------------------------------------
Your Reef Angel Wifi Attachment is now configured with the settings provided.
---------------------------------------------------------------------

If the blue LED is still blinking, it means that the Reef Angel Wifi Attachment could not connect to your wifi network.

Found router NETGEAR DGN2200v3 Router

Port 2000 is now being forwarded to 0.0.0.0

It will say it is associated and authenticated but my ip will still be 0.0.0.0 and despite only the green light slowly flashing it wont be connected and i can't see it on my network.

The other half the time i try and get it to work it fails to associate and authenticate and connect.

Any ideas?
Image
tom_swell
Posts: 19
Joined: Wed Sep 03, 2014 12:40 am

Re: How to setup your wifi attachment

Post by tom_swell »

Just thought I'd leave a final update here incase anyone else has similar problems in the future. Thanks a lot to Roberto's help we managed to nail down that the wifi adapter couldn't achieve a solid connection to my wireless network as the router was too far away. After purchasing and setting up a wireless extender the problem was fixed near instantly and now i have access to the portal features and can control things via my phone :D

Now to figure out how to connect from outside my wifi network :\
Image
vvjosh06
Posts: 30
Joined: Thu Jan 15, 2015 9:59 am

Re: How to setup your wifi attachment

Post by vvjosh06 »

i think im having the same problem as everyone else. i can access my controller on my home wifi while connected but as soon as disable wifi on my android the app says connection timed out or connection refused. i also cant access my controller on the portal either. ive been reading all the different posts and nothing is making sense. i have port forwarding set up for 2000, and also have a static ip set up so it doesnt get a new one. can someone please help me. also when i open the app and look at the settings the "home" ip address is different then the one that was set up when i used the wifi program. i tried changing it but it tells me connection time out. i am at my witts end with this. i got the wifi attachment under the assumption i could access my controller anywhere in the world as im military thats the reason i went with the reef angel. can someone please help me with this.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: How to setup your wifi attachment

Post by lnevo »

Have you checked the site that sees if the port is open or not? Sounds like the port forwarding is not working still. You should use your home IP when you're on your network and your external (check www.whatsmyip.org) or RA DDNS while you're away. If port forwarding is working then you should be able to use the external IP on your home network as well.
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: How to setup your wifi attachment

Post by cosmith71 »

If your IP starts with 191 or 192 then that's your internal IP and won't work outside of your home network. You'd need to use your external IP. If you open up the portal web page it's near the top right.

--Colin
vvjosh06
Posts: 30
Joined: Thu Jan 15, 2015 9:59 am

Re: How to setup your wifi attachment

Post by vvjosh06 »

ok i dont know what the external ip address is. can someone break this down sesame street style? im not super tech saavy. i open my portal and theres no ip address in the top right corner. its just blank. also reset my router several time, re did port forward several times, took off all firewalls, re programmed the wifi attachment, gave it a static ip address, and contacted the manufacturer and ISP, and still cant access outside my home wifi. im getting really frustrated. i put in the wifi attachment ip xxx.xxx.x.x:2000/r99 and it works it shows me my authentication name and some numbers so the port forwarding is working on wifi, i just can figure out how to attach to my portal or how to access on my phone app using cell service. i live near oxnard,ca if someone wants to help.... but im officially lost... someone please break this down for me lol
vvjosh06
Posts: 30
Joined: Thu Jan 15, 2015 9:59 am

Re: How to setup your wifi attachment

Post by vvjosh06 »

also when i use the website to test the port it says closed but i can access it with my wifi. im using a netgear wndr3700v2. and i just downgraded my software to the original and still didnt work.
vvjosh06
Posts: 30
Joined: Thu Jan 15, 2015 9:59 am

Re: How to setup your wifi attachment

Post by vvjosh06 »

and also i used the wifi wizard to program the wifi attachment and the arduino wizard to program the controller. am i missing anything? i didnt write any of my code so am i missing something in the code? i set up my authentication on the android app but will that put that in the code for me? or do i have to do that myself? also when i use my wifi setup utility it doesnt show any of the information that someone else posted. ive also tried uninstallin and re installing the reef angel software.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: How to setup your wifi attachment

Post by lnevo »

We'll get you working, no worries. If you go to www.whatsmyip.org it will show you your external ip address. Port forwarding is only for when your not on wifi. Some ISPs do block ports. Do they own your router? You may need to call them for support. If its working at home then your ok with the wifi attachment firmware and setup. As far as authentication if you set that up in the wizard then you'll need it setup in the android app and in the portal. If you did not add authentication in the wizard the. Don't set it up elsewhere... Can you post your code? There should be a line in there that has your portal username.
Civics14
Posts: 95
Joined: Fri Nov 14, 2014 8:27 am

Re: How to setup your wifi attachment

Post by Civics14 »

Hey, I just recently set mine up this month too. If you're attempting to use the internal IP address (usually starts with 192.168.x.x) then it won't work outside of the network on the app. I realized that after reading several post. I used that whatsmyip.org and used that IP address and now everything works.

Oh, as far as the portal, same thing, use the IP address you get from whatsmyip.org and followed by ":2000"

hope that helps, noob to noob :)
Image
hodge1995
Posts: 12
Joined: Thu Nov 28, 2013 6:53 pm
Location: Kinmundy, Illinois

Re: How to setup your wifi attachment

Post by hodge1995 »

So I am lost. I setup using the wizard wrote down the address given and it also said it setup the port forwarding. The green light on the wifi is slowly blinking green and there is no blue light so I am assuming it is connected. I tried connected using the windows phone app I get that the port is connected but not the controller. Where do I start to trouble shoot this. Also where does the "whats your ip address" come into play? It is different than the address the wizard gave me.Should I be using that one instead and go back through the wizards for the wifi and controller?

Thanks in advance!
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: How to setup your wifi attachment

Post by lnevo »

If you're connecting on your local wifi network then you use the IP that the wizard gave you. If you are using from your cell phone network or out of your house, then you use the address that what's your ip address gives.
hodge1995
Posts: 12
Joined: Thu Nov 28, 2013 6:53 pm
Location: Kinmundy, Illinois

Re: How to setup your wifi attachment

Post by hodge1995 »

I went back through the wizards and got it going at least when I am home. Now I the issues is the temp and ph ports wont read anything
hodge1995
Posts: 12
Joined: Thu Nov 28, 2013 6:53 pm
Location: Kinmundy, Illinois

Re: How to setup your wifi attachment

Post by hodge1995 »

I am having some issues still with accessing the RA while not at home. It is fine when I am at home cell links up as it should. Here is the code Can you see any issues that would affect this.

#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.AddSalinityExpansion(); // Salinity Expansion Module
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port1Bit | Port2Bit | Port3Bit | Port4Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port1Bit | 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( 850 );


// Ports that are always on
ReefAngel.Relay.On( Port3 );
ReefAngel.Relay.On( Port4 );
ReefAngel.Relay.On( Port5 );
ReefAngel.Relay.On( Port6 );
ReefAngel.Relay.On( Port7 );
ReefAngel.Relay.On( Port8 );

////// Place additional initialization code below here
ReefAngel.CustomLabels[0]="Heater";
ReefAngel.CustomLabels[1]="Heater2";
ReefAngel.CustomLabels[2]="ReturnPump";
ReefAngel.CustomLabels[3]="Jebao dc return";
ReefAngel.CustomLabels[4]="Skimmer";
ReefAngel.CustomLabels[5]="reactor";
ReefAngel.CustomLabels[6]="spare";
ReefAngel.CustomLabels[7]="spare";

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

void loop()
{
ReefAngel.StandardHeater( Port1,765,796 );
ReefAngel.StandardHeater( Port2,755,795 );
////// Place your custom code below here


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

// This should always be the last line
ReefAngel.Portal( "hodge1995" );
ReefAngel.DDNS( "192.xxx.xxx.47:2000" ); // Your DDNS is hodge1995-192.xxx.xxx.47:2000.myreefangel.com
ReefAngel.ShowInterface();
}
hodge1995
Posts: 12
Joined: Thu Nov 28, 2013 6:53 pm
Location: Kinmundy, Illinois

Re: How to setup your wifi attachment

Post by hodge1995 »

Still having issues. Any ideas? I have tried the ddns that is given by the wizard while setting up also have went to "whats my ip" and tried that one.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: How to setup your wifi attachment

Post by rimai »

Did you setup port forwarding in your router?
Does it show port 200 open when you check your port?
http://www.yougetsignal.com/tools/open-ports/
Roberto.
AlanM
Posts: 263
Joined: Wed Jan 01, 2014 7:26 am

Re: How to setup your wifi attachment

Post by AlanM »

rimai wrote:Did you setup port forwarding in your router?
Does it show port 200 open when you check your port?
http://www.yougetsignal.com/tools/open-ports/
He means port 2000, not 200.
hodge1995
Posts: 12
Joined: Thu Nov 28, 2013 6:53 pm
Location: Kinmundy, Illinois

Re: How to setup your wifi attachment

Post by hodge1995 »

When I click the link it has the address and then say port 80 when you hit check it says port 80 is closed. I put 200 and 2000 in the port box hit check and says they are all closed. According to the wizard when I set it up , it said it had automatically opened port 2000
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: How to setup your wifi attachment

Post by rimai »

If port 2000 says closed, port forwarding is still required to be setup in your router.
Roberto.
hodge1995
Posts: 12
Joined: Thu Nov 28, 2013 6:53 pm
Location: Kinmundy, Illinois

Re: How to setup your wifi attachment

Post by hodge1995 »

Thanks for the reply, I will try to do that when I get home
User avatar
cody.sheridan-2008
Posts: 31
Joined: Tue Feb 05, 2013 9:39 pm

Re: How to setup your wifi attachment

Post by cody.sheridan-2008 »

Hi,

I was having issues with the setup, where the connection would only occasionally work on my home network with a couldn't connect message coming up. I hadn't approached port forwarding.

Because of this and the antiquated modem/router I had, I have changed my cable modem to a cg3100D-2 modem/router combo. I am having a hard time as it won't produce an ip, I am just getting 0.0.0.0:2000 . The green light is flashing.
RAWIFI IP.png
RAWIFI IP.png (40.45 KiB) Viewed 8261 times
Can anyone tell me what to do?
Cheers
Cody
User avatar
cody.sheridan-2008
Posts: 31
Joined: Tue Feb 05, 2013 9:39 pm

Re: How to setup your wifi attachment

Post by cody.sheridan-2008 »

Can anyone suggest a fix for the above to get it working? Need more info?
Cheers
Cody
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: How to setup your wifi attachment

Post by lnevo »

You have DHCP false... is your router running DHCP? Otherwise you'll need to set a static IP on the wifi module. Also make sure your router is set for AES-2 I believe and no spaces in the password.
User avatar
cody.sheridan-2008
Posts: 31
Joined: Tue Feb 05, 2013 9:39 pm

Re: How to setup your wifi attachment

Post by cody.sheridan-2008 »

Thanks Inevo, I will take a look tomorrow :) (Australia based)
Cheers
Cody
User avatar
cody.sheridan-2008
Posts: 31
Joined: Tue Feb 05, 2013 9:39 pm

Re: How to setup your wifi attachment

Post by cody.sheridan-2008 »

lnevo wrote:You have DHCP false... is your router running DHCP? Otherwise you'll need to set a static IP on the wifi module. Also make sure your router is set for AES-2 I believe and no spaces in the password.
Hi Inevo,

Sorry for the delay.

I just installed another modem/router my internet provider (telstra) sent out :roll: . It is a Netgear C6300BD.

I am having the same issue as before.

Have logged in and had a look, seems to run DHCP?
DHCP.png
DHCP.png (73.95 KiB) Viewed 8235 times
Also the security key stuff is solid numbers and see below:
Untitled2.png
Untitled2.png (20.75 KiB) Viewed 8235 times
How do I set a static IP on the wifi module?
Cheers
Cody
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: How to setup your wifi attachment

Post by rimai »

Is the blue led on the wifi attachment blinking?
Roberto.
Post Reply