Hello,
I've added the PR to the sigrok-cli https://github.com/sigrokproject/sigrok-cli/pull/8
Introduce the "--protocol-decoder-timestamp" command line option (no
short form available), which emits timestamp with textual output
from protocol decoder annotations, regardless of a log level value.
This shall increase usability of sigrok-cli output with external
postprocessors, as the option exclusively adds timestamps to the
output but does not affect the presence or layout of any other line.
This commit prepends "text" and "meta" annotations with timestamp
information. It does not change "binary" output.
Example of use:
sigrok-cli -d fx2lafw -c samplerate=1M --continuous \
-P i2c:scl=D2:sda=D3 \
--protocol-decoder-timestamp
0.041078 i2c-1: Start
0.041160 i2c-1: 0
0.041150 i2c-1: 0
0.041140 i2c-1: 0
0.041130 i2c-1: 0
0.041120 i2c-1: 1
0.041110 i2c-1: 0
0.041100 i2c-1: 0
0.041089 i2c-1: 0
0.041160 i2c-1: Write
0.041089 i2c-1: Address write: 08
0.041170 i2c-1: ACK
Sincerely yours,
Sergey Spivak
_______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel