* [lm-sensors] Random values with pcf8591 chip driver (Now as a new
@ 2005-09-05 22:52 Mirko Buholzer
2005-09-05 23:12 ` Mirko Buholzer
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Mirko Buholzer @ 2005-09-05 22:52 UTC (permalink / raw)
To: lm-sensors
I am using a pcf8591 chip on a linux 2.6.8 Kernel. The Adapter Driver is
the scx200_i2c. When I do a sensors command I get random values on each
input channel. Channel 1/2/3 are all set to 0V.
voyage:~# sensors
pcf8591-i2c-1-49
Adapter: NatSemi SCx200 I2C
Chan. 0: 1.28 V
Chan. 1: 1.28 V
Chan. 2: 1.28 V
Chan. 3: 1.28 V
Output: 0.00 V (enabled)
Does anyone have any hints or tricks on how I can proceed with debugging
and error correction? Or is this a known problem?
Thanks and best Regards,
Mirko
--
Mirko Buholzer
mirko@buholzer.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [lm-sensors] Random values with pcf8591 chip driver (Now as a new
2005-09-05 22:52 [lm-sensors] Random values with pcf8591 chip driver (Now as a new Mirko Buholzer
@ 2005-09-05 23:12 ` Mirko Buholzer
2005-09-05 23:15 ` Jean Delvare
2005-09-05 23:30 ` [lm-sensors] Random values with pcf8591 chip driver (Now as a Mirko Buholzer
2 siblings, 0 replies; 4+ messages in thread
From: Mirko Buholzer @ 2005-09-05 23:12 UTC (permalink / raw)
To: lm-sensors
I load the modules as follows:
modprobe scx200_i2c scl4 sda5
modprobe pcf8591 input_mode=0
Mirko Buholzer wrote:
> I am using a pcf8591 chip on a linux 2.6.8 Kernel. The Adapter Driver
> is the scx200_i2c. When I do a sensors command I get random values on
> each input channel. Channel 1/2/3 are all set to 0V.
>
> voyage:~# sensors
> pcf8591-i2c-1-49
> Adapter: NatSemi SCx200 I2C
> Chan. 0: 1.28 V
> Chan. 1: 1.28 V
> Chan. 2: 1.28 V
> Chan. 3: 1.28 V
> Output: 0.00 V (enabled)
>
> Does anyone have any hints or tricks on how I can proceed with
> debugging and error correction? Or is this a known problem?
>
> Thanks and best Regards,
> Mirko
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [lm-sensors] Random values with pcf8591 chip driver (Now as a new
2005-09-05 22:52 [lm-sensors] Random values with pcf8591 chip driver (Now as a new Mirko Buholzer
2005-09-05 23:12 ` Mirko Buholzer
@ 2005-09-05 23:15 ` Jean Delvare
2005-09-05 23:30 ` [lm-sensors] Random values with pcf8591 chip driver (Now as a Mirko Buholzer
2 siblings, 0 replies; 4+ messages in thread
From: Jean Delvare @ 2005-09-05 23:15 UTC (permalink / raw)
To: lm-sensors
Hi Mirko,
> I load the modules as follows:
>
> modprobe scx200_i2c scl4 sda5
> modprobe pcf8591 input_mode=0
Do you have any other chip on that I2C bus? Maybe the bus isn't working
at all and it's not the PCF8591 fault. How did you come to these values
for scl and sda?
--
Jean Delvare
^ permalink raw reply [flat|nested] 4+ messages in thread
* [lm-sensors] Random values with pcf8591 chip driver (Now as a
2005-09-05 22:52 [lm-sensors] Random values with pcf8591 chip driver (Now as a new Mirko Buholzer
2005-09-05 23:12 ` Mirko Buholzer
2005-09-05 23:15 ` Jean Delvare
@ 2005-09-05 23:30 ` Mirko Buholzer
2 siblings, 0 replies; 4+ messages in thread
From: Mirko Buholzer @ 2005-09-05 23:30 UTC (permalink / raw)
To: lm-sensors
The pcf8591 is the only chip. When I do a "i2cdetect 1" and change the
hardware address from 100 to 000 you can see the output below (The UU
value comes from the loaded chip driver), so for me it looks like a
detected chip?
100:
voyage:~# i2cdetect 1
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-1.
I will probe address range 0x03-0x77.
Continue? [Y/n]
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: XX XX XX XX XX XX XX XX XX XX XX XX XX
10: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
20: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
30: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
40: XX XX XX XX XX XX XX XX XX UU XX XX XX XX XX XX
50: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
60: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
70: XX XX XX XX XX XX XX XX
000:
voyage:~# i2cdetect 1
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-1.
I will probe address range 0x03-0x77.
Continue? [Y/n]
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: XX XX XX XX XX XX XX XX XX XX XX XX XX
10: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
20: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
30: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
40: XX XX XX XX XX XX XX XX 48 UU XX XX XX XX XX XX
50: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
60: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
70: XX XX XX XX XX XX XX XX
Thanks for your feedback!
Regards Mirko
Jean Delvare wrote:
>Hi Mirko,
>
>
>
>>I load the modules as follows:
>>
>>modprobe scx200_i2c scl4 sda5
>>modprobe pcf8591 input_mode=0
>>
>>
>
>Do you have any other chip on that I2C bus? Maybe the bus isn't working
>at all and it's not the PCF8591 fault. How did you come to these values
>for scl and sda?
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-09-05 23:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-05 22:52 [lm-sensors] Random values with pcf8591 chip driver (Now as a new Mirko Buholzer
2005-09-05 23:12 ` Mirko Buholzer
2005-09-05 23:15 ` Jean Delvare
2005-09-05 23:30 ` [lm-sensors] Random values with pcf8591 chip driver (Now as a Mirko Buholzer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.