From: Uwe Hermann Date: Fri, 29 Nov 2019 22:44:35 +0000 (+0100) Subject: uart: Add a test-case for parity_type=ignore. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=65a994723a41ec089eba6af09138e41ac5fc81e3;p=sigrok-test.git uart: Add a test-case for parity_type=ignore. --- diff --git a/decoder/test/uart/hello_world_7o1_115200_parity_ignore.bin_tx b/decoder/test/uart/hello_world_7o1_115200_parity_ignore.bin_tx new file mode 100644 index 0000000..2f27990 --- /dev/null +++ b/decoder/test/uart/hello_world_7o1_115200_parity_ignore.bin_tx @@ -0,0 +1,56 @@ +309-370 uart: 48 +396-457 uart: 65 +482-543 uart: 6c +569-630 uart: 6c +656-717 uart: 6f +743-804 uart: 20 +830-891 uart: 57 +916-977 uart: 6f +1003-1064 uart: 72 +1090-1151 uart: 6c +1177-1238 uart: 64 +1264-1325 uart: 21 +1350-1411 uart: 0d +1437-1498 uart: 0a +2036-2097 uart: 48 +2123-2184 uart: 65 +2210-2271 uart: 6c +2297-2358 uart: 6c +2383-2444 uart: 6f +2470-2531 uart: 20 +2557-2618 uart: 57 +2644-2705 uart: 6f +2731-2792 uart: 72 +2817-2878 uart: 6c +2904-2965 uart: 64 +2991-3052 uart: 21 +3078-3139 uart: 0d +3165-3226 uart: 0a +3764-3825 uart: 48 +3850-3911 uart: 65 +3937-3998 uart: 6c +4024-4085 uart: 6c +4111-4172 uart: 6f +4198-4259 uart: 20 +4284-4345 uart: 57 +4371-4432 uart: 6f +4458-4519 uart: 72 +4545-4606 uart: 6c +4632-4693 uart: 64 +4718-4779 uart: 21 +4805-4866 uart: 0d +4892-4953 uart: 0a +5491-5552 uart: 48 +5578-5639 uart: 65 +5665-5726 uart: 6c +5751-5812 uart: 6c +5838-5899 uart: 6f +5925-5986 uart: 20 +6012-6073 uart: 57 +6099-6160 uart: 6f +6185-6246 uart: 72 +6272-6333 uart: 6c +6359-6420 uart: 64 +6446-6507 uart: 21 +6533-6594 uart: 0d +6619-6680 uart: 0a diff --git a/decoder/test/uart/hello_world_7o1_115200_parity_ignore.output b/decoder/test/uart/hello_world_7o1_115200_parity_ignore.output new file mode 100644 index 0000000..0b6279e --- /dev/null +++ b/decoder/test/uart/hello_world_7o1_115200_parity_ignore.output @@ -0,0 +1,616 @@ +300-309 uart: tx-start: "Start bit" "Start" "S" +309-318 uart: tx-data-bits: "0" +318-327 uart: tx-data-bits: "0" +326-335 uart: tx-data-bits: "0" +335-344 uart: tx-data-bits: "1" +344-353 uart: tx-data-bits: "0" +352-361 uart: tx-data-bits: "0" +361-370 uart: tx-data-bits: "1" +309-370 uart: tx-data: "H" +370-379 uart: tx-parity-ok: "Parity bit" "Parity" "P" +378-387 uart: tx-parity-ok: "Stop bit" "Stop" "T" +387-396 uart: tx-start: "Start bit" "Start" "S" +396-405 uart: tx-data-bits: "1" +405-414 uart: tx-data-bits: "0" +413-422 uart: tx-data-bits: "1" +422-431 uart: tx-data-bits: "0" +431-440 uart: tx-data-bits: "0" +439-448 uart: tx-data-bits: "1" +448-457 uart: tx-data-bits: "1" +396-457 uart: tx-data: "e" +457-466 uart: tx-parity-ok: "Parity bit" "Parity" "P" +465-474 uart: tx-parity-ok: "Stop bit" "Stop" "T" +473-482 uart: tx-start: "Start bit" "Start" "S" +482-491 uart: tx-data-bits: "0" +491-500 uart: tx-data-bits: "0" +499-508 uart: tx-data-bits: "1" +508-517 uart: tx-data-bits: "1" +517-526 uart: tx-data-bits: "0" +525-534 uart: tx-data-bits: "1" +534-543 uart: tx-data-bits: "1" +482-543 uart: tx-data: "l" +543-552 uart: tx-parity-ok: "Parity bit" "Parity" "P" +551-560 uart: tx-parity-ok: "Stop bit" "Stop" "T" +560-569 uart: tx-start: "Start bit" "Start" "S" +569-578 uart: tx-data-bits: "0" +578-587 uart: tx-data-bits: "0" +586-595 uart: tx-data-bits: "1" +595-604 uart: tx-data-bits: "1" +604-613 uart: tx-data-bits: "0" +612-621 uart: tx-data-bits: "1" +621-630 uart: tx-data-bits: "1" +569-630 uart: tx-data: "l" +630-639 uart: tx-parity-ok: "Parity bit" "Parity" "P" +638-647 uart: tx-parity-ok: "Stop bit" "Stop" "T" +647-656 uart: tx-start: "Start bit" "Start" "S" +656-665 uart: tx-data-bits: "1" +665-674 uart: tx-data-bits: "1" +673-682 uart: tx-data-bits: "1" +682-691 uart: tx-data-bits: "1" +691-700 uart: tx-data-bits: "0" +699-708 uart: tx-data-bits: "1" +708-717 uart: tx-data-bits: "1" +656-717 uart: tx-data: "o" +717-726 uart: tx-parity-ok: "Parity bit" "Parity" "P" +725-734 uart: tx-parity-ok: "Stop bit" "Stop" "T" +734-743 uart: tx-start: "Start bit" "Start" "S" +743-752 uart: tx-data-bits: "0" +752-761 uart: tx-data-bits: "0" +760-769 uart: tx-data-bits: "0" +769-778 uart: tx-data-bits: "0" +778-787 uart: tx-data-bits: "0" +786-795 uart: tx-data-bits: "1" +795-804 uart: tx-data-bits: "0" +743-804 uart: tx-data: " " +804-813 uart: tx-parity-ok: "Parity bit" "Parity" "P" +812-821 uart: tx-parity-ok: "Stop bit" "Stop" "T" +821-830 uart: tx-start: "Start bit" "Start" "S" +830-839 uart: tx-data-bits: "1" +839-848 uart: tx-data-bits: "1" +847-856 uart: tx-data-bits: "1" +856-865 uart: tx-data-bits: "0" +865-874 uart: tx-data-bits: "1" +873-882 uart: tx-data-bits: "0" +882-891 uart: tx-data-bits: "1" +830-891 uart: tx-data: "W" +891-900 uart: tx-parity-ok: "Parity bit" "Parity" "P" +899-908 uart: tx-parity-ok: "Stop bit" "Stop" "T" +907-916 uart: tx-start: "Start bit" "Start" "S" +916-925 uart: tx-data-bits: "1" +925-934 uart: tx-data-bits: "1" +933-942 uart: tx-data-bits: "1" +942-951 uart: tx-data-bits: "1" +951-960 uart: tx-data-bits: "0" +959-968 uart: tx-data-bits: "1" +968-977 uart: tx-data-bits: "1" +916-977 uart: tx-data: "o" +977-986 uart: tx-parity-ok: "Parity bit" "Parity" "P" +985-994 uart: tx-parity-ok: "Stop bit" "Stop" "T" +994-1003 uart: tx-start: "Start bit" "Start" "S" +1003-1012 uart: tx-data-bits: "0" +1012-1021 uart: tx-data-bits: "1" +1020-1029 uart: tx-data-bits: "0" +1029-1038 uart: tx-data-bits: "0" +1038-1047 uart: tx-data-bits: "1" +1046-1055 uart: tx-data-bits: "1" +1055-1064 uart: tx-data-bits: "1" +1003-1064 uart: tx-data: "r" +1064-1073 uart: tx-parity-ok: "Parity bit" "Parity" "P" +1072-1081 uart: tx-parity-ok: "Stop bit" "Stop" "T" +1081-1090 uart: tx-start: "Start bit" "Start" "S" +1090-1099 uart: tx-data-bits: "0" +1099-1108 uart: tx-data-bits: "0" +1107-1116 uart: tx-data-bits: "1" +1116-1125 uart: tx-data-bits: "1" +1125-1134 uart: tx-data-bits: "0" +1133-1142 uart: tx-data-bits: "1" +1142-1151 uart: tx-data-bits: "1" +1090-1151 uart: tx-data: "l" +1151-1160 uart: tx-parity-ok: "Parity bit" "Parity" "P" +1159-1168 uart: tx-parity-ok: "Stop bit" "Stop" "T" +1168-1177 uart: tx-start: "Start bit" "Start" "S" +1177-1186 uart: tx-data-bits: "0" +1186-1195 uart: tx-data-bits: "0" +1194-1203 uart: tx-data-bits: "1" +1203-1212 uart: tx-data-bits: "0" +1212-1221 uart: tx-data-bits: "0" +1220-1229 uart: tx-data-bits: "1" +1229-1238 uart: tx-data-bits: "1" +1177-1238 uart: tx-data: "d" +1238-1247 uart: tx-parity-ok: "Parity bit" "Parity" "P" +1246-1255 uart: tx-parity-ok: "Stop bit" "Stop" "T" +1255-1264 uart: tx-start: "Start bit" "Start" "S" +1264-1273 uart: tx-data-bits: "1" +1273-1282 uart: tx-data-bits: "0" +1281-1290 uart: tx-data-bits: "0" +1290-1299 uart: tx-data-bits: "0" +1299-1308 uart: tx-data-bits: "0" +1307-1316 uart: tx-data-bits: "1" +1316-1325 uart: tx-data-bits: "0" +1264-1325 uart: tx-data: "!" +1325-1334 uart: tx-parity-ok: "Parity bit" "Parity" "P" +1333-1342 uart: tx-parity-ok: "Stop bit" "Stop" "T" +1341-1350 uart: tx-start: "Start bit" "Start" "S" +1350-1359 uart: tx-data-bits: "1" +1359-1368 uart: tx-data-bits: "0" +1367-1376 uart: tx-data-bits: "1" +1376-1385 uart: tx-data-bits: "1" +1385-1394 uart: tx-data-bits: "0" +1393-1402 uart: tx-data-bits: "0" +1402-1411 uart: tx-data-bits: "0" +1350-1411 uart: tx-data: "[0D]" +1411-1420 uart: tx-parity-ok: "Parity bit" "Parity" "P" +1419-1428 uart: tx-parity-ok: "Stop bit" "Stop" "T" +1428-1437 uart: tx-start: "Start bit" "Start" "S" +1437-1446 uart: tx-data-bits: "0" +1446-1455 uart: tx-data-bits: "1" +1454-1463 uart: tx-data-bits: "0" +1463-1472 uart: tx-data-bits: "1" +1472-1481 uart: tx-data-bits: "0" +1480-1489 uart: tx-data-bits: "0" +1489-1498 uart: tx-data-bits: "0" +1437-1498 uart: tx-data: "[0A]" +1498-1507 uart: tx-parity-ok: "Parity bit" "Parity" "P" +1506-1515 uart: tx-parity-ok: "Stop bit" "Stop" "T" +2027-2036 uart: tx-start: "Start bit" "Start" "S" +2036-2045 uart: tx-data-bits: "0" +2045-2054 uart: tx-data-bits: "0" +2053-2062 uart: tx-data-bits: "0" +2062-2071 uart: tx-data-bits: "1" +2071-2080 uart: tx-data-bits: "0" +2079-2088 uart: tx-data-bits: "0" +2088-2097 uart: tx-data-bits: "1" +2036-2097 uart: tx-data: "H" +2097-2106 uart: tx-parity-ok: "Parity bit" "Parity" "P" +2105-2114 uart: tx-parity-ok: "Stop bit" "Stop" "T" +2114-2123 uart: tx-start: "Start bit" "Start" "S" +2123-2132 uart: tx-data-bits: "1" +2132-2141 uart: tx-data-bits: "0" +2140-2149 uart: tx-data-bits: "1" +2149-2158 uart: tx-data-bits: "0" +2158-2167 uart: tx-data-bits: "0" +2166-2175 uart: tx-data-bits: "1" +2175-2184 uart: tx-data-bits: "1" +2123-2184 uart: tx-data: "e" +2184-2193 uart: tx-parity-ok: "Parity bit" "Parity" "P" +2192-2201 uart: tx-parity-ok: "Stop bit" "Stop" "T" +2201-2210 uart: tx-start: "Start bit" "Start" "S" +2210-2219 uart: tx-data-bits: "0" +2219-2228 uart: tx-data-bits: "0" +2227-2236 uart: tx-data-bits: "1" +2236-2245 uart: tx-data-bits: "1" +2245-2254 uart: tx-data-bits: "0" +2253-2262 uart: tx-data-bits: "1" +2262-2271 uart: tx-data-bits: "1" +2210-2271 uart: tx-data: "l" +2271-2280 uart: tx-parity-ok: "Parity bit" "Parity" "P" +2279-2288 uart: tx-parity-ok: "Stop bit" "Stop" "T" +2288-2297 uart: tx-start: "Start bit" "Start" "S" +2297-2306 uart: tx-data-bits: "0" +2306-2315 uart: tx-data-bits: "0" +2314-2323 uart: tx-data-bits: "1" +2323-2332 uart: tx-data-bits: "1" +2332-2341 uart: tx-data-bits: "0" +2340-2349 uart: tx-data-bits: "1" +2349-2358 uart: tx-data-bits: "1" +2297-2358 uart: tx-data: "l" +2358-2367 uart: tx-parity-ok: "Parity bit" "Parity" "P" +2366-2375 uart: tx-parity-ok: "Stop bit" "Stop" "T" +2374-2383 uart: tx-start: "Start bit" "Start" "S" +2383-2392 uart: tx-data-bits: "1" +2392-2401 uart: tx-data-bits: "1" +2400-2409 uart: tx-data-bits: "1" +2409-2418 uart: tx-data-bits: "1" +2418-2427 uart: tx-data-bits: "0" +2426-2435 uart: tx-data-bits: "1" +2435-2444 uart: tx-data-bits: "1" +2383-2444 uart: tx-data: "o" +2444-2453 uart: tx-parity-ok: "Parity bit" "Parity" "P" +2452-2461 uart: tx-parity-ok: "Stop bit" "Stop" "T" +2461-2470 uart: tx-start: "Start bit" "Start" "S" +2470-2479 uart: tx-data-bits: "0" +2479-2488 uart: tx-data-bits: "0" +2487-2496 uart: tx-data-bits: "0" +2496-2505 uart: tx-data-bits: "0" +2505-2514 uart: tx-data-bits: "0" +2513-2522 uart: tx-data-bits: "1" +2522-2531 uart: tx-data-bits: "0" +2470-2531 uart: tx-data: " " +2531-2540 uart: tx-parity-ok: "Parity bit" "Parity" "P" +2539-2548 uart: tx-parity-ok: "Stop bit" "Stop" "T" +2548-2557 uart: tx-start: "Start bit" "Start" "S" +2557-2566 uart: tx-data-bits: "1" +2566-2575 uart: tx-data-bits: "1" +2574-2583 uart: tx-data-bits: "1" +2583-2592 uart: tx-data-bits: "0" +2592-2601 uart: tx-data-bits: "1" +2600-2609 uart: tx-data-bits: "0" +2609-2618 uart: tx-data-bits: "1" +2557-2618 uart: tx-data: "W" +2618-2627 uart: tx-parity-ok: "Parity bit" "Parity" "P" +2626-2635 uart: tx-parity-ok: "Stop bit" "Stop" "T" +2635-2644 uart: tx-start: "Start bit" "Start" "S" +2644-2653 uart: tx-data-bits: "1" +2653-2662 uart: tx-data-bits: "1" +2661-2670 uart: tx-data-bits: "1" +2670-2679 uart: tx-data-bits: "1" +2679-2688 uart: tx-data-bits: "0" +2687-2696 uart: tx-data-bits: "1" +2696-2705 uart: tx-data-bits: "1" +2644-2705 uart: tx-data: "o" +2705-2714 uart: tx-parity-ok: "Parity bit" "Parity" "P" +2713-2722 uart: tx-parity-ok: "Stop bit" "Stop" "T" +2722-2731 uart: tx-start: "Start bit" "Start" "S" +2731-2740 uart: tx-data-bits: "0" +2740-2749 uart: tx-data-bits: "1" +2748-2757 uart: tx-data-bits: "0" +2757-2766 uart: tx-data-bits: "0" +2766-2775 uart: tx-data-bits: "1" +2774-2783 uart: tx-data-bits: "1" +2783-2792 uart: tx-data-bits: "1" +2731-2792 uart: tx-data: "r" +2792-2801 uart: tx-parity-ok: "Parity bit" "Parity" "P" +2800-2809 uart: tx-parity-ok: "Stop bit" "Stop" "T" +2808-2817 uart: tx-start: "Start bit" "Start" "S" +2817-2826 uart: tx-data-bits: "0" +2826-2835 uart: tx-data-bits: "0" +2834-2843 uart: tx-data-bits: "1" +2843-2852 uart: tx-data-bits: "1" +2852-2861 uart: tx-data-bits: "0" +2860-2869 uart: tx-data-bits: "1" +2869-2878 uart: tx-data-bits: "1" +2817-2878 uart: tx-data: "l" +2878-2887 uart: tx-parity-ok: "Parity bit" "Parity" "P" +2886-2895 uart: tx-parity-ok: "Stop bit" "Stop" "T" +2895-2904 uart: tx-start: "Start bit" "Start" "S" +2904-2913 uart: tx-data-bits: "0" +2913-2922 uart: tx-data-bits: "0" +2921-2930 uart: tx-data-bits: "1" +2930-2939 uart: tx-data-bits: "0" +2939-2948 uart: tx-data-bits: "0" +2947-2956 uart: tx-data-bits: "1" +2956-2965 uart: tx-data-bits: "1" +2904-2965 uart: tx-data: "d" +2965-2974 uart: tx-parity-ok: "Parity bit" "Parity" "P" +2973-2982 uart: tx-parity-ok: "Stop bit" "Stop" "T" +2982-2991 uart: tx-start: "Start bit" "Start" "S" +2991-3000 uart: tx-data-bits: "1" +3000-3009 uart: tx-data-bits: "0" +3008-3017 uart: tx-data-bits: "0" +3017-3026 uart: tx-data-bits: "0" +3026-3035 uart: tx-data-bits: "0" +3034-3043 uart: tx-data-bits: "1" +3043-3052 uart: tx-data-bits: "0" +2991-3052 uart: tx-data: "!" +3052-3061 uart: tx-parity-ok: "Parity bit" "Parity" "P" +3060-3069 uart: tx-parity-ok: "Stop bit" "Stop" "T" +3069-3078 uart: tx-start: "Start bit" "Start" "S" +3078-3087 uart: tx-data-bits: "1" +3087-3096 uart: tx-data-bits: "0" +3095-3104 uart: tx-data-bits: "1" +3104-3113 uart: tx-data-bits: "1" +3113-3122 uart: tx-data-bits: "0" +3121-3130 uart: tx-data-bits: "0" +3130-3139 uart: tx-data-bits: "0" +3078-3139 uart: tx-data: "[0D]" +3139-3148 uart: tx-parity-ok: "Parity bit" "Parity" "P" +3147-3156 uart: tx-parity-ok: "Stop bit" "Stop" "T" +3156-3165 uart: tx-start: "Start bit" "Start" "S" +3165-3174 uart: tx-data-bits: "0" +3174-3183 uart: tx-data-bits: "1" +3182-3191 uart: tx-data-bits: "0" +3191-3200 uart: tx-data-bits: "1" +3200-3209 uart: tx-data-bits: "0" +3208-3217 uart: tx-data-bits: "0" +3217-3226 uart: tx-data-bits: "0" +3165-3226 uart: tx-data: "[0A]" +3226-3235 uart: tx-parity-ok: "Parity bit" "Parity" "P" +3234-3243 uart: tx-parity-ok: "Stop bit" "Stop" "T" +3755-3764 uart: tx-start: "Start bit" "Start" "S" +3764-3773 uart: tx-data-bits: "0" +3773-3782 uart: tx-data-bits: "0" +3781-3790 uart: tx-data-bits: "0" +3790-3799 uart: tx-data-bits: "1" +3799-3808 uart: tx-data-bits: "0" +3807-3816 uart: tx-data-bits: "0" +3816-3825 uart: tx-data-bits: "1" +3764-3825 uart: tx-data: "H" +3825-3834 uart: tx-parity-ok: "Parity bit" "Parity" "P" +3833-3842 uart: tx-parity-ok: "Stop bit" "Stop" "T" +3841-3850 uart: tx-start: "Start bit" "Start" "S" +3850-3859 uart: tx-data-bits: "1" +3859-3868 uart: tx-data-bits: "0" +3867-3876 uart: tx-data-bits: "1" +3876-3885 uart: tx-data-bits: "0" +3885-3894 uart: tx-data-bits: "0" +3893-3902 uart: tx-data-bits: "1" +3902-3911 uart: tx-data-bits: "1" +3850-3911 uart: tx-data: "e" +3911-3920 uart: tx-parity-ok: "Parity bit" "Parity" "P" +3919-3928 uart: tx-parity-ok: "Stop bit" "Stop" "T" +3928-3937 uart: tx-start: "Start bit" "Start" "S" +3937-3946 uart: tx-data-bits: "0" +3946-3955 uart: tx-data-bits: "0" +3954-3963 uart: tx-data-bits: "1" +3963-3972 uart: tx-data-bits: "1" +3972-3981 uart: tx-data-bits: "0" +3980-3989 uart: tx-data-bits: "1" +3989-3998 uart: tx-data-bits: "1" +3937-3998 uart: tx-data: "l" +3998-4007 uart: tx-parity-ok: "Parity bit" "Parity" "P" +4006-4015 uart: tx-parity-ok: "Stop bit" "Stop" "T" +4015-4024 uart: tx-start: "Start bit" "Start" "S" +4024-4033 uart: tx-data-bits: "0" +4033-4042 uart: tx-data-bits: "0" +4041-4050 uart: tx-data-bits: "1" +4050-4059 uart: tx-data-bits: "1" +4059-4068 uart: tx-data-bits: "0" +4067-4076 uart: tx-data-bits: "1" +4076-4085 uart: tx-data-bits: "1" +4024-4085 uart: tx-data: "l" +4085-4094 uart: tx-parity-ok: "Parity bit" "Parity" "P" +4093-4102 uart: tx-parity-ok: "Stop bit" "Stop" "T" +4102-4111 uart: tx-start: "Start bit" "Start" "S" +4111-4120 uart: tx-data-bits: "1" +4120-4129 uart: tx-data-bits: "1" +4128-4137 uart: tx-data-bits: "1" +4137-4146 uart: tx-data-bits: "1" +4146-4155 uart: tx-data-bits: "0" +4154-4163 uart: tx-data-bits: "1" +4163-4172 uart: tx-data-bits: "1" +4111-4172 uart: tx-data: "o" +4172-4181 uart: tx-parity-ok: "Parity bit" "Parity" "P" +4180-4189 uart: tx-parity-ok: "Stop bit" "Stop" "T" +4189-4198 uart: tx-start: "Start bit" "Start" "S" +4198-4207 uart: tx-data-bits: "0" +4207-4216 uart: tx-data-bits: "0" +4215-4224 uart: tx-data-bits: "0" +4224-4233 uart: tx-data-bits: "0" +4233-4242 uart: tx-data-bits: "0" +4241-4250 uart: tx-data-bits: "1" +4250-4259 uart: tx-data-bits: "0" +4198-4259 uart: tx-data: " " +4259-4268 uart: tx-parity-ok: "Parity bit" "Parity" "P" +4267-4276 uart: tx-parity-ok: "Stop bit" "Stop" "T" +4275-4284 uart: tx-start: "Start bit" "Start" "S" +4284-4293 uart: tx-data-bits: "1" +4293-4302 uart: tx-data-bits: "1" +4301-4310 uart: tx-data-bits: "1" +4310-4319 uart: tx-data-bits: "0" +4319-4328 uart: tx-data-bits: "1" +4327-4336 uart: tx-data-bits: "0" +4336-4345 uart: tx-data-bits: "1" +4284-4345 uart: tx-data: "W" +4345-4354 uart: tx-parity-ok: "Parity bit" "Parity" "P" +4353-4362 uart: tx-parity-ok: "Stop bit" "Stop" "T" +4362-4371 uart: tx-start: "Start bit" "Start" "S" +4371-4380 uart: tx-data-bits: "1" +4380-4389 uart: tx-data-bits: "1" +4388-4397 uart: tx-data-bits: "1" +4397-4406 uart: tx-data-bits: "1" +4406-4415 uart: tx-data-bits: "0" +4414-4423 uart: tx-data-bits: "1" +4423-4432 uart: tx-data-bits: "1" +4371-4432 uart: tx-data: "o" +4432-4441 uart: tx-parity-ok: "Parity bit" "Parity" "P" +4440-4449 uart: tx-parity-ok: "Stop bit" "Stop" "T" +4449-4458 uart: tx-start: "Start bit" "Start" "S" +4458-4467 uart: tx-data-bits: "0" +4467-4476 uart: tx-data-bits: "1" +4475-4484 uart: tx-data-bits: "0" +4484-4493 uart: tx-data-bits: "0" +4493-4502 uart: tx-data-bits: "1" +4501-4510 uart: tx-data-bits: "1" +4510-4519 uart: tx-data-bits: "1" +4458-4519 uart: tx-data: "r" +4519-4528 uart: tx-parity-ok: "Parity bit" "Parity" "P" +4527-4536 uart: tx-parity-ok: "Stop bit" "Stop" "T" +4536-4545 uart: tx-start: "Start bit" "Start" "S" +4545-4554 uart: tx-data-bits: "0" +4554-4563 uart: tx-data-bits: "0" +4562-4571 uart: tx-data-bits: "1" +4571-4580 uart: tx-data-bits: "1" +4580-4589 uart: tx-data-bits: "0" +4588-4597 uart: tx-data-bits: "1" +4597-4606 uart: tx-data-bits: "1" +4545-4606 uart: tx-data: "l" +4606-4615 uart: tx-parity-ok: "Parity bit" "Parity" "P" +4614-4623 uart: tx-parity-ok: "Stop bit" "Stop" "T" +4623-4632 uart: tx-start: "Start bit" "Start" "S" +4632-4641 uart: tx-data-bits: "0" +4641-4650 uart: tx-data-bits: "0" +4649-4658 uart: tx-data-bits: "1" +4658-4667 uart: tx-data-bits: "0" +4667-4676 uart: tx-data-bits: "0" +4675-4684 uart: tx-data-bits: "1" +4684-4693 uart: tx-data-bits: "1" +4632-4693 uart: tx-data: "d" +4693-4702 uart: tx-parity-ok: "Parity bit" "Parity" "P" +4701-4710 uart: tx-parity-ok: "Stop bit" "Stop" "T" +4709-4718 uart: tx-start: "Start bit" "Start" "S" +4718-4727 uart: tx-data-bits: "1" +4727-4736 uart: tx-data-bits: "0" +4735-4744 uart: tx-data-bits: "0" +4744-4753 uart: tx-data-bits: "0" +4753-4762 uart: tx-data-bits: "0" +4761-4770 uart: tx-data-bits: "1" +4770-4779 uart: tx-data-bits: "0" +4718-4779 uart: tx-data: "!" +4779-4788 uart: tx-parity-ok: "Parity bit" "Parity" "P" +4787-4796 uart: tx-parity-ok: "Stop bit" "Stop" "T" +4796-4805 uart: tx-start: "Start bit" "Start" "S" +4805-4814 uart: tx-data-bits: "1" +4814-4823 uart: tx-data-bits: "0" +4822-4831 uart: tx-data-bits: "1" +4831-4840 uart: tx-data-bits: "1" +4840-4849 uart: tx-data-bits: "0" +4848-4857 uart: tx-data-bits: "0" +4857-4866 uart: tx-data-bits: "0" +4805-4866 uart: tx-data: "[0D]" +4866-4875 uart: tx-parity-ok: "Parity bit" "Parity" "P" +4874-4883 uart: tx-parity-ok: "Stop bit" "Stop" "T" +4883-4892 uart: tx-start: "Start bit" "Start" "S" +4892-4901 uart: tx-data-bits: "0" +4901-4910 uart: tx-data-bits: "1" +4909-4918 uart: tx-data-bits: "0" +4918-4927 uart: tx-data-bits: "1" +4927-4936 uart: tx-data-bits: "0" +4935-4944 uart: tx-data-bits: "0" +4944-4953 uart: tx-data-bits: "0" +4892-4953 uart: tx-data: "[0A]" +4953-4962 uart: tx-parity-ok: "Parity bit" "Parity" "P" +4961-4970 uart: tx-parity-ok: "Stop bit" "Stop" "T" +5482-5491 uart: tx-start: "Start bit" "Start" "S" +5491-5500 uart: tx-data-bits: "0" +5500-5509 uart: tx-data-bits: "0" +5508-5517 uart: tx-data-bits: "0" +5517-5526 uart: tx-data-bits: "1" +5526-5535 uart: tx-data-bits: "0" +5534-5543 uart: tx-data-bits: "0" +5543-5552 uart: tx-data-bits: "1" +5491-5552 uart: tx-data: "H" +5552-5561 uart: tx-parity-ok: "Parity bit" "Parity" "P" +5560-5569 uart: tx-parity-ok: "Stop bit" "Stop" "T" +5569-5578 uart: tx-start: "Start bit" "Start" "S" +5578-5587 uart: tx-data-bits: "1" +5587-5596 uart: tx-data-bits: "0" +5595-5604 uart: tx-data-bits: "1" +5604-5613 uart: tx-data-bits: "0" +5613-5622 uart: tx-data-bits: "0" +5621-5630 uart: tx-data-bits: "1" +5630-5639 uart: tx-data-bits: "1" +5578-5639 uart: tx-data: "e" +5639-5648 uart: tx-parity-ok: "Parity bit" "Parity" "P" +5647-5656 uart: tx-parity-ok: "Stop bit" "Stop" "T" +5656-5665 uart: tx-start: "Start bit" "Start" "S" +5665-5674 uart: tx-data-bits: "0" +5674-5683 uart: tx-data-bits: "0" +5682-5691 uart: tx-data-bits: "1" +5691-5700 uart: tx-data-bits: "1" +5700-5709 uart: tx-data-bits: "0" +5708-5717 uart: tx-data-bits: "1" +5717-5726 uart: tx-data-bits: "1" +5665-5726 uart: tx-data: "l" +5726-5735 uart: tx-parity-ok: "Parity bit" "Parity" "P" +5734-5743 uart: tx-parity-ok: "Stop bit" "Stop" "T" +5742-5751 uart: tx-start: "Start bit" "Start" "S" +5751-5760 uart: tx-data-bits: "0" +5760-5769 uart: tx-data-bits: "0" +5768-5777 uart: tx-data-bits: "1" +5777-5786 uart: tx-data-bits: "1" +5786-5795 uart: tx-data-bits: "0" +5794-5803 uart: tx-data-bits: "1" +5803-5812 uart: tx-data-bits: "1" +5751-5812 uart: tx-data: "l" +5812-5821 uart: tx-parity-ok: "Parity bit" "Parity" "P" +5820-5829 uart: tx-parity-ok: "Stop bit" "Stop" "T" +5829-5838 uart: tx-start: "Start bit" "Start" "S" +5838-5847 uart: tx-data-bits: "1" +5847-5856 uart: tx-data-bits: "1" +5855-5864 uart: tx-data-bits: "1" +5864-5873 uart: tx-data-bits: "1" +5873-5882 uart: tx-data-bits: "0" +5881-5890 uart: tx-data-bits: "1" +5890-5899 uart: tx-data-bits: "1" +5838-5899 uart: tx-data: "o" +5899-5908 uart: tx-parity-ok: "Parity bit" "Parity" "P" +5907-5916 uart: tx-parity-ok: "Stop bit" "Stop" "T" +5916-5925 uart: tx-start: "Start bit" "Start" "S" +5925-5934 uart: tx-data-bits: "0" +5934-5943 uart: tx-data-bits: "0" +5942-5951 uart: tx-data-bits: "0" +5951-5960 uart: tx-data-bits: "0" +5960-5969 uart: tx-data-bits: "0" +5968-5977 uart: tx-data-bits: "1" +5977-5986 uart: tx-data-bits: "0" +5925-5986 uart: tx-data: " " +5986-5995 uart: tx-parity-ok: "Parity bit" "Parity" "P" +5994-6003 uart: tx-parity-ok: "Stop bit" "Stop" "T" +6003-6012 uart: tx-start: "Start bit" "Start" "S" +6012-6021 uart: tx-data-bits: "1" +6021-6030 uart: tx-data-bits: "1" +6029-6038 uart: tx-data-bits: "1" +6038-6047 uart: tx-data-bits: "0" +6047-6056 uart: tx-data-bits: "1" +6055-6064 uart: tx-data-bits: "0" +6064-6073 uart: tx-data-bits: "1" +6012-6073 uart: tx-data: "W" +6073-6082 uart: tx-parity-ok: "Parity bit" "Parity" "P" +6081-6090 uart: tx-parity-ok: "Stop bit" "Stop" "T" +6090-6099 uart: tx-start: "Start bit" "Start" "S" +6099-6108 uart: tx-data-bits: "1" +6108-6117 uart: tx-data-bits: "1" +6116-6125 uart: tx-data-bits: "1" +6125-6134 uart: tx-data-bits: "1" +6134-6143 uart: tx-data-bits: "0" +6142-6151 uart: tx-data-bits: "1" +6151-6160 uart: tx-data-bits: "1" +6099-6160 uart: tx-data: "o" +6160-6169 uart: tx-parity-ok: "Parity bit" "Parity" "P" +6168-6177 uart: tx-parity-ok: "Stop bit" "Stop" "T" +6176-6185 uart: tx-start: "Start bit" "Start" "S" +6185-6194 uart: tx-data-bits: "0" +6194-6203 uart: tx-data-bits: "1" +6202-6211 uart: tx-data-bits: "0" +6211-6220 uart: tx-data-bits: "0" +6220-6229 uart: tx-data-bits: "1" +6228-6237 uart: tx-data-bits: "1" +6237-6246 uart: tx-data-bits: "1" +6185-6246 uart: tx-data: "r" +6246-6255 uart: tx-parity-ok: "Parity bit" "Parity" "P" +6254-6263 uart: tx-parity-ok: "Stop bit" "Stop" "T" +6263-6272 uart: tx-start: "Start bit" "Start" "S" +6272-6281 uart: tx-data-bits: "0" +6281-6290 uart: tx-data-bits: "0" +6289-6298 uart: tx-data-bits: "1" +6298-6307 uart: tx-data-bits: "1" +6307-6316 uart: tx-data-bits: "0" +6315-6324 uart: tx-data-bits: "1" +6324-6333 uart: tx-data-bits: "1" +6272-6333 uart: tx-data: "l" +6333-6342 uart: tx-parity-ok: "Parity bit" "Parity" "P" +6341-6350 uart: tx-parity-ok: "Stop bit" "Stop" "T" +6350-6359 uart: tx-start: "Start bit" "Start" "S" +6359-6368 uart: tx-data-bits: "0" +6368-6377 uart: tx-data-bits: "0" +6376-6385 uart: tx-data-bits: "1" +6385-6394 uart: tx-data-bits: "0" +6394-6403 uart: tx-data-bits: "0" +6402-6411 uart: tx-data-bits: "1" +6411-6420 uart: tx-data-bits: "1" +6359-6420 uart: tx-data: "d" +6420-6429 uart: tx-parity-ok: "Parity bit" "Parity" "P" +6428-6437 uart: tx-parity-ok: "Stop bit" "Stop" "T" +6437-6446 uart: tx-start: "Start bit" "Start" "S" +6446-6455 uart: tx-data-bits: "1" +6455-6464 uart: tx-data-bits: "0" +6463-6472 uart: tx-data-bits: "0" +6472-6481 uart: tx-data-bits: "0" +6481-6490 uart: tx-data-bits: "0" +6489-6498 uart: tx-data-bits: "1" +6498-6507 uart: tx-data-bits: "0" +6446-6507 uart: tx-data: "!" +6507-6516 uart: tx-parity-ok: "Parity bit" "Parity" "P" +6515-6524 uart: tx-parity-ok: "Stop bit" "Stop" "T" +6524-6533 uart: tx-start: "Start bit" "Start" "S" +6533-6542 uart: tx-data-bits: "1" +6542-6551 uart: tx-data-bits: "0" +6550-6559 uart: tx-data-bits: "1" +6559-6568 uart: tx-data-bits: "1" +6568-6577 uart: tx-data-bits: "0" +6576-6585 uart: tx-data-bits: "0" +6585-6594 uart: tx-data-bits: "0" +6533-6594 uart: tx-data: "[0D]" +6594-6603 uart: tx-parity-ok: "Parity bit" "Parity" "P" +6602-6611 uart: tx-parity-ok: "Stop bit" "Stop" "T" +6610-6619 uart: tx-start: "Start bit" "Start" "S" +6619-6628 uart: tx-data-bits: "0" +6628-6637 uart: tx-data-bits: "1" +6636-6645 uart: tx-data-bits: "0" +6645-6654 uart: tx-data-bits: "1" +6654-6663 uart: tx-data-bits: "0" +6662-6671 uart: tx-data-bits: "0" +6671-6680 uart: tx-data-bits: "0" +6619-6680 uart: tx-data: "[0A]" +6680-6689 uart: tx-parity-ok: "Parity bit" "Parity" "P" +6688-6697 uart: tx-parity-ok: "Stop bit" "Stop" "T" diff --git a/decoder/test/uart/hello_world_7o1_115200_parity_ignore.python b/decoder/test/uart/hello_world_7o1_115200_parity_ignore.python new file mode 100644 index 0000000..5e8910d --- /dev/null +++ b/decoder/test/uart/hello_world_7o1_115200_parity_ignore.python @@ -0,0 +1,297 @@ +300-309 uart: ['STARTBIT', 1, 0] +309-370 uart: ['DATA', 1, (72, [[0, 309, 317], [0, 318, 326], [0, 326, 334], [1, 335, 343], [0, 344, 352], [0, 352, 360], [1, 361, 369]])] +370-379 uart: ['PARITYBIT', 1, 1] +378-387 uart: ['STOPBIT', 1, 1] +300-387 uart: ['FRAME', 1, (72, True)] +387-396 uart: ['STARTBIT', 1, 0] +396-457 uart: ['DATA', 1, (101, [[1, 396, 404], [0, 405, 413], [1, 413, 421], [0, 422, 430], [0, 431, 439], [1, 439, 447], [1, 448, 456]])] +457-466 uart: ['PARITYBIT', 1, 1] +465-474 uart: ['STOPBIT', 1, 1] +387-474 uart: ['FRAME', 1, (101, True)] +473-482 uart: ['STARTBIT', 1, 0] +482-543 uart: ['DATA', 1, (108, [[0, 482, 490], [0, 491, 499], [1, 499, 507], [1, 508, 516], [0, 517, 525], [1, 525, 533], [1, 534, 542]])] +543-552 uart: ['PARITYBIT', 1, 1] +551-560 uart: ['STOPBIT', 1, 1] +473-560 uart: ['FRAME', 1, (108, True)] +560-569 uart: ['STARTBIT', 1, 0] +569-630 uart: ['DATA', 1, (108, [[0, 569, 577], [0, 578, 586], [1, 586, 594], [1, 595, 603], [0, 604, 612], [1, 612, 620], [1, 621, 629]])] +630-639 uart: ['PARITYBIT', 1, 1] +638-647 uart: ['STOPBIT', 1, 1] +560-647 uart: ['FRAME', 1, (108, True)] +647-656 uart: ['STARTBIT', 1, 0] +656-717 uart: ['DATA', 1, (111, [[1, 656, 664], [1, 665, 673], [1, 673, 681], [1, 682, 690], [0, 691, 699], [1, 699, 707], [1, 708, 716]])] +717-726 uart: ['PARITYBIT', 1, 1] +725-734 uart: ['STOPBIT', 1, 1] +647-734 uart: ['FRAME', 1, (111, True)] +734-743 uart: ['STARTBIT', 1, 0] +743-804 uart: ['DATA', 1, (32, [[0, 743, 751], [0, 752, 760], [0, 760, 768], [0, 769, 777], [0, 778, 786], [1, 786, 794], [0, 795, 803]])] +804-813 uart: ['PARITYBIT', 1, 0] +812-821 uart: ['STOPBIT', 1, 1] +734-821 uart: ['FRAME', 1, (32, True)] +821-830 uart: ['STARTBIT', 1, 0] +830-891 uart: ['DATA', 1, (87, [[1, 830, 838], [1, 839, 847], [1, 847, 855], [0, 856, 864], [1, 865, 873], [0, 873, 881], [1, 882, 890]])] +891-900 uart: ['PARITYBIT', 1, 0] +899-908 uart: ['STOPBIT', 1, 1] +821-908 uart: ['FRAME', 1, (87, True)] +907-916 uart: ['STARTBIT', 1, 0] +916-977 uart: ['DATA', 1, (111, [[1, 916, 924], [1, 925, 933], [1, 933, 941], [1, 942, 950], [0, 951, 959], [1, 959, 967], [1, 968, 976]])] +977-986 uart: ['PARITYBIT', 1, 1] +985-994 uart: ['STOPBIT', 1, 1] +907-994 uart: ['FRAME', 1, (111, True)] +994-1003 uart: ['STARTBIT', 1, 0] +1003-1064 uart: ['DATA', 1, (114, [[0, 1003, 1011], [1, 1012, 1020], [0, 1020, 1028], [0, 1029, 1037], [1, 1038, 1046], [1, 1046, 1054], [1, 1055, 1063]])] +1064-1073 uart: ['PARITYBIT', 1, 1] +1072-1081 uart: ['STOPBIT', 1, 1] +994-1081 uart: ['FRAME', 1, (114, True)] +1081-1090 uart: ['STARTBIT', 1, 0] +1090-1151 uart: ['DATA', 1, (108, [[0, 1090, 1098], [0, 1099, 1107], [1, 1107, 1115], [1, 1116, 1124], [0, 1125, 1133], [1, 1133, 1141], [1, 1142, 1150]])] +1151-1160 uart: ['PARITYBIT', 1, 1] +1159-1168 uart: ['STOPBIT', 1, 1] +1081-1168 uart: ['FRAME', 1, (108, True)] +1168-1177 uart: ['STARTBIT', 1, 0] +1177-1238 uart: ['DATA', 1, (100, [[0, 1177, 1185], [0, 1186, 1194], [1, 1194, 1202], [0, 1203, 1211], [0, 1212, 1220], [1, 1220, 1228], [1, 1229, 1237]])] +1238-1247 uart: ['PARITYBIT', 1, 0] +1246-1255 uart: ['STOPBIT', 1, 1] +1168-1255 uart: ['FRAME', 1, (100, True)] +1255-1264 uart: ['STARTBIT', 1, 0] +1264-1325 uart: ['DATA', 1, (33, [[1, 1264, 1272], [0, 1273, 1281], [0, 1281, 1289], [0, 1290, 1298], [0, 1299, 1307], [1, 1307, 1315], [0, 1316, 1324]])] +1325-1334 uart: ['PARITYBIT', 1, 1] +1333-1342 uart: ['STOPBIT', 1, 1] +1255-1342 uart: ['FRAME', 1, (33, True)] +1341-1350 uart: ['STARTBIT', 1, 0] +1350-1411 uart: ['DATA', 1, (13, [[1, 1350, 1358], [0, 1359, 1367], [1, 1367, 1375], [1, 1376, 1384], [0, 1385, 1393], [0, 1393, 1401], [0, 1402, 1410]])] +1411-1420 uart: ['PARITYBIT', 1, 0] +1419-1428 uart: ['STOPBIT', 1, 1] +1341-1428 uart: ['FRAME', 1, (13, True)] +1428-1437 uart: ['STARTBIT', 1, 0] +1437-1498 uart: ['DATA', 1, (10, [[0, 1437, 1445], [1, 1446, 1454], [0, 1454, 1462], [1, 1463, 1471], [0, 1472, 1480], [0, 1480, 1488], [0, 1489, 1497]])] +1498-1507 uart: ['PARITYBIT', 1, 1] +1506-1515 uart: ['STOPBIT', 1, 1] +1428-1515 uart: ['FRAME', 1, (10, True)] +1515-1602 uart: ['IDLE', 1, 0] +1602-1689 uart: ['IDLE', 1, 0] +1689-1776 uart: ['IDLE', 1, 0] +1776-1863 uart: ['IDLE', 1, 0] +1863-1950 uart: ['IDLE', 1, 0] +2027-2036 uart: ['STARTBIT', 1, 0] +2036-2097 uart: ['DATA', 1, (72, [[0, 2036, 2044], [0, 2045, 2053], [0, 2053, 2061], [1, 2062, 2070], [0, 2071, 2079], [0, 2079, 2087], [1, 2088, 2096]])] +2097-2106 uart: ['PARITYBIT', 1, 1] +2105-2114 uart: ['STOPBIT', 1, 1] +2027-2114 uart: ['FRAME', 1, (72, True)] +2114-2123 uart: ['STARTBIT', 1, 0] +2123-2184 uart: ['DATA', 1, (101, [[1, 2123, 2131], [0, 2132, 2140], [1, 2140, 2148], [0, 2149, 2157], [0, 2158, 2166], [1, 2166, 2174], [1, 2175, 2183]])] +2184-2193 uart: ['PARITYBIT', 1, 1] +2192-2201 uart: ['STOPBIT', 1, 1] +2114-2201 uart: ['FRAME', 1, (101, True)] +2201-2210 uart: ['STARTBIT', 1, 0] +2210-2271 uart: ['DATA', 1, (108, [[0, 2210, 2218], [0, 2219, 2227], [1, 2227, 2235], [1, 2236, 2244], [0, 2245, 2253], [1, 2253, 2261], [1, 2262, 2270]])] +2271-2280 uart: ['PARITYBIT', 1, 1] +2279-2288 uart: ['STOPBIT', 1, 1] +2201-2288 uart: ['FRAME', 1, (108, True)] +2288-2297 uart: ['STARTBIT', 1, 0] +2297-2358 uart: ['DATA', 1, (108, [[0, 2297, 2305], [0, 2306, 2314], [1, 2314, 2322], [1, 2323, 2331], [0, 2332, 2340], [1, 2340, 2348], [1, 2349, 2357]])] +2358-2367 uart: ['PARITYBIT', 1, 1] +2366-2375 uart: ['STOPBIT', 1, 1] +2288-2375 uart: ['FRAME', 1, (108, True)] +2374-2383 uart: ['STARTBIT', 1, 0] +2383-2444 uart: ['DATA', 1, (111, [[1, 2383, 2391], [1, 2392, 2400], [1, 2400, 2408], [1, 2409, 2417], [0, 2418, 2426], [1, 2426, 2434], [1, 2435, 2443]])] +2444-2453 uart: ['PARITYBIT', 1, 1] +2452-2461 uart: ['STOPBIT', 1, 1] +2374-2461 uart: ['FRAME', 1, (111, True)] +2461-2470 uart: ['STARTBIT', 1, 0] +2470-2531 uart: ['DATA', 1, (32, [[0, 2470, 2478], [0, 2479, 2487], [0, 2487, 2495], [0, 2496, 2504], [0, 2505, 2513], [1, 2513, 2521], [0, 2522, 2530]])] +2531-2540 uart: ['PARITYBIT', 1, 0] +2539-2548 uart: ['STOPBIT', 1, 1] +2461-2548 uart: ['FRAME', 1, (32, True)] +2548-2557 uart: ['STARTBIT', 1, 0] +2557-2618 uart: ['DATA', 1, (87, [[1, 2557, 2565], [1, 2566, 2574], [1, 2574, 2582], [0, 2583, 2591], [1, 2592, 2600], [0, 2600, 2608], [1, 2609, 2617]])] +2618-2627 uart: ['PARITYBIT', 1, 0] +2626-2635 uart: ['STOPBIT', 1, 1] +2548-2635 uart: ['FRAME', 1, (87, True)] +2635-2644 uart: ['STARTBIT', 1, 0] +2644-2705 uart: ['DATA', 1, (111, [[1, 2644, 2652], [1, 2653, 2661], [1, 2661, 2669], [1, 2670, 2678], [0, 2679, 2687], [1, 2687, 2695], [1, 2696, 2704]])] +2705-2714 uart: ['PARITYBIT', 1, 1] +2713-2722 uart: ['STOPBIT', 1, 1] +2635-2722 uart: ['FRAME', 1, (111, True)] +2722-2731 uart: ['STARTBIT', 1, 0] +2731-2792 uart: ['DATA', 1, (114, [[0, 2731, 2739], [1, 2740, 2748], [0, 2748, 2756], [0, 2757, 2765], [1, 2766, 2774], [1, 2774, 2782], [1, 2783, 2791]])] +2792-2801 uart: ['PARITYBIT', 1, 1] +2800-2809 uart: ['STOPBIT', 1, 1] +2722-2809 uart: ['FRAME', 1, (114, True)] +2808-2817 uart: ['STARTBIT', 1, 0] +2817-2878 uart: ['DATA', 1, (108, [[0, 2817, 2825], [0, 2826, 2834], [1, 2834, 2842], [1, 2843, 2851], [0, 2852, 2860], [1, 2860, 2868], [1, 2869, 2877]])] +2878-2887 uart: ['PARITYBIT', 1, 1] +2886-2895 uart: ['STOPBIT', 1, 1] +2808-2895 uart: ['FRAME', 1, (108, True)] +2895-2904 uart: ['STARTBIT', 1, 0] +2904-2965 uart: ['DATA', 1, (100, [[0, 2904, 2912], [0, 2913, 2921], [1, 2921, 2929], [0, 2930, 2938], [0, 2939, 2947], [1, 2947, 2955], [1, 2956, 2964]])] +2965-2974 uart: ['PARITYBIT', 1, 0] +2973-2982 uart: ['STOPBIT', 1, 1] +2895-2982 uart: ['FRAME', 1, (100, True)] +2982-2991 uart: ['STARTBIT', 1, 0] +2991-3052 uart: ['DATA', 1, (33, [[1, 2991, 2999], [0, 3000, 3008], [0, 3008, 3016], [0, 3017, 3025], [0, 3026, 3034], [1, 3034, 3042], [0, 3043, 3051]])] +3052-3061 uart: ['PARITYBIT', 1, 1] +3060-3069 uart: ['STOPBIT', 1, 1] +2982-3069 uart: ['FRAME', 1, (33, True)] +3069-3078 uart: ['STARTBIT', 1, 0] +3078-3139 uart: ['DATA', 1, (13, [[1, 3078, 3086], [0, 3087, 3095], [1, 3095, 3103], [1, 3104, 3112], [0, 3113, 3121], [0, 3121, 3129], [0, 3130, 3138]])] +3139-3148 uart: ['PARITYBIT', 1, 0] +3147-3156 uart: ['STOPBIT', 1, 1] +3069-3156 uart: ['FRAME', 1, (13, True)] +3156-3165 uart: ['STARTBIT', 1, 0] +3165-3226 uart: ['DATA', 1, (10, [[0, 3165, 3173], [1, 3174, 3182], [0, 3182, 3190], [1, 3191, 3199], [0, 3200, 3208], [0, 3208, 3216], [0, 3217, 3225]])] +3226-3235 uart: ['PARITYBIT', 1, 1] +3234-3243 uart: ['STOPBIT', 1, 1] +3156-3243 uart: ['FRAME', 1, (10, True)] +3243-3330 uart: ['IDLE', 1, 0] +3330-3417 uart: ['IDLE', 1, 0] +3417-3504 uart: ['IDLE', 1, 0] +3504-3591 uart: ['IDLE', 1, 0] +3591-3678 uart: ['IDLE', 1, 0] +3755-3764 uart: ['STARTBIT', 1, 0] +3764-3825 uart: ['DATA', 1, (72, [[0, 3764, 3772], [0, 3773, 3781], [0, 3781, 3789], [1, 3790, 3798], [0, 3799, 3807], [0, 3807, 3815], [1, 3816, 3824]])] +3825-3834 uart: ['PARITYBIT', 1, 1] +3833-3842 uart: ['STOPBIT', 1, 1] +3755-3842 uart: ['FRAME', 1, (72, True)] +3841-3850 uart: ['STARTBIT', 1, 0] +3850-3911 uart: ['DATA', 1, (101, [[1, 3850, 3858], [0, 3859, 3867], [1, 3867, 3875], [0, 3876, 3884], [0, 3885, 3893], [1, 3893, 3901], [1, 3902, 3910]])] +3911-3920 uart: ['PARITYBIT', 1, 1] +3919-3928 uart: ['STOPBIT', 1, 1] +3841-3928 uart: ['FRAME', 1, (101, True)] +3928-3937 uart: ['STARTBIT', 1, 0] +3937-3998 uart: ['DATA', 1, (108, [[0, 3937, 3945], [0, 3946, 3954], [1, 3954, 3962], [1, 3963, 3971], [0, 3972, 3980], [1, 3980, 3988], [1, 3989, 3997]])] +3998-4007 uart: ['PARITYBIT', 1, 1] +4006-4015 uart: ['STOPBIT', 1, 1] +3928-4015 uart: ['FRAME', 1, (108, True)] +4015-4024 uart: ['STARTBIT', 1, 0] +4024-4085 uart: ['DATA', 1, (108, [[0, 4024, 4032], [0, 4033, 4041], [1, 4041, 4049], [1, 4050, 4058], [0, 4059, 4067], [1, 4067, 4075], [1, 4076, 4084]])] +4085-4094 uart: ['PARITYBIT', 1, 1] +4093-4102 uart: ['STOPBIT', 1, 1] +4015-4102 uart: ['FRAME', 1, (108, True)] +4102-4111 uart: ['STARTBIT', 1, 0] +4111-4172 uart: ['DATA', 1, (111, [[1, 4111, 4119], [1, 4120, 4128], [1, 4128, 4136], [1, 4137, 4145], [0, 4146, 4154], [1, 4154, 4162], [1, 4163, 4171]])] +4172-4181 uart: ['PARITYBIT', 1, 1] +4180-4189 uart: ['STOPBIT', 1, 1] +4102-4189 uart: ['FRAME', 1, (111, True)] +4189-4198 uart: ['STARTBIT', 1, 0] +4198-4259 uart: ['DATA', 1, (32, [[0, 4198, 4206], [0, 4207, 4215], [0, 4215, 4223], [0, 4224, 4232], [0, 4233, 4241], [1, 4241, 4249], [0, 4250, 4258]])] +4259-4268 uart: ['PARITYBIT', 1, 0] +4267-4276 uart: ['STOPBIT', 1, 1] +4189-4276 uart: ['FRAME', 1, (32, True)] +4275-4284 uart: ['STARTBIT', 1, 0] +4284-4345 uart: ['DATA', 1, (87, [[1, 4284, 4292], [1, 4293, 4301], [1, 4301, 4309], [0, 4310, 4318], [1, 4319, 4327], [0, 4327, 4335], [1, 4336, 4344]])] +4345-4354 uart: ['PARITYBIT', 1, 0] +4353-4362 uart: ['STOPBIT', 1, 1] +4275-4362 uart: ['FRAME', 1, (87, True)] +4362-4371 uart: ['STARTBIT', 1, 0] +4371-4432 uart: ['DATA', 1, (111, [[1, 4371, 4379], [1, 4380, 4388], [1, 4388, 4396], [1, 4397, 4405], [0, 4406, 4414], [1, 4414, 4422], [1, 4423, 4431]])] +4432-4441 uart: ['PARITYBIT', 1, 1] +4440-4449 uart: ['STOPBIT', 1, 1] +4362-4449 uart: ['FRAME', 1, (111, True)] +4449-4458 uart: ['STARTBIT', 1, 0] +4458-4519 uart: ['DATA', 1, (114, [[0, 4458, 4466], [1, 4467, 4475], [0, 4475, 4483], [0, 4484, 4492], [1, 4493, 4501], [1, 4501, 4509], [1, 4510, 4518]])] +4519-4528 uart: ['PARITYBIT', 1, 1] +4527-4536 uart: ['STOPBIT', 1, 1] +4449-4536 uart: ['FRAME', 1, (114, True)] +4536-4545 uart: ['STARTBIT', 1, 0] +4545-4606 uart: ['DATA', 1, (108, [[0, 4545, 4553], [0, 4554, 4562], [1, 4562, 4570], [1, 4571, 4579], [0, 4580, 4588], [1, 4588, 4596], [1, 4597, 4605]])] +4606-4615 uart: ['PARITYBIT', 1, 1] +4614-4623 uart: ['STOPBIT', 1, 1] +4536-4623 uart: ['FRAME', 1, (108, True)] +4623-4632 uart: ['STARTBIT', 1, 0] +4632-4693 uart: ['DATA', 1, (100, [[0, 4632, 4640], [0, 4641, 4649], [1, 4649, 4657], [0, 4658, 4666], [0, 4667, 4675], [1, 4675, 4683], [1, 4684, 4692]])] +4693-4702 uart: ['PARITYBIT', 1, 0] +4701-4710 uart: ['STOPBIT', 1, 1] +4623-4710 uart: ['FRAME', 1, (100, True)] +4709-4718 uart: ['STARTBIT', 1, 0] +4718-4779 uart: ['DATA', 1, (33, [[1, 4718, 4726], [0, 4727, 4735], [0, 4735, 4743], [0, 4744, 4752], [0, 4753, 4761], [1, 4761, 4769], [0, 4770, 4778]])] +4779-4788 uart: ['PARITYBIT', 1, 1] +4787-4796 uart: ['STOPBIT', 1, 1] +4709-4796 uart: ['FRAME', 1, (33, True)] +4796-4805 uart: ['STARTBIT', 1, 0] +4805-4866 uart: ['DATA', 1, (13, [[1, 4805, 4813], [0, 4814, 4822], [1, 4822, 4830], [1, 4831, 4839], [0, 4840, 4848], [0, 4848, 4856], [0, 4857, 4865]])] +4866-4875 uart: ['PARITYBIT', 1, 0] +4874-4883 uart: ['STOPBIT', 1, 1] +4796-4883 uart: ['FRAME', 1, (13, True)] +4883-4892 uart: ['STARTBIT', 1, 0] +4892-4953 uart: ['DATA', 1, (10, [[0, 4892, 4900], [1, 4901, 4909], [0, 4909, 4917], [1, 4918, 4926], [0, 4927, 4935], [0, 4935, 4943], [0, 4944, 4952]])] +4953-4962 uart: ['PARITYBIT', 1, 1] +4961-4970 uart: ['STOPBIT', 1, 1] +4883-4970 uart: ['FRAME', 1, (10, True)] +4970-5057 uart: ['IDLE', 1, 0] +5057-5144 uart: ['IDLE', 1, 0] +5144-5231 uart: ['IDLE', 1, 0] +5231-5318 uart: ['IDLE', 1, 0] +5318-5405 uart: ['IDLE', 1, 0] +5482-5491 uart: ['STARTBIT', 1, 0] +5491-5552 uart: ['DATA', 1, (72, [[0, 5491, 5499], [0, 5500, 5508], [0, 5508, 5516], [1, 5517, 5525], [0, 5526, 5534], [0, 5534, 5542], [1, 5543, 5551]])] +5552-5561 uart: ['PARITYBIT', 1, 1] +5560-5569 uart: ['STOPBIT', 1, 1] +5482-5569 uart: ['FRAME', 1, (72, True)] +5569-5578 uart: ['STARTBIT', 1, 0] +5578-5639 uart: ['DATA', 1, (101, [[1, 5578, 5586], [0, 5587, 5595], [1, 5595, 5603], [0, 5604, 5612], [0, 5613, 5621], [1, 5621, 5629], [1, 5630, 5638]])] +5639-5648 uart: ['PARITYBIT', 1, 1] +5647-5656 uart: ['STOPBIT', 1, 1] +5569-5656 uart: ['FRAME', 1, (101, True)] +5656-5665 uart: ['STARTBIT', 1, 0] +5665-5726 uart: ['DATA', 1, (108, [[0, 5665, 5673], [0, 5674, 5682], [1, 5682, 5690], [1, 5691, 5699], [0, 5700, 5708], [1, 5708, 5716], [1, 5717, 5725]])] +5726-5735 uart: ['PARITYBIT', 1, 1] +5734-5743 uart: ['STOPBIT', 1, 1] +5656-5743 uart: ['FRAME', 1, (108, True)] +5742-5751 uart: ['STARTBIT', 1, 0] +5751-5812 uart: ['DATA', 1, (108, [[0, 5751, 5759], [0, 5760, 5768], [1, 5768, 5776], [1, 5777, 5785], [0, 5786, 5794], [1, 5794, 5802], [1, 5803, 5811]])] +5812-5821 uart: ['PARITYBIT', 1, 1] +5820-5829 uart: ['STOPBIT', 1, 1] +5742-5829 uart: ['FRAME', 1, (108, True)] +5829-5838 uart: ['STARTBIT', 1, 0] +5838-5899 uart: ['DATA', 1, (111, [[1, 5838, 5846], [1, 5847, 5855], [1, 5855, 5863], [1, 5864, 5872], [0, 5873, 5881], [1, 5881, 5889], [1, 5890, 5898]])] +5899-5908 uart: ['PARITYBIT', 1, 1] +5907-5916 uart: ['STOPBIT', 1, 1] +5829-5916 uart: ['FRAME', 1, (111, True)] +5916-5925 uart: ['STARTBIT', 1, 0] +5925-5986 uart: ['DATA', 1, (32, [[0, 5925, 5933], [0, 5934, 5942], [0, 5942, 5950], [0, 5951, 5959], [0, 5960, 5968], [1, 5968, 5976], [0, 5977, 5985]])] +5986-5995 uart: ['PARITYBIT', 1, 0] +5994-6003 uart: ['STOPBIT', 1, 1] +5916-6003 uart: ['FRAME', 1, (32, True)] +6003-6012 uart: ['STARTBIT', 1, 0] +6012-6073 uart: ['DATA', 1, (87, [[1, 6012, 6020], [1, 6021, 6029], [1, 6029, 6037], [0, 6038, 6046], [1, 6047, 6055], [0, 6055, 6063], [1, 6064, 6072]])] +6073-6082 uart: ['PARITYBIT', 1, 0] +6081-6090 uart: ['STOPBIT', 1, 1] +6003-6090 uart: ['FRAME', 1, (87, True)] +6090-6099 uart: ['STARTBIT', 1, 0] +6099-6160 uart: ['DATA', 1, (111, [[1, 6099, 6107], [1, 6108, 6116], [1, 6116, 6124], [1, 6125, 6133], [0, 6134, 6142], [1, 6142, 6150], [1, 6151, 6159]])] +6160-6169 uart: ['PARITYBIT', 1, 1] +6168-6177 uart: ['STOPBIT', 1, 1] +6090-6177 uart: ['FRAME', 1, (111, True)] +6176-6185 uart: ['STARTBIT', 1, 0] +6185-6246 uart: ['DATA', 1, (114, [[0, 6185, 6193], [1, 6194, 6202], [0, 6202, 6210], [0, 6211, 6219], [1, 6220, 6228], [1, 6228, 6236], [1, 6237, 6245]])] +6246-6255 uart: ['PARITYBIT', 1, 1] +6254-6263 uart: ['STOPBIT', 1, 1] +6176-6263 uart: ['FRAME', 1, (114, True)] +6263-6272 uart: ['STARTBIT', 1, 0] +6272-6333 uart: ['DATA', 1, (108, [[0, 6272, 6280], [0, 6281, 6289], [1, 6289, 6297], [1, 6298, 6306], [0, 6307, 6315], [1, 6315, 6323], [1, 6324, 6332]])] +6333-6342 uart: ['PARITYBIT', 1, 1] +6341-6350 uart: ['STOPBIT', 1, 1] +6263-6350 uart: ['FRAME', 1, (108, True)] +6350-6359 uart: ['STARTBIT', 1, 0] +6359-6420 uart: ['DATA', 1, (100, [[0, 6359, 6367], [0, 6368, 6376], [1, 6376, 6384], [0, 6385, 6393], [0, 6394, 6402], [1, 6402, 6410], [1, 6411, 6419]])] +6420-6429 uart: ['PARITYBIT', 1, 0] +6428-6437 uart: ['STOPBIT', 1, 1] +6350-6437 uart: ['FRAME', 1, (100, True)] +6437-6446 uart: ['STARTBIT', 1, 0] +6446-6507 uart: ['DATA', 1, (33, [[1, 6446, 6454], [0, 6455, 6463], [0, 6463, 6471], [0, 6472, 6480], [0, 6481, 6489], [1, 6489, 6497], [0, 6498, 6506]])] +6507-6516 uart: ['PARITYBIT', 1, 1] +6515-6524 uart: ['STOPBIT', 1, 1] +6437-6524 uart: ['FRAME', 1, (33, True)] +6524-6533 uart: ['STARTBIT', 1, 0] +6533-6594 uart: ['DATA', 1, (13, [[1, 6533, 6541], [0, 6542, 6550], [1, 6550, 6558], [1, 6559, 6567], [0, 6568, 6576], [0, 6576, 6584], [0, 6585, 6593]])] +6594-6603 uart: ['PARITYBIT', 1, 0] +6602-6611 uart: ['STOPBIT', 1, 1] +6524-6611 uart: ['FRAME', 1, (13, True)] +6610-6619 uart: ['STARTBIT', 1, 0] +6619-6680 uart: ['DATA', 1, (10, [[0, 6619, 6627], [1, 6628, 6636], [0, 6636, 6644], [1, 6645, 6653], [0, 6654, 6662], [0, 6662, 6670], [0, 6671, 6679]])] +6680-6689 uart: ['PARITYBIT', 1, 1] +6688-6697 uart: ['STOPBIT', 1, 1] +6610-6697 uart: ['FRAME', 1, (10, True)] +6697-6784 uart: ['IDLE', 1, 0] +6784-6871 uart: ['IDLE', 1, 0] diff --git a/decoder/test/uart/test.conf b/decoder/test/uart/test.conf index 383a891..3bd5eb3 100644 --- a/decoder/test/uart/test.conf +++ b/decoder/test/uart/test.conf @@ -24,6 +24,13 @@ test hello_world_7o1_115200_parity_err output uart python match hello_world_7o1_115200_parity_err.python output uart binary class tx match hello_world_7o1_115200_parity_err.bin_tx +test hello_world_7o1_115200_parity_ignore + protocol-decoder uart channel tx=0 option baudrate=115200 option parity_type=ignore option num_data_bits=7 option format=ascii + input uart/hello_world/7o1/hello_world_7o1_115200.sr + output uart annotation match hello_world_7o1_115200_parity_ignore.output + output uart python match hello_world_7o1_115200_parity_ignore.python + output uart binary class tx match hello_world_7o1_115200_parity_ignore.bin_tx + test hello_world_7e1_115200 protocol-decoder uart channel tx=0 option baudrate=115200 option parity_type=even option num_data_bits=7 option format=ascii input uart/hello_world/7e1/hello_world_7e1_115200.sr