jamesbowman / i2cdriver

I2CDriver open source tools
https://i2cdriver.com/
BSD 3-Clause "New" or "Revised" License
187 stars 57 forks source link

10bit addressing is not supported #65

Open shawnferry opened 12 months ago

shawnferry commented 12 months ago

Compiled from HEAD on Ubuntu 22.04

./i2cdriver --xfer="w1@0x13a 0xFF, r2"
Error: Not a valid I2C address "w1@0x13a"

For example address 314 (0x13a) is being captured but not parsed properly. Signals generated externally

Monitor

Probe

Capture started
START 79 WRITE ACK
BYTE 3a ACK
STOP

Write then read

START 79 WRITE ACK
BYTE 3a ACK
BYTE ff ACK
START 79 WRITE ACK
BYTE 3a ACK
START 79 READ ACK
BYTE 00 ACK
BYTE 00 NAK
STOP

Capture

Write 255 to 0x13a then read 2 bytes

SW79.3A.FF.SW79.3A.SR79.00.00'P

Scan 10bit 252 (0xFC) - 261 (0x105)

W78.FC'P
W78.FD'P
W78.FE'P
W78.FF'P
W79.00'P
W79.01'P
W79.02'P
W79.03'P
W79.04'P

Scan 10 bit with response from 314 (0x13a)

W79.38'P
W79.39'P
W79.3A.P <---
W79.3B'P
W79.3C'P