-
-
Notifications
You must be signed in to change notification settings - Fork 769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can not connect to fluidnc because of incorrect version information #2386
Comments
I managed to reproduce the problem:
The error |
Interesting. You think that it's the fluidnc even though UGS platform 2.0.13 connects to it just fine? To me that would indicate that something new in UGS 2.1.x is not working properly? No? |
Yes, I believe that this is a bug in FluidNC. I added a command for disabling FluidNCs "echo mode" which is used when connecting to the controller through a terminal (#2349). If echo mode is enabled on the controller when connecting with UGS the communication will fail. The "echo mode" command is currently treated as a gcode command, but only when using a telnet connection. |
The command is apparently not available on FluidNC when connecting through a TCP channel. So I have added a detection if echo mode is activated and if so try to disable it. It is available in the latest nightly build: |
Just gave it a try and it works brilliantly! |
Just tried this with the latest nightly, and I was unable to connect to FluidNC.
This is with: UGS:
|
I can't reproduce this with the UGS nightly build 20240102 and fluidnc 3.7.12. Can you post your FluidNC configuration. |
Here it is:
|
Just digging into the code here. It looks like for me it's failing just after the state command message check (
Assuming UGS gets this message,
Hold on, let's look at the logs. There's the issue. It's failing when it adds the state.
|
Here's the full log file. |
Thanks for the log. UGS parses all commands sent to the controller and mirrors its state. To get the initial state the command But according to the Gcode spec, at least one axis must be applied together with the G38.2 command. UGS has implemented this as a rule and throws this error. The solution is to relax the gcode parser to allow G38.2 commands without a defined axis. |
Version
2.1.2
Hardware / Firmware
FluidNC
What happened
on attempting to connect to fluidnc with any version of ugs above 2.0.13 I receive the following:
*** Connecting to tcp://192.168.0.210:23
*** Fetching device status
*** Fetching device firmware version
*** Expected a 'FluidNC 3.3.0' or later but got 'Unknown 0.0.0'
*** Could not establish connection with the controller
*** Connection closed
but it works fine with 2.0.13 and I get this:
*** Connecting to tcp://192.168.0.210:23
*** Fetching device status
*** Fetching device firmware version
*** Fetching device status codes
*** Fetching device state
*** Fetching device settings
*** Connected to FluidNC 3.7.11
and everything works just fine. I have attempted this with several versions of fluidnc to make sure that it was not the firmware causing the problem and it seems to be UGS platform as all of the versions above 2.0.13 give the same error and disconnect status.
How to reproduce
I am connecting through wifi and have not tried to connect locally but I will give that a try when I have a chance and update how that went.
Operating System
win64
Anything else
This happens every time. It will not work with versions above 2.0.13 but works perfectly and every time with 2.0.13
The text was updated successfully, but these errors were encountered: