wifi 0.0.0.0:2000 address

Expansion modules and attachments
Post Reply
aranax
Posts: 120
Joined: Thu Jun 02, 2011 11:54 pm

wifi 0.0.0.0:2000 address

Post by aranax »

Hey guys,
Can you please help? No matter what I do I can 't get an IP associated to the wifi unit. I'm unsing the wizard and this is what I keep getting:

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

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

Opening Serial Port...
Connected to serial port COM11
> $$$
< CMD
> factory RESET
< factory RESET
< Set Factory Defaults
> reboot
< <4.00>
< reboot
Removing connection to COM11
---------------------------------------------------------------------
Factory Settings Restored
---------------------------------------------------------------------

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

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

Opening Serial Port...
Connected to serial port COM11
> $$$
< 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 s Home$Network
< set w s Home$Network
< AOK
< <4.00>
> set w p g0willy!P@ssw0rd
< set w p g0willy!P@ssw0rd
< 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=Home Network
< Chan=1
< 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 COM11
---------------------------------------------------------------------
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 Xtreme N GIGABIT Router

Port 2000 is now being forwarded to 0.0.0.0
Opening Serial Port...
Connected to serial port COM11
> $$$
< CMD
> ftp u
< ftp u
< <4.00>
< FTP connecting to 198.175.253.161
< FTP timeout=2
** ERROR - Please disconnect and then reconnect the Reef Angel Wifi Attachment from the USB-TTL cable and try again.

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

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

Opening Serial Port...
Connected to serial port COM11
> $$$
< 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
> load user
< 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
< 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 s Home$Network
< set w s Home$Network
< AOK
< <4.00>
> set w p g0willy!P@ssw0rd
< set w p g0willy!P@ssw0rd
< 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=Home Network
< Chan=1
< 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 COM11
---------------------------------------------------------------------
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 Xtreme N GIGABIT Router

Port 2000 is now being forwarded to 0.0.0.0

My router works fine, I have access to the net and all my comps are working properly. Please help. Thanks.

Jeremiah
Image
aranax
Posts: 120
Joined: Thu Jun 02, 2011 11:54 pm

Re: wifi 0.0.0.0:2000 address

Post by aranax »

I tried to upload via Arduino and I get this:

Code: Select all

The following features were automatically added:
Watchdog Timer
Version Menu

The following features were detected:
Simple Menu
Binary sketch size: 14,084 bytes (of a 258,048 byte maximum)
C:\Program Files\Reef Angel Controller\hardware/tools/avr/bin/avrdude -CC:\Program Files\Reef Angel Controller\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -P\\.\COM11 -b115200 -D -Uflash:w:C:\Users\jmaza\AppData\Local\Temp\build6747224202757743466.tmp\WifiSetup.cpp.hex:i 

avrdude: Version 6.0, compiled on Apr  6 2012 at 19:29:19
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Program Files\Reef Angel Controller\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : \\.\COM11
         Using Programmer              : stk500v2
         Overriding Baud Rate          : 115200
Rebooting Reef Angel Controller
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] 
avrdude: Recv: 
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

avrdude done.  Thank you.

Image
Appleseed
Posts: 96
Joined: Sat Jun 30, 2012 9:21 am

Re: wifi 0.0.0.0:2000 address

Post by Appleseed »

Hi do a factory reset again and try the following commands.

obviously change somessid and somepassword to your ssid and password

Also i noticed you may be running mixed mode (wpa and wpa2) on router router, I used to do that and had a issues with my wifi module connecting so it might be worth setting your router to WPA2/AES if possible

Code: Select all



set ftp address 198.175.253.161

save

set wlan ssid somessid

set wlan pass somepassword

set option deviceid ReefAngelWifi

set w j 1

set c c 0

set c r 0

set c o 0

set c i 3

set dns name www.reefangel.com

set i h 198.171.134.6

set i r 80

set i f 0x06

set s t 0x10

set u m 2

set i p 2

set u b 57600

set s p 0

set c s 1420

save

reboot
Image
aranax
Posts: 120
Joined: Thu Jun 02, 2011 11:54 pm

Re: wifi 0.0.0.0:2000 address

Post by aranax »

Thanks Appleseed. Tera Term won't even connect. I'm getting "Connection timed out error". I'm stepping through the setup exactly as stated in the manual but it won't seem to connect. I'm assuming you wanted me to run those commands via the Tera Term, correct? Thanks again.

Jeremiah
Image
Appleseed
Posts: 96
Joined: Sat Jun 30, 2012 9:21 am

Re: wifi 0.0.0.0:2000 address

Post by Appleseed »

I assume you are connecting to the module via the usb cable? If so double chech that you are connected to the right com port and the the port speed is correct.

Sent from my GT-I9100 using Xparent Green Tapatalk 2
Image
aranax
Posts: 120
Joined: Thu Jun 02, 2011 11:54 pm

Re: wifi 0.0.0.0:2000 address

Post by aranax »

yep. USB cable. verified port via Arduino. I tried telnet and going straight to the serial port from new connection rather than TCP/IP then serial as per the manual. Neither worked. Do you know of any other way to establish a connection? Thanks again.
Image
Appleseed
Posts: 96
Joined: Sat Jun 30, 2012 9:21 am

Re: wifi 0.0.0.0:2000 address

Post by Appleseed »

Not sure why you would try telnet?
I assume the usb cable is connected to the module directly.
I dont use teraterm but are your settings are as per step 13 in the wifi attachment manual?
I am not aware of any other way to connect to the module.
Image
aranax
Posts: 120
Joined: Thu Jun 02, 2011 11:54 pm

Re: wifi 0.0.0.0:2000 address

Post by aranax »

I tried telnet because nothing seems to work so it was more a shot in the dark than anything else. Settings are the same. I'm stuck.
Image
Appleseed
Posts: 96
Joined: Sat Jun 30, 2012 9:21 am

Re: wifi 0.0.0.0:2000 address

Post by Appleseed »

when you open teraterm and you select serial on does it say com x: usb serial?
Attachments
tt.jpg
tt.jpg (37.9 KiB) Viewed 6623 times
Image
aranax
Posts: 120
Joined: Thu Jun 02, 2011 11:54 pm

Re: wifi 0.0.0.0:2000 address

Post by aranax »

USB.
COM11: USB Serial Port (COM11)
Image
Appleseed
Posts: 96
Joined: Sat Jun 30, 2012 9:21 am

Re: wifi 0.0.0.0:2000 address

Post by Appleseed »

the only other thing i can think of is the cable connected to the module correctly, as per step 2.
or maybe try using putty or hyperterminal to connect.
Image
aranax
Posts: 120
Joined: Thu Jun 02, 2011 11:54 pm

Re: wifi 0.0.0.0:2000 address

Post by aranax »

Thanks for your help Appleseed. I was monkeying around with and it looks like I finally got an IP address. I'm going to run through the rest of setup to see how things go. Thanks again.
Image
aranax
Posts: 120
Joined: Thu Jun 02, 2011 11:54 pm

Re: wifi 0.0.0.0:2000 address

Post by aranax »

Looks good so far. Minus the port forwarding. I opened it on my router (D-Link) but is doesn't seem to be open when checked on http://www.yougetsignal.com/tools/open-ports/ even after I restarted the router. Did you get yours to properly forward (I know its router specific though)?
Image
Appleseed
Posts: 96
Joined: Sat Jun 30, 2012 9:21 am

Re: wifi 0.0.0.0:2000 address

Post by Appleseed »

my port forwarding works fine, can you ping your module.
Image
aranax
Posts: 120
Joined: Thu Jun 02, 2011 11:54 pm

Re: wifi 0.0.0.0:2000 address

Post by aranax »

Yeah I can ping it.
Image
aranax
Posts: 120
Joined: Thu Jun 02, 2011 11:54 pm

Re: wifi 0.0.0.0:2000 address

Post by aranax »

I now get OPEN Port confirmation (2000) from canyouseeme.org. YAY! However, portal still shows address unreachable.

I had to reserve the IP assigned to the wifi attachment to make sure it didn't change when rebooting my router.
Image
aranax
Posts: 120
Joined: Thu Jun 02, 2011 11:54 pm

Re: wifi 0.0.0.0:2000 address

Post by aranax »

I verified that the port is open.
I can turn on/off ports via wifi on the RA Client.
I verified that the key is correct in code and uploaded to the RA

I still get Connect Status: Unreachable address
iPhone app won't refresh.

Can someone please help? Thanks.

Jeremiah
Image
aranax
Posts: 120
Joined: Thu Jun 02, 2011 11:54 pm

Re: wifi 0.0.0.0:2000 address

Post by aranax »

<sigh> This is frustrating. Everything was working aside from Portal. I wanted to verify that portal key was loaded properly so launched Arduino and was prompted to update to 1.0.9 (from 1.0.6). I updated hoping it would help solve any "other" issues. Now I can't connect to RA Client via wifi anymore.

...back to square one...

Can someone please help? Thanks.
Image
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: wifi 0.0.0.0:2000 address

Post by rimai »

Can you post your code?
Roberto.
aranax
Posts: 120
Joined: Thu Jun 02, 2011 11:54 pm

Re: wifi 0.0.0.0:2000 address

Post by aranax »

Sure. RA Client is running again. Issues are still with Portal (Unreachable Address).

Code: Select all

#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 = Port2Bit;
    ReefAngel.FeedingModePortsE[0] = 0;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = Port1Bit | Port4Bit;
    ReefAngel.WaterChangePortsE[0] = 0;
    // Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = Port8Bit;
    ReefAngel.LightsOnPortsE[0] = Port4Bit;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = 0;
    ReefAngel.OverheatShutoffPortsE[0] = Port1Bit | Port2Bit | Port3Bit;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;
    // Set the Overheat temperature setting
    InternalMemory.OverheatTemp_write( 869 );


    // Ports that are always on
    ReefAngel.Relay.On( Port1 );
    ReefAngel.Relay.On( Port2 );

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

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

void loop()
{
    ReefAngel.StandardLights( Port3,9,0,19,0 );
    ReefAngel.StandardHeater( Port4,751,771 );
    ReefAngel.StandardLights( Port5,9,0,15,30 );
    ReefAngel.StandardLights( Port6,15,0,21,0 );
    ReefAngel.StandardFan( Port7,771,781 );
    ReefAngel.StandardLights( Port8,9,0,21,0 );
    ReefAngel.MHLights( Box1_Port1,13,0,18,0,5 );
    ReefAngel.MHLights( Box1_Port2,13,0,18,0,5 );
    ReefAngel.MHLights( Box1_Port3,13,0,18,0,5 );
    ReefAngel.StandardLights( Box1_Port4,11,0,20,0 );
    ReefAngel.StandardLights( Box1_Port5,12,0,21,0 );
    ReefAngel.StandardLights( Box1_Port6,21,0,2,0 );
    ReefAngel.DosingPumpRepeat( Box1_Port7,0,60,10 );
    ReefAngel.PWM.SetDaylight( MoonPhase() );
    ReefAngel.PWM.SetActinic( MoonPhase() );
    ReefAngel.PWM.SetChannel( 0, MoonPhase() );
    ReefAngel.RF.UseMemory = false;
    ReefAngel.RF.SetMode( Constant,50,10 );
    ////// Place your custom code below here
    

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

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

void DrawCustomMain()
{
    int x,y;
    char text[10];
    // Dimming Expansion
    x = 15;
    y = 2;
    for ( int a=0;a<6;a++ )
    {
      if ( a>2 ) x = 75;
      if ( a==3 ) y = 2;
      ReefAngel.LCD.DrawText( COLOR_DARKGOLDENROD,DefaultBGColor,x,y,"Ch :" );
      ReefAngel.LCD.DrawText( COLOR_DARKGOLDENROD,DefaultBGColor,x+12,y,a );
      ReefAngel.LCD.DrawText( COLOR_DARKGOLDENROD,DefaultBGColor,x+24,y,ReefAngel.PWM.GetChannelValue(a) );
      y += 10;
    }
    pingSerial();

    // Parameters
#if defined DisplayLEDPWM && ! defined RemoveAllLights
    ReefAngel.LCD.DrawMonitor( 15, 35, ReefAngel.Params,
    ReefAngel.PWM.GetDaylightValue(), ReefAngel.PWM.GetActinicValue() );
#else // defined DisplayLEDPWM && ! defined RemoveAllLights
    ReefAngel.LCD.DrawMonitor( 15, 35, ReefAngel.Params );
#endif // defined DisplayLEDPWM && ! defined RemoveAllLights
    pingSerial();

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

    // Water Level
    ReefAngel.LCD.DrawText( COLOR_DARKGOLDENROD,DefaultBGColor,75,68, "WL:" );
    ReefAngel.LCD.DrawText( COLOR_DARKGOLDENROD,DefaultBGColor,99,68, ReefAngel.WaterLevel.GetLevel() );
    pingSerial();

    // Main Relay Box
    byte TempRelay = ReefAngel.Relay.RelayData;
    TempRelay &= ReefAngel.Relay.RelayMaskOff;
    TempRelay |= ReefAngel.Relay.RelayMaskOn;
    ReefAngel.LCD.DrawOutletBox( 12, 81, 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()
{
}
Reconfirmed that port 2000 is open via Canyouseeme.org

Thanks Roberto.
Image
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: wifi 0.0.0.0:2000 address

Post by rimai »

According to your webbanner, the server is receiving data.
Last update was less than 5 min ago.
What happens when you click the ip address on the portal page?
Roberto.
aranax
Posts: 120
Joined: Thu Jun 02, 2011 11:54 pm

Re: wifi 0.0.0.0:2000 address

Post by aranax »

I get URL can't be shown on iPad. And a timeout from my computer.

Banner updates but the other features say I need a valid ip address (Internal memory, date and time, etc.)
Image
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: wifi 0.0.0.0:2000 address

Post by rimai »

If you can't connect using wan ip address, the portal can't either.
There is still something not working right with the port forwarding.
Roberto.
aranax
Posts: 120
Joined: Thu Jun 02, 2011 11:54 pm

Re: wifi 0.0.0.0:2000 address

Post by aranax »

Is there something I can test to isolate the issue? All the port forwarding check site show that the port is open. Thanks Roberto.
Image
aranax
Posts: 120
Joined: Thu Jun 02, 2011 11:54 pm

Re: wifi 0.0.0.0:2000 address

Post by aranax »

Hey Roberto. It's working now. Thanks for help. You asking me to click on my the IP address prompted me to take a "real" look at it. The IP always updated automatically when my router got assigned a new Dynamic IP so I assumed all was well. Turns out that it was missing the port information under User Control Panel --> Profile --> WiFi Address. So even though the IP was correct and updating it was not complete. Now things seem fine. Thanks again.

Jeremiah
Image
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: wifi 0.0.0.0:2000 address

Post by rimai »

Awesome!!
Roberto.
Post Reply