¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 96°Ç
   
I2C Ãß°¡¼³¸í... (man page)
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2010-11-18 (¸ñ) 14:53 Á¶È¸ : 8461
±ÛÁÖ¼Ò :
                          

I2CDETECT(8)                                                      I2CDETECT(8)

NAME
       i2cdetect - detect I2C chips

SYNOPSIS
       i2cdetect [-y] [-a] [-q|-r] i2cbus [first last]
       i2cdetect -F i2cbus
       i2cdetect -V
       i2cdetect -l

DEscRIPTION
i2cdetect  is  a  userspace program to scan an I2C bus for devices. It outputs a table with the list of detected devices on the specified bus. 
i2cbus indicates the number or name of the I2C bus to be scanned, and should correspond to one of the busses listed by i2cdetect -l.  The optional parameters first and last restrict the scanning range (default: from  0x03 to 0x77).

       i2cdetect can also be used to query the functionalities of an I2C bus (see option -F.)
i2cdetect ´Â I2C ¹ö½ºÀåÄ¡¸¦ ½ºÄµÇϱâ À§ÇÑ À¯Àú°ø°£ ÇÁ·Î±×·¥ÀÌ´Ù
ÁöÁ¤µÈ ¹ö½º¿¡ °¨ÁöÀåÄ¡ÀÇ ¸ñ·Ï°ú Å×À̺íÀ» Ãâ·ÂÇÑ´Ù. I2C ¹ö½º´Â °Ë»öÇÑ I2C ¹ö½ºÀÇ À̸§À̳ª ¼ýÀÚ¸¦ Ç¥½ÃÇÏ°í
 i2cdetect -l ¸í·É¾î¸¦ ÅëÇؼ­ ¸®½ºÆ®°¡ ³ªÅ¸³­´Ù.

¡Ø º¸Åë I2C ÀåÄ¡´Â Ä¿³Îµå¶óÀ̹ö°¡ ÄÁÆ®·ÑÇϸç À¯Àú°ø°£¿¡¼­ /dev ÀÎÅÍÆäÀ̽º¸¦ ÅëÇØ ¾î´ðÅÍ¿¡ ÀÖ´Â ¸ðµç µð¹ÙÀ̽º¸¦ Á¢±ÙÇϸç i2c-dev ¸ðµâÀÌ ÇÊ¿äÇÏ´Ù.
µî·ÏµÈ i2c ¾î´ðÅÍ´Â 0¹øºÎÅÍ ½ÃÀÛÇÏ¸ç ¾î¶² ¹øÈ£°¡ ¸Å°ÜÁ®ÀÖ´ÂÁö´Â /sys/class/i2c-dev ¸¦ ÅëÇؼ­ È®Àΰ¡´ÉÇÏ´Ù.
¾Æ´Ï¸é i2cdetect -l ¸í·É¾î¸¦ ÅëÇؼ­ ½Ã½ºÅÛ³»¿¡ Á¸ÀçÇÏ´Â ¸ðµç i2c ¾î´ðÅÍÀÇ ¸®½ºÆ®µéÀ» È®Àΰ¡´ÉÇÏ´Ù.
i2cdetect ´Â i2c-tools ÆÐÅ°ÁöÀÇ ÀϺκÐÀÌ´Ù.

[root@localhost i2c-tools-3.0.2]# i2cdetect -l
i2c-0   smbus           SMBus I801 adapter at 0400              SMBus adapter

/sys/class/i2c-dev µð·ºÅ丮¸¦ È®ÀÎÇغ¸¸é i2cdetect -l À» ÅëÇؼ­ ¾ò¾îÁø °á°ú°ªÀ̶û °°À¸¸ç ¾Æ´ðÅ͹øÈ£´Â µ¿ÀûÀ¸·Î ÇÒ´çµÈ´Ù.

[root@i2c-dev]# i2cdetect -l
i2c-0   smbus           SMBus2 AMD8111 adapter at cc00          SMBus adapter
i2c-1   smbus           SMBus AMD8111 adapter at 10e0           SMBus adapter

[root@dec-dev]# pwd
/sys/class/i2c-dev
[root@i2c-dev]# ls -al
ÇÕ°è 0
drwxr-xr-x  4 root root 0 2010-11-18 15:12 .
drwxr-xr-x 30 root root 0 2010-11-18 15:12 ..
drwxr-xr-x  3 root root 0 2010-11-18 15:12 i2c-0
drwxr-xr-x  3 root root 0 2010-11-18 15:12 i2c-1

[root@localhost i2c-0]# ls -al
ÇÕ°è 0
drwxr-xr-x 3 root root    0 2010-11-18 15:12 .
drwxr-xr-x 4 root root    0 2010-11-18 15:12 ..
-r--r--r-- 1 root root 4096 2010-11-18 15:12 dev
lrwxrwxrwx 1 root root    0 2010-11-18 15:12 device -> ../../../devices/pci0000:00/0000:00:07.2
-r--r--r-- 1 root root 4096 2010-11-18 15:13 name
drwxr-xr-x 2 root root    0 2010-11-18 15:13 power
lrwxrwxrwx 1 root root    0 2010-11-18 15:17 subsystem -> ../../i2c-dev
-rw-r--r-- 1 root root 4096 2010-11-18 15:13 uevent




WARNING
       This program can confuse your I2C bus, cause data loss and worse!

INTERPRETING THE OUTPUT
       Each cell in the output table will contain one of the following symbols:

       ¡¤ "--". The address was probed but no chip answered.

       ¡¤ "UU". Probing was skipped, because this address is currently in use by a driver. This strongly suggests that there is a chip at this address.

       ¡¤ An address number in hexadecimal, e.g. "2d" or "4e". A chip was found at this address.

OPTIONS
       -y     Disable  interactive mode. By default, i2cdetect will wait for a confirmation from the user before messing with the I2C bus. When this flag is used, it will perform the opera-
              tion directly. This is mainly meant to be used in scripts.

       -a     Force scanning of non-regular addresses. Not recommended.

       -q     Use SMBus "quick write" commands for probing (by default, the command used is the one believed to be the safest for each address).  Not recommended. This is known  to  corrupt
              the Atmel AT24RF08 EEPROM found on many IBM Thinkpad laptops.

       -r     Use  SMBus "read byte" commands for probing (by default, the command used is the one believed to be the safest for each address).  Not recommended. This is known to lock SMBus
              on various write-only chips (most notably clock chips at address 0x69).

       -F     Display the list of functionalities implemented by the adapter and exit.

       -V     Display the version and exit.

       -l     Output a list of installed busses.

SEE ALSO
       i2cdump(8), sensors-detect(8)

AUTHOR
       Frodo Looijaard, Mark D. Studebaker and Jean Delvare

       This manual page was originally written by Aurelien Jarno <aurel32@debian.org>, for the Debian GNU/Linux system.

                                  April 2008                      I2CDETECT(8)


À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.