Don's Home Automation Secrets
The Secret of Solving X-
Collisions are the biggest problem that you can run into when using X-
Since I am a computer scientist by training, I have studied protocols involving bit-
Most of the time, only one bit gets changed. This could mean that a House Code (A-
If we only consider the HC or UC, then a 1-
It takes a LOT to have a 2-
Thus we get an opportunity to use probability to reduce the chance of bit errors.
The House Code and Unit Code of a house can be designed so that most single bit errors
just disappear, and odd behavior only happens on those really rare 2-
House Code
Unit Code
Binary Value
A
1
0000
B
2
0001
C
3
0010
D
4
0011
E
5
0100
F
6
0101
G
7
0110
H
8
0111
I
9
1000
J
10
1001
K
11
1010
L
12
1011
M
13
1100
N
14
1101
O
15
1110
P
16
1111
When you examine the binary codes, you can see that both the house code and unit
code is made of 4 bits, and when combined that gives us 8-
Through calculation and experimentation, I have found that the following table of
house codes and unit codes minimizes the number of errors. Use ONLY codes from this
table, and your house won't be haunted -
House Code
Unit Code
Binary Value
A
1
0000
D
4
0011
G
7
0110
J
10
1001
M
13
1100
P
16
1111
By looking at the binary values, you can observe that every one differs from every
other value by at 2-
One side effect is that this solution reduces the total number of manageable devices to 36, and requires a RF interface for each house code controlled wirelessly. For most homes, this will not be a problem.
After publishing this page I did receive input that the mapping of bits isn't as
I've shown above, but in some kind of offset pattern. While this is a most interesting
input, it is evident from practice that separation of zones with 2 unused zones between
the ones with controllable devices will reduce the potential for problems. I do use
intervening house codes for other purposes such as codes to match with smart wireless
devices (non-
Last Updated: 2011 January 7