User Manual
I
2
CDriver User Guide 18
i2ccl m
• from the GUI check the ”Monitor” box
• from Python issue:
i2c.monitor(True)
and to exit:
i2c.monitor(False)
• connect a terminal to the I
2
CDriver (at 1000000 8N1) and type the m char-
acter, then type any character to exit monitor mode
5.5 Capture mode
In capture mode, the I
2
CDriver does not write any data to the I
2
C bus. Instead
it monitors bus traffic and transmits it via USB for recording on the PC.
5.5.1 Command line
There is a Python sample program that can be used to capture traffic on the
command-line at capture.py.
Running it with the I
2
CDriver address as an argument puts the I
2
CDriver into
capture mode: the character in the top-left of the display changes from D to C.
$ python samples/capture.py /dev/ttyUSB0
Now capturing traffic to
standard output (human-readable)
log.csv
Hit CTRL-C to leave capture mode
<START 0x14 WRITE ACK>
<WRITE 0x02 ACK>
<WRITE 0x22 ACK>
<STOP>
^C
©2019 Excamera Labs










