X10 command format

XRinger

Member
I was using the line, X10 2 7 ON
on my old board and it worked fine.
 
But, when I loaded my program into my brand new board (Version: v03.02.17f), I got errors..
 
I checked a new manual and found this:
X10 RF function is supported in the PLC programming also.
In PLC programming, PLC command is in the format:
X10 H  U  C
Where H is house code from 0-F, U is unit code, also from 0-F; C is one of following
four commands:
0 – Off
1 – On
2 – Bright
3 – Dim

 
So, I changed my code to use 0 for off and 1 for on.. It worked!
 
But now I seem to have a weird problem..
When I list the program, my X10 commands have reverted back to using the text "OFF" and "ON"..  as in "X10 2 7 ON".
 
Not a big problem, until I hit the Send button. 
I get the line errors again, and have to re-edit the lines back to the new 0 & 1  (off & on) commands..
 
What can I do to stop the listing from reverting?
 
 
Oh no!
I just noticed this in the table of commands..
X10  a b c  a: house code 0-15, b: device code 0-15, c: ON, OFF, BRIGHT, DIM
 
Not sure what code to use now..
 
Rich,
could you please let me know the build date on your board?  Please go to http://ip-address/api/status.xml
to let us know the build date on the last section of the display.
 
We did not change X10 logic for sometimes, including PLC logic handling. However, maybe other changes we made caused issue. We will provide update for it, once we fixed it.
 
 <builddate>Oct 02 2013, 17:30:47</builddate>
 
First, I clicked on your link, as is.. It loaded a page from http://www.ip-address.com/api/status.xml
The domain is for sale by Archeo Domains.. Weird.
 
After a few seconds, remembered the joke, "Now repeat after me.  I, 'state your name'  do solemnly swear,"
 
and decided to try http://192.168.1.15/api/status.xml
which worked. I'm still using the default.
 
 
Edit 11/7/2013
After updating, the build date displays as:  <builddate>Oct 15 2013, 11:12:31</builddate>
 
You did change X10 so that it could accept variables.  The PLC parsing/printing was not updated to match.  X10 should accept any of the following:  variables, numeric (0-3), text (OFF, ON, BRIGHT, DIM).  As for how it's printed when the PLC code is displayed (numeric vs text) that is up to you.
 
XRinger said:
 <builddate>Oct 02 2013, 17:30:47</builddate>
 
First, I clicked on your link, as is.. It loaded a page from http://www.ip-address.com/api/status.xml
The domain is for sale by Archeo Domains.. Weird.
 
After a few seconds, remembered the joke, "Now repeat after me.  I, 'state your name'  do solemnly swear,"
 
and decided to try http://192.168.1.15/api/status.xml
which worked. I'm still using the default.
Sorry, when I said ip-address, I mean your actual IP address on the board, I did not mean you type www or .com after the ip address.  From that, it will show the page with build date and many other things. I want to see build date, so that we can load same firmware to test for you,
 
Okay, as az1324 pointed out, in 3.02.17e firmware, we changed the code allowing the PLC using parameters for the X10.  That means, it is no longer support English strings ON/OFF/BRIGHT/DIM, but 0/1/2/3  In the display PLC code, we did not change GUI display code to this change, so that even you can save PLC code using this way and runs correctly, you can not simply save re-displayed PLC code.
 
You can update your firmware with this latest code in the testf5.zip for both firmware and gui, that fixed this problem,  if your firmware is 3.02.17e or later, by following this instruction page:
 
http://www.cainetworks.com/support/how-to-update.html
 
My new board is v03.02.17f (I put it in my signature, so I won't forget).
I read the directions and downloaded the exe and the zipped bin files. 
 plan to try the update tomorrow. If I brick it, I have the old board as a backup.
 
 
When I ordered the board (Ebay), I was worried about getting old firmware. LOL! 
Turned out, it was only a month old!
 
Thanks for your quick response.
 
FYI, the new board is working nicely.. Even with the little error..
http://ecorenovator.org/forum/solar-heating/3271-using-attic-heat-warm-up-basement-4.html
 
If update failed, you can try it again.  The chance of brick the board is almost not exist, even you lost power in the middle of update.
 
It is nice to see your setup there.  Please let us know how this work for you.  This version include changes for Tim, IPINVx and IPTS in it.
 
I used this link, 192.168.1.15//api/bootloader.cgi?start
( The green heart beat LED didn't go off.)

and got this:

404: File not found
Use WebControl GUI Upload to program web pages


I clicked on the link and got this:

 
WebControl GUI Upload
Brows |  No file selected |

Since I never saw the green heart beat LED go off, I'm not sure what to do..

Should I try the tftp.exe while the heart-beat is still blinking?




 
 
Thanks. I typo a lot these days. I had pre-typed the file names and URLs into a file to make it easier to do... Makes it harder when typos are in the mix..
 
I got the GUI installed earlier, and it listed the 0 & 1 instead of OFF and ON.. :)
 
Just did the Update-PLC file and the program is still running.. :)
Do I need to do a reset, or a power off-on?
 
If you followed update instruction, the board already rebooted after firmware update.
Then after GUI update, you will need to refresh your browser.  That is all.
 
If anyone wants to update his board to this version, please let us know.
 
v3.02.17f also has
 
RAM10,RAM11,RAM12,RAM13  <-four byte access in RAM1
RAM20,RAM21,RAM22,RAM23
....
RAM1L RAM1H   <- 16 bit access to RAM1
RAM2L RAM2H
....
RAM1B1, RAM1B2,... bit access to RAM1
 
The change in 3.02.17e also allows using VAR or RAM for X10 command parameter, like
X10 VAR1, VAR2, RAM11
where VAR1 stores house code, VAR2 stores device code, and RAM11 can be 0,1,2,3 for OFF, ON, BRIGHT, DIM
 
That's nice. Ease of access to those hex bytes makes life simpler..
Just in case we need to do something that's extra complicated..  :horse: 
 
 
My thrown-together program is running very smoothly. It's controlling the ventilation nicely today. 
Changes in temperature are sensed and X-10 signals sent, when needed. Very reliable.
 
I'm thinking about using one of these boards for a 'smart' security system project.
Cheaper and much more capable than a standard old analog alarm system board.
 
Back
Top