Commit f508756
authored
Hitachi: Add RF07T4 remote to supported devices (#2286)
The RF07T4 remote uses the existing HITACHI_AC344 protocol and byte
layout, so no code changes are needed. This just documents it as a
known-working model, plus adds a unit test built from a real capture.
Tested under real conditions: the remote was decoded from scratch against
a Hitachi A/C, and the resulting byte map matched this library's
HITACHI_AC344 layout exactly (button byte 11, temp byte 13, fan/mode byte
25, power byte 27, SwingH byte 35, including the same 0x92 0x6D preamble
as the existing AC344 reference state). Frames built from that map have
been driving the A/C reliably for several days -- power, mode, temp, fan
and both swing axes.
To be precise about what that does and doesn't prove: the decode side is
verified against this library directly, by the new test. The send side was
verified only in the sense that the byte layout is right -- those frames
were transmitted from a Raspberry Pi via ir-ctl, reusing the remote's own
captured pulse timings, not this library's nominal ones. So I can say the
state encoding is correct, but I have not yet put sendHitachiAc344()'s
timings (3300/1700 header, 400us marks, 1250/500 spaces) in front of the
unit. Happy to test that and report back if it matters for acceptance.
The new test decodes a genuine off-air capture: Power on, Cool, 24C, Fan
auto. It needs setTolerance(40), because the capture came off a HX1838
demodulator through the Linux kernel's gpio-ir driver, which biases the
mark/space boundary the opposite way to a typical TSOP capture -- marks
read ~50us short and zero spaces ~90us long, while the bit periods
themselves still line up. Same trick as the Mirage and Samsung tests.
Two observations that don't affect this change, noted in case they're
useful to someone later: this remote emits button code 0x41 for its
dedicated "operation switch" (mode) key, which isn't among the
kHitachiAc424Button* constants; and its Swing(V) key always transmits
byte 37 bit 5 as 0, with the A/C toggling its own swing state on receipt,
rather than the remote carrying the state.1 parent 1aa31ea commit f508756
2 files changed
Lines changed: 85 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1919 | 1919 | | |
1920 | 1920 | | |
1921 | 1921 | | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
1922 | 2006 | | |
1923 | 2007 | | |
1924 | 2008 | | |
| |||
0 commit comments