sensor mt9t001 I2C question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




hi,all!

I use the Montavist version, I installed  I2C-tools software tools in linux2.6.10.
My system to mount a two I2C devices
root at 192.168.0.103:/sys/bus/i2c/devices# ls
0-001b  0-005d

in fact,0-005d is mt9t001 equipment slave address.I need to debug it.
Step 1: Identify the I2C buses 
root at 192.168.0.103:~# i2cdetect l
i2c-0   i2c             DAVINCI I2C adapter                     I2C adapter
Step 2: Query the I2C bus 
root at 192.168.0.103:~# i2cdetect 0
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c/0.
I will probe address range 0x03-0x77.
Continue? [Y/n] y
DaVinci I2C WARNING: i2c: RAR detected
-- DaVinci I2C WARNING: i2c: NACK detected
DaVinci I2C WARNING: i2c: RAR detected
DaVinci I2C WARNING: i2c: NACK detected
DaVinci I2C WARNING: i2c: RAR detected
DaVinci I2C WARNING: i2c: NACK detected
DaVinci I2C WARNING: i2c: RAR detected
DaVinci I2C WARNING: i2c: NACK detected
DaVinci I2C WARNING: i2c: RAR detected
DaVinci I2C WARNING: i2c: NACK detected
DaVinci I2C WARNING: i2c: RAR detected
--DaVinci I2C WARNING: i2c: NACK detected
DaVinci I2C WARNING: i2c: RAR detected
DaVinci I2C WARNING: i2c: NACK detected
DaVinci I2C WARNING: i2c: RAR detected
DaVinci I2C WARNING: i2c: NACK detected
DaVinci I2C WARNING: i2c: RAR detected
DaVinci I2C WARNING: i2c: NACK detected
DaVinci I2C WARNING: i2c: RAR detected
DaVinci I2C WARNING: i2c: NACK detected
DaVinci I2C WARNING: i2c: RAR detected
--
Why is there the above information.I do not know what is the meaning .
 
Step 4: Dump the I2C device registers 
 
root at 192.168.0.103:/sys/bus/i2c/devices# i2cdump -f 0 0x5d w
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c/0, address 0x5d, mode word /*Because MT9T001 register for the two byte*/
Continue? [Y/n] y
            .........
38: DaVinci I2C WARNING: i2c: RAR detected
0000 0000 0000 0DaVinci I2C WARNING: i2c: RAR detected
000 1000 0500 03DaVinci I2C WARNING: i2c: RAR detected
00 0200
DaVinci I2C WARNING: i2c: RAR detected
DaVinci I2C WARNING: i2c: RAR detected
DaVinci I2C WARNING: i2c: RAR detected
DaVinci I2C WARNING: i2c: RAR detected
DaVinci I2C WARNING: i2c: RAR detected
      ..........

DaVinci I2C WARNING: i2c: RAR detected
DaVinci I2C WARNING: i2c: RAR detected
DaVinci I2C WARNING: i2c: RAR detected
DaVinci I2C WARNING: i2c: RAR detected
DaVinci I2C WARNING: i2c: RAR detected
f8: 0100 0000 3623 00a4 3800 20d0 0000 1116
 
Why is there the above information.I do not know what is the meaning .
 
i2cget and i2cset
 
root at 192.168.0.103:/sys/bus/i2c/devices# i2cset -f 0 0x5d 0x00 0x1611 w
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will write to device file /dev/i2c/0, chip address 0x5d, data address
0x00, data 0x1611, mode word.
Continue? [Y/n] y
DaVinci I2C WARNING: i2c: RAR detected
Warning - data mismatch - wrote 0x1611, read back 0x1116
 
Why is there the above information.I do not know what is the meaning .
 
Hope that everyone can help me!
 
thanks
 
winkyxiao!

_________________________________________________________________
MSN ????????????????????
http://cn.msn.com




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux