If you want to use the
i2c-tools package, you should start by reading the available documentation. Two items I'd recommend are:
The summary & system manuals for
i2c-tools provides a useful overview, and has links to the I2C Wiki, and the
git source tree.
The 4-part I2C programming tutorial from AB Electronics(https://www.abelectronics.co.uk/kb/article/1090/i2c-part-1---introducing-i2c)
After you finish this, you may have a different view toward the toolset to use (e.g. Python's
smbus2 library) in your project, or you may decide that the
i2c-tools package is a good fit. In any case, some familiarity with the options will be a benefit.
Wrt using the
i2c-tools package for your development, I think that there are options available (e.g. the MATLAB version) that you may wish to consider. Also, perhaps consider your approach in light of your programming experience; for example, extracting the device address you need from the
i2c-detect output will demand some additional programming to parse the output; do you have any experience parsing text with
So - that's one way to proceed...