From: Gerhard Sittig Date: Mon, 20 Jul 2020 20:47:06 +0000 (+0200) Subject: sirc: introduce test for Sony IR (SIRC) X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=94c543e0d7e6fc6bc2eb46b753244c45fa07a3c1;p=sigrok-test.git sirc: introduce test for Sony IR (SIRC) --- diff --git a/decoder/test/ir_sirc/sirc_1.output b/decoder/test/ir_sirc/sirc_1.output new file mode 100644 index 0000000..2762512 --- /dev/null +++ b/decoder/test/ir_sirc/sirc_1.output @@ -0,0 +1,108 @@ +2695-2742 ir_sirc: agc: "AGC" "A" +2742-2754 ir_sirc: pause: "Pause" "P" +2695-2754 ir_sirc: start: "Start" "S" +2754-2778 ir_sirc: bit: "0" +2778-2802 ir_sirc: bit: "0" +2802-2838 ir_sirc: bit: "1" +2838-2874 ir_sirc: bit: "1" +2874-2898 ir_sirc: bit: "0" +2898-2933 ir_sirc: bit: "1" +2933-2957 ir_sirc: bit: "0" +2957-2981 ir_sirc: bit: "0" +2981-3005 ir_sirc: bit: "0" +3005-3029 ir_sirc: bit: "0" +3029-3053 ir_sirc: bit: "0" +3053-3088 ir_sirc: bit: "1" +3088-3112 ir_sirc: bit: "0" +3112-3136 ir_sirc: bit: "0" +3136-3160 ir_sirc: bit: "0" +3160-3196 ir_sirc: bit: "1" +3196-3219 ir_sirc: bit: "0" +3219-3243 ir_sirc: bit: "0" +3243-3267 ir_sirc: bit: "0" +3267-3291 ir_sirc: bit: "0" +2754-2957 ir_sirc: command: "Command: 0x2C" "C:0x2C" +2957-3088 ir_sirc: address: "Address: 0x10" "A:0x10" +3088-3291 ir_sirc: extended: "Extended: 0x08" "E:0x08" +2695-3291 ir_sirc: remote: "Playback: Repeat" "PB:Repeat" +3591-3638 ir_sirc: agc: "AGC" "A" +3638-3650 ir_sirc: pause: "Pause" "P" +3591-3650 ir_sirc: start: "Start" "S" +3650-3674 ir_sirc: bit: "0" +3674-3698 ir_sirc: bit: "0" +3698-3733 ir_sirc: bit: "1" +3733-3769 ir_sirc: bit: "1" +3769-3793 ir_sirc: bit: "0" +3793-3829 ir_sirc: bit: "1" +3829-3853 ir_sirc: bit: "0" +3853-3877 ir_sirc: bit: "0" +3877-3900 ir_sirc: bit: "0" +3900-3924 ir_sirc: bit: "0" +3924-3948 ir_sirc: bit: "0" +3948-3984 ir_sirc: bit: "1" +3984-4008 ir_sirc: bit: "0" +4008-4032 ir_sirc: bit: "0" +4032-4055 ir_sirc: bit: "0" +4055-4091 ir_sirc: bit: "1" +4091-4115 ir_sirc: bit: "0" +4115-4139 ir_sirc: bit: "0" +4139-4163 ir_sirc: bit: "0" +4163-4186 ir_sirc: bit: "0" +3650-3853 ir_sirc: command: "Command: 0x2C" "C:0x2C" +3853-3984 ir_sirc: address: "Address: 0x10" "A:0x10" +3984-4186 ir_sirc: extended: "Extended: 0x08" "E:0x08" +3591-4186 ir_sirc: remote: "Playback: Repeat" "PB:Repeat" +4486-4533 ir_sirc: agc: "AGC" "A" +4533-4545 ir_sirc: pause: "Pause" "P" +4486-4545 ir_sirc: start: "Start" "S" +4545-4569 ir_sirc: bit: "0" +4569-4593 ir_sirc: bit: "0" +4593-4629 ir_sirc: bit: "1" +4629-4665 ir_sirc: bit: "1" +4665-4688 ir_sirc: bit: "0" +4688-4724 ir_sirc: bit: "1" +4724-4748 ir_sirc: bit: "0" +4748-4772 ir_sirc: bit: "0" +4772-4796 ir_sirc: bit: "0" +4796-4820 ir_sirc: bit: "0" +4820-4843 ir_sirc: bit: "0" +4843-4879 ir_sirc: bit: "1" +4879-4903 ir_sirc: bit: "0" +4903-4927 ir_sirc: bit: "0" +4927-4951 ir_sirc: bit: "0" +4951-4986 ir_sirc: bit: "1" +4986-5010 ir_sirc: bit: "0" +5010-5034 ir_sirc: bit: "0" +5034-5058 ir_sirc: bit: "0" +5058-5082 ir_sirc: bit: "0" +4545-4748 ir_sirc: command: "Command: 0x2C" "C:0x2C" +4748-4879 ir_sirc: address: "Address: 0x10" "A:0x10" +4879-5082 ir_sirc: extended: "Extended: 0x08" "E:0x08" +4486-5082 ir_sirc: remote: "Playback: Repeat" "PB:Repeat" +5381-5429 ir_sirc: agc: "AGC" "A" +5429-5441 ir_sirc: pause: "Pause" "P" +5381-5441 ir_sirc: start: "Start" "S" +5441-5465 ir_sirc: bit: "0" +5465-5489 ir_sirc: bit: "0" +5489-5524 ir_sirc: bit: "1" +5524-5560 ir_sirc: bit: "1" +5560-5584 ir_sirc: bit: "0" +5584-5620 ir_sirc: bit: "1" +5620-5644 ir_sirc: bit: "0" +5644-5667 ir_sirc: bit: "0" +5667-5691 ir_sirc: bit: "0" +5691-5716 ir_sirc: bit: "0" +5716-5739 ir_sirc: bit: "0" +5739-5775 ir_sirc: bit: "1" +5775-5799 ir_sirc: bit: "0" +5799-5822 ir_sirc: bit: "0" +5822-5847 ir_sirc: bit: "0" +5847-5882 ir_sirc: bit: "1" +5882-5906 ir_sirc: bit: "0" +5906-5930 ir_sirc: bit: "0" +5930-5954 ir_sirc: bit: "0" +5954-5977 ir_sirc: bit: "0" +5441-5644 ir_sirc: command: "Command: 0x2C" "C:0x2C" +5644-5775 ir_sirc: address: "Address: 0x10" "A:0x10" +5775-5977 ir_sirc: extended: "Extended: 0x08" "E:0x08" +5381-5977 ir_sirc: remote: "Playback: Repeat" "PB:Repeat" diff --git a/decoder/test/ir_sirc/sirc_2.output b/decoder/test/ir_sirc/sirc_2.output new file mode 100644 index 0000000..e123967 --- /dev/null +++ b/decoder/test/ir_sirc/sirc_2.output @@ -0,0 +1,62 @@ +0-1188 ir_sirc: agc: "AGC" "A" +1188-1503 ir_sirc: pause: "Pause" "P" +0-1503 ir_sirc: start: "Start" "S" +1503-2398 ir_sirc: bit: "1" +2398-2994 ir_sirc: bit: "0" +2994-3590 ir_sirc: bit: "0" +3590-4187 ir_sirc: bit: "0" +4187-4783 ir_sirc: bit: "0" +4783-5379 ir_sirc: bit: "0" +5379-5975 ir_sirc: bit: "0" +5975-6571 ir_sirc: bit: "0" +6571-7466 ir_sirc: bit: "1" +7466-8062 ir_sirc: bit: "0" +8062-8956 ir_sirc: bit: "1" +8956-9850 ir_sirc: bit: "1" +9850-10447 ir_sirc: bit: "0" +10447-11341 ir_sirc: bit: "1" +11341-11937 ir_sirc: bit: "0" +11937-12533 ir_sirc: bit: "0" +12533-13130 ir_sirc: bit: "0" +13130-14024 ir_sirc: bit: "1" +14024-14918 ir_sirc: bit: "1" +14918-15797 ir_sirc: bit: "1" +1503-5975 ir_sirc: command: "Command: 0x01" "C:0x01" +5975-9850 ir_sirc: address: "Address: 0x1A" "A:0x1A" +9850-15797 ir_sirc: extended: "Extended: 0xE2" "E:0xE2" +0-15797 ir_sirc: remote: "BlueRay: 2" "BD:2" +22386-23573 ir_sirc: agc: "AGC" "A" +23573-23889 ir_sirc: pause: "Pause" "P" +22386-23889 ir_sirc: start: "Start" "S" +23889-24783 ir_sirc: bit: "1" +24783-25379 ir_sirc: bit: "0" +25379-25975 ir_sirc: bit: "0" +25975-26571 ir_sirc: bit: "0" +26571-27167 ir_sirc: bit: "0" +27167-27764 ir_sirc: bit: "0" +27764-28360 ir_sirc: bit: "0" +28360-28956 ir_sirc: bit: "0" +28956-29850 ir_sirc: bit: "1" +29850-30447 ir_sirc: bit: "0" +30447-31341 ir_sirc: bit: "1" +31341-32235 ir_sirc: bit: "1" +32235-32832 ir_sirc: bit: "0" +32832-33726 ir_sirc: bit: "1" +33726-34322 ir_sirc: bit: "0" +34322-34918 ir_sirc: bit: "0" +34918-35514 ir_sirc: bit: "0" +35514-36408 ir_sirc: bit: "1" +36408-37303 ir_sirc: bit: "1" +37303-38182 ir_sirc: bit: "1" +23889-28360 ir_sirc: command: "Command: 0x01" "C:0x01" +28360-32235 ir_sirc: address: "Address: 0x1A" "A:0x1A" +32235-38182 ir_sirc: extended: "Extended: 0xE2" "E:0xE2" +22386-38182 ir_sirc: remote: "BlueRay: 2" "BD:2" +44771-45958 ir_sirc: agc: "AGC" "A" +45958-46274 ir_sirc: pause: "Pause" "P" +44771-46274 ir_sirc: start: "Start" "S" +46274-47168 ir_sirc: bit: "1" +47168-47764 ir_sirc: bit: "0" +47764-48361 ir_sirc: bit: "0" +48361-48957 ir_sirc: bit: "0" +48957-49553 ir_sirc: bit: "0" diff --git a/decoder/test/ir_sirc/test.conf b/decoder/test/ir_sirc/test.conf new file mode 100644 index 0000000..50bcf32 --- /dev/null +++ b/decoder/test/ir_sirc/test.conf @@ -0,0 +1,14 @@ +test exception_samplerate + protocol-decoder ir_sirc + input misc/no-samplerate.sr + output ir_sirc exception match SamplerateError + +test sirc_1 + protocol-decoder ir_sirc channel ir=0 + input ir/sirc/sirc-1.sr + output ir_sirc annotation match sirc_1.output + +test sirc_2 + protocol-decoder ir_sirc channel ir=0 + input ir/sirc/sirc-2.sr + output ir_sirc annotation match sirc_2.output