This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| documentation:protocols:i2c:i2c-tools_shell [2026/10/08 13:12] – removed - external edit (Unknown date) 127.0.0.1 | documentation:protocols:i2c:i2c-tools_shell [2026/10/09 11:11] (current) – [i2cdump] chris | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Bash Shell Interface for I2C ====== | ||
| + | |||
| + | On the kernel level, I2C communication is handled by the '' | ||
| + | On the lowest level, the bus is seen as a file and using a file descriptor one can | ||
| + | read from it or write to it. The shell interface is a set of compiled programs that | ||
| + | wrap this functionality for specific uses at a higher level. The intended use is | ||
| + | interactive debugging to see if something works or not. For programmatic use it's | ||
| + | better to take a look at the [[.: | ||
| + | [[.: | ||
| + | |||
| + | These programs are part of the '' | ||
| + | in most Linux distributions. | ||
| + | |||
| + | |||
| + | |||
| + | ===== i2cdetect ===== | ||
| + | |||
| + | Detects I2C chips. Use: '' | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | ===== i2cdump ===== | ||
| + | |||
| + | Examines registers on the I2C bus. Use: '' | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | Use of '' | ||
| + | ===== i2cget ===== | ||
| + | 3 | ||
| + | |||
| + | ===== i2cset ===== | ||
| + | 4 | ||
| + | |||
| + | ===== i2ctransfer ===== | ||
| + | 5 | ||
| + | |||
| + | |||