Forcing a serial port

I have an unusual configuration where I use a virtual serial port across the network to reach the laser. I can use a terminal program and talk directly to grbl so I know the setup works. The problem is, light burn doesn’t recognize the fake PTY as a serial port and therefore it doesn’t offer it as an option. Since you can’t open the laser nothing works. Any way to correct that?

On what operating system?

Linux. I’ve tried using so-cat and also ttynvt which actually provides pretty decent serial emulation. Light burn refuses to recognize any port I make either way even if I name it/dev/TTYACM0. Of course, I’ve set the permissions to that device file so that I can access it and like I say I can get on a terminal and talk to the printer through that virtual com port I just can’t get white burn to see the port at all. I realize there could be some latency problems streaming across the network although I expect synchronous mode would help if that happened but so far I can’t even get that far.

LightBurn looks for ports matching this naming spec in /dev/ :

(“ttyS*”) // Standard UART 8250 and etc.
(“ttyO*”) // OMAP UART 8250 and etc.
(“ttyUSB*”) // Usb/serial converters PL2303 and etc.
(“ttyACM*”) // CDC_ACM converters (i.e. Mobile Phones).
(“ttyGS*”) // Gadget serial device (i.e. Mobile Phones with gadget serial driver).
(“ttyMI*”) // MOXA pci/serial converters.
(“ttymxc*”) // Motorola IMX serial ports (i.e. Freescale i.MX).
(“ttyAMA*”) // AMBA serial device for embedded platform on ARM (i.e. Raspberry Pi).
(“ttyTHS*”) // Serial device for embedded platform on ARM (i.e. Tegra Jetson TK1).
(“rfcomm*”) // Bluetooth serial device.
(“ircomm*”) // IrDA serial device.
(“tnt*”); // Virtual tty0tty serial device.

If it matches that, it should be found, but there’s other code in place that tries to make sure it’s a valid port that’s not going to crash when I try to open it. Try enabling debug logging (bottom of the help menu), then right-click the ‘Devices’ button to redo the port search and see if you see it in the output.

Thanks. Will do and I’ll let you know.

All I see in the logs looks like USB enumerations (see below). Here’s the device:

crw-rw---- /dev/ttyACM0 (major=199, minor=6)

Log:

15:39:22.586  D: "LightBurn 0.9.20"   "Tue Feb 2 2021"
15:39:31.421  D: EV: 1018 took 15 uS
15:39:31.458  D: EV: 1003 took 38262 uS
15:39:31.669  D: Allowed VID: 65535 PID: 5
15:39:31.720  D: "starting"  busy:  false  state:  0
15:39:31.720  D: EV: 1001 took 12 uS
15:39:31.720  D: EV: 1001 took 8 uS
15:39:31.720  D: Enumerating ports:
15:39:31.759  D: EV: 1019 took 301049 uS
15:39:31.803  D: Clipboard data present:
15:39:31.804  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:39:32.072  D: Clipboard data present:
15:39:32.073  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:39:32.726  D: Clipboard data present:
15:39:32.731  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:39:55.379  D: Clipboard data present:
15:39:55.382  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:39:56.431  D: Clipboard data present:
15:39:56.432  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:39:56.849  D: Clipboard data present:
15:39:56.850  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:39:59.042  D: Clipboard data present:
15:39:59.042  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:40:44.508  D: Clipboard data present:
15:40:44.508  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:40:45.098  D: Clipboard data present:
15:40:45.104  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:41:07.664  D: Clipboard data present:
15:41:07.667  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:41:16.267  D: Vend: 1118 Prod: 2316
15:41:16.267  D: Vend: 1118 Prod: 2315
15:41:16.267  D: Vend: 7531 Prod: 3
15:41:16.267  D: Vend: 4742 Prod: 8268
15:41:16.267  D: Vend: 1118 Prod: 1997
15:41:16.267  D: Vend: 1118 Prod: 2330
15:41:16.267  D: Vend: 7531 Prod: 2
15:41:20.851  D: EV: 1018 took 38 uS
15:41:20.875  D: EV: 1003 took 26817 uS
15:41:20.944  D: Allowed VID: 65535 PID: 5
15:41:20.994  D: "starting"  busy:  false  state:  0
15:41:20.994  D: EV: 1001 took 8 uS
15:41:20.994  D: EV: 1001 took 4 uS
15:41:20.994  D: Enumerating ports:
15:41:21.032  D: EV: 1019 took 156715 uS
15:41:21.070  D: Clipboard data present:
15:41:21.070  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:41:21.195  D: Clipboard data present:
15:41:21.195  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:41:21.443  D: Clipboard data present:
15:41:21.448  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:41:30.756  D: Clipboard data present:
15:41:30.759  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:42:00.140  D: Clipboard data present:
15:42:00.140  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:43:22.476  D: Allowed VID: 65535 PID: 5
15:43:22.526  D: "starting"  busy:  false  state:  0
15:43:22.527  D: EV: 1001 took 11 uS
15:43:22.527  D: EV: 1001 took 13 uS
15:43:22.527  D: Enumerating ports:
15:43:30.449  D: Clipboard data present:
15:43:30.451  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:43:30.865  D: Clipboard data present:
15:43:30.868  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:43:34.238  D: Clipboard data present:
15:43:34.244  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:43:40.795  D: EV: 1018 took 24 uS
15:43:40.813  D: EV: 1003 took 19133 uS
15:43:41.006  D: Allowed VID: 65535 PID: 5
15:43:41.057  D: "starting"  busy:  false  state:  0
15:43:41.057  D: EV: 1001 took 12 uS
15:43:41.057  D: EV: 1001 took 5 uS
15:43:41.057  D: Enumerating ports:
15:43:41.109  D: EV: 1019 took 295718 uS
15:43:41.159  D: Clipboard data present:
15:43:41.160  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:43:44.632  D: Clipboard data present:
15:43:44.633  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:43:45.946  D: Allowed VID: 65535 PID: 5
15:43:45.996  D: "starting"  busy:  false  state:  0
15:43:45.997  D: EV: 1001 took 9 uS
15:43:45.997  D: EV: 1001 took 6 uS
15:43:45.997  D: Enumerating ports:
15:43:47.111  D: Allowed VID: 65535 PID: 5
15:43:47.162  D: "starting"  busy:  false  state:  0
15:43:47.162  D: EV: 1001 took 16 uS
15:43:47.162  D: EV: 1001 took 4 uS
15:43:47.162  D: Enumerating ports:
15:43:48.622  D: Clipboard data present:
15:43:48.623  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:43:48.933  D: Clipboard data present:
15:43:48.943  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:44:28.006  D: Clipboard data present:
15:44:28.007  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:44:31.014  D: Allowed VID: 65535 PID: 5
15:44:31.064  D: "starting"  busy:  false  state:  0
15:44:31.064  D: EV: 1001 took 8 uS
15:44:31.064  D: EV: 1001 took 4 uS
15:44:31.064  D: Enumerating ports:
15:44:31.926  D: Clipboard data present:
15:44:31.927  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:44:32.281  D: Clipboard data present:
15:44:32.301  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:44:42.819  D: Clipboard data present:
15:44:42.823  D: ("text/plain", "TARGETS", "MULTIPLE", "TIMESTAMP", "SAVE_TARGETS")
15:44:45.950  D: Align output unchecked
15:44:45.950  D: EV: 1018 took 10 uS
15:44:45.952  D: EV: 1013 took 2007 uS
15:44:45.953  D: EV: 1018 took 8 uS
15:44:45.953  D: EV: 1009 took 663 uS

One other data point: piccom -b /dev/ttyACM0 will easily talk to the laser (at least enough to unlock, move, and home).

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.