Filter i2c data contained in a USB packet

asked 2019-08-16 19:53:53 +0000

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?

edit retag flag offensive close merge delete

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 ( 2019-08-17 05:27:11 +0000 )edit

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 ( 2019-08-19 14:27:52 +0000 )edit