-
Hi, I need one escape char to send arbitrary binary data to text console. So that current parser can do something like: "first char in this line equals to 'my special exape char'? Peek second char, that's the amount of more chars to receive, and after amount is received call my_custom_parser(amount, dataptr)". The purpose is to receive serialized blocks and segments; it's COBS binary data. Which char isn't already in use? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 29 replies
-
Only CR and LF is used in the ASCII control character range, and no top bit set characters. The standard way of sending messages back is by enclosing them in square brackets and prefixing data, e.g Top bit set printable characters in ISO8859 encodings should not be used - they could be part of feedback messages in gcode. |
Beta Was this translation helpful? Give feedback.
-
I have to admit I do not understand the meaning of this statement. What I have done is that the number of command characters has been expanded on (over those supported by legacy Grbl) and I have provided a way for plugin code to add further expansion. My gcode sender takes advantage of the new command codes to provide enhanced functionality, other senders may not. E.g. my sender has code to transfer files via the YModem protocol for storage on a local SD Card.
This is gone in the latest version and replaced with So, to bypass |
Beta Was this translation helpful? Give feedback.
Only CR and LF is used in the ASCII control character range, and no top bit set characters. The standard way of sending messages back is by enclosing them in square brackets and prefixing data, e.g
[BD:<data>] CR LF
Of course]
,CR
andLF
cannot be present in the<data>
.Top bit set printable characters in ISO8859 encodings should not be used - they could be part of feedback messages in gcode.