Page 1 of 1

Wifi setup fail

Posted: Thu May 23, 2013 8:29 pm
by Hibb304
Hello there I just received my RA today and I cant for the life of me get to connect to my network. I get
The 2 false and 0.0.0.0 please help
* Please, select a serial port and click the "Connect" button
Opening Serial Port...
Verifying speed at 9600 baud
Connected to serial port COM3
> $$$
> set u b 57600
> set s p 0
> save
> reboot
Verifying speed at 57600 baud
Removing connection to COM3
Connected to serial port COM3
> $$$
< CMD
Wifi is communicating at 57600 baud rate

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

Opening Serial Port...
Connected to serial port COM3
> $$$
< CMD
> ls
< ls
<
< FL# SIZ FLAGS
< 2 79680 3 WiFly_GSX-2.36
< 22 -1 10 config
< 23 -1 10 user
< 34 83648 3 WiFly_GSX-2.45
< 78 86328 3 wifly-GSX-400
< 79 46632 3 wps_app-GSX-131
> load user
< 80 66240 3 eap_app-GSX-101
< 81 74920 3 web_app-GSX-106
< 82 37282 0 web_config.html
< 83 512 0 link.html
< 84 7268 0 logo.png
<
< 127 Free, Boot=78, Backup=2
< <4.00>
< load user
< AOK
< <4.00>
> save
< save
< Storing in config
< <4.00>
> save
< save
< Storing in config
< <4.00>
> set o d ReefAngelWifi
< set o d ReefAngelWifi
< AOK
< <4.00>
> set w l 5
< set w l 5
< AOK
< <4.00>
> set w s 07FX080009469
< set w s 07FX080009469
< AOK
< <4.00>
> set w p A8E8FE6DE4
< set w p A8E8FE6DE4
< AOK
< <4.00>
> set w k 00000000000000000000000000
< set w k 00000000000000000000000000
< AOK
< <4.00>
> set ftp address 198.175.253.161
< set ftp address 198.175.253.161
< AOK
< <4.00>
> save
< save
< Storing in config
< <4.00>
> reboot
< reboot
> $$$
< CMD
> show n
< show n
< SSid=07FX080009469
< Chan=1
< Assoc=FAIL
< Rate=12, 24Mb
< Auth=FAIL
< Mode=NONE
< DHCP=FAIL
< Boot=0
< Time=OK
< Links=0
< <4.00>
> get i
< get i
< IF=DOWN
< DHCP=ON
< IP=0.0.0.0:2000
< NM=255.255.255.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.00>
> reboot
< reboot
Removing connection to COM3
---------------------------------------------------------------------
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.

Re: Wifi setup fail

Posted: Thu May 23, 2013 8:39 pm
by rimai
Are you sure your SSID is 07FX080009469?

Re: Wifi setup fail

Posted: Thu May 23, 2013 8:43 pm
by Hibb304
yes it is. I never changed it. that's what pops up when I scan for wifi.

Re: Wifi setup fail

Posted: Thu May 23, 2013 9:06 pm
by rimai
It also looks like you are using a very unsecure wifi encryption.
WEP is not supported by the module. It's too old and not secure at all.
Make sure you are using the most advanced and secure, which is WPA2-PSK with AES encryption

Re: Wifi setup fail

Posted: Thu May 23, 2013 9:09 pm
by Hibb304
So new modem/router? Can I change this myself with the one I have?

Re: Wifi setup fail

Posted: Thu May 23, 2013 9:11 pm
by rimai
Oh no...
Your router probably supports it... You just need to change it.
Login into your router and go to wireless settings. You should be able to change there.

Re: Wifi setup fail

Posted: Thu May 23, 2013 9:23 pm
by Hibb304
I go into the router and hit wireless setting and it gives me the can not display page.

Re: Wifi setup fail

Posted: Thu May 23, 2013 9:28 pm
by Hibb304
I got it changed to the right one now. It looks like I got it hooked up green blinking light.
this look right?
Opening Serial Port...
Verifying speed at 9600 baud
Connected to serial port COM3
> $$$
> set u b 57600
> set s p 0
> save
> reboot
Verifying speed at 57600 baud
Removing connection to COM3
Connected to serial port COM3
> $$$
< CMD
Wifi is communicating at 57600 baud rate

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

Opening Serial Port...
Connected to serial port COM3
> $$$
< CMD
> ls
< ls
<
< FL# SIZ FLAGS
< 2 79680 3 WiFly_GSX-2.36
< 22 -1 10 config
< 23 -1 10 user
< 34 83648 3 WiFly_GSX-2.45
< 78 86328 3 wifly-GSX-400
> load user
< 79 46632 3 wps_app-GSX-131
< 80 66240 3 eap_app-GSX-101
< 81 74920 3 web_app-GSX-106
< 82 37282 0 web_config.html
< 83 512 0 link.html
< 84 7268 0 logo.png
<
< 127 Free, Boot=78, Backup=2
< <4.00>
< load user
< AOK
< <4.00>
> save
< save
< Storing in config
< <4.00>
> save
< save
< Storing in config
< <4.00>
> set o d ReefAngelWifi
< set o d ReefAngelWifi
< AOK
< <4.00>
> set w l 5
< set w l 5
< AOK
< <4.00>
> set w s hibler
< set w s hibler
< AOK
< <4.00>
> set w p
< set w p
< AOK
< <4.00>
> set w k 00000000000000000000000000
< set w k 00000000000000000000000000
< AOK
< <4.00>
> set ftp address 198.175.253.161
< set ftp address 198.175.253.161
< AOK
< <4.00>
> save
< save
< Storing in config
< <4.00>
> reboot
< reboot
> $$$
< CMD
> show n
< show n
< SSid=hibler
< Chan=6
< Assoc=OK
< Rate=12, 24Mb
< Auth=OK
< Mode=MIXED
< DHCP=FAIL
< Boot=0
< Time=OK
< Links=1
< <4.00>
> get i
< get i
< IF=DOWN
< 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.00>
> reboot
< reboot
Removing connection to COM3
---------------------------------------------------------------------
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.

Re: Wifi setup fail

Posted: Thu May 23, 2013 9:58 pm
by rimai
I don't think so.
Is the blue LED blinking?

Re: Wifi setup fail

Posted: Thu May 23, 2013 10:23 pm
by Hibb304
I got it thanks again. Now the fun begins.

Re: Wifi setup fail

Posted: Fri May 24, 2013 7:39 am
by Hibb304
OK I got it to work on my Wifi but not on my phones 3g, even the wifi utiity says its forwarding the the ip to port 2000 but still says address unreachable on my portal too.

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

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

Opening Serial Port...
Connected to serial port COM3
> $$$
< CMD
> ls
< ls
<
< FL# SIZ FLAGS
< 2 79680 3 WiFly_GSX-2.36
< 22 -1 10 config
< 23 -1 10 user
< 34 83648 3 WiFly_GSX-2.45
< 78 86328 3 wifly-GSX-400
< 79 46632 3 wps_app-GSX-131
< 80 66240 3 eap_app-GSX-101
< 81 74920 3 web_app-GSX-106
< 82 37282 0 web_config.html
< 83 512 0 link.html
< 84 7268 0 logo.png
<
< 127 Free, Boot=78, Backup=2
< <4.00>
> load user
< load user
< AOK
< <4.00>
> save
< save
< Storing in config
< <4.00>
> save
< save
< Storing in config
< <4.00>
> set o d ReefAngelWifi
< set o d ReefAngelWifi
< AOK
< <4.00>
> set w l 5
< set w l 5
< AOK
< <4.00>
> set w s hibler
< set w s hibler
< AOK
< <4.00>
> set w p
< set w p
< AOK
< <4.00>
> set w k 00000000000000000000000000
< set w k 00000000000000000000000000
< AOK
< <4.00>
> set ftp address 198.175.253.161
< set ftp address 198.175.253.161
< AOK
< <4.00>
> save
< save
< Storing in config
< <4.00>
> reboot
< reboot
> $$$
< CMD
> show n
< show n
< SSid=hibler
< Chan=6
< Assoc=OK
< Rate=12, 24Mb
< Auth=OK
< Mode=MIXED
< DHCP=FAIL
< Boot=0
< Time=OK
< Links=1
< <4.00>
> get i
< get i
< IF=DOWN
< 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.00>
> reboot
< reboot
Removing connection to COM3
---------------------------------------------------------------------
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 Broadcom Versalink

Port 2000 is now being forwarded to 0.0.0.0
Opening Serial Port...
Connected to serial port COM3
> $$$
< CMD
> ls
< ls
<
< FL# SIZ FLAGS
< 2 79680 3 WiFly_GSX-2.36
< 22 -1 10 config
< 23 -1 10 user
< 34 83648 3 WiFly_GSX-2.45
< 78 86328 3 wifly-GSX-400
< 79 46632 3 wps_app-GSX-131
< 80 66240 3 eap_app-GSX-101
< 81 74920 3 web_app-GSX-106
< 82 37282 0 web_config.html
< 83 512 0 link.html
< 84 7268 0 logo.png
<
< 127 Free, Boot=78, Backup=2
< <4.00>
< DHCP in 18197ms, lease=86400s
< IF=UP
< DHCP=ON
< IP=192.168.1.33:2000
< NM=255.255.255.0
< GW=192.168.1.1
< Listen on 2000
> load user
< load user
< AOK
< <4.00>
> save
< save
< Storing in config
< <4.00>
> save
< save
< Storing in config
< <4.00>
> set o d ReefAngelWifi
< set o d ReefAngelWifi
< AOK
< <4.00>
> set w l 5
< set w l 5
< AOK
< <4.00>
> set w s hibler
< set w s hibler
< AOK
< <4.00>
> set w p madison1
< set w p madison1
< AOK
< <4.00>
> set w k 00000000000000000000000000
< set w k 00000000000000000000000000
< AOK
< <4.00>
> set ftp address 198.175.253.161
< set ftp address 198.175.253.161
< AOK
< <4.00>
> save
< save
< Storing in config
< <4.00>
> reboot
< reboot
> $$$
< CMD
< DHCP in 4398ms, lease=86400s
< IF=UP
< DHCP=ON
< IP=192.168.1.33:2000
< NM=255.255.255.0
< GW=192.168.1.1
< Listen on 2000
> show n
< show n
< SSid=hibler
< Chan=6
< Assoc=OK
< Rate=12, 24Mb
< Auth=OK
< Mode=MIXED
< DHCP=OK,renew=64799
< Boot=4556
< Time=FAIL
< Links=1
< <4.00>
> get i
< get i
< IF=UP
< DHCP=ON
< IP=192.168.1.33:2000
< NM=255.255.255.0
< GW=192.168.1.1
< HOST=198.171.134.6:80
< PROTO=TCP,
< MTU=1524
< FLAGS=0x6
< TCPMODE=0x0
< BACKUP=0.0.0.0
< <4.00>
> reboot
< reboot
Removing connection to COM3
---------------------------------------------------------------------
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 Broadcom Versalink

Port 2000 is now being forwarded to 192.168.1.33

Re: Wifi setup fail

Posted: Fri May 24, 2013 12:13 pm
by Hibb304
Still can't get readings outside my network with or without app or portal. See anything wrong up there?

Re: Wifi setup fail

Posted: Fri May 24, 2013 12:27 pm
by lnevo
What IP are you using when outside your network? You can go to whatsmyip.org to find out your external IP address. There's also a link somewhere in other threads to see if the port is in fact open from outside. Also the port forwardign from the wifi utility isn't 100% so you may need to manually setup the port forward.

Re: Wifi setup fail

Posted: Fri May 24, 2013 12:35 pm
by Hibb304
I get a connection timeout when I check that port 2000. On the app I just use the one the wifi utility gave me.

Re: Wifi setup fail

Posted: Fri May 24, 2013 12:50 pm
by lnevo
You need to find out what external IP you are using. The 192.168.1.whatever is only valid when on your network and will not work on your cellular connection or on another network.

Check out whatsmyip.org get the IP that it gives you and check if the port 2000 is open on that IP.

If not, then you'll need to confirm the port forwarding in your router manually.

Re: Wifi setup fail

Posted: Fri May 24, 2013 2:19 pm
by Hibb304
I got the utility to finally do the port. It says
Success: I can see your service on 184.14.xxx.xxx on port (2000)
Your ISP is not blocking port 2000
So you got to change the IP in the app if your in, or out of your network?
I still get the unreachable address on the reefangel.com and has never updated.

Re: Wifi setup fail

Posted: Fri May 24, 2013 2:22 pm
by rimai
Does the Portal show that ip address?

Re: Wifi setup fail

Posted: Fri May 24, 2013 2:23 pm
by dbmet
Have you checked port 2000 on this site? http://www.canyouseeme.org/

Also you can use a dynamic dns service like http://www.noip.com/ or whatever your router supports so
that you don't have to keep switching your ip address in the app.

Re: Wifi setup fail

Posted: Fri May 24, 2013 2:26 pm
by Hibb304
Oh it did update once at 10:40am, but still says unreachable address and when I click on a relay I get only available with valid wifi. Make sure controller is sending info to web portal. I can type the ip in ie and the angel reef sever comes up.

Re: Wifi setup fail

Posted: Fri May 24, 2013 2:27 pm
by Hibb304
rimai wrote:Does the Portal show that ip address?
It shows nothing by the wifi addy.
And thanks for all the help guys.
I have checked that website about the port and its says its in service and not being blocked. :?

Re: Wifi setup fail

Posted: Fri May 24, 2013 2:29 pm
by rimai
Can you post your code?

Re: Wifi setup fail

Posted: Fri May 24, 2013 2:57 pm
by Hibb304
Sorry guys I'm coming from a ACjr to this.
This the code? I didn't save the one from the utility.

#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 <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;
ReefAngel.FeedingModePortsE[0] = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port3Bit | Port4Bit | Port6Bit | 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 = Port2Bit;
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( 830 );


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

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


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

void loop()
{
ReefAngel.StandardHeater( Port2,776,780 );
ReefAngel.Relay.DelayedOn( Port4,10 );
ReefAngel.Relay.DelayedOn( Port7,10 );
ReefAngel.Relay.DelayedOn( Port8,10 );
////// Place your custom code below here


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

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

void DrawCustomMain()
{
int x,y;
char text[10];
// Parameters
#if defined DisplayLEDPWM && ! defined RemoveAllLights
ReefAngel.LCD.DrawMonitor( 15, 14, ReefAngel.Params,
ReefAngel.PWM.GetDaylightValue(), ReefAngel.PWM.GetActinicValue() );
#else // defined DisplayLEDPWM && ! defined RemoveAllLights
ReefAngel.LCD.DrawMonitor( 15, 14, ReefAngel.Params );
#endif // defined DisplayLEDPWM && ! defined RemoveAllLights
pingSerial();

// pH Expansion
ReefAngel.LCD.DrawText( COLOR_MEDIUMSEAGREEN,DefaultBGColor,15,54, "PHE:" );
ReefAngel.LCD.DrawSingleMonitor( ReefAngel.Params.PHExp,COLOR_DARKKHAKI,39,54, 100 );
pingSerial();

// Main Relay Box
byte TempRelay = ReefAngel.Relay.RelayData;
TempRelay &= ReefAngel.Relay.RelayMaskOff;
TempRelay |= ReefAngel.Relay.RelayMaskOn;
ReefAngel.LCD.DrawOutletBox( 12, 74, TempRelay );
pingSerial();

// Relay Expansion
TempRelay = ReefAngel.Relay.RelayDataE[0];
TempRelay &= ReefAngel.Relay.RelayMaskOffE[0];
TempRelay |= ReefAngel.Relay.RelayMaskOnE[0];
ReefAngel.LCD.DrawOutletBox( 12, 97, TempRelay );
pingSerial();

// Date and Time
ReefAngel.LCD.DrawDate( 6, 122 );
pingSerial();
}

void DrawCustomGraph()
{
ReefAngel.LCD.DrawGraph( 5, 5 );
}

Re: Wifi setup fail

Posted: Fri May 24, 2013 3:06 pm
by rimai
Yes, that's code.
Make sure you uploaded it to the controller and that you have the wifi attachment connected to the controller.

Re: Wifi setup fail

Posted: Fri May 24, 2013 3:34 pm
by Hibb304
I finally got guys. Had to re upload to the controller re hooked up the wifi to it, and boom it works.
Thanks again, y'all been great.

Re: Wifi setup fail

Posted: Sun May 26, 2013 1:06 pm
by Hibb304
Ok it still works I did a no IP address, but still cant use the app on my wifi. I got t turn it to 3g to use. Any ideas?

Re: Wifi setup fail

Posted: Sun May 26, 2013 2:41 pm
by dbmet
What type of router are you using?

Re: Wifi setup fail

Posted: Sun May 26, 2013 2:43 pm
by Hibb304
westell 7500

Re: Wifi setup fail

Posted: Sun May 26, 2013 3:42 pm
by rimai
Could it be because your router doesn't implement NAT loopback?
I seem to see this happening now and then.
I have this same problem myself, because my router doesn't do it either.

Re: Wifi setup fail

Posted: Sun May 26, 2013 5:43 pm
by Hibb304
Really damn. Anyone recommend a router modem combo. I do have another wireless router. Can that be hooked up to a router/modem too?