From b5a39370cde7486b80e76d4e6372cbbcadc94067 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 14 Dec 2019 00:15:41 +0100 Subject: [PATCH] uart: Add another Grbl test-case. --- decoder/test/uart/grbl_cnc_3_tx_packet.output | 7 +++++++ decoder/test/uart/test.conf | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 decoder/test/uart/grbl_cnc_3_tx_packet.output 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 -- 2.30.2