Skip to content
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

Sending $$ to fluidnc crashes gsender #473

Open
AlexSBrown8192 opened this issue Feb 20, 2024 · 9 comments
Open

Sending $$ to fluidnc crashes gsender #473

AlexSBrown8192 opened this issue Feb 20, 2024 · 9 comments

Comments

@AlexSBrown8192
Copy link

AlexSBrown8192 commented Feb 20, 2024

Firstly well done on an excellent program. I have everything working superbly with my home built fluidNC controller. The only issue I have is when an alarm is triggered and the red flashing box appears. Clicking this sends the correct reset signal but this is followed by a $$ command. As fluidNC does not send back the full grbl settings list ( only $10 and $30) gsender crashes to black screen requiring restart. Is there a way to prevent this being sent? I am using v1.4.1 and the generic machine profile. I caught the console image in the 2 secs just before crashing. Thx in advance

@AlexSBrown8192
Copy link
Author

IMG_20240220_101008

@AlexSBrown8192
Copy link
Author

After looking through the code my issue may be resolved by removing line 1071 in gsender/src/server/controllers/grbl but I have no idea how to compile this as I have no experience in this field. I am a MCU and plc programmer with no js knowledge. Apologies for my ignorance

@hamanjam
Copy link

hamanjam commented Feb 29, 2024 via email

@AlexSBrown8192
Copy link
Author

AlexSBrown8192 commented Feb 29, 2024

Thank you hamanjam. It's certainly strange but everything works perfectly well apart from sending $$. I think it's because fluid nc handles all the control routines and reports status etc back to the sending program. I can control the machine directly via WiFi without any sending software but the web server is still a rather clunky interface compared to gsender which is far superior to use. Anyway it's a rather minor issue and I have a workaround should an error occur.
Fluid nc uses a config file rather than the usual grbl settings list

@AlexSBrown8192
Copy link
Author

Installed 1.4.3 today. Still freezing on $$ but no black screen.

@kglovern
Copy link
Member

kglovern commented Feb 29, 2024

We officially do not support fluidNC as a firmware flavour, just grbl and grblHAL - it's not really a question of not wanting to support them, just developer bandwidth. We ping EEPROM settings on connect because we need them to inform behaviour on both the front-end and back-end, but since fluidNC has a different configuration (yaml) and different ways to query the loaded settings ($S vs $$) it will fundamentally not work correctly.

We've been in contact with Barton/Mitch in the past and have some ideas of what we'd need to change to officially support it, but frankly don't have the time at the moment.

There is already an open issue on fluidNC support with some changes to increase compatability (#143) if you're interested in looking into it further.

@AlexSBrown8192
Copy link
Author

Understood. Many thanks I'll look into that. Thank you for your time

@hamanjam
Copy link

I've searched a bit and it seems common with a lot of gcode sender programs. Openbuilds flat out says they have no plans to support fluidNC since their boards are grbl. I see it difficult for the dev team to support a board they don't offer especially when they are already maintaining grbl and grblHAL.

It's open source and maybe someone is working on a fork that does support your board but $$ is a fundamental grbl command and if the program doesn't get a full result, it will simply wait until the expected response. I could envision maybe a "timeout" routine which would just throw an error you can acknowledge and move on if the response doesn't return in a set time but removing the grbl info request would potentially break the rest of the world that uses grbl 1.1 boards.

I'm not disputing the value of the request and I see that the comparable apps such as bcnc may not be as polished. I just don't know how realistic it would be to take on another hardware stream

@AlexSBrown8192
Copy link
Author

Thank you hamanjam I agree completely. I am having great success so far with only minor issues. I will create a list of problems I encounter and any workarounds I find as time goes on. Hopefully this will assist any others that try this combination. Thanks to all for your input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants