Page 1 of 1

No Comm to Portal

Posted: Wed May 27, 2015 11:48 am
by Lionfan
So,
I finally was able to get an internet provider that allowed me to port forward.
I have access to my controller with reeftronics, the U-app, the Reef Angel Status app.
But, the controller is NOT talking to the portal.
I would rather use the portal, than use reeftronics.
Any help?
I did a factory reset on both the controller and the wifi attachment.

Re: No Comm to Portal

Posted: Wed May 27, 2015 11:52 am
by rimai
Make sure you have ReefAngel.Portal("Lionfan") line in your code.
If it is already there, are you familiar with Tera term or putty to dump the settings of the WiFi attachment?

Re: No Comm to Portal

Posted: Wed May 27, 2015 11:57 am
by Lionfan
the code is correct, and not at all familiar with the tera term or putty..

Re: No Comm to Portal

Posted: Wed May 27, 2015 12:00 pm
by rimai
OK, let's try updating the settings then.
Follow instructions here :
http://forum.reefangel.com/viewtopic.php?f=3&t=4601

Re: No Comm to Portal

Posted: Wed May 27, 2015 12:02 pm
by Lionfan
will do once i get home!
I was reading that earlier, and had a feeling thats what i needed to do.
I'll also check my code to make sure "Lionfan" is correct
there might be a chance it's not capitalized right or something

Re: No Comm to Portal

Posted: Wed May 27, 2015 4:23 pm
by Lionfan
rimai wrote:OK, let's try updating the settings then.
Follow instructions here :
http://forum.reefangel.com/viewtopic.php?f=3&t=4601
i did both.. Still no comm to portal

Re: No Comm to Portal

Posted: Wed May 27, 2015 5:20 pm
by rimai
Can you post your entire code?
Also, connect the usb programming cable into RA and open serial monitor on tools menu and make sure it is set to baud 57600.
Wait 5 to 10 minutes and post what you see in the window.

Re: No Comm to Portal

Posted: Wed May 27, 2015 5:45 pm
by Lionfan
rimai wrote:Can you post your entire code?
Also, connect the usb programming cable into RA and open serial monitor on tools menu and make sure it is set to baud 57600.
Wait 5 to 10 minutes and post what you see in the window.

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 <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.CustomLabels[0]="50 Gallon Return";
    ReefAngel.CustomLabels[1]="240 Gallon Return";
    ReefAngel.CustomLabels[2]="Heater";
    ReefAngel.CustomLabels[3]="Fan";
    ReefAngel.CustomLabels[4]="Refugium Light";
    ReefAngel.CustomLabels[5]="Skimmer";
    ReefAngel.CustomLabels[6]="Calcium";
    ReefAngel.CustomLabels[7]="Carbonates";
    ReefAngel.CustomLabels[8]="ATO";
    ReefAngel.CustomLabels[9]="Daylights";
    ReefAngel.CustomLabels[10]="Actnics";
    ReefAngel.CustomLabels[11]="Moonlights";
    ReefAngel.CustomLabels[12]="Reactors";
    ReefAngel.CustomLabels[13]="Open";
    ReefAngel.CustomLabels[14]="Powerhead";
    ReefAngel.CustomLabels[15]="Powerhead";
    ReefAngel.AddSalinityExpansion();  // Salinity Expansion Module
    // Ports toggled in Feeding Mode
    ReefAngel.FeedingModePorts = Port6Bit;
    ReefAngel.FeedingModePortsE[0] = 0;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = Port1Bit | Port2Bit | Port4Bit | Port6Bit;
    ReefAngel.WaterChangePortsE[0] = Port1Bit | Port7Bit | Port8Bit;
    // 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 = Port3Bit;
    ReefAngel.OverheatShutoffPortsE[0] = 0;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;

    // Feeeding and Water Change mode speed
    ReefAngel.DCPump.FeedingSpeed=0;
    ReefAngel.DCPump.WaterChangeSpeed=0;


    // Ports that are always on
    ReefAngel.Relay.On( Port1 );
    ReefAngel.Relay.On( Port2 );
    ReefAngel.Relay.On( Port6 );
    ReefAngel.Relay.On( Box1_Port2 );
    ReefAngel.Relay.On( Box1_Port3 );
    ReefAngel.Relay.On( Box1_Port4 );
    ReefAngel.Relay.On( Box1_Port5 );
    ReefAngel.Relay.On( Box1_Port6 );
    ReefAngel.Relay.On( Box1_Port7 );
    ReefAngel.Relay.On( Box1_Port8 );

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

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

void loop()
{
    ReefAngel.StandardHeater( Port3 );
    ReefAngel.StandardFan( Port4 );
    ReefAngel.MoonLights( Port5 );
    ReefAngel.DosingPumpRepeat1( Port7 );
    ReefAngel.DosingPumpRepeat2( Port8 );
    ReefAngel.SingleATOLow( Box1_Port1 );
    ReefAngel.PWM.DaylightPWMParabola();
    ReefAngel.DCPump.UseMemory = true;
    ReefAngel.DCPump.DaylightChannel = Sync;
    ReefAngel.DCPump.ActinicChannel = AntiSync;
    ////// Place your custom code below here
    

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

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


Re: No Comm to Portal

Posted: Wed May 27, 2015 5:46 pm
by Lionfan
waiting on the serial monitor

Re: No Comm to Portal

Posted: Wed May 27, 2015 5:54 pm
by Lionfan
Lionfan wrote:waiting on the serial monitor
Here it is

Code: Select all

üGET /status/submitp.aspx?t1=784&t2=784&t3=739&ph=1057&id=Lionfan&em=8&em1=2&rem=1&bid=1&key=&ddns=&af=0&sf=0&atohigh=0&atolow=0&r=35&ron=0&roff=255&r1=254&ron1=0&roff1=255&pwma=0&pwmd=91&pwmao=255&pwmdo=255&sal=60&dcm=2&dcs=0&dcd=40&dct=30

Re: No Comm to Portal

Posted: Wed May 27, 2015 6:08 pm
by rimai
That looks correct.
I'm really out of ideas.
RA is sending the data to the wifi attachment, which should send it to the portal, but for some reason it is not.
The only weird thing is that 1st character before GET.
If you leave serial monitor open, does it show again?

Re: No Comm to Portal

Posted: Wed May 27, 2015 6:12 pm
by Lionfan
rimai wrote:That looks correct.
I'm really out of ideas.
RA is sending the data to the wifi attachment, which should send it to the portal, but for some reason it is not.
The only weird thing is that 1st character before GET.
If you leave serial monitor open, does it show again?
No, it pops up as soon as i open up the monitor, but doesnt repeat...

Re: No Comm to Portal

Posted: Thu May 28, 2015 7:54 am
by Lionfan
this morning i got a blinking status light on the head unit.
everything is still running, and I'm still getting data sent to reeftronics.
Don't know what's going on..

Re: No Comm to Portal

Posted: Thu May 28, 2015 11:07 am
by rimai
That means a bus lock probably.
If you use the joystick to the status screen, what does it show?
What expansion modules do you have connected?

Re: No Comm to Portal

Posted: Thu May 28, 2015 12:04 pm
by Lionfan
rimai wrote:That means a bus lock probably.
If you use the joystick to the status screen, what does it show?
What expansion modules do you have connected?
Earlier today, everything looked the same when i scrolled thru.
The only expansion module right now is a relay box.

Re: No Comm to Portal

Posted: Fri May 29, 2015 6:57 am
by Lionfan
rimai wrote:That means a bus lock probably.
If you use the joystick to the status screen, what does it show?
What expansion modules do you have connected?
I had the bus lock yesterday, it cut off my second relay box.
I disconnected the expansion hub, and got the bus lock to go away. but now I'm without the 2nd box.
still having problems with no portal comm.
Is there anything you can do on your end to see if maybe the portal just isn't updating?

Re: No Comm to Portal

Posted: Fri May 29, 2015 10:50 am
by rimai
I don't see nothing wrong on this end. Portal has been updating for other members.
When you have some time, send me a PM and we can schedule a remote session.

Re: No Comm to Portal

Posted: Wed Jun 03, 2015 10:53 am
by reefaddicts
rimai wrote:I don't see nothing wrong on this end. Portal has been updating for other members.
When you have some time, send me a PM and we can schedule a remote session.
Roberto,
It's lionfan..
I created a new account, and changed the code on the controller, and I still don't have any data going to the Portal..
I did it the night we had the remote session, and still nothing.

Re: No Comm to Portal

Posted: Wed Jun 03, 2015 11:37 am
by rimai
This username was giving the same crap as we experienced that day.
So, I knew something was up.
But I finally found the bug :)
Can you let me know if it is working now and you can switch back to lionfan :mrgreen:

Re: No Comm to Portal

Posted: Wed Jun 03, 2015 12:05 pm
by reefaddicts
rimai wrote:This username was giving the same crap as we experienced that day.
So, I knew something was up.
But I finally found the bug :)
Can you let me know if it is working now and you can switch back to lionfan :mrgreen:
Yelp it's working now!
You da man! :ugeek:
I'll switch back tonight and delete this name.