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
Feature: GCODE stream from telnet or websocket or serial #1012
Comments
What do you mean by inaccuracy? First you need to read about the GRBL streaming protocol: There are plenty of senders that does this, I suggest that you look at them. For Java specifically you can look at UGS. There are a couple of layers with their own thread workers and can be quite complex to follow. But here are the key components:
|
There is no inaccuracy in fluidnc, inaccuracy is occuring when I am streaming commands over telnet protocol or websocket protocol. My motive is to stream .nc file instead of uploading. First I am sending $X to unlock then sending command line by line, sending one command and getting ok as response but I am sending next line only if I am receiving ok response. I just that whether this is the only way to stream or any document I missed. |
Did you read the link describing the GRBL streaming protocol? Is there a reason that you don't want to use an existing sender? |
code you post the jave code here |
The java code is in the UGS repository. Search for "ugs github" to find it. |
Machine Context
I am trying to make desktop application in java swing, used telnet and websocket protocol. I have send .nc file line by line and I am getting ok but sometimes late ok reply and I also found one more thing that streaming line by line GCODES in IDLE mode gives inaccuracy.
Feature Description
simply just need one example for sending gcode line by line and result in acuracy.
Other Approaches
I can see the starting nc file from SD works fine but want to know how it works the same command stream I want to do via telnet or serial or websocket
How I Can Help
I am trying to stream gcode in after typing $X but getting errors, but this mode IDLE, I came to know the state by typing '?' so how to get output like this <RUN|Wpos and proper way of streaming gcode. Or I missed any documentation. Please do help me for this.
The text was updated successfully, but these errors were encountered: