]> sigrok.org Git - sigrok-test.git/commitdiff
ir_nec: add test for the optional carrier detect feature
authorGerhard Sittig <redacted>
Sat, 10 Feb 2018 15:50:07 +0000 (16:50 +0100)
committerUwe Hermann <redacted>
Thu, 15 Feb 2018 18:16:37 +0000 (19:16 +0100)
The IR-NEC decoder optionally can handle input streams that still have
the carrier signal. Add a test for this configuration, derived from the
test which uses the signal that had the carrier removed in hardware.

The same data is seen, just at different sample numbers. The content was
verified by means of the "cut -d ' ' -f 2-" and "diff" commands.

decoder/test/ir_nec/test.conf
decoder/test/ir_nec/tv_matsui_0001_button_av_hold_carrier.output [new file with mode: 0644]

index 7ad3d19b1fa10f0ca3cf34cf44eda1e0ec98fa7b..6bf06a020b662067489221e373e53da04a7741fe 100644 (file)
@@ -7,3 +7,8 @@ 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
+
+test tv_matsui_0001_button_av_hold_carrier
+       protocol-decoder ir_nec channel ir=7 option cd_freq=38000
+       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_carrier.output
diff --git a/decoder/test/ir_nec/tv_matsui_0001_button_av_hold_carrier.output b/decoder/test/ir_nec/tv_matsui_0001_button_av_hold_carrier.output
new file mode 100644 (file)
index 0000000..40c22d1
--- /dev/null
@@ -0,0 +1,65 @@
+677793-695656 ir_nec: agc-pulse: "AGC pulse" "AGC" "A"
+695656-704630 ir_nec: longpause: "Long pause" "L-pause" "LP" "P"
+677793-704630 ir_nec: leader-code: "Leader code" "Leader" "LC" "L"
+704630-706863 ir_nec: bit: "0"
+706863-709098 ir_nec: bit: "0"
+709098-711333 ir_nec: bit: "0"
+711333-713568 ir_nec: bit: "0"
+713568-715803 ir_nec: bit: "0"
+715803-718039 ir_nec: bit: "0"
+718039-722504 ir_nec: bit: "1"
+722504-724738 ir_nec: bit: "0"
+704630-724738 ir_nec: addr: "Address: 0x40" "ADDR: 0x40" "A: 0x40" "A"
+724738-729204 ir_nec: bit: "1"
+729204-733667 ir_nec: bit: "1"
+733667-738132 ir_nec: bit: "1"
+738132-742596 ir_nec: bit: "1"
+742596-747061 ir_nec: bit: "1"
+747061-751524 ir_nec: bit: "1"
+751524-753758 ir_nec: bit: "0"
+753758-758223 ir_nec: bit: "1"
+724738-758223 ir_nec: addr-inv: "Address#: 0xBF" "ADDR#: 0xBF" "A#: 0xBF" "A#"
+758223-760457 ir_nec: bit: "0"
+760457-762693 ir_nec: bit: "0"
+762693-767158 ir_nec: bit: "1"
+767158-769392 ir_nec: bit: "0"
+769392-771627 ir_nec: bit: "0"
+771627-773863 ir_nec: bit: "0"
+773863-778327 ir_nec: bit: "1"
+778327-780561 ir_nec: bit: "0"
+758223-780561 ir_nec: cmd: "Command: 0x44" "CMD: 0x44" "C: 0x44" "C"
+780561-785027 ir_nec: bit: "1"
+785027-789491 ir_nec: bit: "1"
+789491-791726 ir_nec: bit: "0"
+791726-796190 ir_nec: bit: "1"
+796190-800655 ir_nec: bit: "1"
+800655-805118 ir_nec: bit: "1"
+805118-807353 ir_nec: bit: "0"
+807353-811818 ir_nec: bit: "1"
+780561-811818 ir_nec: cmd-inv: "Command#: 0xBB" "CMD#: 0xBB" "C#: 0xBB" "C#"
+811818-813121 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S"
+677793-813121 ir_nec: remote: "Matsui TV: AV" "Matsui TV: AV" "AV"
+892744-910606 ir_nec: agc-pulse: "AGC pulse" "AGC" "A"
+910606-915123 ir_nec: shortpause: "Short pause" "S-pause" "SP" "P"
+915123-916426 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S"
+892744-916426 ir_nec: repeat-code: "Repeat code" "Repeat" "RC" "R"
+1107508-1125371 ir_nec: agc-pulse: "AGC pulse" "AGC" "A"
+1125371-1129887 ir_nec: shortpause: "Short pause" "S-pause" "SP" "P"
+1129887-1131190 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S"
+1107508-1131190 ir_nec: repeat-code: "Repeat code" "Repeat" "RC" "R"
+1322267-1340129 ir_nec: agc-pulse: "AGC pulse" "AGC" "A"
+1340129-1344646 ir_nec: shortpause: "Short pause" "S-pause" "SP" "P"
+1344646-1345949 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S"
+1322267-1345949 ir_nec: repeat-code: "Repeat code" "Repeat" "RC" "R"
+1537026-1554888 ir_nec: agc-pulse: "AGC pulse" "AGC" "A"
+1554888-1559404 ir_nec: shortpause: "Short pause" "S-pause" "SP" "P"
+1559404-1560707 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S"
+1537026-1560707 ir_nec: repeat-code: "Repeat code" "Repeat" "RC" "R"
+1751784-1769646 ir_nec: agc-pulse: "AGC pulse" "AGC" "A"
+1769646-1774163 ir_nec: shortpause: "Short pause" "S-pause" "SP" "P"
+1774163-1775466 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S"
+1751784-1775466 ir_nec: repeat-code: "Repeat code" "Repeat" "RC" "R"
+1966543-1984405 ir_nec: agc-pulse: "AGC pulse" "AGC" "A"
+1984405-1988922 ir_nec: shortpause: "Short pause" "S-pause" "SP" "P"
+1988922-1990225 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S"
+1966543-1990225 ir_nec: repeat-code: "Repeat code" "Repeat" "RC" "R"