Sony Device Code Theory
One day I noticed some patterns in the Sony device code assignments. Looking through the Sony15 codes, I discovered that there were a lot of similar codes in multiples of 32, like 68-100-132-164-228, 119-151, 185-217, 80-208, etc. I also noticed, as have many others, that most of the Sony20 codes began with the same 5 bits, which is why they are separated into 5 and 8 bits. When other new devices were discovered, like the receiver codes being exactly 32 apart between command modes, and the 2nd and 3rd room codes for receiver, and especially the HTS devices, that there was more to this. I eventually discovered that the middle 3 bits of all the Sony20 codes were 1 or 2 (LSB) (or in the case of newer stuff, 3). I then discovered that it would make sense if you separated the codes into 5.3.5 bits, just like how the lengths of the codes were extended a while ago. With more and more device codes being discovered, this pattern holds. Here is a chart of how the device codes should probably be arranged. Breaks in the pattern are in red with notes at the end about why I think they are that way.
Long |
|
D1 |
|
D2 |
|
D3 |
Device Name |
1 |
1 |
1 |
. |
|
. |
|
TV (a) |
1 |
1.0 |
1 |
. |
0 |
. |
0 |
LCD Monitor (a) |
2 |
2 |
2 |
. |
|
. |
|
VCR1 (a) |
3 |
3 |
3 |
. |
|
. |
|
Teletext |
4 |
4 |
4 |
. |
|
. |
|
Cassette (2) |
4 |
4 |
4 |
. |
0 |
. |
|
All Devices Off |
36 |
36 |
4 |
. |
1 |
. |
|
DSP commands |
68 |
68 |
4 |
. |
2 |
. |
|
Boombox (a) |
100 |
100 |
4 |
. |
3 |
. |
|
Boombox (b) |
132 |
132 |
4 |
. |
4 |
. |
|
Car Stereo/Tuner |
388 |
4.12 |
4 |
. |
4 |
. |
1 |
In-Car DVD (b) |
164 |
164 |
4 |
. |
5 |
. |
|
TV (b) |
164 |
4.5 |
4 |
. |
5 |
. |
0 |
LCD Monitor (b) |
228 |
228 |
4 |
. |
7 |
. |
|
A/V Switch |
6 |
6 |
6 |
. |
|
. |
|
LD |
7 |
7 |
7 |
. |
|
. |
|
VCR2 (a) |
8 |
8 |
8 |
. |
|
. |
|
LD alternate/HD |
9 |
9 |
9 |
. |
|
. |
|
Betacam Recorder,
Network Video Player |
11 |
11 |
11 |
. |
|
. |
|
VCR3 (a) |
12 |
12 |
12 |
. |
|
. |
|
Receiver (old (c)) |
13 |
13 |
13 |
. |
|
. |
|
Receiver (b) (Tuner) (AV1) |
45 |
45 |
13 |
. |
1 |
. |
|
Receiver (b) (Tuner) (AV2) |
14 |
14 |
14 |
. |
|
. |
|
Cassette B |
15 |
15 |
15 |
. |
|
. |
|
MD |
16 |
16 |
16 |
. |
|
. |
|
Receiver (a) (Preamp/Amp) (AV1) |
528 |
16.16 |
16 |
. |
0 |
. |
2 |
DVD/Receiver (c) |
48 |
48 |
16 |
. |
1 |
. |
|
Receiver (a) (Preamp/Amp) (AV2) |
80 |
80 |
16 |
. |
2 |
. |
|
DVD/Receiver (a) |
144 |
144 |
16 |
. |
4 |
. |
|
Receiver (c) (Sound Fields) (AV1) |
176 |
176 |
16 |
. |
5 |
. |
|
Receiver (c) (Sound Fields) (AV2) |
208 |
208 |
16 |
. |
6 |
. |
|
DVD/Receiver (b) |
17 |
17 |
17 |
. |
|
. |
|
CD1 |
81 |
81 |
17 |
. |
2 |
. |
|
CD3 |
18 |
18 |
18 |
. |
|
. |
|
Receiver (old (d)) (EQ) |
19 |
19 |
19 |
. |
|
. |
|
unknown audio device |
52 |
52 |
20 |
. |
1 |
. |
|
Laser VideoDisc |
84 |
84 |
20 |
. |
2 |
. |
|
Projector (a) |
180 |
180 |
20 |
. |
5 |
. |
|
VCR1 (b) |
212 |
212 |
20 |
. |
6 |
. |
|
VCR1 (c) |
22 |
22 |
22 |
. |
|
. |
|
Still Video Recorder |
119 |
119 |
23 |
. |
3 |
. |
|
TV (d) |
151 |
151 |
23 |
. |
4 |
. |
|
TV (c) |
183 |
183 |
23 |
. |
5 |
. |
|
Satellite 1 |
439 |
23.13 |
23 |
. |
5 |
. |
1 |
IDTV |
2231 |
23.69 |
23 |
. |
5 |
. |
8 |
Satellite 3 |
4279 |
23.133 |
23 |
. |
5 |
. |
16 |
Satellite 2 |
247 |
247 |
23 |
. |
7 |
. |
|
In-Car DVD (a) |
24 |
24 |
24 |
. |
|
. |
|
Receiver (old (e)) (?) |
57 |
57 |
25 |
. |
1 |
. |
|
CD2 |
89 |
89 |
25 |
. |
2 |
. |
|
DSR |
121 |
121 |
25 |
. |
3 |
. |
|
Receiver (2nd room) |
377 |
25.11 |
25 |
. |
3 |
. |
1 |
Receiver (3rd room) |
185 |
185 |
25 |
. |
5 |
. |
|
VCR2 (b) |
1209 |
25.37 |
25 |
. |
5 |
. |
4 |
VCR4 (a) (DV only) |
2233 |
25.69 |
25 |
. |
5 |
. |
8 |
VCR4 (b) (DV only) |
3257 |
25.101 |
25 |
. |
5 |
. |
12 |
VCR5 (a) (DV only) |
4281 |
25.133 |
25 |
. |
5 |
. |
16 |
VCR5 (b) (DV only) |
5305 |
25.165 |
25 |
. |
5 |
. |
20 |
VCR6 (a) (DV only) |
6329 |
25.197 |
25 |
. |
5 |
. |
24 |
VCR6 (b) (DV only) |
217 |
217 |
25 |
. |
6 |
. |
|
VCR2 (c) |
249 |
249 |
25 |
. |
7 |
. |
|
Color Video Printer |
58 |
26.1 |
26 |
. |
1 |
. |
0 |
Videoconferencing Unit |
314 |
26.9 |
26 |
. |
1 |
. |
1 |
Professional LCD Video Monitor (discretes) |
570 |
26.17 |
26 |
. |
1 |
. |
2 |
Professional LCD Video Monitor |
1594 |
26.49 |
26 |
. |
1 |
. |
6 |
Video CD |
1850 |
26.57 |
26 |
. |
1 |
. |
7 |
Misc. Audio (CD codes) |
2362 |
26.73 |
26 |
. |
1 |
. |
9 |
DVD1 (a) |
2618 |
26.81 |
26 |
. |
1 |
. |
10 |
VCR1 (d) |
3130 |
26.97 |
26 |
. |
1 |
. |
12 |
MD (b) (keyboard) |
3642 |
26.113 |
26 |
. |
1 |
. |
14 |
SkyPerfecTV Receiver |
3898 |
26.121 |
26 |
. |
1 |
. |
15 |
WebTV |
4154 |
26.129 |
26 |
. |
1 |
. |
16 |
VCR2 (d) |
4410 |
26.137 |
26 |
. |
1 |
. |
17 |
VCR3 (d) |
4922 |
26.153 |
26 |
. |
1 |
. |
19 |
CD1 (b) |
5178 |
26.161 |
26 |
. |
1 |
. |
20 |
CD2 (b) |
5434 |
26.169 |
26 |
. |
1 |
. |
21 |
CD3 (b) |
7482 |
26.233 |
26 |
. |
1 |
. |
29 |
Preamp (2), Misc. Audio (few) |
7738 |
26.241 |
26 |
. |
1 |
. |
30 |
Memory Stick |
602 |
26.18 |
26 |
. |
2 |
. |
2 |
Portable DVD player |
858 |
26.26 |
26 |
. |
2 |
. |
3 |
TV early DTV tuner |
1114 |
26.34 |
26 |
. |
2 |
. |
4 |
DVD2 (a) |
1370 |
26.42 |
26 |
. |
2 |
. |
5 |
Projector (b) |
2138 |
26.66 |
26 |
. |
2 |
. |
8 |
Preamp |
2650 |
26.82 |
26 |
. |
2 |
. |
10 |
Videoconferencing Kit |
3162 |
26.98 |
26 |
. |
2 |
. |
12 |
DVD1 (b) |
3674 |
26.114 |
26 |
. |
2 |
. |
14 |
Cable |
4954 |
26.154 |
26 |
. |
2 |
. |
19 |
TiVo 1 |
5210 |
26.162 |
26 |
. |
2 |
. |
20 |
TiVo 2 |
5466 |
26.170 |
26 |
. |
2 |
. |
21 |
TiVo 3 |
5722 |
26.178 |
26 |
. |
2 |
. |
22 |
Vaio PC 1 |
6490 |
26.202 |
26 |
. |
2 |
. |
25 |
CD-R |
7002 |
26.218 |
26 |
. |
2 |
. |
27 |
PS2 |
7258 |
26.226 |
26 |
. |
2 |
. |
28 |
Blu-ray Player |
8026 |
26.250 |
26 |
. |
2 |
. |
31 |
DVD3 (a) |
122 |
26.3 |
26 |
. |
3 |
. |
0 |
DVD2 (b) |
378 |
26.11 |
26 |
. |
3 |
. |
1 |
DVD3 (b) |
634 |
26.19 |
26 |
. |
3 |
. |
2 |
XM Receiver, Kitchen Radio |
1402 |
26.43 |
26 |
. |
3 |
. |
5 |
Hard Disk Audio Recorder |
1658 |
26.51 |
26 |
. |
3 |
. |
6 |
Vaio PC 2 |
1914 |
26.59 |
26 |
. |
3 |
. |
7 |
Vaio PC 3 |
2682 |
26.83 |
26 |
. |
3 |
. |
10 |
DVD/VCR Combo 1 |
6010 |
26.187 |
26 |
. |
3 |
. |
23 |
Cable |
7290 |
26.227 |
26 |
. |
3 |
. |
28 |
DVD/VCR Combo 2 |
7546 |
26.235 |
26 |
. |
3 |
. |
29 |
DVD/VCR Combo 3 |
186 |
186 |
26 |
. |
5 |
. |
|
VCR3 (b) |
218 |
218 |
26 |
. |
6 |
. |
|
VCR3 (c) |
28 |
28 |
28 |
. |
|
. |
|
DAT |
30 |
30 |
30 |
. |
|
. |
|
Videoconference Controller |
223 |
223 |
31 |
. |
6 |
. |
|
DV Camera |
255 |
255 |
31 |
. |
7 |
. |
|
Active Speakers |
Red stuff: For the Satellite 2 and 3 codes, it is obvious that someone
forgot the last 5 bits were LSB! For the
CD2 code, it seems that they forgot where the division between groups of bits
were, setting the 8 value bit as well as the 32 value bit, making the code 8
too big.