1I2CDETECT(8)                System Manager's Manual               I2CDETECT(8)
2
3
4

NAME

6       i2cdetect - detect I2C chips
7
8

SYNOPSIS

10       i2cdetect [-y] [-a] [-q|-r] i2cbus [first last]
11       i2cdetect -F i2cbus
12       i2cdetect -V
13       i2cdetect -l
14
15

DESCRIPTION

17       i2cdetect  is  a  userspace  program to scan an I2C bus for devices. It
18       outputs a table with the list of detected devices on the specified bus.
19       i2cbus  indicates  the number or name of the I2C bus to be scanned, and
20       should correspond to one of the busses listed  by  i2cdetect  -l.   The
21       optional   parameters  first  and  last  restrict  the  scanning  range
22       (default: from 0x03 to 0x77).
23
24       As there is no standard I2C detection command, i2cdetect uses arbitrary
25       SMBus  commands  (namely  SMBus  quick write and SMBus receive byte) to
26       probe for devices. By default, the command used is the one believed  to
27       be  the  safest  for each address. See options -q and -r to change this
28       behavior.
29
30       i2cdetect can also be used to query the functionalities of an  I2C  bus
31       (see option -F.)
32
33

WARNING

35       This program can confuse your I2C bus, cause data loss and worse!
36
37

INTERPRETING THE OUTPUT

39       Each  cell  in  the output table will contain one of the following sym‐
40       bols:
41
42       · "--". The address was probed but no chip answered.
43
44       · "UU". Probing was skipped, because this address is currently  in  use
45         by  a  driver.  This  strongly  suggests that there is a chip at this
46         address.
47
48       · An address number in hexadecimal, e.g. "2d" or "4e". A chip was found
49         at this address.
50
51

OPTIONS

53       -y     Disable  interactive mode. By default, i2cdetect will wait for a
54              confirmation from the user before messing with the I2C bus. When
55              this  flag is used, it will perform the operation directly. This
56              is mainly meant to be used in scripts.
57
58       -a     Force scanning of non-regular addresses. Not recommended.
59
60       -q     Use SMBus "quick write" command for probing.   Not  recommended.
61              This is known to corrupt the Atmel AT24RF08 EEPROM found on many
62              IBM Thinkpad laptops.
63
64       -r     Use SMBus "receive byte" command for probing.  Not  recommended.
65              This  is  known  to lock SMBus on various write-only chips (most
66              notably clock chips at address 0x69).
67
68       -F     Display the list of functionalities implemented by  the  adapter
69              and exit.
70
71       -V     Display the version and exit.
72
73       -l     Output a list of installed busses.
74
75

EXAMPLES

77       List all available I2C busses:
78              # i2cdetect -l
79
80       Immediately scan the standard addresses on I2C bus 9 (i2c-9), using the
81       default method for each address (no user confirmation):
82              # i2cdetect -y 9
83
84       Query the functionalities of I2C bus 1 (i2c-1):
85              # i2cdetect -F 1
86
87       Scan addresses 0x10 to 0x17 on the I2C bus named "SMBus I801 adapter at
88       efa0", using the "receive byte" method, after user confirmation:
89              # i2cdetect -r "SMBus I801 adapter at efa0" 0x10 0x17
90
91

SEE ALSO

93       i2cdump(8), i2cget(8), i2cset(8), i2ctransfer(8), sensors-detect(8)
94
95

AUTHOR

97       Frodo Looijaard, Mark D. Studebaker and Jean Delvare
98
99       This   manual   page   was   originally   written   by  Aurelien  Jarno
100       <aurel32@debian.org>, for the Debian GNU/Linux system.
101
102
103
104                                 October 2017                     I2CDETECT(8)
Impressum