gnea / grbl

An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on a straight Arduino
https://github.com/gnea/grbl/wiki
Other
3.98k stars 1.59k forks source link

Fluidnc seems to respond to a jog command with the jog command itself on additional uart #1249

Closed leogala closed 3 months ago

leogala commented 3 months ago

I have a problem with jogging, which is probably related to my mistake, but I am observing a strange behaviour of Fluidnc. I am building a pendant with an extra serial uart configured without report_interval_ms, because auto report does not seem to report feed OV changes, ie:

uart1: txd_pin: gpio.23 rxd_pin: gpio.19 baud: 115200 Mode: 8N1 uart_channel1: uart_num: 1

Normally I send jog commands and get an ok response, for example

Sent $J=G91 X0.153 Y0.000 Z0.000 F92.000

Reply ok

that's fine.

However, under certain conditions that I don't know yet, for example if I reset the esp32 used in the pendant without resetting fluidnc, when I send a jog command fluidnc seems to respond by repeating my jog command. For example

Sent $J=G91 X0.153 Y0.000 Z0.000 F92.000

Reply $J=G91 X0.153 Y0.000 Z0.000 F92.000 ok

When I restart fluidnc, without touching my pendant, everything goes back to normal and fluidnc just replies with an ok. Even if this does not affect functionality, it is redundant traffic that I would like to avoid.

So my question is: Is there a way to force fluidnc to respond to a jog command by repeating the jog command?