-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathSony-RMT-AA400U.lircd.conf
82 lines (75 loc) · 2.74 KB
/
Sony-RMT-AA400U.lircd.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
begin remote
# These twenty bit codes are really comprised of three subcodes:
#
# 1. a 7-bit command code
# 2. a 5-bit device code
# 3. an 8-bit extended code
#
# They're transmitted with the least-significant bit first, but the REVERSE
# flag reorders them to be most-significant bit first with the extended code
# at the start instead of end.
name Sony-RMT-AA400U
bits 20
flags SPACE_ENC|CONST_LENGTH|REVERSE
eps 30
aeps 100
# Timings in µs from the righto.com reference below. Each code is transmitted
# a minimum of three times, or repeated twice (even for a single button press).
# Each transmission is a constant 45ms long; the gap of no IR activity between
# transmissions is variable and depends on the length of the code. These are
# the spec values; irrecord will measure these timings slightly differently
# (including between runs!), but that's ok.
header 2400 600
one 1290 600
zero 600 600
gap 45000
min_repeat 2
# The binary codes are formatted into their subcodes as
#
# 0b<extended>_<device>_<command>
#
# with the most-significant bits first. The codes are actually transmitted by
# the physical remote in reverse order, with the command code and
# least-significant bits first.
#
# The hex codes actually used by LIRC are equal to the binary values. Python's
# builtin conversion functions and numeric literal syntax are handy for
# converting:
#
# >>> bin(0x0181d)
# '0b1100000011101'
# >>> hex(0b00000001_10000_0011101)
# '0x181d'
#
# References:
# - http://www.righto.com/2010/03/understanding-sony-ir-remote-codes-lirc.html
# - http://picprojects.org.uk/projects/sirc/sonysirc.pdf
# - http://www.hifi-remote.com/sony/Sony_rcvr.htm
begin codes
# 0b00000001_10000_0011101
input-1 0x0181d
# 0b00000001_10000_1101100
input-2 0x0186c
# 0b00000001_10000_1101110
input-3 0x0186e
# 0b01101000_10000_1000001
input-4 0x68841
# 0b00101000_10000_1110001
input-bluetooth 0x28871
# 0b00000001_10000_0011000
input-fm 0x01818
# 0b00000001_10000_0100000
input-phono 0x01820
# 0b00000001_10000_0010101
power-toggle 0x01815
# "Discrete" codes found on the hifi-remote.com reference above.
# 0b00000001_10000_0101110
power-on 0x0182e
# 0b00000001_10000_0101111
power-off 0x0182f
# 0b00000001_10000_0010010
volume-up 0x01812
# 0b00000001_10000_0010011
volume-down 0x01813
end codes
end remote