Hello out there in casper-land,
Can anybody clarify for me the syntax, or maybe I mean the format, of
some KATCP messages? Specifically, the write command: From the wiki:
?write<register name> <offset> <data>
Where:
* /register name/ is a string value as listed in /listdev/.
* /offset/ is an integer specifying the byte offset from where you'd
like to start writing.
* /data/ is the raw binary data stream to write to that location
(big endian)
So, the whole command begins with question mark and ends with a newline.
register name is a string.
Offset is an integer- does this mean an ascii representation of an
integer, or just a char array containing the bytes? What if one of the
bytes is newline? Similarly for the data field. Do we add a backslash
to escape special characters (newline, etc)?
This is likely obvious to most people who read the wiki, but not to me.
Thanks,
Rick