No Comm to Portal

Expansion modules and attachments
Post Reply
Lionfan
Posts: 166
Joined: Wed Nov 26, 2014 8:53 am

No Comm to Portal

Post 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.
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: No Comm to Portal

Post 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?
Roberto.
Lionfan
Posts: 166
Joined: Wed Nov 26, 2014 8:53 am

Re: No Comm to Portal

Post by Lionfan »

the code is correct, and not at all familiar with the tera term or putty..
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: No Comm to Portal

Post by rimai »

OK, let's try updating the settings then.
Follow instructions here :
http://forum.reefangel.com/viewtopic.php?f=3&t=4601
Roberto.
Lionfan
Posts: 166
Joined: Wed Nov 26, 2014 8:53 am

Re: No Comm to Portal

Post 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
Image
Lionfan
Posts: 166
Joined: Wed Nov 26, 2014 8:53 am

Re: No Comm to Portal

Post 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
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: No Comm to Portal

Post 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.
Roberto.
Lionfan
Posts: 166
Joined: Wed Nov 26, 2014 8:53 am

Re: No Comm to Portal

Post 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();
}

Image
Lionfan
Posts: 166
Joined: Wed Nov 26, 2014 8:53 am

Re: No Comm to Portal

Post by Lionfan »

waiting on the serial monitor
Image
Lionfan
Posts: 166
Joined: Wed Nov 26, 2014 8:53 am

Re: No Comm to Portal

Post 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
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: No Comm to Portal

Post 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?
Roberto.
Lionfan
Posts: 166
Joined: Wed Nov 26, 2014 8:53 am

Re: No Comm to Portal

Post 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...
Image
Lionfan
Posts: 166
Joined: Wed Nov 26, 2014 8:53 am

Re: No Comm to Portal

Post 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..
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: No Comm to Portal

Post 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?
Roberto.
Lionfan
Posts: 166
Joined: Wed Nov 26, 2014 8:53 am

Re: No Comm to Portal

Post 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.
Image
Lionfan
Posts: 166
Joined: Wed Nov 26, 2014 8:53 am

Re: No Comm to Portal

Post 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?
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: No Comm to Portal

Post 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.
Roberto.
reefaddicts
Posts: 2
Joined: Mon Jun 01, 2015 8:27 pm

Re: No Comm to Portal

Post 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.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: No Comm to Portal

Post 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:
Roberto.
reefaddicts
Posts: 2
Joined: Mon Jun 01, 2015 8:27 pm

Re: No Comm to Portal

Post 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.
Post Reply