Closed tggo closed 7 years ago
I seem to find the problem. every client send command on start:
open /dev/ttyUSB0 115200 grbl
And there is a problem. Twice opens the port and the data is read random? need check SerialPorts[0]["IsOpen"] in my clients Ok, is simple. But if i run my client (Jog Pendant client) first, then open web-client i receive twice opened port, and random data.
Maybe need add checking before open port in serial-port-json-server ?
if make two connection to one ttyUSB0, then status loop be called two times, and we receive mixed response like
or
I need 2 connection for my setup:
use: serial-port-json-server 1.94 on RaspberryPi grbl 1.1f
debug log: https://gist.github.com/tggo/262a2a3c0d575e961ae99db57116f80e