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

New GRBL initialization protocol #2194

Merged
merged 1 commit into from
Apr 7, 2023
Merged

Conversation

breiler
Copy link
Collaborator

@breiler breiler commented Apr 7, 2023

Changed the protocol for initializing GRBL controllers. Instead of relying on a welcome string when connecting to a controller it will do a series of commands to initialize the connection. It will no longer try to reset the controller on connect.

  1. Try and query the controller with ?
  2. If the controller is in a HOLD or ALARM state, send an empty line to see if the controller is responsive
  3. Query the build information to get the controller version $I
  4. Query settings $$
  5. Query parser state $G

This should fix the problem when connecting to GRBL Mega 5x which would just hang when connecting. It will also work better with grblHAL which doesn't require a reset.

@breiler breiler merged commit 94b3158 into winder:master Apr 7, 2023
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

Successfully merging this pull request may close these issues.

1 participant