summaryrefslogtreecommitdiff
path: root/decoder/test/pjon
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2020-06-23 20:13:37 +0200
committerGerhard Sittig <gerhard.sittig@gmx.net>2020-06-24 19:19:08 +0200
commitc7da283fc7b18fbf93d74e627b2a11f0c00516f8 (patch)
tree82ea499bc2ee41faaa285725699e9ac70dbadcac /decoder/test/pjon
parent6753e881304ddac96d64ad8b5384c84246f2dfeb (diff)
downloadsigrok-test-c7da283fc7b18fbf93d74e627b2a11f0c00516f8.tar.gz
sigrok-test-c7da283fc7b18fbf93d74e627b2a11f0c00516f8.zip
pjon: add tests for PJON frames over PJDL link layer
Diffstat (limited to 'decoder/test/pjon')
-rw-r--r--decoder/test/pjon/pjdl_glitch_failed_ack_pjon.output45
-rw-r--r--decoder/test/pjon/test.conf6
2 files changed, 51 insertions, 0 deletions
diff --git a/decoder/test/pjon/pjdl_glitch_failed_ack_pjon.output b/decoder/test/pjon/pjdl_glitch_failed_ack_pjon.output
new file mode 100644
index 0000000..eb969d5
--- /dev/null
+++ b/decoder/test/pjon/pjdl_glitch_failed_ack_pjon.output
@@ -0,0 +1,45 @@
+36417-38452 pjon: rx_info: "RX_ID 44" "44"
+38492-40527 pjon: hdr_cfg: "CFG - - - - - ack tx_info -" "CFG 00000110" "00000110"
+40570-42606 pjon: pkt_len: "LENGTH 7 (PAYLOAD 1)" "LEN 7 (PL 1)" "7 (1)" "7"
+42645-44681 pjon: meta_crc: "META_CRC 30" "CRC 30" "30"
+44724-46759 pjon: anon: "TX_ID 45" "45"
+46799-48834 pjon: payload: "PAYLOAD 42" "42"
+48877-50915 pjon: end_crc: "END_CRC b2" "CRC b2" "b2"
+51799-53834 pjon: syn_rsp: "ACK 06" "06"
+58034-60072 pjon: rx_info: "RX_ID 45" "45"
+60108-62143 pjon: hdr_cfg: "CFG - - - - - ack tx_info -" "CFG 00000110" "00000110"
+62179-64217 pjon: pkt_len: "LENGTH 7 (PAYLOAD 1)" "LEN 7 (PL 1)" "7 (1)" "7"
+64252-66288 pjon: meta_crc: "META_CRC 01" "CRC 01" "01"
+66323-68361 pjon: anon: "TX_ID 44" "44"
+68397-70432 pjon: payload: "PAYLOAD 42" "42"
+70470-72505 pjon: end_crc: "END_CRC 40" "CRC 40" "40"
+119748-121783 pjon: rx_info: "RX_ID 45" "45"
+121819-123854 pjon: hdr_cfg: "CFG - - - - - ack tx_info -" "CFG 00000110" "00000110"
+123892-125928 pjon: pkt_len: "LENGTH 7 (PAYLOAD 1)" "LEN 7 (PL 1)" "7 (1)" "7"
+125963-127999 pjon: meta_crc: "META_CRC 01" "CRC 01" "01"
+128037-130072 pjon: anon: "TX_ID 44" "44"
+130108-132145 pjon: payload: "PAYLOAD 42" "42"
+132181-134216 pjon: end_crc: "END_CRC 40" "CRC 40" "40"
+252372-254407 pjon: rx_info: "RX_ID 44" "44"
+254447-256482 pjon: hdr_cfg: "CFG - - - - - ack tx_info -" "CFG 00000110" "00000110"
+256525-258561 pjon: pkt_len: "LENGTH 7 (PAYLOAD 1)" "LEN 7 (PL 1)" "7 (1)" "7"
+258600-260636 pjon: meta_crc: "META_CRC 30" "CRC 30" "30"
+260679-262714 pjon: anon: "TX_ID 45" "45"
+262754-264789 pjon: payload: "PAYLOAD 42" "42"
+264833-266870 pjon: end_crc: "END_CRC b2" "CRC b2" "b2"
+267751-269787 pjon: syn_rsp: "ACK 06" "06"
+273943-275978 pjon: rx_info: "RX_ID 45" "45"
+276016-278051 pjon: hdr_cfg: "CFG - - - - - ack tx_info -" "CFG 00000110" "00000110"
+278087-280125 pjon: pkt_len: "LENGTH 7 (PAYLOAD 1)" "LEN 7 (PL 1)" "7 (1)" "7"
+280161-282196 pjon: meta_crc: "META_CRC 01" "CRC 01" "01"
+282232-284269 pjon: anon: "TX_ID 44" "44"
+284305-286340 pjon: payload: "PAYLOAD 42" "42"
+286376-288414 pjon: end_crc: "END_CRC 40" "CRC 40" "40"
+289297-291333 pjon: syn_rsp: "ACK 06" "06"
+335662-337697 pjon: rx_info: "RX_ID 45" "45"
+337733-339768 pjon: hdr_cfg: "CFG - - - - - ack tx_info -" "CFG 00000110" "00000110"
+339806-341842 pjon: pkt_len: "LENGTH 7 (PAYLOAD 1)" "LEN 7 (PL 1)" "7 (1)" "7"
+341877-343913 pjon: meta_crc: "META_CRC 01" "CRC 01" "01"
+343951-345986 pjon: anon: "TX_ID 44" "44"
+346022-348057 pjon: payload: "PAYLOAD 42" "42"
+348095-350131 pjon: end_crc: "END_CRC 40" "CRC 40" "40"
diff --git a/decoder/test/pjon/test.conf b/decoder/test/pjon/test.conf
new file mode 100644
index 0000000..847d1ef
--- /dev/null
+++ b/decoder/test/pjon/test.conf
@@ -0,0 +1,6 @@
+test pjdl_glitch_failed_ack
+ protocol-decoder pjdl channel data=0 option mode=1
+ protocol-decoder pjon
+ stack pjdl pjon
+ input pjon/pjdl/pjon-pjdl-glitch-and-ack-and-failed-ack.sr
+ output pjon annotation match pjdl_glitch_failed_ack_pjon.output