From bd008a712811e8dc64f8fc9f6f9c271d5825a217 Mon Sep 17 00:00:00 2001 From: Maciej Grela Date: Fri, 8 Nov 2024 13:33:01 +0100 Subject: [PATCH] ir_irmp: Add tests for a Samsung remote Signed-off-by: Maciej Grela --- ...emote-AA59-00638A_0001_button_power.output | 1 + ...te-AA59-00638A_0002_button_0_repeat.output | 8 +++++++ ...e-AA59-00638A_0003_multiple_buttons.output | 23 +++++++++++++++++++ decoder/test/ir_irmp/test.conf | 15 ++++++++++++ 4 files changed, 47 insertions(+) create mode 100644 decoder/test/ir_irmp/samsung32_remote-AA59-00638A_0001_button_power.output create mode 100644 decoder/test/ir_irmp/samsung32_remote-AA59-00638A_0002_button_0_repeat.output create mode 100644 decoder/test/ir_irmp/samsung32_remote-AA59-00638A_0003_multiple_buttons.output diff --git a/decoder/test/ir_irmp/samsung32_remote-AA59-00638A_0001_button_power.output b/decoder/test/ir_irmp/samsung32_remote-AA59-00638A_0001_button_power.output new file mode 100644 index 00000000..1c9eb082 --- /dev/null +++ b/decoder/test/ir_irmp/samsung32_remote-AA59-00638A_0001_button_power.output @@ -0,0 +1 @@ +3828450-3905450 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xfd02, Flags: -" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xfd02, Flg: -" "P: 10 A: 0x707 C: 0xfd02 F: -" "C:fd02 A:707 -" "C:fd02" diff --git a/decoder/test/ir_irmp/samsung32_remote-AA59-00638A_0002_button_0_repeat.output b/decoder/test/ir_irmp/samsung32_remote-AA59-00638A_0002_button_0_repeat.output new file mode 100644 index 00000000..82ad7b8e --- /dev/null +++ b/decoder/test/ir_irmp/samsung32_remote-AA59-00638A_0002_button_0_repeat.output @@ -0,0 +1,8 @@ +790650-867700 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xee11, Flags: -" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xee11, Flg: -" "P: 10 A: 0x707 C: 0xee11 F: -" "C:ee11 A:707 -" "C:ee11" +899200-976150 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xee11, Flags: repeat" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xee11, Flg: rep" "P: 10 A: 0x707 C: 0xee11 F: rep" "C:ee11 A:707 r" "C:ee11" +1007700-1084650 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xee11, Flags: repeat" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xee11, Flg: rep" "P: 10 A: 0x707 C: 0xee11 F: rep" "C:ee11 A:707 r" "C:ee11" +1116200-1193150 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xee11, Flags: repeat" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xee11, Flg: rep" "P: 10 A: 0x707 C: 0xee11 F: rep" "C:ee11 A:707 r" "C:ee11" +1224650-1301650 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xee11, Flags: repeat" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xee11, Flg: rep" "P: 10 A: 0x707 C: 0xee11 F: rep" "C:ee11 A:707 r" "C:ee11" +1333150-1410150 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xee11, Flags: repeat" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xee11, Flg: rep" "P: 10 A: 0x707 C: 0xee11 F: rep" "C:ee11 A:707 r" "C:ee11" +1441650-1518600 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xee11, Flags: repeat" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xee11, Flg: rep" "P: 10 A: 0x707 C: 0xee11 F: rep" "C:ee11 A:707 r" "C:ee11" +1550150-1627100 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xee11, Flags: repeat" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xee11, Flg: rep" "P: 10 A: 0x707 C: 0xee11 F: rep" "C:ee11 A:707 r" "C:ee11" diff --git a/decoder/test/ir_irmp/samsung32_remote-AA59-00638A_0003_multiple_buttons.output b/decoder/test/ir_irmp/samsung32_remote-AA59-00638A_0003_multiple_buttons.output new file mode 100644 index 00000000..13fdb87b --- /dev/null +++ b/decoder/test/ir_irmp/samsung32_remote-AA59-00638A_0003_multiple_buttons.output @@ -0,0 +1,23 @@ +3339250-3416250 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xee11, Flags: -" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xee11, Flg: -" "P: 10 A: 0x707 C: 0xee11 F: -" "C:ee11 A:707 -" "C:ee11" +3447800-3524750 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xee11, Flags: repeat" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xee11, Flg: rep" "P: 10 A: 0x707 C: 0xee11 F: rep" "C:ee11 A:707 r" "C:ee11" +4126350-4203400 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xfb04, Flags: -" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xfb04, Flg: -" "P: 10 A: 0x707 C: 0xfb04 F: -" "C:fb04 A:707 -" "C:fb04" +4705500-4782550 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xfa05, Flags: -" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xfa05, Flg: -" "P: 10 A: 0x707 C: 0xfa05 F: -" "C:fa05 A:707 -" "C:fa05" +4814000-4891050 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xfa05, Flags: repeat" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xfa05, Flg: rep" "P: 10 A: 0x707 C: 0xfa05 F: rep" "C:fa05 A:707 r" "C:fa05" +5283100-5360150 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xf906, Flags: -" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xf906, Flg: -" "P: 10 A: 0x707 C: 0xf906 F: -" "C:f906 A:707 -" "C:f906" +5963300-6040300 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xf708, Flags: -" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xf708, Flg: -" "P: 10 A: 0x707 C: 0xf708 F: -" "C:f708 A:707 -" "C:f708" +6071800-6148800 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xf708, Flags: repeat" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xf708, Flg: rep" "P: 10 A: 0x707 C: 0xf708 F: rep" "C:f708 A:707 r" "C:f708" +6479300-6556300 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xf609, Flags: -" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xf609, Flg: -" "P: 10 A: 0x707 C: 0xf609 F: -" "C:f609 A:707 -" "C:f609" +6960950-7037950 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xf50a, Flags: -" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xf50a, Flg: -" "P: 10 A: 0x707 C: 0xf50a F: -" "C:f50a A:707 -" "C:f50a" +7377850-7454850 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xf30c, Flags: -" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xf30c, Flg: -" "P: 10 A: 0x707 C: 0xf30c F: -" "C:f30c A:707 -" "C:f30c" +7486350-7563350 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xf30c, Flags: repeat" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xf30c, Flg: rep" "P: 10 A: 0x707 C: 0xf30c F: rep" "C:f30c A:707 r" "C:f30c" +7839100-7916100 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xf20d, Flags: -" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xf20d, Flg: -" "P: 10 A: 0x707 C: 0xf20d F: -" "C:f20d A:707 -" "C:f20d" +8335800-8412800 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xf10e, Flags: -" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xf10e, Flg: -" "P: 10 A: 0x707 C: 0xf10e F: -" "C:f10e A:707 -" "C:f10e" +9173150-9250150 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xf807, Flags: -" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xf807, Flg: -" "P: 10 A: 0x707 C: 0xf807 F: -" "C:f807 A:707 -" "C:f807" +9281650-9358650 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xf807, Flags: repeat" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xf807, Flg: rep" "P: 10 A: 0x707 C: 0xf807 F: rep" "C:f807 A:707 r" "C:f807" +9878250-9955300 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xf40b, Flags: -" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xf40b, Flg: -" "P: 10 A: 0x707 C: 0xf40b F: -" "C:f40b A:707 -" "C:f40b" +10709700-10786750 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xed12, Flags: -" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xed12, Flg: -" "P: 10 A: 0x707 C: 0xed12 F: -" "C:ed12 A:707 -" "C:ed12" +10818250-10895250 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xed12, Flags: repeat" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xed12, Flg: rep" "P: 10 A: 0x707 C: 0xed12 F: rep" "C:ed12 A:707 r" "C:ed12" +11177800-11254800 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xef10, Flags: -" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xef10, Flg: -" "P: 10 A: 0x707 C: 0xef10 F: -" "C:ef10 A:707 -" "C:ef10" +11286300-11363300 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0xef10, Flags: repeat" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0xef10, Flg: rep" "P: 10 A: 0x707 C: 0xef10 F: rep" "C:ef10 A:707 r" "C:ef10" +12498850-12575900 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0x9768, Flags: -" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0x9768, Flg: -" "P: 10 A: 0x707 C: 0x9768 F: -" "C:9768 A:707 -" "C:9768" +12607400-12684400 ir_irmp: packet: "Protocol: SAMSG32 (10), Address 0x0707, Command: 0x9768, Flags: repeat" "P: SAMSG32 (10), Addr: 0x707, Cmd: 0x9768, Flg: rep" "P: 10 A: 0x707 C: 0x9768 F: rep" "C:9768 A:707 r" "C:9768" diff --git a/decoder/test/ir_irmp/test.conf b/decoder/test/ir_irmp/test.conf index 67889ea9..76750fef 100644 --- a/decoder/test/ir_irmp/test.conf +++ b/decoder/test/ir_irmp/test.conf @@ -77,3 +77,18 @@ test other_nec_ru_m111_hold protocol-decoder ir_irmp channel ir=1 input ir/other/nec_ru-m111/ir_nec_ru-m111_button1_hold.sr output ir_irmp annotation match other_nec_rum111_hold.output + +test samsung32_remote-AA59-00638A_0001_button_power + protocol-decoder ir_irmp channel ir=1 + input ir/samsung/samsung32_remote-AA59-00638A_0001_button_power.sr + output ir_irmp annotation match samsung32_remote-AA59-00638A_0001_button_power.output + +test samsung32_remote-AA59-00638A_0002_button_0_repeat + protocol-decoder ir_irmp channel ir=0 + input ir/samsung/samsung32_remote-AA59-00638A_0002_button_0_repeat.sr + output ir_irmp annotation match samsung32_remote-AA59-00638A_0002_button_0_repeat.output + +test samsung32_remote-AA59-00638A_0003_multiple_buttons + protocol-decoder ir_irmp channel ir=0 + input ir/samsung/samsung32_remote-AA59-00638A_0003_multiple_buttons.sr + output ir_irmp annotation match samsung32_remote-AA59-00638A_0003_multiple_buttons.output