Filter i2c data contained in a USB packet

asked Aug 16 '19

allenhuffman gravatar image

I am using an FTDI USB-to-I2C adapter. I read and write I2C packets over the USB interface. Is it possible to filter on ic2 data found inside usb.capdata?

For example, I filter on "(usb.capdata contains aa)" to see just the entries that contain my i2c data (using 0xaa in the body).

Could I filter something like "i2c.addr" out of usb.capdata?

Preview: (hide)

Comments

Are you able to share a capture file on a public file sharing service like Dropbox, OneDrive, GoogleDrive etc? I don't think many people here have access to a tracefile with I2C traffic over USB :-)

SYN-bit gravatar imageSYN-bit ( Aug 17 '19 )

I probably can't share a capture of our internal protocol. I am just wondering if there is a way to apply a filter to an area of a packet. For example, you can parse many things that are contained in an Ethernet packet (i.e., tcp/udp/http/coap) so I expect it is possible -- unless those filters are hard coded. Perhaps I should try to find out how one parses ethernet or other protocols over a USB interface. I think that would be similar to what I am trying to do.

allenhuffman gravatar imageallenhuffman ( Aug 19 '19 )