Skip to contentSkip to conversation

Few questions about dibusb i2c over usb protocol

DISCUSSION Raimonds Cicans 1 participant 1 message Jul 7, 2014 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hello.

1) As I understand format of i2c read command is following:
2, (dev_i2c_addr<<1)|1, addr_hi, addr_lo, size_hi, size_lo

but in debug output I saw following commands:

Quoted 1 line
Quoted 1 line
Quoted 1 line

02 a3 00 01

<<< 55

Quoted 1 line
Quoted 1 line
Quoted 1 line

02 a3 00 04

<<< 55 00 53 00

This commands are shorter then command described above. Meaning of bytes 1, 2 and 4 is clear, but what mean third byte:
if it is size_hi, then where is address?
if it is addr_lo, then it is not clear why answer's first byte is 55 according to Cypress documentation first byte of
program eeprom should be C2

2) What is format for i2c write command?
3, dev_i2c_addr<<1, addr_hi, addr_lo, data... ?

3) what mean following command

Quoted 1 line
Quoted 1 line
Quoted 1 line

03 a2 51 3f 80

write byte 80 at address 513f?

Raimonds Cicans