From 97b2e74f29fa79c15ece5844fd99aa2dd0f6d0b0 Mon Sep 17 00:00:00 2001 From: Gerhard Sittig Date: Sat, 25 Dec 2021 20:02:00 +0100 Subject: ir_irmp: introduce IRMP test cases, cover NEC/RC5/RC6/SIRC and others The upstream IRMP project's decoder core is only slowly moving, we can consider the IRMP decoder integration to be stable and don't expect the output to change violently any longer. The issue of requiring a single core instance remains and affects the GUI, but not the single threaded test suite. This set of test cases re-uses the NEC, RC5, RC6, and SIRC dumps which are covered by individual decoders, too. Ideally detection results would be identical, but in practise the annotation positions and the level of details will differ between implementations due to their internal operation and design choices. The IRMP test set also covers dumps which are not covered by other IR decoders. It's interesting to see how not all key repetitions are caught and how single press might be missed as well. It's valuable to remain aware during maintenance, and see how occassional failure changes. This is why an empty output for a non-empty dump is kept here, too. --- .../ir_irmp/rc6_philips_rc2143604_numbers.output | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 decoder/test/ir_irmp/rc6_philips_rc2143604_numbers.output (limited to 'decoder/test/ir_irmp/rc6_philips_rc2143604_numbers.output') diff --git a/decoder/test/ir_irmp/rc6_philips_rc2143604_numbers.output b/decoder/test/ir_irmp/rc6_philips_rc2143604_numbers.output new file mode 100644 index 0000000..43c772f --- /dev/null +++ b/decoder/test/ir_irmp/rc6_philips_rc2143604_numbers.output @@ -0,0 +1,23 @@ +50000-74450 ir_irmp: packet: "Protocol: RC6 (9), Address 0x0000, Command: 0x000c, Flags: -" "P: RC6 (9), Addr: 0x0, Cmd: 0xc, Flg: -" "P: 9 A: 0x0 C: 0xc F: -" "C:c A:0 -" "C:c" +156000-180450 ir_irmp: packet: "Protocol: RC6 (9), Address 0x0000, Command: 0x000c, Flags: repeat" "P: RC6 (9), Addr: 0x0, Cmd: 0xc, Flg: rep" "P: 9 A: 0x0 C: 0xc F: rep" "C:c A:0 r" "C:c" +262000-286450 ir_irmp: packet: "Protocol: RC6 (9), Address 0x0000, Command: 0x000c, Flags: repeat" "P: RC6 (9), Addr: 0x0, Cmd: 0xc, Flg: rep" "P: 9 A: 0x0 C: 0xc F: rep" "C:c A:0 r" "C:c" +495250-519250 ir_irmp: packet: "Protocol: RC6 (9), Address 0x0000, Command: 0x0001, Flags: -" "P: RC6 (9), Addr: 0x0, Cmd: 0x1, Flg: -" "P: 9 A: 0x0 C: 0x1 F: -" "C:1 A:0 -" "C:1" +601250-625250 ir_irmp: packet: "Protocol: RC6 (9), Address 0x0000, Command: 0x0001, Flags: repeat" "P: RC6 (9), Addr: 0x0, Cmd: 0x1, Flg: rep" "P: 9 A: 0x0 C: 0x1 F: rep" "C:1 A:0 r" "C:1" +866900-891350 ir_irmp: packet: "Protocol: RC6 (9), Address 0x0000, Command: 0x0002, Flags: -" "P: RC6 (9), Addr: 0x0, Cmd: 0x2, Flg: -" "P: 9 A: 0x0 C: 0x2 F: -" "C:2 A:0 -" "C:2" +972900-997350 ir_irmp: packet: "Protocol: RC6 (9), Address 0x0000, Command: 0x0002, Flags: repeat" "P: RC6 (9), Addr: 0x0, Cmd: 0x2, Flg: rep" "P: 9 A: 0x0 C: 0x2 F: rep" "C:2 A:0 r" "C:2" +1227650-1251650 ir_irmp: packet: "Protocol: RC6 (9), Address 0x0000, Command: 0x0003, Flags: -" "P: RC6 (9), Addr: 0x0, Cmd: 0x3, Flg: -" "P: 9 A: 0x0 C: 0x3 F: -" "C:3 A:0 -" "C:3" +1333650-1357650 ir_irmp: packet: "Protocol: RC6 (9), Address 0x0000, Command: 0x0003, Flags: repeat" "P: RC6 (9), Addr: 0x0, Cmd: 0x3, Flg: rep" "P: 9 A: 0x0 C: 0x3 F: rep" "C:3 A:0 r" "C:3" +1613500-1637950 ir_irmp: packet: "Protocol: RC6 (9), Address 0x0000, Command: 0x0004, Flags: -" "P: RC6 (9), Addr: 0x0, Cmd: 0x4, Flg: -" "P: 9 A: 0x0 C: 0x4 F: -" "C:4 A:0 -" "C:4" +1719500-1743950 ir_irmp: packet: "Protocol: RC6 (9), Address 0x0000, Command: 0x0004, Flags: repeat" "P: RC6 (9), Addr: 0x0, Cmd: 0x4, Flg: rep" "P: 9 A: 0x0 C: 0x4 F: rep" "C:4 A:0 r" "C:4" +2013100-2037100 ir_irmp: packet: "Protocol: RC6 (9), Address 0x0000, Command: 0x0005, Flags: -" "P: RC6 (9), Addr: 0x0, Cmd: 0x5, Flg: -" "P: 9 A: 0x0 C: 0x5 F: -" "C:5 A:0 -" "C:5" +2119100-2143100 ir_irmp: packet: "Protocol: RC6 (9), Address 0x0000, Command: 0x0005, Flags: repeat" "P: RC6 (9), Addr: 0x0, Cmd: 0x5, Flg: rep" "P: 9 A: 0x0 C: 0x5 F: rep" "C:5 A:0 r" "C:5" +2411900-2436350 ir_irmp: packet: "Protocol: RC6 (9), Address 0x0000, Command: 0x0006, Flags: -" "P: RC6 (9), Addr: 0x0, Cmd: 0x6, Flg: -" "P: 9 A: 0x0 C: 0x6 F: -" "C:6 A:0 -" "C:6" +2517900-2542350 ir_irmp: packet: "Protocol: RC6 (9), Address 0x0000, Command: 0x0006, Flags: repeat" "P: RC6 (9), Addr: 0x0, Cmd: 0x6, Flg: rep" "P: 9 A: 0x0 C: 0x6 F: rep" "C:6 A:0 r" "C:6" +2802950-2826950 ir_irmp: packet: "Protocol: RC6 (9), Address 0x0000, Command: 0x0007, Flags: -" "P: RC6 (9), Addr: 0x0, Cmd: 0x7, Flg: -" "P: 9 A: 0x0 C: 0x7 F: -" "C:7 A:0 -" "C:7" +2908950-2932950 ir_irmp: packet: "Protocol: RC6 (9), Address 0x0000, Command: 0x0007, Flags: repeat" "P: RC6 (9), Addr: 0x0, Cmd: 0x7, Flg: rep" "P: 9 A: 0x0 C: 0x7 F: rep" "C:7 A:0 r" "C:7" +3147050-3171500 ir_irmp: packet: "Protocol: RC6 (9), Address 0x0000, Command: 0x0008, Flags: -" "P: RC6 (9), Addr: 0x0, Cmd: 0x8, Flg: -" "P: 9 A: 0x0 C: 0x8 F: -" "C:8 A:0 -" "C:8" +3253050-3277500 ir_irmp: packet: "Protocol: RC6 (9), Address 0x0000, Command: 0x0008, Flags: repeat" "P: RC6 (9), Addr: 0x0, Cmd: 0x8, Flg: rep" "P: 9 A: 0x0 C: 0x8 F: rep" "C:8 A:0 r" "C:8" +3442650-3466650 ir_irmp: packet: "Protocol: RC6 (9), Address 0x0000, Command: 0x0009, Flags: -" "P: RC6 (9), Addr: 0x0, Cmd: 0x9, Flg: -" "P: 9 A: 0x0 C: 0x9 F: -" "C:9 A:0 -" "C:9" +3548650-3572650 ir_irmp: packet: "Protocol: RC6 (9), Address 0x0000, Command: 0x0009, Flags: repeat" "P: RC6 (9), Addr: 0x0, Cmd: 0x9, Flg: rep" "P: 9 A: 0x0 C: 0x9 F: rep" "C:9 A:0 r" "C:9" +3777750-3802200 ir_irmp: packet: "Protocol: RC6 (9), Address 0x0000, Command: 0x0000, Flags: -" "P: RC6 (9), Addr: 0x0, Cmd: 0x0, Flg: -" "P: 9 A: 0x0 C: 0x0 F: -" "C:0 A:0 -" "C:0" +3883750-3908200 ir_irmp: packet: "Protocol: RC6 (9), Address 0x0000, Command: 0x0000, Flags: repeat" "P: RC6 (9), Addr: 0x0, Cmd: 0x0, Flg: rep" "P: 9 A: 0x0 C: 0x0 F: rep" "C:0 A:0 r" "C:0" -- cgit v1.2.3-54-g00ecf