summaryrefslogtreecommitdiff
path: root/decoder/test
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2019-12-14 00:15:41 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2019-12-14 00:15:41 +0100
commitb5a39370cde7486b80e76d4e6372cbbcadc94067 (patch)
tree767266c51e2414a0a016eb2c75a197378971e14b /decoder/test
parent09544d5f5f3e6ac9387e7b99712c7b00ee319d18 (diff)
downloadsigrok-test-b5a39370cde7486b80e76d4e6372cbbcadc94067.tar.gz
sigrok-test-b5a39370cde7486b80e76d4e6372cbbcadc94067.zip
uart: Add another Grbl test-case.
Diffstat (limited to 'decoder/test')
-rw-r--r--decoder/test/uart/grbl_cnc_3_tx_packet.output7
-rw-r--r--decoder/test/uart/test.conf5
2 files changed, 12 insertions, 0 deletions
diff --git a/decoder/test/uart/grbl_cnc_3_tx_packet.output b/decoder/test/uart/grbl_cnc_3_tx_packet.output
new file mode 100644
index 0000000..0e954e1
--- /dev/null
+++ b/decoder/test/uart/grbl_cnc_3_tx_packet.output
@@ -0,0 +1,7 @@
+163584-1964406 uart: tx-packet: "?????????G1 G90 Y150 F4600[0A]"
+1984281-6781686 uart: tx-packet: "??????????????????????G1 G90 Y50 F4700[0A]"
+6792822-11450169 uart: tx-packet: "??????????????????????G1 G90 Y150 F4700[0A]"
+11469777-16265455 uart: tx-packet: "??????????????????????G1 G90 Y50 F4800[0A]"
+16278046-21163794 uart: tx-packet: "??????????????????????G1 G90 Y150 F4800[0A]"
+21176216-26066196 uart: tx-packet: "??????????????????????G1 G90 Y50 F4900[0A]"
+26074033-30761083 uart: tx-packet: "??????????????????????G1 G90 Y150 F4900[0A]"
diff --git a/decoder/test/uart/test.conf b/decoder/test/uart/test.conf
index e19c71f..71108b0 100644
--- a/decoder/test/uart/test.conf
+++ b/decoder/test/uart/test.conf
@@ -353,6 +353,11 @@ test grbl_cnc_2
output uart annotation class tx-packet match grbl_cnc_2_tx_packet.output
output uart annotation class rx-packet match grbl_cnc_2_rx_packet.output
+test grbl_cnc_3
+ protocol-decoder uart channel tx=2 option format=ascii option tx_packet_delim=10
+ input stepper_motor/grbl_cnc/grbl_cnc_3.sr
+ output uart annotation class tx-packet match grbl_cnc_3_tx_packet.output
+
test exception_samplerate
protocol-decoder uart
input misc/no-samplerate.sr