Custom gcode not working with Fluidnc but standard GRBL OK

That’s not a suggestion I would make at this time. Keep the 6x in place, I will look at the what parameters in fluidnc may be relevant.

Just to confirm, did you use the same profile on Lightburn that you did with the 6x board, or did you create a new one?

If it has communication with the dlc32 on the same profile, then perhaps there’s a hardware fault, as unlikely as that seems. If it’s a new profile, then we can look at what the main differences there are between them.

@Tom_tool
Disable “Hardware Flow Control” in the Custom GCode device profile.

The default settings have it disabled, and I just confirmed connection issues when it’s on (with the DLC32).

“DTR Signal” did not seem to make a difference on my side, but you might want to try with and without it enabled.

I’ve edited the .LBDEV file you sent. Drag and drop this file to the workarea to add it:
Custom4038 No Hardware Flow.lbzip (37.3 KB)

Also: restart the controller by unplugging both USB cable and the power before reconnecting.

Hello Aaron,
Thank you for the edited file.
Time is a little tight this week, so my replies may be delayed.

Just a quick initial observation regarding the profile installation:
My custom G-code profiles display the LightBurn logo, whereas your edited file shows the FluidNC logo.

Am i creating my profiles incorrect ?
Tf

I’ve added the icon manually after creation. It’s still a normal “Custom GCode” device type.
Thought, you might like this, but I should have mentioned it to avoid the confusion. :slight_smile:

Hello Jon,

The DLC32 board was just a sanity test—I won’t be pursuing that path. FluidNC offers the features I’ll need moving forward.

I’ve created a new profile for it, but I haven’t tried running my FluidNC profile on the DLC32.

Regards,
Tf

So you had a separate device definition for FluidNC and the DLC32?

That may be good news - if you can share a bundle file with both the DLC and the FluidNC devices included we’ll be able to compare their settings and hopefully fix what is wrong with your configuration.

Don’t worry about it - we’ll be here. If there’s a bug, we’ll fix it.

Hello Aaron, @goeland86

I’ve tested your manually edited profile, and it works perfectly. The FluidNC board responds to ? and successfully homes the machine.

I’ve deleted all of my test profiles since they didn’t work. I then created a new profile without DTR, but unfortunately, that one doesn’t work either.

Note: This is my first time using a forum, and I’ve only just learned what tagging is and how to do it.

Jon, could you please confirm whether you still need the DLC32 profile, given the test I just performed using Aaron’s setup?

Regards,
Tf

No - if you have a working profile, that’s all we need to know.

That’s great news!

My guess is that it needed Hardware Flow Control disabled.

I found that DTR-Signal didn’t make a difference in my case. The board just seemed to require a restart in between, but it worked with and without DTR-Signal enabled.
(Though, that’s with a DLC32 that has a different CH340 serial chip)

You likely meant to link this app instead:

That’s interesting.
The capture with your initial GCode device (With Hardware Flow Control enabled) shows that it’s trying to exchange some “ControlHandshake”

This sounds suspicious, but what do I know! :laughing:

Then, as far as my layman’s eyes can tell, it tells the serial chip to use a DTR-Signal.

Somewhere there, something fails, and the controller starts spamming G0.

Hello Aaron,

I noticed there appear to be two versions of the Serial Port Monitor available on the Web. The one I used has a red logo and is labeled serialVCP. However, the version that Google recommends first didn’t work for me—it wouldn’t allow me to open a port while LB was running.

I wanted to ask: is there a chance you changed more than just the DTR setting in the XML edit? I’ve noticed a significant difference in file size between your edited version and the one created directly through LB.

Even when I create a new profile without DTR enabled or disabled, it still doesn’t work with FluidNC.
Regards Tf

Good morning,I’d like to tiptoe into this topic…I use GrblHal, and even with my ESP32-based controller, I’m having initial connection problems!It’s not a firmware or board issue, as I had more or less the same problem when I used Arduino Due with Ramps 1.4!

I’ve already done all the impossible tests you can imagine and nothing…

Since my current controller has ESP32 Wroom 32 with pins, I tried to replace it in various versions of the serial chip CH9102 (which practically can not see it) - CP2102 (a lot of difficulty) - CH340C (less difficulty).

If my controller isn’t powered by the external power supply, and I plug in the USB cable (“micro” power only from USB), Lightburn connects fine 99.9% of the time! However, if the board is already powered by the external power supply and I plug in the USB cable and try to connect, Lightburn won’t connect 90% of the time!
The problem seems to be only with Lightburn, because with LaserGrbl, UGS, and IOSender (software dedicated to grblHal) this problem does not exist in 99% of cases!

I’ve come to this conclusion…

It seems to depend on the type of “response” Lightburn expects for the first connection! And on how the serial chip on the board is “reset”…

I’m not having any problems… I know it’s like this for me, and I can get it working just as well… but it might be a problem for other users! I just wanted to point this out…

Greetings

Hi deltapic,

I wanted to ask—what controller board are you using? Did you flash the firmware yourself, or was it pre-installed when you received it?

I’m currently looking into GRBL HAL as an option, but I haven’t found a clear guide on how to apply the firmware to an ESP32 board. If you have any pointers, I’d really appreciate it.

During my testing, I’ve encountered a lot of connection inconsistencies—LightBurn reporting the port as unavailable, USB hubs crashing, and other generally strange behavior.

To address this, I’ve documented a very specific test schema that I’ve verified to be repeatable. My assumption is that there’s an underlying issue, and my switching between profiles may have added confusion, since that’s not a typical use case.

I’m currently working on a more detailed report to further investigate the problem.
Thanks!

Hi, I’m using a custom board I made!! It’s not available for sale…

If you go to GitHub grblhal you’ll find the section dedicated to the ESP32.You can find all the documentation there! Grblhal is multi-core and multi-board, so it adapts to many commercially available boards!

I installed the firmware myself, partly because my board’s pinmap doesn’t match any existing ones… I used VisualStudioCode with PlatformIO to compile the firmware (activate the various plugins and configurations) and download it to the ESP32.
But I know there’s a Web Builder option…
But I’ve never used it!!

I use grblHal because I personally find it to be a fantastic firmware. It has the ability to activate many useful plugins that expand its functionality! And what’s not to be underestimated is that the developer is a fantastic person and always available! Personally, based on an idea/request of mine, he developed two plugins specifically for CO2 lasers, which I use with great satisfaction due to the results I get!

I have no further connection problems!!
As I said, I’ve used many types of boards with different controllers… and the only problem I’ve encountered is the one I described in my previous post!
The problem is only with the “first” connection… if by chance it doesn’t connect, I just press the reset button on the ESP32 and that’s it, Lightburn connects and there are no more problems!
I have NOT noticed any differences or additional connection problems using other types of profiles or the custom version of Lightburn…

I’ve encountered some bugs in the custom version of Lightburn (which I currently use), but they don’t concern the USB connection.

Greetings

@goeland86

Final Report: Custom G-code Profile Issue with FluidNC Board
Hello all listening,

After three weeks of rigorous testing, this is my final report regarding the persistent failure to create a functioning custom G-code profile for use with a FluidNC board.

Current Status
The issue remains unresolved. Profile creation is still not working—see caveat below.

Technical Findings
DTR is not used as a flow control mechanism on FluidNC or MKSbase DLC32 boards.
The following facts support this position:
• The CTS flow control pin of the serial port is not connected to the ESP32, rendering hardware flow control via CTS non-functional.

• Reference: see this section of Wikipedia
RTS, CTS, and RTR
“Further information: Flow control (data) § Hardware flow control
RS-232 - Wikipedia”

• The DTR and RTS pins are used to place the ESP32 into programming mode.
Reference schematic: https://oshwlab.com/bdring/6-pack-2-0_copy_copy_copy
(Click “open design drawing”)

Flow Control Behavior in LB and FluidNC
• LB sends a line terminated with carriage return.
• FluidNC replies with “OK”. LB must not send additional data until “OK” is received. This behavior aligns with the GRBL standard.
• Reference: Grbl Compatibility | Wiki.js

There is no valid justification for offering DTR as a flow control option. LB is incapable of flashing ESP32 firmware. When GRBL is configured as the protocol, flow control is inherently embedded.

Root Cause Analysis
The assumption I am led to is that the custom profile mishandles the DTR and RTS pins. These pins are connected to the processor’s reset and enable lines. Any glitch or incorrect state triggers a reset or places the ESP32 into programming mode. My tests confirm this: powering up the board sends initialization to LB, but any characters sent to FluidNC are ignored because the board is either in reset or bootloader mode.

Caveat
I have physically disconnected the DTR and RTS signals from the CP2021 serial bridge chip. With this hardware modification, one of my custom G-code profiles now functions correctly.

Conclusion
I have lost too much time to this issue and will now shift focus to other parts of my project. I remain hopeful for a workable solution in the future.
Tf