From: Uwe Hermann Date: Tue, 28 Mar 2017 21:47:58 +0000 (+0200) Subject: Add a Sensirion SHT2x test-case. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9eb0c2395f2ac35ee0ab45298e10b34ca5a02c9c;p=sigrok-test.git Add a Sensirion SHT2x test-case. --- diff --git a/decoder/test/i2c/sensirion_sht21_humidity35.bin_address_read b/decoder/test/i2c/sensirion_sht21_humidity35.bin_address_read new file mode 100644 index 0000000..d646c15 --- /dev/null +++ b/decoder/test/i2c/sensirion_sht21_humidity35.bin_address_read @@ -0,0 +1,7 @@ +1370209-1371480 i2c: 40 +9375905-9377175 i2c: 40 +17381600-17382873 i2c: 40 +25387298-25388571 i2c: 40 +33392993-33394266 i2c: 40 +41398690-41399963 i2c: 40 +49404386-49405659 i2c: 40 diff --git a/decoder/test/i2c/sensirion_sht21_humidity35.bin_address_write b/decoder/test/i2c/sensirion_sht21_humidity35.bin_address_write new file mode 100644 index 0000000..fd0bb27 --- /dev/null +++ b/decoder/test/i2c/sensirion_sht21_humidity35.bin_address_write @@ -0,0 +1,6 @@ +7370131-7371448 i2c: 40 +15375826-15377144 i2c: 40 +23381522-23382839 i2c: 40 +31387218-31388536 i2c: 40 +39392915-39394231 i2c: 40 +47398610-47399928 i2c: 40 diff --git a/decoder/test/i2c/sensirion_sht21_humidity35.bin_data_read b/decoder/test/i2c/sensirion_sht21_humidity35.bin_data_read new file mode 100644 index 0000000..69ad1ab --- /dev/null +++ b/decoder/test/i2c/sensirion_sht21_humidity35.bin_data_read @@ -0,0 +1,7 @@ +1371851-1372909 i2c: 54 +9377545-9378601 i2c: 55 +17383243-17384406 i2c: 57 +25388940-25390099 i2c: 57 +33394635-33395793 i2c: 57 +41400333-41401391 i2c: 55 +49406030-49407088 i2c: 55 diff --git a/decoder/test/i2c/sensirion_sht21_humidity35.bin_data_write b/decoder/test/i2c/sensirion_sht21_humidity35.bin_data_write new file mode 100644 index 0000000..336f1e9 --- /dev/null +++ b/decoder/test/i2c/sensirion_sht21_humidity35.bin_data_write @@ -0,0 +1,6 @@ +7371933-7373187 i2c: f5 +15377627-15378878 i2c: f5 +23383321-23384572 i2c: f5 +31389017-31390265 i2c: f5 +39394714-39395961 i2c: f5 +47400410-47401657 i2c: f5 diff --git a/decoder/test/i2c/sensirion_sht21_humidity35.output b/decoder/test/i2c/sensirion_sht21_humidity35.output new file mode 100644 index 0000000..dd01b23 --- /dev/null +++ b/decoder/test/i2c/sensirion_sht21_humidity35.output @@ -0,0 +1,293 @@ +1369822-1369822 i2c: start: "Start" "S" +1371335-1371480 i2c: bit: "1" +1371190-1371335 i2c: bit: "0" +1371023-1371190 i2c: bit: "0" +1370860-1371023 i2c: bit: "0" +1370697-1370860 i2c: bit: "0" +1370535-1370697 i2c: bit: "0" +1370372-1370535 i2c: bit: "0" +1370209-1370372 i2c: bit: "1" +1371335-1371480 i2c: address-read: "Read" "Rd" "R" +1370209-1371335 i2c: address-read: "Address read: 40" "AR: 40" "40" +1371445-1371590 i2c: ack: "ACK" "A" +1372795-1372909 i2c: bit: "0" +1372681-1372795 i2c: bit: "0" +1372515-1372681 i2c: bit: "1" +1372403-1372515 i2c: bit: "0" +1372238-1372403 i2c: bit: "1" +1372126-1372238 i2c: bit: "0" +1371961-1372126 i2c: bit: "1" +1371851-1371961 i2c: bit: "0" +1371851-1372909 i2c: data-read: "Data read: 54" "DR: 54" "54" +1373029-1373143 i2c: nack: "NACK" "N" +1373475-1373475 i2c: stop: "Stop" "P" +7369743-7369743 i2c: start: "Start" "S" +7371281-7371448 i2c: bit: "0" +7371114-7371281 i2c: bit: "0" +7370946-7371114 i2c: bit: "0" +7370782-7370946 i2c: bit: "0" +7370619-7370782 i2c: bit: "0" +7370456-7370619 i2c: bit: "0" +7370293-7370456 i2c: bit: "0" +7370131-7370293 i2c: bit: "1" +7371281-7371448 i2c: address-write: "Write" "Wr" "W" +7370131-7371281 i2c: address-write: "Address write: 40" "AW: 40" "40" +7371391-7371558 i2c: ack: "ACK" "A" +7373035-7373187 i2c: bit: "1" +7372883-7373035 i2c: bit: "0" +7372709-7372883 i2c: bit: "1" +7372558-7372709 i2c: bit: "0" +7372384-7372558 i2c: bit: "1" +7372233-7372384 i2c: bit: "1" +7372083-7372233 i2c: bit: "1" +7371933-7372083 i2c: bit: "1" +7371933-7373187 i2c: data-write: "Data write: F5" "DW: F5" "F5" +7373149-7373301 i2c: ack: "ACK" "A" +9375517-9375517 i2c: repeat-start: "Start repeat" "Sr" +9377030-9377175 i2c: bit: "1" +9376885-9377030 i2c: bit: "0" +9376718-9376885 i2c: bit: "0" +9376555-9376718 i2c: bit: "0" +9376393-9376555 i2c: bit: "0" +9376230-9376393 i2c: bit: "0" +9376067-9376230 i2c: bit: "0" +9375905-9376067 i2c: bit: "1" +9377030-9377175 i2c: address-read: "Read" "Rd" "R" +9375905-9377030 i2c: address-read: "Address read: 40" "AR: 40" "40" +9377139-9377284 i2c: ack: "ACK" "A" +9378488-9378601 i2c: bit: "1" +9378375-9378488 i2c: bit: "0" +9378209-9378375 i2c: bit: "1" +9378097-9378209 i2c: bit: "0" +9377932-9378097 i2c: bit: "1" +9377820-9377932 i2c: bit: "0" +9377656-9377820 i2c: bit: "1" +9377545-9377656 i2c: bit: "0" +9377545-9378601 i2c: data-read: "Data read: 55" "DR: 55" "55" +9378775-9378888 i2c: nack: "NACK" "N" +9379221-9379221 i2c: stop: "Stop" "P" +15375438-15375438 i2c: start: "Start" "S" +15376976-15377144 i2c: bit: "0" +15376808-15376976 i2c: bit: "0" +15376640-15376808 i2c: bit: "0" +15376477-15376640 i2c: bit: "0" +15376314-15376477 i2c: bit: "0" +15376151-15376314 i2c: bit: "0" +15375988-15376151 i2c: bit: "0" +15375826-15375988 i2c: bit: "1" +15376976-15377144 i2c: address-write: "Write" "Wr" "W" +15375826-15376976 i2c: address-write: "Address write: 40" "AW: 40" "40" +15377085-15377253 i2c: ack: "ACK" "A" +15378727-15378878 i2c: bit: "1" +15378576-15378727 i2c: bit: "0" +15378402-15378576 i2c: bit: "1" +15378251-15378402 i2c: bit: "0" +15378078-15378251 i2c: bit: "1" +15377927-15378078 i2c: bit: "1" +15377777-15377927 i2c: bit: "1" +15377627-15377777 i2c: bit: "1" +15377627-15378878 i2c: data-write: "Data write: F5" "DW: F5" "F5" +15378841-15378992 i2c: ack: "ACK" "A" +17381213-17381213 i2c: repeat-start: "Start repeat" "Sr" +17382727-17382873 i2c: bit: "1" +17382581-17382727 i2c: bit: "0" +17382414-17382581 i2c: bit: "0" +17382251-17382414 i2c: bit: "0" +17382088-17382251 i2c: bit: "0" +17381926-17382088 i2c: bit: "0" +17381763-17381926 i2c: bit: "0" +17381600-17381763 i2c: bit: "1" +17382727-17382873 i2c: address-read: "Read" "Rd" "R" +17381600-17382727 i2c: address-read: "Address read: 40" "AR: 40" "40" +17382836-17382982 i2c: ack: "ACK" "A" +17384240-17384406 i2c: bit: "1" +17384074-17384240 i2c: bit: "1" +17383908-17384074 i2c: bit: "1" +17383795-17383908 i2c: bit: "0" +17383631-17383795 i2c: bit: "1" +17383518-17383631 i2c: bit: "0" +17383354-17383518 i2c: bit: "1" +17383243-17383354 i2c: bit: "0" +17383243-17384406 i2c: data-read: "Data read: 57" "DR: 57" "57" +17384527-17384693 i2c: nack: "NACK" "N" +17384971-17384971 i2c: stop: "Stop" "P" +23381134-23381134 i2c: start: "Start" "S" +23382671-23382839 i2c: bit: "0" +23382503-23382671 i2c: bit: "0" +23382336-23382503 i2c: bit: "0" +23382172-23382336 i2c: bit: "0" +23382009-23382172 i2c: bit: "0" +23381847-23382009 i2c: bit: "0" +23381684-23381847 i2c: bit: "0" +23381522-23381684 i2c: bit: "1" +23382671-23382839 i2c: address-write: "Write" "Wr" "W" +23381522-23382671 i2c: address-write: "Address write: 40" "AW: 40" "40" +23382780-23382948 i2c: ack: "ACK" "A" +23384420-23384572 i2c: bit: "1" +23384268-23384420 i2c: bit: "0" +23384094-23384268 i2c: bit: "1" +23383944-23384094 i2c: bit: "0" +23383770-23383944 i2c: bit: "1" +23383620-23383770 i2c: bit: "1" +23383470-23383620 i2c: bit: "1" +23383321-23383470 i2c: bit: "1" +23383321-23384572 i2c: data-write: "Data write: F5" "DW: F5" "F5" +23384534-23384686 i2c: ack: "ACK" "A" +25386911-25386911 i2c: repeat-start: "Start repeat" "Sr" +25388425-25388571 i2c: bit: "1" +25388279-25388425 i2c: bit: "0" +25388112-25388279 i2c: bit: "0" +25387949-25388112 i2c: bit: "0" +25387787-25387949 i2c: bit: "0" +25387624-25387787 i2c: bit: "0" +25387461-25387624 i2c: bit: "0" +25387298-25387461 i2c: bit: "1" +25388425-25388571 i2c: address-read: "Read" "Rd" "R" +25387298-25388425 i2c: address-read: "Address read: 40" "AR: 40" "40" +25388534-25388680 i2c: ack: "ACK" "A" +25389933-25390099 i2c: bit: "1" +25389767-25389933 i2c: bit: "1" +25389602-25389767 i2c: bit: "1" +25389490-25389602 i2c: bit: "0" +25389326-25389490 i2c: bit: "1" +25389214-25389326 i2c: bit: "0" +25389050-25389214 i2c: bit: "1" +25388940-25389050 i2c: bit: "0" +25388940-25390099 i2c: data-read: "Data read: 57" "DR: 57" "57" +25390220-25390386 i2c: nack: "NACK" "N" +25390665-25390665 i2c: stop: "Stop" "P" +31386830-31386830 i2c: start: "Start" "S" +31388368-31388536 i2c: bit: "0" +31388200-31388368 i2c: bit: "0" +31388032-31388200 i2c: bit: "0" +31387869-31388032 i2c: bit: "0" +31387706-31387869 i2c: bit: "0" +31387543-31387706 i2c: bit: "0" +31387380-31387543 i2c: bit: "0" +31387218-31387380 i2c: bit: "1" +31388368-31388536 i2c: address-write: "Write" "Wr" "W" +31387218-31388368 i2c: address-write: "Address write: 40" "AW: 40" "40" +31388477-31388645 i2c: ack: "ACK" "A" +31390114-31390265 i2c: bit: "1" +31389963-31390114 i2c: bit: "0" +31389790-31389963 i2c: bit: "1" +31389639-31389790 i2c: bit: "0" +31389466-31389639 i2c: bit: "1" +31389316-31389466 i2c: bit: "1" +31389167-31389316 i2c: bit: "1" +31389017-31389167 i2c: bit: "1" +31389017-31390265 i2c: data-write: "Data write: F5" "DW: F5" "F5" +31390227-31390378 i2c: ack: "ACK" "A" +33392606-33392606 i2c: repeat-start: "Start repeat" "Sr" +33394120-33394266 i2c: bit: "1" +33393974-33394120 i2c: bit: "0" +33393807-33393974 i2c: bit: "0" +33393644-33393807 i2c: bit: "0" +33393482-33393644 i2c: bit: "0" +33393319-33393482 i2c: bit: "0" +33393156-33393319 i2c: bit: "0" +33392993-33393156 i2c: bit: "1" +33394120-33394266 i2c: address-read: "Read" "Rd" "R" +33392993-33394120 i2c: address-read: "Address read: 40" "AR: 40" "40" +33394229-33394375 i2c: ack: "ACK" "A" +33395628-33395793 i2c: bit: "1" +33395463-33395628 i2c: bit: "1" +33395297-33395463 i2c: bit: "1" +33395186-33395297 i2c: bit: "0" +33395021-33395186 i2c: bit: "1" +33394910-33395021 i2c: bit: "0" +33394746-33394910 i2c: bit: "1" +33394635-33394746 i2c: bit: "0" +33394635-33395793 i2c: data-read: "Data read: 57" "DR: 57" "57" +33395915-33396080 i2c: nack: "NACK" "N" +33396359-33396359 i2c: stop: "Stop" "P" +39392526-39392526 i2c: start: "Start" "S" +39394064-39394231 i2c: bit: "0" +39393897-39394064 i2c: bit: "0" +39393729-39393897 i2c: bit: "0" +39393565-39393729 i2c: bit: "0" +39393403-39393565 i2c: bit: "0" +39393240-39393403 i2c: bit: "0" +39393077-39393240 i2c: bit: "0" +39392915-39393077 i2c: bit: "1" +39394064-39394231 i2c: address-write: "Write" "Wr" "W" +39392915-39394064 i2c: address-write: "Address write: 40" "AW: 40" "40" +39394173-39394340 i2c: ack: "ACK" "A" +39395810-39395961 i2c: bit: "1" +39395659-39395810 i2c: bit: "0" +39395486-39395659 i2c: bit: "1" +39395336-39395486 i2c: bit: "0" +39395163-39395336 i2c: bit: "1" +39395013-39395163 i2c: bit: "1" +39394864-39395013 i2c: bit: "1" +39394714-39394864 i2c: bit: "1" +39394714-39395961 i2c: data-write: "Data write: F5" "DW: F5" "F5" +39395924-39396075 i2c: ack: "ACK" "A" +41398302-41398302 i2c: repeat-start: "Start repeat" "Sr" +41399817-41399963 i2c: bit: "1" +41399671-41399817 i2c: bit: "0" +41399504-41399671 i2c: bit: "0" +41399341-41399504 i2c: bit: "0" +41399178-41399341 i2c: bit: "0" +41399016-41399178 i2c: bit: "0" +41398853-41399016 i2c: bit: "0" +41398690-41398853 i2c: bit: "1" +41399817-41399963 i2c: address-read: "Read" "Rd" "R" +41398690-41399817 i2c: address-read: "Address read: 40" "AR: 40" "40" +41399927-41400073 i2c: ack: "ACK" "A" +41401278-41401391 i2c: bit: "1" +41401165-41401278 i2c: bit: "0" +41400999-41401165 i2c: bit: "1" +41400886-41400999 i2c: bit: "0" +41400721-41400886 i2c: bit: "1" +41400609-41400721 i2c: bit: "0" +41400444-41400609 i2c: bit: "1" +41400333-41400444 i2c: bit: "0" +41400333-41401391 i2c: data-read: "Data read: 55" "DR: 55" "55" +41401566-41401679 i2c: nack: "NACK" "N" +41402011-41402011 i2c: stop: "Stop" "P" +47398222-47398222 i2c: start: "Start" "S" +47399760-47399928 i2c: bit: "0" +47399592-47399760 i2c: bit: "0" +47399425-47399592 i2c: bit: "0" +47399261-47399425 i2c: bit: "0" +47399099-47399261 i2c: bit: "0" +47398936-47399099 i2c: bit: "0" +47398773-47398936 i2c: bit: "0" +47398610-47398773 i2c: bit: "1" +47399760-47399928 i2c: address-write: "Write" "Wr" "W" +47398610-47399760 i2c: address-write: "Address write: 40" "AW: 40" "40" +47399869-47400037 i2c: ack: "ACK" "A" +47401506-47401657 i2c: bit: "1" +47401355-47401506 i2c: bit: "0" +47401182-47401355 i2c: bit: "1" +47401031-47401182 i2c: bit: "0" +47400858-47401031 i2c: bit: "1" +47400709-47400858 i2c: bit: "1" +47400559-47400709 i2c: bit: "1" +47400410-47400559 i2c: bit: "1" +47400410-47401657 i2c: data-write: "Data write: F5" "DW: F5" "F5" +47401620-47401771 i2c: ack: "ACK" "A" +49403999-49403999 i2c: repeat-start: "Start repeat" "Sr" +49405513-49405659 i2c: bit: "1" +49405367-49405513 i2c: bit: "0" +49405200-49405367 i2c: bit: "0" +49405037-49405200 i2c: bit: "0" +49404875-49405037 i2c: bit: "0" +49404712-49404875 i2c: bit: "0" +49404549-49404712 i2c: bit: "0" +49404386-49404549 i2c: bit: "1" +49405513-49405659 i2c: address-read: "Read" "Rd" "R" +49404386-49405513 i2c: address-read: "Address read: 40" "AR: 40" "40" +49405623-49405769 i2c: ack: "ACK" "A" +49406975-49407088 i2c: bit: "1" +49406862-49406975 i2c: bit: "0" +49406695-49406862 i2c: bit: "1" +49406583-49406695 i2c: bit: "0" +49406418-49406583 i2c: bit: "1" +49406305-49406418 i2c: bit: "0" +49406141-49406305 i2c: bit: "1" +49406030-49406141 i2c: bit: "0" +49406030-49407088 i2c: data-read: "Data read: 55" "DR: 55" "55" +49407263-49407376 i2c: nack: "NACK" "N" +49407708-49407708 i2c: stop: "Stop" "P" diff --git a/decoder/test/i2c/sensirion_sht21_humidity35.python b/decoder/test/i2c/sensirion_sht21_humidity35.python new file mode 100644 index 0000000..061d9a2 --- /dev/null +++ b/decoder/test/i2c/sensirion_sht21_humidity35.python @@ -0,0 +1,98 @@ +1369822-1369822 i2c: ['START', None] +1370209-1371480 i2c: ['BITS', [[1, 1371335, 1371480], [0, 1371190, 1371335], [0, 1371023, 1371190], [0, 1370860, 1371023], [0, 1370697, 1370860], [0, 1370535, 1370697], [0, 1370372, 1370535], [1, 1370209, 1370372]]] +1370209-1371480 i2c: ['ADDRESS READ', 64] +1371445-1371590 i2c: ['ACK', None] +1371851-1372909 i2c: ['BITS', [[0, 1372795, 1372909], [0, 1372681, 1372795], [1, 1372515, 1372681], [0, 1372403, 1372515], [1, 1372238, 1372403], [0, 1372126, 1372238], [1, 1371961, 1372126], [0, 1371851, 1371961]]] +1371851-1372909 i2c: ['DATA READ', 84] +1373029-1373143 i2c: ['NACK', None] +1373475-1373475 i2c: ['STOP', None] +7369743-7369743 i2c: ['START', None] +7370131-7371448 i2c: ['BITS', [[0, 7371281, 7371448], [0, 7371114, 7371281], [0, 7370946, 7371114], [0, 7370782, 7370946], [0, 7370619, 7370782], [0, 7370456, 7370619], [0, 7370293, 7370456], [1, 7370131, 7370293]]] +7370131-7371448 i2c: ['ADDRESS WRITE', 64] +7371391-7371558 i2c: ['ACK', None] +7371933-7373187 i2c: ['BITS', [[1, 7373035, 7373187], [0, 7372883, 7373035], [1, 7372709, 7372883], [0, 7372558, 7372709], [1, 7372384, 7372558], [1, 7372233, 7372384], [1, 7372083, 7372233], [1, 7371933, 7372083]]] +7371933-7373187 i2c: ['DATA WRITE', 245] +7373149-7373301 i2c: ['ACK', None] +9375517-9375517 i2c: ['START REPEAT', None] +9375905-9377175 i2c: ['BITS', [[1, 9377030, 9377175], [0, 9376885, 9377030], [0, 9376718, 9376885], [0, 9376555, 9376718], [0, 9376393, 9376555], [0, 9376230, 9376393], [0, 9376067, 9376230], [1, 9375905, 9376067]]] +9375905-9377175 i2c: ['ADDRESS READ', 64] +9377139-9377284 i2c: ['ACK', None] +9377545-9378601 i2c: ['BITS', [[1, 9378488, 9378601], [0, 9378375, 9378488], [1, 9378209, 9378375], [0, 9378097, 9378209], [1, 9377932, 9378097], [0, 9377820, 9377932], [1, 9377656, 9377820], [0, 9377545, 9377656]]] +9377545-9378601 i2c: ['DATA READ', 85] +9378775-9378888 i2c: ['NACK', None] +9379221-9379221 i2c: ['STOP', None] +15375438-15375438 i2c: ['START', None] +15375826-15377144 i2c: ['BITS', [[0, 15376976, 15377144], [0, 15376808, 15376976], [0, 15376640, 15376808], [0, 15376477, 15376640], [0, 15376314, 15376477], [0, 15376151, 15376314], [0, 15375988, 15376151], [1, 15375826, 15375988]]] +15375826-15377144 i2c: ['ADDRESS WRITE', 64] +15377085-15377253 i2c: ['ACK', None] +15377627-15378878 i2c: ['BITS', [[1, 15378727, 15378878], [0, 15378576, 15378727], [1, 15378402, 15378576], [0, 15378251, 15378402], [1, 15378078, 15378251], [1, 15377927, 15378078], [1, 15377777, 15377927], [1, 15377627, 15377777]]] +15377627-15378878 i2c: ['DATA WRITE', 245] +15378841-15378992 i2c: ['ACK', None] +17381213-17381213 i2c: ['START REPEAT', None] +17381600-17382873 i2c: ['BITS', [[1, 17382727, 17382873], [0, 17382581, 17382727], [0, 17382414, 17382581], [0, 17382251, 17382414], [0, 17382088, 17382251], [0, 17381926, 17382088], [0, 17381763, 17381926], [1, 17381600, 17381763]]] +17381600-17382873 i2c: ['ADDRESS READ', 64] +17382836-17382982 i2c: ['ACK', None] +17383243-17384406 i2c: ['BITS', [[1, 17384240, 17384406], [1, 17384074, 17384240], [1, 17383908, 17384074], [0, 17383795, 17383908], [1, 17383631, 17383795], [0, 17383518, 17383631], [1, 17383354, 17383518], [0, 17383243, 17383354]]] +17383243-17384406 i2c: ['DATA READ', 87] +17384527-17384693 i2c: ['NACK', None] +17384971-17384971 i2c: ['STOP', None] +23381134-23381134 i2c: ['START', None] +23381522-23382839 i2c: ['BITS', [[0, 23382671, 23382839], [0, 23382503, 23382671], [0, 23382336, 23382503], [0, 23382172, 23382336], [0, 23382009, 23382172], [0, 23381847, 23382009], [0, 23381684, 23381847], [1, 23381522, 23381684]]] +23381522-23382839 i2c: ['ADDRESS WRITE', 64] +23382780-23382948 i2c: ['ACK', None] +23383321-23384572 i2c: ['BITS', [[1, 23384420, 23384572], [0, 23384268, 23384420], [1, 23384094, 23384268], [0, 23383944, 23384094], [1, 23383770, 23383944], [1, 23383620, 23383770], [1, 23383470, 23383620], [1, 23383321, 23383470]]] +23383321-23384572 i2c: ['DATA WRITE', 245] +23384534-23384686 i2c: ['ACK', None] +25386911-25386911 i2c: ['START REPEAT', None] +25387298-25388571 i2c: ['BITS', [[1, 25388425, 25388571], [0, 25388279, 25388425], [0, 25388112, 25388279], [0, 25387949, 25388112], [0, 25387787, 25387949], [0, 25387624, 25387787], [0, 25387461, 25387624], [1, 25387298, 25387461]]] +25387298-25388571 i2c: ['ADDRESS READ', 64] +25388534-25388680 i2c: ['ACK', None] +25388940-25390099 i2c: ['BITS', [[1, 25389933, 25390099], [1, 25389767, 25389933], [1, 25389602, 25389767], [0, 25389490, 25389602], [1, 25389326, 25389490], [0, 25389214, 25389326], [1, 25389050, 25389214], [0, 25388940, 25389050]]] +25388940-25390099 i2c: ['DATA READ', 87] +25390220-25390386 i2c: ['NACK', None] +25390665-25390665 i2c: ['STOP', None] +31386830-31386830 i2c: ['START', None] +31387218-31388536 i2c: ['BITS', [[0, 31388368, 31388536], [0, 31388200, 31388368], [0, 31388032, 31388200], [0, 31387869, 31388032], [0, 31387706, 31387869], [0, 31387543, 31387706], [0, 31387380, 31387543], [1, 31387218, 31387380]]] +31387218-31388536 i2c: ['ADDRESS WRITE', 64] +31388477-31388645 i2c: ['ACK', None] +31389017-31390265 i2c: ['BITS', [[1, 31390114, 31390265], [0, 31389963, 31390114], [1, 31389790, 31389963], [0, 31389639, 31389790], [1, 31389466, 31389639], [1, 31389316, 31389466], [1, 31389167, 31389316], [1, 31389017, 31389167]]] +31389017-31390265 i2c: ['DATA WRITE', 245] +31390227-31390378 i2c: ['ACK', None] +33392606-33392606 i2c: ['START REPEAT', None] +33392993-33394266 i2c: ['BITS', [[1, 33394120, 33394266], [0, 33393974, 33394120], [0, 33393807, 33393974], [0, 33393644, 33393807], [0, 33393482, 33393644], [0, 33393319, 33393482], [0, 33393156, 33393319], [1, 33392993, 33393156]]] +33392993-33394266 i2c: ['ADDRESS READ', 64] +33394229-33394375 i2c: ['ACK', None] +33394635-33395793 i2c: ['BITS', [[1, 33395628, 33395793], [1, 33395463, 33395628], [1, 33395297, 33395463], [0, 33395186, 33395297], [1, 33395021, 33395186], [0, 33394910, 33395021], [1, 33394746, 33394910], [0, 33394635, 33394746]]] +33394635-33395793 i2c: ['DATA READ', 87] +33395915-33396080 i2c: ['NACK', None] +33396359-33396359 i2c: ['STOP', None] +39392526-39392526 i2c: ['START', None] +39392915-39394231 i2c: ['BITS', [[0, 39394064, 39394231], [0, 39393897, 39394064], [0, 39393729, 39393897], [0, 39393565, 39393729], [0, 39393403, 39393565], [0, 39393240, 39393403], [0, 39393077, 39393240], [1, 39392915, 39393077]]] +39392915-39394231 i2c: ['ADDRESS WRITE', 64] +39394173-39394340 i2c: ['ACK', None] +39394714-39395961 i2c: ['BITS', [[1, 39395810, 39395961], [0, 39395659, 39395810], [1, 39395486, 39395659], [0, 39395336, 39395486], [1, 39395163, 39395336], [1, 39395013, 39395163], [1, 39394864, 39395013], [1, 39394714, 39394864]]] +39394714-39395961 i2c: ['DATA WRITE', 245] +39395924-39396075 i2c: ['ACK', None] +41398302-41398302 i2c: ['START REPEAT', None] +41398690-41399963 i2c: ['BITS', [[1, 41399817, 41399963], [0, 41399671, 41399817], [0, 41399504, 41399671], [0, 41399341, 41399504], [0, 41399178, 41399341], [0, 41399016, 41399178], [0, 41398853, 41399016], [1, 41398690, 41398853]]] +41398690-41399963 i2c: ['ADDRESS READ', 64] +41399927-41400073 i2c: ['ACK', None] +41400333-41401391 i2c: ['BITS', [[1, 41401278, 41401391], [0, 41401165, 41401278], [1, 41400999, 41401165], [0, 41400886, 41400999], [1, 41400721, 41400886], [0, 41400609, 41400721], [1, 41400444, 41400609], [0, 41400333, 41400444]]] +41400333-41401391 i2c: ['DATA READ', 85] +41401566-41401679 i2c: ['NACK', None] +41402011-41402011 i2c: ['STOP', None] +47398222-47398222 i2c: ['START', None] +47398610-47399928 i2c: ['BITS', [[0, 47399760, 47399928], [0, 47399592, 47399760], [0, 47399425, 47399592], [0, 47399261, 47399425], [0, 47399099, 47399261], [0, 47398936, 47399099], [0, 47398773, 47398936], [1, 47398610, 47398773]]] +47398610-47399928 i2c: ['ADDRESS WRITE', 64] +47399869-47400037 i2c: ['ACK', None] +47400410-47401657 i2c: ['BITS', [[1, 47401506, 47401657], [0, 47401355, 47401506], [1, 47401182, 47401355], [0, 47401031, 47401182], [1, 47400858, 47401031], [1, 47400709, 47400858], [1, 47400559, 47400709], [1, 47400410, 47400559]]] +47400410-47401657 i2c: ['DATA WRITE', 245] +47401620-47401771 i2c: ['ACK', None] +49403999-49403999 i2c: ['START REPEAT', None] +49404386-49405659 i2c: ['BITS', [[1, 49405513, 49405659], [0, 49405367, 49405513], [0, 49405200, 49405367], [0, 49405037, 49405200], [0, 49404875, 49405037], [0, 49404712, 49404875], [0, 49404549, 49404712], [1, 49404386, 49404549]]] +49404386-49405659 i2c: ['ADDRESS READ', 64] +49405623-49405769 i2c: ['ACK', None] +49406030-49407088 i2c: ['BITS', [[1, 49406975, 49407088], [0, 49406862, 49406975], [1, 49406695, 49406862], [0, 49406583, 49406695], [1, 49406418, 49406583], [0, 49406305, 49406418], [1, 49406141, 49406305], [0, 49406030, 49406141]]] +49406030-49407088 i2c: ['DATA READ', 85] +49407263-49407376 i2c: ['NACK', None] +49407708-49407708 i2c: ['STOP', None] diff --git a/decoder/test/i2c/test.conf b/decoder/test/i2c/test.conf index bf7c282..169c1ea 100644 --- a/decoder/test/i2c/test.conf +++ b/decoder/test/i2c/test.conf @@ -37,6 +37,16 @@ test wii_nunchuk_init output i2c binary class data-write match wii_nunchuk_init.bin_data_write output i2c binary class address-write match wii_nunchuk_init.bin_address_write +test sensirion_sht21_humidity35 + protocol-decoder i2c channel scl=2 channel sda=1 + input i2c/sensirion_sht2x/sensirion_sht21_humidity35.sr + output i2c annotation match sensirion_sht21_humidity35.output + output i2c python match sensirion_sht21_humidity35.python + output i2c binary class data-read match sensirion_sht21_humidity35.bin_data_read + output i2c binary class data-write match sensirion_sht21_humidity35.bin_data_write + output i2c binary class address-read match sensirion_sht21_humidity35.bin_address_read + output i2c binary class address-write match sensirion_sht21_humidity35.bin_address_write + test exception_samplerate protocol-decoder i2c input misc/no-samplerate.sr