Setup Guide

Tests
To test, the i2ctool has a configuration file that lists all the devices on the busses. The tool runs through the list and tries to reach the
devices. The i2ctool reports when a device is not returning data.
CLI options
root@dellemc-diag-os:~# i2ctool
DellEmc Diag - I2C Tool
version 2.0, x.xx.x.x-x
build, 2019/07/03,
Syntax: i2ctool <option>
To Scan the (Specific) I2C devices:=
i2ctool --scan [--bus=/dev/i2c-
<bus_number>]
(or)
i2ctool -n [-b /dev/i2c-<bus_number>]
To Test the pre-programmed configuration or from config file:=
i2ctool --test [--
config=<config_file_name>]
(or)
i2ctool -t [-f <config_file_name>]
Execute repeatedly command by count:=
i2ctool --iteration=max/<count> [option1]
[option2]...
(or)
i2ctool -I max/<count> [option1] [option2]...
Read:=
i2ctool --read --bus=/dev/i2c-<bus_number> --addr=<address> --reg=<register> --
count=<count> --width=<width> --display_size=<display_size>
(or)
i2ctool -r -b /dev/i2c-<bus_number> -a <address> -R <register> -C <count> -W <width> -D
<display_size>
Read(16 bit addressing):=
i2ctool --read --bus=/dev/i2c-<bus_number> --addr=<address> --reg16=<register(16bit)> [--
reg_le] --count=<count> --width=<width> --display_s
ize=<display_size> (or)
i2ctool -r -b /dev/i2c-<bus_number> -a <address> -o <register(16bit)> [-L] -C <count> -W
<width> -D <display_size>
Write:=
i2ctool --write --bus=/dev/i2c-<bus_number> --addr=<address> --reg=<regiser> --
width=<width> --val=<value> [--flag=<PEC>, ...]
(or)
i2ctool -w -b /dev/i2c-<bus_number> -a <address> -R <register> -W <width> -V <value> [-F
<PEC>,...]
Write(16 bit addressing):=
i2ctool --write --bus=/dev/i2c-<bus_number> --addr=<address> --reg16=<register(16bit)> [--
reg_le] --val=<value>
(or)
i2ctool -w -b /dev/i2c-<bus_number> -a <address> -o <register(16bit)> [-L] -V <value>
Write without data:=
i2ctool --no_data --bus=/dev/i2c-<bus_number> --
addr=<address>
(or)
i2ctool -N -b /dev/i2c-<bus_number> -a <address>
Usage:
-h, --h Show the help text
-n, --scan Scan operation
-t, --test Test using the pre-programmed configuration or use supplied config
-r, --read Read operation
-w, --write Write operation
-N, --no_data Write operation without data
-f, --config= To specify the location of the config file e.g. /etc/dn/diag/
<file_name>
-C, --count= Count
Dell EMC DIAG-OS tools
35