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

Lag during work #5

Open
ambarusa opened this issue Apr 25, 2019 · 3 comments
Open

Lag during work #5

ambarusa opened this issue Apr 25, 2019 · 3 comments

Comments

@ambarusa
Copy link

ambarusa commented Apr 25, 2019

Hello, I just tried out this wifi based method, and after some minimal corrections in the code, I managed to make the system work. After using the engraver quite a lot, I found out that there are appearing some lags during engraving, which means that the laser is freezing in its current state (burning, or in off state), making some visible glitches in the final result. Do you have any ideas what should cause the problem? Maybe could be possible to implement some protection (ie. if there is no instruction the shut down the laser, or load the g code in a sort of buffer before start, and watch only a stop/pause command). I think my local network always seemed to be stable (it still can cause the problem). Thank you.

@arkypita
Copy link
Owner

arkypita commented Apr 26, 2019

Hi
I usually have the same issue with WebSocket protocol. I never understand why.
I prefer to use Telnet protocol over WiFi, this gives less lag (not remove the issue, but less frequent)

Use GRBL v1.1 with laser mode on and M4 command for power on will remove your burns problem because when laser stop moving its always turned off.

@ambarusa
Copy link
Author

Thanks! I will make some tests. I didn't have time to fully understand the code, but is there a way to load the g code in a buffer before starting the work, and then watch only a stop/pause command from the UI?

@arkypita
Copy link
Owner

Grbl firmware use all the memory available in the limited hardware of an arduino/atmega328 so the receiving buffer is only limited to 128 chars.

Maybe a buffer could be added in esp module (now used as a pure tunnel) but this will make more complex the protocol because LaserGRBL should be keep track of buffer size in esp for not overflow/overfill it, and the code on esp should be keep track of grbl buffer.

Definitively not a good solution.

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

2 participants