From 62ad1379eb2c2c0b9e860a9df95dd31bd2539767 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 21 Jul 2015 22:10:14 +0200 Subject: [PATCH] ir_nec: Add a test-case. --- decoder/test/ir_nec/test.conf | 5 ++ .../tv_matsui_0001_button_av_hold.output | 65 +++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 decoder/test/ir_nec/tv_matsui_0001_button_av_hold.output diff --git a/decoder/test/ir_nec/test.conf b/decoder/test/ir_nec/test.conf index 3fd508f..7ad3d19 100644 --- a/decoder/test/ir_nec/test.conf +++ b/decoder/test/ir_nec/test.conf @@ -2,3 +2,8 @@ test exception_samplerate protocol-decoder ir_nec input misc/no-samplerate.sr output ir_nec exception match SamplerateError + +test tv_matsui_0001_button_av_hold + protocol-decoder ir_nec channel ir=6 + input ir/nec/hama_8in1/tv_matsui_0001/tv_matsui_0001_button_av_hold.sr + output ir_nec annotation match tv_matsui_0001_button_av_hold.output diff --git a/decoder/test/ir_nec/tv_matsui_0001_button_av_hold.output b/decoder/test/ir_nec/tv_matsui_0001_button_av_hold.output new file mode 100644 index 0000000..4d3af51 --- /dev/null +++ b/decoder/test/ir_nec/tv_matsui_0001_button_av_hold.output @@ -0,0 +1,65 @@ +678104-695942 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +695942-704971 ir_nec: longpause: "Long pause" "L-pause" "LP" "P" +678104-704971 ir_nec: leader-code: "Leader code" "Leader" "LC" "L" +704971-707204 ir_nec: bit: "0" +707204-709439 ir_nec: bit: "0" +709439-711674 ir_nec: bit: "0" +711674-713910 ir_nec: bit: "0" +713910-716145 ir_nec: bit: "0" +716145-718381 ir_nec: bit: "0" +718381-722845 ir_nec: bit: "1" +722845-725080 ir_nec: bit: "0" +704971-725080 ir_nec: addr: "Address: 0x40" "ADDR: 0x40" "A: 0x40" "A" +725080-729545 ir_nec: bit: "1" +729545-734009 ir_nec: bit: "1" +734009-738473 ir_nec: bit: "1" +738473-742936 ir_nec: bit: "1" +742936-747371 ir_nec: bit: "1" +747371-751860 ir_nec: bit: "1" +751860-754100 ir_nec: bit: "0" +754100-758564 ir_nec: bit: "1" +725080-758564 ir_nec: addr-inv: "Address#: 0xBF" "ADDR#: 0xBF" "A#: 0xBF" "A#" +758564-760799 ir_nec: bit: "0" +760799-763035 ir_nec: bit: "0" +763035-767499 ir_nec: bit: "1" +767499-769734 ir_nec: bit: "0" +769734-771969 ir_nec: bit: "0" +771969-774204 ir_nec: bit: "0" +774204-778668 ir_nec: bit: "1" +778668-780903 ir_nec: bit: "0" +758564-780903 ir_nec: cmd: "Command: 0x44" "CMD: 0x44" "C: 0x44" "C" +780903-785369 ir_nec: bit: "1" +785369-789802 ir_nec: bit: "1" +789802-792067 ir_nec: bit: "0" +792067-796532 ir_nec: bit: "1" +796532-800996 ir_nec: bit: "1" +800996-805460 ir_nec: bit: "1" +805460-807695 ir_nec: bit: "0" +807695-812160 ir_nec: bit: "1" +780903-812160 ir_nec: cmd-inv: "Command#: 0xBB" "CMD#: 0xBB" "C#: 0xBB" "C#" +812160-813463 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +678104-813463 ir_nec: remote: "Matsui TV: AV" "Matsui TV: AV" "AV" +893086-910892 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +910892-915465 ir_nec: shortpause: "Short pause" "S-pause" "SP" "P" +915465-916768 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +893086-916768 ir_nec: repeat-code: "Repeat code" "Repeat" "RC" "R" +1107850-1125656 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +1125656-1130229 ir_nec: shortpause: "Short pause" "S-pause" "SP" "P" +1130229-1131532 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +1107850-1131532 ir_nec: repeat-code: "Repeat code" "Repeat" "RC" "R" +1322609-1340414 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +1340414-1344988 ir_nec: shortpause: "Short pause" "S-pause" "SP" "P" +1344988-1346291 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +1322609-1346291 ir_nec: repeat-code: "Repeat code" "Repeat" "RC" "R" +1537367-1555174 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +1555174-1559747 ir_nec: shortpause: "Short pause" "S-pause" "SP" "P" +1559747-1561050 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +1537367-1561050 ir_nec: repeat-code: "Repeat code" "Repeat" "RC" "R" +1752126-1769931 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +1769931-1774505 ir_nec: shortpause: "Short pause" "S-pause" "SP" "P" +1774505-1775808 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +1752126-1775808 ir_nec: repeat-code: "Repeat code" "Repeat" "RC" "R" +1966884-1984691 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +1984691-1989263 ir_nec: shortpause: "Short pause" "S-pause" "SP" "P" +1989263-1990566 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +1966884-1990566 ir_nec: repeat-code: "Repeat code" "Repeat" "RC" "R" -- 2.30.2