Please login or register.

Login with username, password and session length

Author Topic: Duplicate Code or Table Error  (Read 2106 times)

X10_Coder

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 9
Duplicate Code or Table Error
« on: May 17, 2017, 03:08:56 AM »

Hello Again

      I was looking through a House Code table and noticed that there is a value which is duplicated making me think that perhaps there's and error.

     House  Device
0    M    13    0000    0    All Units Off
1    E    5    0001    1    All Lights On
2    C    3    0010    2    On
3    K    11    0011    3    Off
4    O    15    0100    4    Dim
5    G    7    0101    5    Bright
6    A    1    0110    6    All Lights Off
7    I    9    0111    7    Extended Code
8    N    14    1000    8    Hail Request
9    F    6    1001    9    Hail Acknowledge
10    D    4    1010    A    Preset Dim (1)
11    L    12    1011    B    Preset Dim (2)
12    P    15    1100    C    Extended Data transfer
13    H    8    1101    D    Status On
14    B    2    1110    E    Status Off
15    J    10    1111    F    Status Request

Can there really be two device codes with the same value of 15?

House Code O is set to 15, and House Code P is also set to 15, is this correct?

Thanks.
Logged

Brian H

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 305
  • Posts: 13260
Re: Duplicate Code or Table Error
« Reply #1 on: May 17, 2017, 06:50:27 AM »

No that can't be correct. Look at the binary codes. 0100 and 1100 are not the same value.
Where did you get this chart. I am having trouble following it.
Maybe you can look at the CM11A information and try and determine what each value should be.

Maybe X10WTI's Dave Rye's Technical Notes may give you more information.


« Last Edit: May 17, 2017, 06:53:32 AM by Brian H »
Logged

X10_Coder

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 9
Re: Duplicate Code or Table Error
« Reply #2 on: May 17, 2017, 09:23:06 AM »

Hello

      I found the chart here:

http://www.linuxha.com/athome/common/cm15d/cm15a.html

      And I will definitely take a look at Dave Rye's Technical Notes, thanks for that.
Logged

X10_Coder

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 9
Re: Duplicate Code or Table Error
« Reply #3 on: May 17, 2017, 10:27:13 AM »

Brian:

      It looks like the table I had is incorrect, and the tech-notes you provided helped confirm it.

      Here is the wrong line from the table:

            12    P    15    1100    C    Extended Data transfer

      Which should be:

            12    P    16    1100    C    Extended Data transfer

      Well that's if I'm understanding things correctly.


      Thanks Brian.
Logged

bkenobi

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 24
  • Posts: 2081
Re: Duplicate Code or Table Error
« Reply #4 on: May 17, 2017, 11:32:52 AM »

That looks correct to me.  The tech note says P = 16 and that's the 16th letter of the alphabet, so it works out.  I don't know why that page (which I have also used quite a bit in the past) has it sorted by number rather than by alphabet.  Either works though.

X10_Coder

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 9
Re: Duplicate Code or Table Error
« Reply #5 on: May 17, 2017, 01:53:53 PM »

I have been using the information on that site as well. I shot off an email to the site with the chart asking about whether the 15 is an error or not.

The site was updated a good while back so I don't know if anybody is still around to make changes.

I had run into some code that actually searched through a similar table to locate the proper house code, which I thought was a bit clumsy. I wanted to just index into the table to get the value I needed so I went to reorder the list and that’s when I noticed the error.
Logged

Brian H

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 305
  • Posts: 13260
Re: Duplicate Code or Table Error
« Reply #6 on: May 17, 2017, 03:50:14 PM »

Thanks for the link.
It was even more confusing to me. When the column labels where not over the data.
Logged

X10_Coder

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 9
Re: Duplicate Code or Table Error
« Reply #7 on: May 17, 2017, 04:44:58 PM »

Oh - sorry, I should of included the column headings, that was dumb of me to leave out.

I got an email back from the person listed on the site and they agreed that it should be 16 and said the site will be updated shortly.

Thanks again for all of the help.

Logged

Brian H

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 305
  • Posts: 13260
Re: Duplicate Code or Table Error
« Reply #8 on: May 18, 2017, 09:22:17 AM »

I am glad the error on the chart will be fixed. That will make things easier for many.
Logged

dhouston

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 37
  • Posts: 2547
    • davehouston.org
Re: Duplicate Code or Table Error
« Reply #9 on: May 18, 2017, 11:34:57 AM »

It's interesting that it had been there for many years (that page was last updated in 2007) without Neil or anyone else noticing it. It likely speaks to the waning popularity of X10.
Logged
This message was composed entirely from recycled letters of the alphabet using only renewable, caffeinated energy sources.
No twees, wabbits, chimps or whales died in the process.
https://www.laser.com/dhouston

bkenobi

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 24
  • Posts: 2081
Re: Duplicate Code or Table Error
« Reply #10 on: May 19, 2017, 11:22:27 AM »

I used that page many times and I recall having an issue with the table (maybe that same problem).  I figured it was just me and found another source.  I wonder how many people found the error and didn't point it out.   B:(
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.