User Manual
I
2
CDriver User Guide 25
The host should send:
s 0x90 Start write to device 45
0xc0 0x7a Write 1 byte
s 0x91 Start read from device 45
0x80 Read 1 byte
p Stop
The status response is always 80 characters, space padded. For example::
[i2cdriver1 DO01JUOO 000000061 4.971 000 23.8 I 1 1 100 24 ffff ]
The fields are space-delimited:
identifier always i2cdriver1
serial serial code identifier
uptime I
2
CDriver uptime 0-999999999, in seconds
voltage USB bus voltage, in volts
current attached device current, in mA
temperature junction temperature, in
◦
C
mode current mode, I for I
2
C, B for bitbang
SDA SDA line state, 0 or 1
SCL SCL line state, 0 or 1
speed I
2
C bus speed, in KHz
pullups pullup state byte
crc 16-bit CRC of all input and output bytes (CRC-16-CCITT)
The sample confirm.py shows the CRC-16-CCITT calculation.
©2019 Excamera Labs










