Hi,
It's not your ds1820 who don't work, it's module who crash.
I've got some ds1820 at home, I'll test module after work.
Nicolas
In "make menuconfig" add :
Kernel modules --->
W1 support --->
<*> kmod-w1
<*> kmod-w1-gpio-custom
<*> kmod-w1-slave-therm
Extract of w1-gpio-custom.c :
* <id> ID to used as device_id for the corresponding bus (required)
* <sda> GPIO pin ID of data pin (required)
* <od> Pin is configured as open drain.
So, here we go with open-drain :
# echo "w1-gpio-custom bus0=0,11,1" > /etc/modules.d/55-gpio-custom
# reboot
On reboot you will have
w1_master_driver w1 bus master: Family 28 for 28.0000034bc0b7.2e is
not registered.
# cat /sys/bus/w1/devices/28-0000034bc0b7/w1_slave
60 01 4b 46 7f ff 10 10 b5 : crc=b5 YES
60 01 4b 46 7f ff 10 10 b5 t=22000
On different boot, I've got different states with non-parasite mode :
- w1 slave not detected
- w1 slavec detected, but can't read temperature ( 18S20 doesn't
respond to CONVERT_TEMP )
- all works :)
With parasite mode, all works :)
Nicolas
Nicolas
But, with ds18b20 pin vdd not connected, I've got different value
between two refresh :
# cat /sys/bus/w1/devices/28-0000034bc0b7/w1_slave
ff 07 4b 46 7f ff 01 10 2f : crc=2f YES
ff 07 4b 46 7f ff 01 10 2f t=127937
# cat /sys/bus/w1/devices/28-0000034bc0b7/w1_slave
50 05 4b 46 7f ff 0c 10 1c : crc=1c YES
50 05 4b 46 7f ff 0c 10 1c t=85000
# cat /sys/bus/w1/devices/28-0000034bc0b7/w1_slave
ff 07 4b 46 7f ff 01 10 2f : crc=2f YES
ff 07 4b 46 7f ff 01 10 2f t=127937
# cat /sys/bus/w1/devices/28-0000034bc0b7/w1_slave
50 05 4b 46 7f ff 0c 10 1c : crc=1c YES
50 05 4b 46 7f ff 0c 10 1c t=85000
With vdd wired to gnd, value is stable :
# cat /sys/bus/w1/devices/28-0000034bc0b7/w1_slave
55 01 4b 46 7f ff 0b 10 d0 : crc=d0 YES
55 01 4b 46 7f ff 0b 10 d0 t=21312
But for me values are no correct.
I've got another ds18b20 wired to an usb9097 (usb<>w1) and I get ~17C.
Same with a multimeter :/
Nicolas