Lightburn can't connect to laser anymore

Disclaimer: Lightburn has worked on that machine without any issues for years.
I don’t know what changed that behaviour, but it’s completely odd.

As I said, the combo (Sculpfun S9 + Lightburn) has worked on the same machine (Linux Mint) without any problems from the beginning. It’s version 1.4 installed with the .run file, all permissions/group additions have been done.
It just can’t connect to the laser anymore.

Now the really weird part:
Since I thought about permission issues, I started LB with sudo through the terminal.
When I “Discover device”, it find’s ttyUSB0 and get’s the proper responses from it:

> Found port: PID 29987 VID 6790
> Manufacturer: "1a86"
> Product: "USB Serial" on "ttyUSB0"
> attempting connection... 115200, DTR setting: false
> Port open succeeded
> opener
> Grbl 1.1h ['$' for help]
> Wait for initial response...
> ok
> $i response
> [VER:1.1h.20220407:]
> [OPT:V,15,128]
> ok
> [MSG:Enabled]
> ok
> [MSG:Disabled]
> ok
> Grbl 1.1h ['$' for help]
> $$ response
> $0=10
> $1=25
> $2=0
> $3=0
> $4=0
> $5=0
> $6=0
> $10=1
> $11=0.010
> $12=0.002
> $13=0
> $20=0
> $21=0
> $22=0
> $23=3
> $24=200.000
> $25=3000.000
> $26=250
> $27=3.000
> $30=1000
> $31=0
> $32=1
> $100=80.000
> $101=80.000
> $102=250.000
> $110=6000.000
> $111=6000.000
> $112=1000.000
> $120=1000.000
> $121=1000.000
> $122=1000.000
> $130=410.000
> $131=400.000
> $132=200.000

It even shows me the configured device:

Once I’ve done this, Lightburn can’t connect to it anymore, always sends a G0 and doesn’t get any response:

When I run it without root permissions, the connection always fails…

Does anybody know, what the problem could be here?
I also tried to install other CH340 drivers (although that shouldn’t be needed) - always the same behaviour.

thx a lot
m

For whatever reason, your userid may not be in the proper group for the /dev/ttyUSB0 port.

To find the port info:

ls -l /dev/ttyUSB0
crw-rw---- 1 root uucp 188, 0 Apr  3 12:39 /dev/ttyUSB0

To find the groups for your userid:

groups
ed sys tty network scanner power docker video uucp optical lp audio wheel plugdev

Because my userid ed is in group uucp, it’s all good.

To add a group to your userid:

sudo usermod -a -G uucp ed

If that’s not it, then other problems are afoot …

@ednisley Thx a lot, those problems have all been cleared already.

I think the laser’s board has a problem. Maybe the firmware is corrupt or the board itself is broken.
I can connect to it with the screen command, ‘$’ and ‘$$’ commands work, but sometimes are really slow in answering.
When I send a ‘G0’ like Lightburn, it does not answer with ‘ok’ but with ‘Grbl 1.1h ($ for help)’

I’ll dig a bit deeper and if I find a solution I’ll post it here.

You can find the the firmware here: Firmware Update & Settings - Diode Laser Wiki Try to flash it again and check if that helps.

Thank you - that’s the firmware that’s already on the board. Maybe I’ll try another flash, but I suppose, it’s a hardware problem.

Yes. Sometimes the firmware gets corrupt. A new flash mob geht help, but it’s just a shot in the dark :grinning_face: You can also try a different cable or power supply.

If you must run LightBurn as the root user, then the connection problems have nothing to do with the controller (or its firmware) and everything to do with device permissions.

What does the system show for the ls and groups commands?

1 Like

Ok, now everything works again.
What did I do:

  1. Moved the .config/LightBurn directory to LightBurn.bak - not the desired outcome
  2. Reinstalled 1.4 by running the install .run-file - didn’t solve anything
  3. Flashed the firmware available from Sculpfun - not it works again.
    (Of course I did all the device permission checks about 20 times, no changes)

Strange, but it looks like the firmware of the laser has been corrupted anyhow and maybe my first flash attempt didn’t work.

greetings
m

1 Like

As @ednisley advised, if it works as root, it’s a protection issue, not a firmware issue.

:grinning_cat:

Edit didn’t work on my old post:

Of course I did all the device permission checks about 20 times, no changes

Firmwareupdate was also a suggestion by the AI, based on the info that even with ‘screen’ as root I didn’t get a proper response after sending som GRBL commands to it.
Another option would have been a hardware problem with the USB connector on the board, since this behaviour showed on 2 different computers.

Strange, but it looks like the firmware of the laser has been corrupted anyhow and maybe my first flash attempt didn’t work.

@jkwilborn , @ednisley
No, it wasn’t a problem of the permissions, see above.
Even as root I didn’t get proper responses from the board everytime when I tested for a longer period of time.

If it works in root, then it’s a device protection issue, not firmware.


I thought you advised it worked when root…

Did you find the firmware that @misken suggested..?

:grinning_cat:

I didn’t ALWAYS work as root.
Looks like I’ve been lucky on my first attempts as root, when I tried multiple commands ($, $$, G0, …) it didn’t work every time.

Very strange…

Software has bugs and hardware breaks, so what I think you’re saying doesn’t make sense. It’s generally going to work, if the software has bugs, it’s generally repeatable and it you have a hardware failure it’s generally isn’t intermittent.

Have you tried changing out usb cables?

:grinning_cat:

Nevertheless, it works now, without any other changes permission wise, other than those that have already been done at first installation years ago (adding my user to the dialout and tty group).

Glad it’s up, but if you didn’t find anything absolute, I hope it stays up.

Have fun.

:grinning_cat:

Thx, @jkwilborn

I’ve been in IT for about 42 years now, have been admin on Linux server longer than I can think, built my own 3d printer and a full size flight simulator gg… and that’s why I first had the same thoughts you just wrote: “Software has bugs and hardware breaks, so what I think you’re saying doesn’t make sense.”
It HAD to be a permission issue or a faulty hardware.
But I had turned off the laser and computer a few month ago in a fully working state, so I didn’t expect the laser to get faulty just by sitting on a desk - so it must be the software (or so I thought).
Maybe some updates on the Linux side I didn’t remember or something like that.
Tried everything, removing that braileTTY, disabling ModemManager, nothing worked.

The craziest part was when I started LightBurn as root, it would connect to the laser and find it, even create the correct device config, but without closing LightBurn fully, just closing the device settings window, it wouldn’t be able to talk to it in “regular” mode.
(Little did I know then, that the firmware didn’t always talk to the computer…)

If I wouldn’t have checked with chatGPT, one of my other tasks would have been to carry a windows PC to my workshop and try with it, since I already tried another Linux machine.

I also hope it stays that way but at the moment everything looks good in more than 10 tries (turning everything off and on again :wink: ).

Looks like I learned something new once again :smiley:

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