Skip to contentSkip to conversation

sensor mt9t001 i2c question

lm-sensors xiaowinky 2 participants 3 messages Sep 5, 2008

lore
Share & tools
lore

xiaowinky

author
#0 lore raw

hi,all!

I use the Montavist version, I installed I2C-tools software tools in linux2.6.10.My system to mount a two I2C [email protected]:/sys/bus/i2c/devices# ls0-001b 0-005din fact,0-005d is mt9t001 equipment slave address.I need to debug it.Step 1: Identify the I2C buses [email protected]:~# i2cdetect li2c-0 i2c DAVINCI I2C adapter I2C adapterStep 2: Query the I2C bus [email protected]:~# i2cdetect 0WARNING! 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] yDaVinci I2C WARNING: i2c: RAR detected-- DaVinci I2C WARNING: i2c: NACK detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C WARNING: i2c: NACK detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C WARNING: i2c: NACK detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C WARNING: i2c: NACK detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C WARNING: i2c: NACK detectedDaVinci I2C WARNING: i2c: RAR detected--DaVinci I2C WARNING: i2c: NACK detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C WARNING: i2c: NACK detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C WARNING: i2c: NACK detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C WARNING: i2c: NACK detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C WARNING: i2c: NACK detectedDaVinci 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 [email protected]:/sys/bus/i2c/devices# i2cdump -f 0 0x5d wWARNING! 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 detected0000 0000 0000 0DaVinci I2C WARNING: i2c: RAR detected000 1000 0500 03DaVinci I2C WARNING: i2c: RAR detected00 0200DaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C WARNING
: i2c: RAR detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C WARNING: i2c: RAR detected ..........DaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C WARNING: i2c: RAR detectedf8: 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 [email protected]:/sys/bus/i2c/devices# i2cset -f 0 0x5d 0x00 0x1611 wWARNING! 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 address0x00, data 0x1611, mode word.Continue? [Y/n] yDaVinci I2C WARNING: i2c: RAR detectedWarning - 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上小游戏,工作休闲两不误! 马上就开始玩!
_________________________________________________________________
MSN 中文网,最新时尚生活资讯,白领聚集门户。
http://cn.msn.com

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#1 lore raw

Hi,

Quoted 1 line · xiaowinky

(...) 0-005d is mt9t001

Wrong mailing list. The lm-sensors list is dedicated to hardware monitoring, while the mt9t001 is a digital image sensor. For I2C issues, please use the i2c list. For functional issues, please contact the video4linux (V4L) people.

BTW, your e-mails are horribly formatted. See by yourself:
http://lists.lm-sensors.org/pipermail/lm-sensors/2008-September/024066.html
It's all on the same line, unreadable.

I suggest that you either reconfigure your e-mail client or change it if you can't get it to work. In the current state of things, I bet that 95% of the readers trash your mail without reading it. Maybe you just have to disable HTML mails (which are bad anyway.)

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
author
#2 lore raw

[lm-sensors] sensor mt9t001 I2C question

In reply to xiaowinky

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

[email protected]:/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

[email protected]:~# i2cdetect l
i2c-0   i2c             DAVINCI I2C adapter                     I2C adapter
Step 2: Query the I2C bus 
[email protected]:~# 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

[email protected]:/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

[email protected]:/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

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors