Debug protocol V0.7
Global message layout
Get Info ('I')
Get version ('V')
Write Register ('W')
Query Register ('Q')
Config Channel ('C')
Decimation ('D')
Reset Time ('T')
Read Channel Data ('R')
Debug String ('S')
Clear History
Built with
from
Grav
and
Hugo
Embedded Debugger
>
Debug protocol V0.7
>
Global message layout
> Debug String ('S')
Debug String ('S')
cmd-ID
cmd-data
PC -> uC
’S’ = 0x53
char_n
…
char_0
PC <- uC
’S’ = 0x53
char_n
…
char_0
char_n…char_0: debug-string send by the µC to the PC, and vice-versa
it acts like a stdout that the µC can print to (like a printf), and a stdin that the µC can react on (like a getchar) together, it acts like a ‘terminal’