Page 1 of 1
Online Development Testing
Posted: Sun Sep 18, 2011 5:48 pm
by binder
Updated 6/20/2017:
Test Controller is OFFLINE
If you need a test controller or want to test things, message me about having one available for you to test.
-------------OLD INFO-------------
For people who are wanting to test the ability to control a controller via the web, I have now put my test controller online. You are now able to connect to it from the web. This is to help people test out all those apps that everybody is wanting to have.
Here's the specific breakdown:
Code: Select all
Host: curtbinder.no-ip.info
Port: 2000
Here's the URL:
http://curtbinder.no-ip.info:2000/
Have fun testing things.
curt
Re: Online Development Testing
Posted: Sun Sep 18, 2011 5:54 pm
by dmolton
Thanks for putting this together, Curt. I'm sure it will prove hugely helpful from a debugging standpoint. Only thing I would suggest is enabling RelayExpansion so we can make sure the apps work for multiple boxes.
-Dave
Re: Online Development Testing
Posted: Sun Sep 18, 2011 5:58 pm
by rimai
Cool
Re: Online Development Testing
Posted: Sun Sep 18, 2011 6:28 pm
by wolfador
awesome, thanks. The relay expansion would be nice so I can add that to the iphone app.
Re: Online Development Testing
Posted: Mon Sep 19, 2011 1:41 pm
by binder
Updated initial post to add in an expansion relay plus PWM sloping.
curt
Re: Online Development Testing
Posted: Mon Sep 19, 2011 4:30 pm
by wolfador
is there any resources for the xml output with the relay expansion turned on?
http://curtbinder.dyndns.info:2000/r99
doesn't look any different with it turned on / off.
Re: Online Development Testing
Posted: Mon Sep 19, 2011 4:43 pm
by binder
It actually is different.
I just did an /r99 to the controller and the XML code you want for the relay boxes is:
Code: Select all
<R>137</R>
<RON>0</RON>
<ROFF>251</ROFF>
<R0>67</R0>
<RON0>0</RON0>
<ROFF0>255</ROFF0>
<R1>0</R1>
<RON1>0</RON1>
<ROFF1>255</ROFF1>
<R2>0</R2>
<RON2>0</RON2>
<ROFF2>255</ROFF2>
<R3>0</R3>
<RON3>0</RON3>
<ROFF3>255</ROFF3>
<R4>0</R4>
<RON4>0</RON4>
<ROFF4>255</ROFF4>
<R5>0</R5>
<RON5>0</RON5>
<ROFF5>255</ROFF5>
<R6>0</R6>
<RON6>0</RON6>
<ROFF6>255</ROFF6>
<R7>0</R7>
<RON7>0</RON7>
<ROFF7>255</ROFF7>
The relay data is in the <r[0-7]> tags. The ON & OFF are just the masks.
Relay 1 is <r0>, Relay 2 is <r1>, ..., Relay 8 is <r7>
So with the above output, R0 is 67. And R1 is 0 which means it's all turned off (cause there isn't a second expansion relay box turned on or installed).
curt
Re: Online Development Testing
Posted: Mon Sep 19, 2011 6:07 pm
by wolfador
binder wrote:
The relay data is in the <r[0-7]> tags. The ON & OFF are just the masks.
Relay 1 is <r0>, Relay 2 is <r1>, ..., Relay 8 is <r7>
So with the above output, R0 is 67. And R1 is 0 which means it's all turned off (cause there isn't a second expansion relay box turned on or installed).
curt
I see it now, thanks. Now have a 2nd relay box supported in the iPhone app.
Re: Online Development Testing
Posted: Sun May 26, 2013 4:56 pm
by KRavEN
I know this is old but is something like this still available?
Re: Online Development Testing
Posted: Sun May 26, 2013 6:40 pm
by arch
I think what you're after is in the Development Libraries section of the forum (wifi attachment commands)
http://forum.reefangel.com/viewtopic.php?f=7&t=1541
Posted: Sun May 26, 2013 7:35 pm
by binder
KRavEN wrote:I know this is old but is something like this still available?
are you wanting to access a controller online for testing? i still have one online for testing but it appears that it's not responding tonight. i will have to check into it.
Re: Online Development Testing
Posted: Sun May 26, 2013 7:48 pm
by KRavEN
Right, but always nice to have a development box to bounce things off during development so you don't cause havoc with your production system.
Re:
Posted: Sun May 26, 2013 7:49 pm
by KRavEN
binder wrote:KRavEN wrote:I know this is old but is something like this still available?
are you wanting to access a controller online for testing? i still have one online for testing but it appears that it's not responding tonight. i will have to check into it.
Yes, that's what i was looking for Curt. Thanks for looking into it. I'll check back later.
Re: Online Development Testing
Posted: Sun May 26, 2013 9:33 pm
by binder
KRavEN wrote:
Right, but always nice to have a development box to bounce things off during development so you don't cause havoc with your production system.
out of curiosity, what are you wanting to test? this will just allow you to communicate with a controller for testing out apps (like a smartphone or web app) . you will not be able to upload any code at all to the controller.
Re: Online Development Testing
Posted: Mon May 27, 2013 5:55 am
by KRavEN
binder wrote:KRavEN wrote:
Right, but always nice to have a development box to bounce things off during development so you don't cause havoc with your production system.
out of curiosity, what are you wanting to test? this will just allow you to communicate with a controller for testing out apps (like a smartphone or web app) . you will not be able to upload any code at all to the controller.
Well, primarily to create some unit tests to compare return responses to ensure backwards compatibility. I'm working on an ethernet library for the RA that uses a cheap ENC28J60 board connected via SPI.
Re: Online Development Testing
Posted: Mon May 27, 2013 6:13 am
by binder
awesome. just making sure we were on the same page with the usage of the online controller.
Re: Online Development Testing
Posted: Wed Jun 12, 2013 3:55 pm
by binder
KRavEN wrote:
Well, primarily to create some unit tests to compare return responses to ensure backwards compatibility. I'm working on an ethernet library for the RA that uses a cheap ENC28J60 board connected via SPI.
I just updated and switched things around. I updated the host in the original post. I switched from dyn.com (dyndns.com) to no-ip.com. I also updated the firmware on the wifi module and we shall see how well this works. I was having connectivity issues but didn't realize it as it was my test controller.
Anyways, you should now be able to access it.
Re: Online Development Testing
Posted: Fri Jun 14, 2013 2:14 pm
by lnevo
Curt, needed another RA to test the iOS app. I tried to get an r99 from this controller and got nothing. I did get the initial ReefAngel Controller Web page banner when testing and now nothing.
Also does this have a relay expansion enabled on it? I want to start testing the option of detecting how many relay bars you have attached. If not, could you add a reference in the code on this one to the second relay box so it is enabled?
Re: Online Development Testing
Posted: Fri Jun 14, 2013 3:00 pm
by binder
Sometimes there are issues with it. If you get a reset, just try again. I tested it out internally here and I would get it to display and then I would try something else and it would fail. Then I would try again and it would work. I think it has to do with how fast the requests come in and if there is still an open connection from the controller.
Anyways, just updated it to 1.0.7 with 1 expansion box. I also have a 2nd controller on my network that you can test if you like. It's on port 2010 and it's got 2 expansion boxes plus salinity and water level module enabled (water level isn't connected, only enabled).
Re: Online Development Testing
Posted: Fri Jun 14, 2013 3:03 pm
by lnevo
Cool seems better now. At least i could load the banner and then r99.
I will try and get things going to finish up this patch soon. Would really love to support the extra bar when we get a release in.
Also i fixed the relay expansion labels being loaded.
Re: Online Development Testing
Posted: Mon Aug 26, 2013 5:33 pm
by lnevo
Not getting any data on either 2000 or 2010
I'm trying to get RA support added for
http://www.aquaticlog.com
Re: Online Development Testing
Posted: Mon Aug 26, 2013 6:10 pm
by binder
I just tested it and it's up and working on port 2000.
http://curtbinder.no-ip.com:2000/
I did notice that if you have a page open in a web browser and try to connect to it again or reload the page, it fails and you get the connection reset error.