From: Gerhard Sittig Date: Sun, 26 Jul 2020 06:53:16 +0000 (+0200) Subject: ir_nec: add tests for extended NEC protocol (failed and passed) X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=18260bc70d6bb521e362fc8d3f9e85751b682d43;p=sigrok-test.git ir_nec: add tests for extended NEC protocol (failed and passed) A capture with extended NEC protocol data became available. Add tests for failed interpretation with the standard approach, and successful interpretation when the extended protocol gets selected. --- diff --git a/decoder/test/ir_nec/extended_capture_extended_choice.output b/decoder/test/ir_nec/extended_capture_extended_choice.output new file mode 100644 index 0000000..71ec528 --- /dev/null +++ b/decoder/test/ir_nec/extended_capture_extended_choice.output @@ -0,0 +1,296 @@ +48812-49706 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +49706-50158 ir_nec: longpause: "Long pause" "L-pause" "LP" "P" +48812-50158 ir_nec: leader-code: "Leader code" "Leader" "LC" "L" +50158-50384 ir_nec: bit: "1" +50384-50494 ir_nec: bit: "0" +50494-50604 ir_nec: bit: "0" +50604-50712 ir_nec: bit: "0" +50712-50826 ir_nec: bit: "0" +50826-50936 ir_nec: bit: "0" +50936-51158 ir_nec: bit: "1" +51158-51270 ir_nec: bit: "0" +51270-51380 ir_nec: bit: "0" +51380-51604 ir_nec: bit: "1" +51604-51714 ir_nec: bit: "0" +51714-51936 ir_nec: bit: "1" +51936-52048 ir_nec: bit: "0" +52048-52270 ir_nec: bit: "1" +52270-52494 ir_nec: bit: "1" +52494-52718 ir_nec: bit: "1" +50158-52718 ir_nec: addr: "Address: 0xEA41" "ADDR: 0xEA41" "A: 0xEA41" "A" +52718-52828 ir_nec: bit: "0" +52828-52938 ir_nec: bit: "0" +52938-53048 ir_nec: bit: "0" +53048-53272 ir_nec: bit: "1" +53272-53382 ir_nec: bit: "0" +53382-53494 ir_nec: bit: "0" +53494-53716 ir_nec: bit: "1" +53716-53826 ir_nec: bit: "0" +52718-53826 ir_nec: cmd: "Command: 0x48" "CMD: 0x48" "C: 0x48" "C" +53826-54050 ir_nec: bit: "1" +54050-54274 ir_nec: bit: "1" +54274-54498 ir_nec: bit: "1" +54498-54608 ir_nec: bit: "0" +54608-54830 ir_nec: bit: "1" +54830-55054 ir_nec: bit: "1" +55054-55164 ir_nec: bit: "0" +55164-55388 ir_nec: bit: "1" +53826-55388 ir_nec: cmd-inv: "Command#: 0xB7" "CMD#: 0xB7" "C#: 0xB7" "C#" +55388-55452 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +48812-55452 ir_nec: remote: "Unknown LED Panel: Max Brightness" "Unknown LED Panel: Max" "Max" +59588-60482 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +60482-60702 ir_nec: shortpause: "Short pause" "S-pause" "SP" "P" +60702-60766 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +59588-60766 ir_nec: repeat-code: "Repeat code" "Repeat" "RC" "R" +126660-127556 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +127556-128006 ir_nec: longpause: "Long pause" "L-pause" "LP" "P" +126660-128006 ir_nec: leader-code: "Leader code" "Leader" "LC" "L" +128006-128232 ir_nec: bit: "1" +128232-128340 ir_nec: bit: "0" +128340-128450 ir_nec: bit: "0" +128450-128560 ir_nec: bit: "0" +128560-128672 ir_nec: bit: "0" +128672-128782 ir_nec: bit: "0" +128782-129008 ir_nec: bit: "1" +129008-129116 ir_nec: bit: "0" +129116-129226 ir_nec: bit: "0" +129226-129452 ir_nec: bit: "1" +129452-129560 ir_nec: bit: "0" +129560-129786 ir_nec: bit: "1" +129786-129894 ir_nec: bit: "0" +129894-130120 ir_nec: bit: "1" +130120-130342 ir_nec: bit: "1" +130342-130566 ir_nec: bit: "1" +128006-130566 ir_nec: addr: "Address: 0xEA41" "ADDR: 0xEA41" "A: 0xEA41" "A" +130566-130790 ir_nec: bit: "1" +130790-130900 ir_nec: bit: "0" +130900-131008 ir_nec: bit: "0" +131008-131118 ir_nec: bit: "0" +131118-131344 ir_nec: bit: "1" +131344-131452 ir_nec: bit: "0" +131452-131566 ir_nec: bit: "0" +131566-131674 ir_nec: bit: "0" +130566-131674 ir_nec: cmd: "Command: 0x11" "CMD: 0x11" "C: 0x11" "C" +131674-131784 ir_nec: bit: "0" +131784-132010 ir_nec: bit: "1" +132010-132232 ir_nec: bit: "1" +132232-132456 ir_nec: bit: "1" +132456-132564 ir_nec: bit: "0" +132564-132790 ir_nec: bit: "1" +132790-133014 ir_nec: bit: "1" +133014-133238 ir_nec: bit: "1" +131674-133238 ir_nec: cmd-inv: "Command#: 0xEE" "CMD#: 0xEE" "C#: 0xEE" "C#" +133238-133302 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +126660-133302 ir_nec: remote: "Unknown LED Panel: Colder" "Unknown LED Panel: T-" "T-" +144762-145656 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +145656-146108 ir_nec: longpause: "Long pause" "L-pause" "LP" "P" +144762-146108 ir_nec: leader-code: "Leader code" "Leader" "LC" "L" +146108-146334 ir_nec: bit: "1" +146334-146444 ir_nec: bit: "0" +146444-146554 ir_nec: bit: "0" +146554-146662 ir_nec: bit: "0" +146662-146776 ir_nec: bit: "0" +146776-146884 ir_nec: bit: "0" +146884-147110 ir_nec: bit: "1" +147110-147220 ir_nec: bit: "0" +147220-147330 ir_nec: bit: "0" +147330-147554 ir_nec: bit: "1" +147554-147662 ir_nec: bit: "0" +147662-147888 ir_nec: bit: "1" +147888-147996 ir_nec: bit: "0" +147996-148222 ir_nec: bit: "1" +148222-148444 ir_nec: bit: "1" +148444-148668 ir_nec: bit: "1" +146108-148668 ir_nec: addr: "Address: 0xEA41" "ADDR: 0xEA41" "A: 0xEA41" "A" +148668-148892 ir_nec: bit: "1" +148892-149000 ir_nec: bit: "0" +149000-149110 ir_nec: bit: "0" +149110-149220 ir_nec: bit: "0" +149220-149446 ir_nec: bit: "1" +149446-149556 ir_nec: bit: "0" +149556-149664 ir_nec: bit: "0" +149664-149774 ir_nec: bit: "0" +148668-149774 ir_nec: cmd: "Command: 0x11" "CMD: 0x11" "C: 0x11" "C" +149774-149888 ir_nec: bit: "0" +149888-150112 ir_nec: bit: "1" +150112-150334 ir_nec: bit: "1" +150334-150558 ir_nec: bit: "1" +150558-150668 ir_nec: bit: "0" +150668-150892 ir_nec: bit: "1" +150892-151116 ir_nec: bit: "1" +151116-151338 ir_nec: bit: "1" +149774-151338 ir_nec: cmd-inv: "Command#: 0xEE" "CMD#: 0xEE" "C#: 0xEE" "C#" +151338-151402 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +144762-151402 ir_nec: remote: "Unknown LED Panel: Colder" "Unknown LED Panel: T-" "T-" +187422-188318 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +188318-188768 ir_nec: longpause: "Long pause" "L-pause" "LP" "P" +187422-188768 ir_nec: leader-code: "Leader code" "Leader" "LC" "L" +188768-188994 ir_nec: bit: "1" +188994-189104 ir_nec: bit: "0" +189104-189216 ir_nec: bit: "0" +189216-189326 ir_nec: bit: "0" +189326-189436 ir_nec: bit: "0" +189436-189546 ir_nec: bit: "0" +189546-189770 ir_nec: bit: "1" +189770-189880 ir_nec: bit: "0" +189880-189990 ir_nec: bit: "0" +189990-190214 ir_nec: bit: "1" +190214-190324 ir_nec: bit: "0" +190324-190548 ir_nec: bit: "1" +190548-190658 ir_nec: bit: "0" +190658-190882 ir_nec: bit: "1" +190882-191106 ir_nec: bit: "1" +191106-191328 ir_nec: bit: "1" +188768-191328 ir_nec: addr: "Address: 0xEA41" "ADDR: 0xEA41" "A: 0xEA41" "A" +191328-191440 ir_nec: bit: "0" +191440-191548 ir_nec: bit: "0" +191548-191660 ir_nec: bit: "0" +191660-191770 ir_nec: bit: "0" +191770-191994 ir_nec: bit: "1" +191994-192104 ir_nec: bit: "0" +192104-192214 ir_nec: bit: "0" +192214-192324 ir_nec: bit: "0" +191328-192324 ir_nec: cmd: "Command: 0x10" "CMD: 0x10" "C: 0x10" "C" +192324-192548 ir_nec: bit: "1" +192548-192772 ir_nec: bit: "1" +192772-192996 ir_nec: bit: "1" +192996-193218 ir_nec: bit: "1" +193218-193328 ir_nec: bit: "0" +193328-193552 ir_nec: bit: "1" +193552-193776 ir_nec: bit: "1" +193776-194000 ir_nec: bit: "1" +192324-194000 ir_nec: cmd-inv: "Command#: 0xEF" "CMD#: 0xEF" "C#: 0xEF" "C#" +194000-194064 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +187422-194064 ir_nec: remote: "Unknown LED Panel: Warmer" "Unknown LED Panel: T+" "T+" +198198-199094 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +199094-199312 ir_nec: shortpause: "Short pause" "S-pause" "SP" "P" +199312-199376 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +198198-199376 ir_nec: repeat-code: "Repeat code" "Repeat" "RC" "R" +253082-253978 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +253978-254428 ir_nec: longpause: "Long pause" "L-pause" "LP" "P" +253082-254428 ir_nec: leader-code: "Leader code" "Leader" "LC" "L" +254428-254654 ir_nec: bit: "1" +254654-254762 ir_nec: bit: "0" +254762-254872 ir_nec: bit: "0" +254872-254982 ir_nec: bit: "0" +254982-255094 ir_nec: bit: "0" +255094-255204 ir_nec: bit: "0" +255204-255430 ir_nec: bit: "1" +255430-255538 ir_nec: bit: "0" +255538-255648 ir_nec: bit: "0" +255648-255874 ir_nec: bit: "1" +255874-255982 ir_nec: bit: "0" +255982-256208 ir_nec: bit: "1" +256208-256316 ir_nec: bit: "0" +256316-256542 ir_nec: bit: "1" +256542-256764 ir_nec: bit: "1" +256764-256988 ir_nec: bit: "1" +254428-256988 ir_nec: addr: "Address: 0xEA41" "ADDR: 0xEA41" "A: 0xEA41" "A" +256988-257096 ir_nec: bit: "0" +257096-257322 ir_nec: bit: "1" +257322-257430 ir_nec: bit: "0" +257430-257540 ir_nec: bit: "0" +257540-257766 ir_nec: bit: "1" +257766-257874 ir_nec: bit: "0" +257874-257984 ir_nec: bit: "0" +257984-258096 ir_nec: bit: "0" +256988-258096 ir_nec: cmd: "Command: 0x12" "CMD: 0x12" "C: 0x12" "C" +258096-258322 ir_nec: bit: "1" +258322-258430 ir_nec: bit: "0" +258430-258654 ir_nec: bit: "1" +258654-258878 ir_nec: bit: "1" +258878-258986 ir_nec: bit: "0" +258986-259212 ir_nec: bit: "1" +259212-259436 ir_nec: bit: "1" +259436-259660 ir_nec: bit: "1" +258096-259660 ir_nec: cmd-inv: "Command#: 0xED" "CMD#: 0xED" "C#: 0xED" "C#" +259660-259724 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +253082-259724 ir_nec: remote: "Unknown LED Panel: Brighter" "Unknown LED Panel: +" "+" +263858-264754 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +264754-264974 ir_nec: shortpause: "Short pause" "S-pause" "SP" "P" +264974-265038 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +263858-265038 ir_nec: repeat-code: "Repeat code" "Repeat" "RC" "R" +338480-339374 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +339374-339826 ir_nec: longpause: "Long pause" "L-pause" "LP" "P" +338480-339826 ir_nec: leader-code: "Leader code" "Leader" "LC" "L" +339826-340052 ir_nec: bit: "1" +340052-340160 ir_nec: bit: "0" +340160-340270 ir_nec: bit: "0" +340270-340380 ir_nec: bit: "0" +340380-340490 ir_nec: bit: "0" +340490-340600 ir_nec: bit: "0" +340600-340826 ir_nec: bit: "1" +340826-340934 ir_nec: bit: "0" +340934-341046 ir_nec: bit: "0" +341046-341270 ir_nec: bit: "1" +341270-341380 ir_nec: bit: "0" +341380-341604 ir_nec: bit: "1" +341604-341712 ir_nec: bit: "0" +341712-341938 ir_nec: bit: "1" +341938-342162 ir_nec: bit: "1" +342162-342386 ir_nec: bit: "1" +339826-342386 ir_nec: addr: "Address: 0xEA41" "ADDR: 0xEA41" "A: 0xEA41" "A" +342386-342608 ir_nec: bit: "1" +342608-342832 ir_nec: bit: "1" +342832-342940 ir_nec: bit: "0" +342940-343050 ir_nec: bit: "0" +343050-343276 ir_nec: bit: "1" +343276-343384 ir_nec: bit: "0" +343384-343494 ir_nec: bit: "0" +343494-343606 ir_nec: bit: "0" +342386-343606 ir_nec: cmd: "Command: 0x13" "CMD: 0x13" "C: 0x13" "C" +343606-343716 ir_nec: bit: "0" +343716-343826 ir_nec: bit: "0" +343826-344052 ir_nec: bit: "1" +344052-344276 ir_nec: bit: "1" +344276-344384 ir_nec: bit: "0" +344384-344610 ir_nec: bit: "1" +344610-344832 ir_nec: bit: "1" +344832-345056 ir_nec: bit: "1" +343606-345056 ir_nec: cmd-inv: "Command#: 0xEC" "CMD#: 0xEC" "C#: 0xEC" "C#" +345056-345120 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +338480-345120 ir_nec: remote: "Unknown LED Panel: Darker" "Unknown LED Panel: -" "-" +399016-399908 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +399908-400360 ir_nec: longpause: "Long pause" "L-pause" "LP" "P" +399016-400360 ir_nec: leader-code: "Leader code" "Leader" "LC" "L" +400360-400584 ir_nec: bit: "1" +400584-400692 ir_nec: bit: "0" +400692-400804 ir_nec: bit: "0" +400804-400914 ir_nec: bit: "0" +400914-401024 ir_nec: bit: "0" +401024-401134 ir_nec: bit: "0" +401134-401360 ir_nec: bit: "1" +401360-401470 ir_nec: bit: "0" +401470-401578 ir_nec: bit: "0" +401578-401804 ir_nec: bit: "1" +401804-401912 ir_nec: bit: "0" +401912-402138 ir_nec: bit: "1" +402138-402246 ir_nec: bit: "0" +402246-402472 ir_nec: bit: "1" +402472-402696 ir_nec: bit: "1" +402696-402920 ir_nec: bit: "1" +400360-402920 ir_nec: addr: "Address: 0xEA41" "ADDR: 0xEA41" "A: 0xEA41" "A" +402920-403142 ir_nec: bit: "1" +403142-403250 ir_nec: bit: "0" +403250-403360 ir_nec: bit: "0" +403360-403472 ir_nec: bit: "0" +403472-403698 ir_nec: bit: "1" +403698-403806 ir_nec: bit: "0" +403806-403916 ir_nec: bit: "0" +403916-404026 ir_nec: bit: "0" +402920-404026 ir_nec: cmd: "Command: 0x11" "CMD: 0x11" "C: 0x11" "C" +404026-404136 ir_nec: bit: "0" +404136-404362 ir_nec: bit: "1" +404362-404586 ir_nec: bit: "1" +404586-404808 ir_nec: bit: "1" +404808-404918 ir_nec: bit: "0" +404918-405142 ir_nec: bit: "1" +405142-405366 ir_nec: bit: "1" +405366-405590 ir_nec: bit: "1" +404026-405590 ir_nec: cmd-inv: "Command#: 0xEE" "CMD#: 0xEE" "C#: 0xEE" "C#" +405590-405654 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +399016-405654 ir_nec: remote: "Unknown LED Panel: Colder" "Unknown LED Panel: T-" "T-" +409788-410684 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +410684-410904 ir_nec: shortpause: "Short pause" "S-pause" "SP" "P" +410904-410968 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +409788-410968 ir_nec: repeat-code: "Repeat code" "Repeat" "RC" "R" diff --git a/decoder/test/ir_nec/extended_capture_standard_choice.output b/decoder/test/ir_nec/extended_capture_standard_choice.output new file mode 100644 index 0000000..56713d1 --- /dev/null +++ b/decoder/test/ir_nec/extended_capture_standard_choice.output @@ -0,0 +1,310 @@ +48812-49706 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +49706-50158 ir_nec: longpause: "Long pause" "L-pause" "LP" "P" +48812-50158 ir_nec: leader-code: "Leader code" "Leader" "LC" "L" +50158-50384 ir_nec: bit: "1" +50384-50494 ir_nec: bit: "0" +50494-50604 ir_nec: bit: "0" +50604-50712 ir_nec: bit: "0" +50712-50826 ir_nec: bit: "0" +50826-50936 ir_nec: bit: "0" +50936-51158 ir_nec: bit: "1" +51158-51270 ir_nec: bit: "0" +50158-51270 ir_nec: addr: "Address: 0x41" "ADDR: 0x41" "A: 0x41" "A" +51270-51380 ir_nec: bit: "0" +51380-51604 ir_nec: bit: "1" +51604-51714 ir_nec: bit: "0" +51714-51936 ir_nec: bit: "1" +51936-52048 ir_nec: bit: "0" +52048-52270 ir_nec: bit: "1" +52270-52494 ir_nec: bit: "1" +52494-52718 ir_nec: bit: "1" +51270-52718 ir_nec: addr-inv: "Address#: 0xEA" "ADDR#: 0xEA" "A#: 0xEA" "A#" +51270-52718 ir_nec: warning: "Address# error: 0xEA41" +52718-52828 ir_nec: bit: "0" +52828-52938 ir_nec: bit: "0" +52938-53048 ir_nec: bit: "0" +53048-53272 ir_nec: bit: "1" +53272-53382 ir_nec: bit: "0" +53382-53494 ir_nec: bit: "0" +53494-53716 ir_nec: bit: "1" +53716-53826 ir_nec: bit: "0" +52718-53826 ir_nec: cmd: "Command: 0x48" "CMD: 0x48" "C: 0x48" "C" +53826-54050 ir_nec: bit: "1" +54050-54274 ir_nec: bit: "1" +54274-54498 ir_nec: bit: "1" +54498-54608 ir_nec: bit: "0" +54608-54830 ir_nec: bit: "1" +54830-55054 ir_nec: bit: "1" +55054-55164 ir_nec: bit: "0" +55164-55388 ir_nec: bit: "1" +53826-55388 ir_nec: cmd-inv: "Command#: 0xB7" "CMD#: 0xB7" "C#: 0xB7" "C#" +55388-55452 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +48812-55452 ir_nec: remote: "Unknown device: Unknown" "Unknown device: Unk" "Unk" +59588-60482 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +60482-60702 ir_nec: shortpause: "Short pause" "S-pause" "SP" "P" +60702-60766 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +59588-60766 ir_nec: repeat-code: "Repeat code" "Repeat" "RC" "R" +126660-127556 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +127556-128006 ir_nec: longpause: "Long pause" "L-pause" "LP" "P" +126660-128006 ir_nec: leader-code: "Leader code" "Leader" "LC" "L" +128006-128232 ir_nec: bit: "1" +128232-128340 ir_nec: bit: "0" +128340-128450 ir_nec: bit: "0" +128450-128560 ir_nec: bit: "0" +128560-128672 ir_nec: bit: "0" +128672-128782 ir_nec: bit: "0" +128782-129008 ir_nec: bit: "1" +129008-129116 ir_nec: bit: "0" +128006-129116 ir_nec: addr: "Address: 0x41" "ADDR: 0x41" "A: 0x41" "A" +129116-129226 ir_nec: bit: "0" +129226-129452 ir_nec: bit: "1" +129452-129560 ir_nec: bit: "0" +129560-129786 ir_nec: bit: "1" +129786-129894 ir_nec: bit: "0" +129894-130120 ir_nec: bit: "1" +130120-130342 ir_nec: bit: "1" +130342-130566 ir_nec: bit: "1" +129116-130566 ir_nec: addr-inv: "Address#: 0xEA" "ADDR#: 0xEA" "A#: 0xEA" "A#" +129116-130566 ir_nec: warning: "Address# error: 0xEA41" +130566-130790 ir_nec: bit: "1" +130790-130900 ir_nec: bit: "0" +130900-131008 ir_nec: bit: "0" +131008-131118 ir_nec: bit: "0" +131118-131344 ir_nec: bit: "1" +131344-131452 ir_nec: bit: "0" +131452-131566 ir_nec: bit: "0" +131566-131674 ir_nec: bit: "0" +130566-131674 ir_nec: cmd: "Command: 0x11" "CMD: 0x11" "C: 0x11" "C" +131674-131784 ir_nec: bit: "0" +131784-132010 ir_nec: bit: "1" +132010-132232 ir_nec: bit: "1" +132232-132456 ir_nec: bit: "1" +132456-132564 ir_nec: bit: "0" +132564-132790 ir_nec: bit: "1" +132790-133014 ir_nec: bit: "1" +133014-133238 ir_nec: bit: "1" +131674-133238 ir_nec: cmd-inv: "Command#: 0xEE" "CMD#: 0xEE" "C#: 0xEE" "C#" +133238-133302 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +126660-133302 ir_nec: remote: "Unknown device: Unknown" "Unknown device: Unk" "Unk" +144762-145656 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +145656-146108 ir_nec: longpause: "Long pause" "L-pause" "LP" "P" +144762-146108 ir_nec: leader-code: "Leader code" "Leader" "LC" "L" +146108-146334 ir_nec: bit: "1" +146334-146444 ir_nec: bit: "0" +146444-146554 ir_nec: bit: "0" +146554-146662 ir_nec: bit: "0" +146662-146776 ir_nec: bit: "0" +146776-146884 ir_nec: bit: "0" +146884-147110 ir_nec: bit: "1" +147110-147220 ir_nec: bit: "0" +146108-147220 ir_nec: addr: "Address: 0x41" "ADDR: 0x41" "A: 0x41" "A" +147220-147330 ir_nec: bit: "0" +147330-147554 ir_nec: bit: "1" +147554-147662 ir_nec: bit: "0" +147662-147888 ir_nec: bit: "1" +147888-147996 ir_nec: bit: "0" +147996-148222 ir_nec: bit: "1" +148222-148444 ir_nec: bit: "1" +148444-148668 ir_nec: bit: "1" +147220-148668 ir_nec: addr-inv: "Address#: 0xEA" "ADDR#: 0xEA" "A#: 0xEA" "A#" +147220-148668 ir_nec: warning: "Address# error: 0xEA41" +148668-148892 ir_nec: bit: "1" +148892-149000 ir_nec: bit: "0" +149000-149110 ir_nec: bit: "0" +149110-149220 ir_nec: bit: "0" +149220-149446 ir_nec: bit: "1" +149446-149556 ir_nec: bit: "0" +149556-149664 ir_nec: bit: "0" +149664-149774 ir_nec: bit: "0" +148668-149774 ir_nec: cmd: "Command: 0x11" "CMD: 0x11" "C: 0x11" "C" +149774-149888 ir_nec: bit: "0" +149888-150112 ir_nec: bit: "1" +150112-150334 ir_nec: bit: "1" +150334-150558 ir_nec: bit: "1" +150558-150668 ir_nec: bit: "0" +150668-150892 ir_nec: bit: "1" +150892-151116 ir_nec: bit: "1" +151116-151338 ir_nec: bit: "1" +149774-151338 ir_nec: cmd-inv: "Command#: 0xEE" "CMD#: 0xEE" "C#: 0xEE" "C#" +151338-151402 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +144762-151402 ir_nec: remote: "Unknown device: Unknown" "Unknown device: Unk" "Unk" +187422-188318 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +188318-188768 ir_nec: longpause: "Long pause" "L-pause" "LP" "P" +187422-188768 ir_nec: leader-code: "Leader code" "Leader" "LC" "L" +188768-188994 ir_nec: bit: "1" +188994-189104 ir_nec: bit: "0" +189104-189216 ir_nec: bit: "0" +189216-189326 ir_nec: bit: "0" +189326-189436 ir_nec: bit: "0" +189436-189546 ir_nec: bit: "0" +189546-189770 ir_nec: bit: "1" +189770-189880 ir_nec: bit: "0" +188768-189880 ir_nec: addr: "Address: 0x41" "ADDR: 0x41" "A: 0x41" "A" +189880-189990 ir_nec: bit: "0" +189990-190214 ir_nec: bit: "1" +190214-190324 ir_nec: bit: "0" +190324-190548 ir_nec: bit: "1" +190548-190658 ir_nec: bit: "0" +190658-190882 ir_nec: bit: "1" +190882-191106 ir_nec: bit: "1" +191106-191328 ir_nec: bit: "1" +189880-191328 ir_nec: addr-inv: "Address#: 0xEA" "ADDR#: 0xEA" "A#: 0xEA" "A#" +189880-191328 ir_nec: warning: "Address# error: 0xEA41" +191328-191440 ir_nec: bit: "0" +191440-191548 ir_nec: bit: "0" +191548-191660 ir_nec: bit: "0" +191660-191770 ir_nec: bit: "0" +191770-191994 ir_nec: bit: "1" +191994-192104 ir_nec: bit: "0" +192104-192214 ir_nec: bit: "0" +192214-192324 ir_nec: bit: "0" +191328-192324 ir_nec: cmd: "Command: 0x10" "CMD: 0x10" "C: 0x10" "C" +192324-192548 ir_nec: bit: "1" +192548-192772 ir_nec: bit: "1" +192772-192996 ir_nec: bit: "1" +192996-193218 ir_nec: bit: "1" +193218-193328 ir_nec: bit: "0" +193328-193552 ir_nec: bit: "1" +193552-193776 ir_nec: bit: "1" +193776-194000 ir_nec: bit: "1" +192324-194000 ir_nec: cmd-inv: "Command#: 0xEF" "CMD#: 0xEF" "C#: 0xEF" "C#" +194000-194064 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +187422-194064 ir_nec: remote: "Unknown device: Unknown" "Unknown device: Unk" "Unk" +198198-199094 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +199094-199312 ir_nec: shortpause: "Short pause" "S-pause" "SP" "P" +199312-199376 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +198198-199376 ir_nec: repeat-code: "Repeat code" "Repeat" "RC" "R" +253082-253978 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +253978-254428 ir_nec: longpause: "Long pause" "L-pause" "LP" "P" +253082-254428 ir_nec: leader-code: "Leader code" "Leader" "LC" "L" +254428-254654 ir_nec: bit: "1" +254654-254762 ir_nec: bit: "0" +254762-254872 ir_nec: bit: "0" +254872-254982 ir_nec: bit: "0" +254982-255094 ir_nec: bit: "0" +255094-255204 ir_nec: bit: "0" +255204-255430 ir_nec: bit: "1" +255430-255538 ir_nec: bit: "0" +254428-255538 ir_nec: addr: "Address: 0x41" "ADDR: 0x41" "A: 0x41" "A" +255538-255648 ir_nec: bit: "0" +255648-255874 ir_nec: bit: "1" +255874-255982 ir_nec: bit: "0" +255982-256208 ir_nec: bit: "1" +256208-256316 ir_nec: bit: "0" +256316-256542 ir_nec: bit: "1" +256542-256764 ir_nec: bit: "1" +256764-256988 ir_nec: bit: "1" +255538-256988 ir_nec: addr-inv: "Address#: 0xEA" "ADDR#: 0xEA" "A#: 0xEA" "A#" +255538-256988 ir_nec: warning: "Address# error: 0xEA41" +256988-257096 ir_nec: bit: "0" +257096-257322 ir_nec: bit: "1" +257322-257430 ir_nec: bit: "0" +257430-257540 ir_nec: bit: "0" +257540-257766 ir_nec: bit: "1" +257766-257874 ir_nec: bit: "0" +257874-257984 ir_nec: bit: "0" +257984-258096 ir_nec: bit: "0" +256988-258096 ir_nec: cmd: "Command: 0x12" "CMD: 0x12" "C: 0x12" "C" +258096-258322 ir_nec: bit: "1" +258322-258430 ir_nec: bit: "0" +258430-258654 ir_nec: bit: "1" +258654-258878 ir_nec: bit: "1" +258878-258986 ir_nec: bit: "0" +258986-259212 ir_nec: bit: "1" +259212-259436 ir_nec: bit: "1" +259436-259660 ir_nec: bit: "1" +258096-259660 ir_nec: cmd-inv: "Command#: 0xED" "CMD#: 0xED" "C#: 0xED" "C#" +259660-259724 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +253082-259724 ir_nec: remote: "Unknown device: Unknown" "Unknown device: Unk" "Unk" +263858-264754 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +264754-264974 ir_nec: shortpause: "Short pause" "S-pause" "SP" "P" +264974-265038 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +263858-265038 ir_nec: repeat-code: "Repeat code" "Repeat" "RC" "R" +338480-339374 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +339374-339826 ir_nec: longpause: "Long pause" "L-pause" "LP" "P" +338480-339826 ir_nec: leader-code: "Leader code" "Leader" "LC" "L" +339826-340052 ir_nec: bit: "1" +340052-340160 ir_nec: bit: "0" +340160-340270 ir_nec: bit: "0" +340270-340380 ir_nec: bit: "0" +340380-340490 ir_nec: bit: "0" +340490-340600 ir_nec: bit: "0" +340600-340826 ir_nec: bit: "1" +340826-340934 ir_nec: bit: "0" +339826-340934 ir_nec: addr: "Address: 0x41" "ADDR: 0x41" "A: 0x41" "A" +340934-341046 ir_nec: bit: "0" +341046-341270 ir_nec: bit: "1" +341270-341380 ir_nec: bit: "0" +341380-341604 ir_nec: bit: "1" +341604-341712 ir_nec: bit: "0" +341712-341938 ir_nec: bit: "1" +341938-342162 ir_nec: bit: "1" +342162-342386 ir_nec: bit: "1" +340934-342386 ir_nec: addr-inv: "Address#: 0xEA" "ADDR#: 0xEA" "A#: 0xEA" "A#" +340934-342386 ir_nec: warning: "Address# error: 0xEA41" +342386-342608 ir_nec: bit: "1" +342608-342832 ir_nec: bit: "1" +342832-342940 ir_nec: bit: "0" +342940-343050 ir_nec: bit: "0" +343050-343276 ir_nec: bit: "1" +343276-343384 ir_nec: bit: "0" +343384-343494 ir_nec: bit: "0" +343494-343606 ir_nec: bit: "0" +342386-343606 ir_nec: cmd: "Command: 0x13" "CMD: 0x13" "C: 0x13" "C" +343606-343716 ir_nec: bit: "0" +343716-343826 ir_nec: bit: "0" +343826-344052 ir_nec: bit: "1" +344052-344276 ir_nec: bit: "1" +344276-344384 ir_nec: bit: "0" +344384-344610 ir_nec: bit: "1" +344610-344832 ir_nec: bit: "1" +344832-345056 ir_nec: bit: "1" +343606-345056 ir_nec: cmd-inv: "Command#: 0xEC" "CMD#: 0xEC" "C#: 0xEC" "C#" +345056-345120 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +338480-345120 ir_nec: remote: "Unknown device: Unknown" "Unknown device: Unk" "Unk" +399016-399908 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +399908-400360 ir_nec: longpause: "Long pause" "L-pause" "LP" "P" +399016-400360 ir_nec: leader-code: "Leader code" "Leader" "LC" "L" +400360-400584 ir_nec: bit: "1" +400584-400692 ir_nec: bit: "0" +400692-400804 ir_nec: bit: "0" +400804-400914 ir_nec: bit: "0" +400914-401024 ir_nec: bit: "0" +401024-401134 ir_nec: bit: "0" +401134-401360 ir_nec: bit: "1" +401360-401470 ir_nec: bit: "0" +400360-401470 ir_nec: addr: "Address: 0x41" "ADDR: 0x41" "A: 0x41" "A" +401470-401578 ir_nec: bit: "0" +401578-401804 ir_nec: bit: "1" +401804-401912 ir_nec: bit: "0" +401912-402138 ir_nec: bit: "1" +402138-402246 ir_nec: bit: "0" +402246-402472 ir_nec: bit: "1" +402472-402696 ir_nec: bit: "1" +402696-402920 ir_nec: bit: "1" +401470-402920 ir_nec: addr-inv: "Address#: 0xEA" "ADDR#: 0xEA" "A#: 0xEA" "A#" +401470-402920 ir_nec: warning: "Address# error: 0xEA41" +402920-403142 ir_nec: bit: "1" +403142-403250 ir_nec: bit: "0" +403250-403360 ir_nec: bit: "0" +403360-403472 ir_nec: bit: "0" +403472-403698 ir_nec: bit: "1" +403698-403806 ir_nec: bit: "0" +403806-403916 ir_nec: bit: "0" +403916-404026 ir_nec: bit: "0" +402920-404026 ir_nec: cmd: "Command: 0x11" "CMD: 0x11" "C: 0x11" "C" +404026-404136 ir_nec: bit: "0" +404136-404362 ir_nec: bit: "1" +404362-404586 ir_nec: bit: "1" +404586-404808 ir_nec: bit: "1" +404808-404918 ir_nec: bit: "0" +404918-405142 ir_nec: bit: "1" +405142-405366 ir_nec: bit: "1" +405366-405590 ir_nec: bit: "1" +404026-405590 ir_nec: cmd-inv: "Command#: 0xEE" "CMD#: 0xEE" "C#: 0xEE" "C#" +405590-405654 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +399016-405654 ir_nec: remote: "Unknown device: Unknown" "Unknown device: Unk" "Unk" +409788-410684 ir_nec: agc-pulse: "AGC pulse" "AGC" "A" +410684-410904 ir_nec: shortpause: "Short pause" "S-pause" "SP" "P" +410904-410968 ir_nec: stop-bit: "Stop bit" "Stop" "St" "S" +409788-410968 ir_nec: repeat-code: "Repeat code" "Repeat" "RC" "R" diff --git a/decoder/test/ir_nec/test.conf b/decoder/test/ir_nec/test.conf index 6bf06a0..d9184a6 100644 --- a/decoder/test/ir_nec/test.conf +++ b/decoder/test/ir_nec/test.conf @@ -12,3 +12,13 @@ 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 + +test extended_capture_standard_choice + protocol-decoder ir_nec channel ir=0 + input ir/nec/extended/unknown_ceiling_light.sr + output ir_nec annotation match extended_capture_standard_choice.output + +test extended_capture_extended_choice + protocol-decoder ir_nec channel ir=0 option extended=yes + input ir/nec/extended/unknown_ceiling_light.sr + output ir_nec annotation match extended_capture_extended_choice.output