From: Uwe Hermann Date: Tue, 11 Sep 2018 06:36:49 +0000 (+0200) Subject: Add a few ook_oregon test-cases. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d99d14cfeaebd9aec68abb13d3e040cd2444e439;p=sigrok-test.git Add a few ook_oregon test-cases. --- diff --git a/decoder/test/ook_oregon/oregon_12s_d0.bin_pulselen b/decoder/test/ook_oregon/oregon_12s_d0.bin_pulselen new file mode 100644 index 0000000..c882df8 --- /dev/null +++ b/decoder/test/ook_oregon/oregon_12s_d0.bin_pulselen @@ -0,0 +1,4 @@ +51078-52920 ook_oregon: 4f 72 65 67 6f 6e 20 76 33 20 22 46 38 32 34 31 46 36 30 33 37 31 30 34 37 43 35 35 45 44 22 0a +176497-178536 ook_oregon: 4f 72 65 67 6f 6e 20 76 33 20 22 31 39 38 34 30 35 45 30 32 30 43 33 33 30 30 32 30 46 33 44 45 22 0a +187038-189199 ook_oregon: 4f 72 65 67 6f 6e 20 76 33 20 22 32 39 31 34 30 44 32 30 30 30 30 30 35 38 38 38 33 30 46 33 45 34 22 0a +203944-208694 ook_oregon: 4f 72 65 67 6f 6e 20 76 32 2e 31 20 22 35 44 36 30 32 42 43 30 32 31 31 30 32 35 30 44 39 30 43 45 35 30 30 22 0a diff --git a/decoder/test/ook_oregon/oregon_12s_d0.output b/decoder/test/ook_oregon/oregon_12s_d0.output new file mode 100644 index 0000000..defa1bb --- /dev/null +++ b/decoder/test/ook_oregon/oregon_12s_d0.output @@ -0,0 +1,103 @@ +50401-50980 ook_oregon: field: "Oregon v3 Preamble" "v3 Preamble" "v3 Pre" "v3" +50980-51078 ook_oregon: field: "Sync" "Syn" "S" +51078-51468 ook_oregon: field: "SensorID: f824" "f824" +51468-51565 ook_oregon: field: "Ch: 1" "1" +51565-51762 ook_oregon: field: "RollingCode: f6" "f6" +51762-51858 ook_oregon: field: "Flags1: 0" "0" +51858-51956 ook_oregon: field: "3" "3" +51956-52053 ook_oregon: field: "7" "7" +52053-52152 ook_oregon: field: "1" "1" +52152-52250 ook_oregon: field: "0" "0" +52250-52346 ook_oregon: field: "4" "4" +52346-52446 ook_oregon: field: "7" "7" +52446-52543 ook_oregon: field: "c" "c" +52543-52640 ook_oregon: field: "5" "5" +52640-52739 ook_oregon: field: "5" "5" +52739-52835 ook_oregon: field: "e" "e" +52835-52920 ook_oregon: field: "d" "d" +51078-51468 ook_oregon: l2: "THGN800,THGN801,THGR810 - Temp_Hum" "THGN800,THGN801,THGR810" "THGN800" +51468-51565 ook_oregon: l2: "Ch 1" "1" +51762-51858 ook_oregon: l2: "Batt OK" "OK" +51858-52250 ook_oregon: l2: "+17.3℃" "17.3" +52250-52446 ook_oregon: l2: "Hum 74%" "74" +52543-52739 ook_oregon: l2: "Checksum OK Calc 55 Rx 55 " "OK" +175817-176399 ook_oregon: field: "Oregon v3 Preamble" "v3 Preamble" "v3 Pre" "v3" +176399-176497 ook_oregon: field: "Sync" "Syn" "S" +176497-176888 ook_oregon: field: "SensorID: 1984" "1984" +176888-176985 ook_oregon: field: "Ch: 0" "0" +176985-177180 ook_oregon: field: "RollingCode: 5e" "5e" +177180-177278 ook_oregon: field: "Flags1: 0" "0" +177278-177376 ook_oregon: field: "2" "2" +177376-177473 ook_oregon: field: "0" "0" +177473-177572 ook_oregon: field: "c" "c" +177572-177669 ook_oregon: field: "3" "3" +177669-177767 ook_oregon: field: "3" "3" +177767-177864 ook_oregon: field: "0" "0" +177864-177962 ook_oregon: field: "0" "0" +177962-178059 ook_oregon: field: "2" "2" +178059-178157 ook_oregon: field: "0" "0" +178157-178256 ook_oregon: field: "f" "f" +178256-178352 ook_oregon: field: "3" "3" +178352-178450 ook_oregon: field: "d" "d" +178450-178536 ook_oregon: field: "e" "e" +176497-176888 ook_oregon: l2: "WGR800 - Wind" "WGR800" "WGR800" +176888-176985 ook_oregon: l2: "Ch 0" "0" +177180-177278 ook_oregon: l2: "Batt OK" "OK" +177278-177376 ook_oregon: l2: "NE (45°)" "NE" +177572-177864 ook_oregon: l2: "Gust 3.3 m/s" "3.3" +177864-178157 ook_oregon: l2: "Speed 2 m/s" "2" +178157-178352 ook_oregon: l2: "Checksum OK Calc 3F Rx 3F " "OK" +186358-186940 ook_oregon: field: "Oregon v3 Preamble" "v3 Preamble" "v3 Pre" "v3" +186940-187038 ook_oregon: field: "Sync" "Syn" "S" +187038-187427 ook_oregon: field: "SensorID: 2914" "2914" +187427-187526 ook_oregon: field: "Ch: 0" "0" +187526-187721 ook_oregon: field: "RollingCode: d2" "d2" +187721-187818 ook_oregon: field: "Flags1: 0" "0" +187818-187916 ook_oregon: field: "0" "0" +187916-188013 ook_oregon: field: "0" "0" +188013-188111 ook_oregon: field: "0" "0" +188111-188209 ook_oregon: field: "0" "0" +188209-188306 ook_oregon: field: "5" "5" +188306-188405 ook_oregon: field: "8" "8" +188405-188503 ook_oregon: field: "8" "8" +188503-188603 ook_oregon: field: "8" "8" +188603-188697 ook_oregon: field: "3" "3" +188697-188795 ook_oregon: field: "0" "0" +188795-188896 ook_oregon: field: "f" "f" +188896-188990 ook_oregon: field: "3" "3" +188990-189089 ook_oregon: field: "e" "e" +189089-189187 ook_oregon: field: "4" "4" +187038-187427 ook_oregon: l2: "PCR800 - Rain" "PCR800" "PCR800" +187427-187526 ook_oregon: l2: "Ch 0" "0" +187721-187818 ook_oregon: l2: "Batt OK" "OK" +187818-188209 ook_oregon: l2: "0 in/hr" "0" +188209-188795 ook_oregon: l2: "Total 38.885 in" "38.885" +188795-188990 ook_oregon: l2: "Checksum OK Calc 3F Rx 3F " "OK" +202887-203738 ook_oregon: field: "Oregon v2.1 Preamble" "v2.1 Preamble" "v2.1 Pre" "v2.1" +203738-203944 ook_oregon: field: "Sync" "Syn" "S" +203944-204770 ook_oregon: field: "SensorID: 5d60" "5d60" +204770-204977 ook_oregon: field: "Ch: 2" "2" +204977-205390 ook_oregon: field: "RollingCode: bc" "bc" +205390-205596 ook_oregon: field: "Flags1: 0" "0" +205596-205803 ook_oregon: field: "2" "2" +205803-206010 ook_oregon: field: "1" "1" +206010-206216 ook_oregon: field: "1" "1" +206216-206422 ook_oregon: field: "0" "0" +206422-206629 ook_oregon: field: "2" "2" +206629-206835 ook_oregon: field: "5" "5" +206835-207042 ook_oregon: field: "0" "0" +207042-207248 ook_oregon: field: "d" "d" +207248-207455 ook_oregon: field: "9" "9" +207455-207661 ook_oregon: field: "0" "0" +207661-207868 ook_oregon: field: "c" "c" +207868-208074 ook_oregon: field: "e" "e" +208074-208281 ook_oregon: field: "5" "5" +208281-208487 ook_oregon: field: "0" "0" +208487-208694 ook_oregon: field: "0" "0" +203944-204770 ook_oregon: l2: "BTHR968 - Temp_Hum_Baro" "BTHR968" "BTHR968" +204770-204977 ook_oregon: l2: "Ch 2" "2" +205390-205596 ook_oregon: l2: "Batt OK" "OK" +205596-206422 ook_oregon: l2: "+11.2℃" "11.2" +206422-206835 ook_oregon: l2: "Hum 52%" "52" +207042-207868 ook_oregon: l2: "1013 mb" "1013" +207868-208281 ook_oregon: l2: "Checksum OK Calc 5E Rx 5E " "OK" diff --git a/decoder/test/ook_oregon/oregon_12s_d1.bin_pulselen b/decoder/test/ook_oregon/oregon_12s_d1.bin_pulselen new file mode 100644 index 0000000..133f73e --- /dev/null +++ b/decoder/test/ook_oregon/oregon_12s_d1.bin_pulselen @@ -0,0 +1 @@ +203943-208692 ook_oregon: 4f 72 65 67 6f 6e 20 76 32 2e 31 20 22 35 44 36 30 32 42 43 30 32 31 31 30 32 35 30 44 39 30 43 45 35 30 30 22 0a diff --git a/decoder/test/ook_oregon/oregon_12s_d1.output b/decoder/test/ook_oregon/oregon_12s_d1.output new file mode 100644 index 0000000..c78d751 --- /dev/null +++ b/decoder/test/ook_oregon/oregon_12s_d1.output @@ -0,0 +1,28 @@ +202936-203737 ook_oregon: field: "Oregon v2.1 Preamble" "v2.1 Preamble" "v2.1 Pre" "v2.1" +203737-203943 ook_oregon: field: "Sync" "Syn" "S" +203943-204769 ook_oregon: field: "SensorID: 5d60" "5d60" +204769-204976 ook_oregon: field: "Ch: 2" "2" +204976-205389 ook_oregon: field: "RollingCode: bc" "bc" +205389-205595 ook_oregon: field: "Flags1: 0" "0" +205595-205801 ook_oregon: field: "2" "2" +205801-206008 ook_oregon: field: "1" "1" +206008-206214 ook_oregon: field: "1" "1" +206214-206421 ook_oregon: field: "0" "0" +206421-206628 ook_oregon: field: "2" "2" +206628-206834 ook_oregon: field: "5" "5" +206834-207040 ook_oregon: field: "0" "0" +207040-207247 ook_oregon: field: "d" "d" +207247-207453 ook_oregon: field: "9" "9" +207453-207660 ook_oregon: field: "0" "0" +207660-207866 ook_oregon: field: "c" "c" +207866-208073 ook_oregon: field: "e" "e" +208073-208279 ook_oregon: field: "5" "5" +208279-208486 ook_oregon: field: "0" "0" +208486-208692 ook_oregon: field: "0" "0" +203943-204769 ook_oregon: l2: "BTHR968 - Temp_Hum_Baro" "BTHR968" "BTHR968" +204769-204976 ook_oregon: l2: "Ch 2" "2" +205389-205595 ook_oregon: l2: "Batt OK" "OK" +205595-206421 ook_oregon: l2: "+11.2℃" "11.2" +206421-206834 ook_oregon: l2: "Hum 52%" "52" +207040-207866 ook_oregon: l2: "1013 mb" "1013" +207866-208279 ook_oregon: l2: "Checksum OK Calc 5E Rx 5E " "OK" diff --git a/decoder/test/ook_oregon/oregon_bthr968.bin_pulselen b/decoder/test/ook_oregon/oregon_bthr968.bin_pulselen new file mode 100644 index 0000000..b8ad72b --- /dev/null +++ b/decoder/test/ook_oregon/oregon_bthr968.bin_pulselen @@ -0,0 +1 @@ +1069-5819 ook_oregon: 4f 72 65 67 6f 6e 20 76 32 2e 31 20 22 35 44 36 30 32 42 43 30 32 31 31 30 32 35 30 44 39 30 43 45 35 30 30 22 0a diff --git a/decoder/test/ook_oregon/oregon_bthr968.output b/decoder/test/ook_oregon/oregon_bthr968.output new file mode 100644 index 0000000..aa3ebc1 --- /dev/null +++ b/decoder/test/ook_oregon/oregon_bthr968.output @@ -0,0 +1,28 @@ +62-863 ook_oregon: field: "Oregon v2.1 Preamble" "v2.1 Preamble" "v2.1 Pre" "v2.1" +863-1069 ook_oregon: field: "Sync" "Syn" "S" +1069-1895 ook_oregon: field: "SensorID: 5d60" "5d60" +1895-2102 ook_oregon: field: "Ch: 2" "2" +2102-2515 ook_oregon: field: "RollingCode: bc" "bc" +2515-2721 ook_oregon: field: "Flags1: 0" "0" +2721-2928 ook_oregon: field: "2" "2" +2928-3135 ook_oregon: field: "1" "1" +3135-3341 ook_oregon: field: "1" "1" +3341-3547 ook_oregon: field: "0" "0" +3547-3754 ook_oregon: field: "2" "2" +3754-3960 ook_oregon: field: "5" "5" +3960-4167 ook_oregon: field: "0" "0" +4167-4373 ook_oregon: field: "d" "d" +4373-4580 ook_oregon: field: "9" "9" +4580-4786 ook_oregon: field: "0" "0" +4786-4993 ook_oregon: field: "c" "c" +4993-5199 ook_oregon: field: "e" "e" +5199-5406 ook_oregon: field: "5" "5" +5406-5612 ook_oregon: field: "0" "0" +5612-5819 ook_oregon: field: "0" "0" +1069-1895 ook_oregon: l2: "BTHR968 - Temp_Hum_Baro" "BTHR968" "BTHR968" +1895-2102 ook_oregon: l2: "Ch 2" "2" +2515-2721 ook_oregon: l2: "Batt OK" "OK" +2721-3547 ook_oregon: l2: "+11.2℃" "11.2" +3547-3960 ook_oregon: l2: "Hum 52%" "52" +4167-4993 ook_oregon: l2: "1013 mb" "1013" +4993-5406 ook_oregon: l2: "Checksum OK Calc 5E Rx 5E " "OK" diff --git a/decoder/test/ook_oregon/oregon_pcr800.bin_pulselen b/decoder/test/ook_oregon/oregon_pcr800.bin_pulselen new file mode 100644 index 0000000..2bc74e3 --- /dev/null +++ b/decoder/test/ook_oregon/oregon_pcr800.bin_pulselen @@ -0,0 +1 @@ +737-2898 ook_oregon: 4f 72 65 67 6f 6e 20 76 33 20 22 32 39 31 34 30 44 32 30 30 30 30 30 35 38 38 38 33 30 46 33 45 34 22 0a diff --git a/decoder/test/ook_oregon/oregon_pcr800.output b/decoder/test/ook_oregon/oregon_pcr800.output new file mode 100644 index 0000000..1c2f67d --- /dev/null +++ b/decoder/test/ook_oregon/oregon_pcr800.output @@ -0,0 +1,26 @@ +57-639 ook_oregon: field: "Oregon v3 Preamble" "v3 Preamble" "v3 Pre" "v3" +639-737 ook_oregon: field: "Sync" "Syn" "S" +737-1126 ook_oregon: field: "SensorID: 2914" "2914" +1126-1225 ook_oregon: field: "Ch: 0" "0" +1225-1420 ook_oregon: field: "RollingCode: d2" "d2" +1420-1517 ook_oregon: field: "Flags1: 0" "0" +1517-1615 ook_oregon: field: "0" "0" +1615-1712 ook_oregon: field: "0" "0" +1712-1810 ook_oregon: field: "0" "0" +1810-1908 ook_oregon: field: "0" "0" +1908-2005 ook_oregon: field: "5" "5" +2005-2104 ook_oregon: field: "8" "8" +2104-2202 ook_oregon: field: "8" "8" +2202-2302 ook_oregon: field: "8" "8" +2302-2396 ook_oregon: field: "3" "3" +2396-2494 ook_oregon: field: "0" "0" +2494-2595 ook_oregon: field: "f" "f" +2595-2689 ook_oregon: field: "3" "3" +2689-2788 ook_oregon: field: "e" "e" +2788-2886 ook_oregon: field: "4" "4" +737-1126 ook_oregon: l2: "PCR800 - Rain" "PCR800" "PCR800" +1126-1225 ook_oregon: l2: "Ch 0" "0" +1420-1517 ook_oregon: l2: "Batt OK" "OK" +1517-1908 ook_oregon: l2: "0 in/hr" "0" +1908-2494 ook_oregon: l2: "Total 38.885 in" "38.885" +2494-2689 ook_oregon: l2: "Checksum OK Calc 3F Rx 3F " "OK" diff --git a/decoder/test/ook_oregon/oregon_wgr800.bin_pulselen b/decoder/test/ook_oregon/oregon_wgr800.bin_pulselen new file mode 100644 index 0000000..14427d8 --- /dev/null +++ b/decoder/test/ook_oregon/oregon_wgr800.bin_pulselen @@ -0,0 +1 @@ +710-2749 ook_oregon: 4f 72 65 67 6f 6e 20 76 33 20 22 31 39 38 34 30 35 45 30 32 30 43 33 33 30 30 32 30 46 33 44 45 22 0a diff --git a/decoder/test/ook_oregon/oregon_wgr800.output b/decoder/test/ook_oregon/oregon_wgr800.output new file mode 100644 index 0000000..cfff7bb --- /dev/null +++ b/decoder/test/ook_oregon/oregon_wgr800.output @@ -0,0 +1,26 @@ +30-612 ook_oregon: field: "Oregon v3 Preamble" "v3 Preamble" "v3 Pre" "v3" +612-710 ook_oregon: field: "Sync" "Syn" "S" +710-1101 ook_oregon: field: "SensorID: 1984" "1984" +1101-1198 ook_oregon: field: "Ch: 0" "0" +1198-1393 ook_oregon: field: "RollingCode: 5e" "5e" +1393-1491 ook_oregon: field: "Flags1: 0" "0" +1491-1589 ook_oregon: field: "2" "2" +1589-1686 ook_oregon: field: "0" "0" +1686-1785 ook_oregon: field: "c" "c" +1785-1882 ook_oregon: field: "3" "3" +1882-1980 ook_oregon: field: "3" "3" +1980-2077 ook_oregon: field: "0" "0" +2077-2175 ook_oregon: field: "0" "0" +2175-2272 ook_oregon: field: "2" "2" +2272-2370 ook_oregon: field: "0" "0" +2370-2469 ook_oregon: field: "f" "f" +2469-2565 ook_oregon: field: "3" "3" +2565-2663 ook_oregon: field: "d" "d" +2663-2749 ook_oregon: field: "e" "e" +710-1101 ook_oregon: l2: "WGR800 - Wind" "WGR800" "WGR800" +1101-1198 ook_oregon: l2: "Ch 0" "0" +1393-1491 ook_oregon: l2: "Batt OK" "OK" +1491-1589 ook_oregon: l2: "NE (45°)" "NE" +1785-2077 ook_oregon: l2: "Gust 3.3 m/s" "3.3" +2077-2370 ook_oregon: l2: "Speed 2 m/s" "2" +2370-2565 ook_oregon: l2: "Checksum OK Calc 3F Rx 3F " "OK" diff --git a/decoder/test/ook_oregon/test.conf b/decoder/test/ook_oregon/test.conf new file mode 100644 index 0000000..a34cacd --- /dev/null +++ b/decoder/test/ook_oregon/test.conf @@ -0,0 +1,39 @@ +test oregon_bthr968 + protocol-decoder ook channel data=0 + protocol-decoder ook_oregon + stack ook ook_oregon + input ook/oregon/bthr968/oregon_bthr968.sr + output ook_oregon annotation match oregon_bthr968.output + output ook_oregon binary match oregon_bthr968.bin_pulselen + +test oregon_pcr800 + protocol-decoder ook channel data=0 + protocol-decoder ook_oregon + stack ook ook_oregon + input ook/oregon/pcr800/oregon_pcr800.sr + output ook_oregon annotation match oregon_pcr800.output + output ook_oregon binary match oregon_pcr800.bin_pulselen + +test oregon_wgr800 + protocol-decoder ook channel data=0 + protocol-decoder ook_oregon + stack ook ook_oregon + input ook/oregon/wgr800/oregon_wgr800.sr + output ook_oregon annotation match oregon_wgr800.output + output ook_oregon binary match oregon_wgr800.bin_pulselen + +test oregon_12s_d0 + protocol-decoder ook channel data=0 + protocol-decoder ook_oregon + stack ook ook_oregon + input ook/for_x_secs/oregon_12s.sr + output ook_oregon annotation match oregon_12s_d0.output + output ook_oregon binary match oregon_12s_d0.bin_pulselen + +test oregon_12s_d1 + protocol-decoder ook channel data=1 + protocol-decoder ook_oregon + stack ook ook_oregon + input ook/for_x_secs/oregon_12s.sr + output ook_oregon annotation match oregon_12s_d1.output + output ook_oregon binary match oregon_12s_d1.bin_pulselen