Skip to content

Control box hangs up unless i/O sender is connected #12

Answered by terjeio
Meliusja asked this question in Q&A
Discussion options

You must be logged in to vote

I notice that grbl seems to get hung up when I try to use the control box without a sender being connected.

This will happen if the primary stream is via USB as this blocks if no client is connected and the buffers are full. I have it on my todo list to add an event for client connect/disconnect and use that to set the hal.stream.state.connected flag. But I have not yet managed to implement this...
A possible workaround is to hook into the hal.stream_blocking_callback, this will called when the USB stream blocks - you can then exit the blocking loop and stop replicating data to the USB stream.

is there a way for a plugin to detect when a sender is actively running a gcode file

By chec…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Meliusja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants