wifi 0.0.0.0:2000 address

Expansion modules and attachments
Post Reply
Appleseed
Posts: 86
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: 86
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: 12881
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: 12881
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: 12881
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: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: wifi 0.0.0.0:2000 address

Post by rimai »

Awesome!!
Roberto.
Post Reply