DS18B20 GPIO problem - Raspberry Pi Forums
hello,
have had domoticz running while. descided few weeks ago update rpi (with new image), januari image of wheezy.
since problems began. in meanwhile started weekend scratch new february image same problem.
main problem ds18b20 temp sensors not working , tried , searched evert forum without final solution.
have setup detects sensors (with correct id) when booted temp or 0 or 85 (reset temp ?) after few minute's following error's in domoticz:
main cause of there no sensor's avalible anymore in sys/bus/w1/devices/
when reboot , of time have no sensors @ , when have sensor's detected , working pi crc errors:
problem (dmesg output)
setup:
rpi b+
2x ds18b20 connected 30m utp cable (i used 1 wire extend ds18b20 sensors did not use 2 or so, have 5 wire's in utp wich not used)
4,7k ohm resistor
3 wire connected (3.3v) not in parasitic mode
have done a:
update
upgrade
dist-upgrade
rpi-upgrade (latest firmware)
after update's got system detect sensor's, out of box did not work because of kernel patch 1 wire not applied.
have tried working with:
2x 4.7k ohm (in serie , parallel)
reconnecting everything
parasitic mode on/off
enable/disable device tree
loading module's
resolder connections
...
config.txt looks now:
/etc/modules
have had domoticz running while. descided few weeks ago update rpi (with new image), januari image of wheezy.
since problems began. in meanwhile started weekend scratch new february image same problem.
main problem ds18b20 temp sensors not working , tried , searched evert forum without final solution.
have setup detects sensors (with correct id) when booted temp or 0 or 85 (reset temp ?) after few minute's following error's in domoticz:
code: select all
2015-04-26 20:00:17.482 error: 1-wire system : error reading value /sys/bus/w1/devices/28-00000592b88e 2015-04-26 20:00:17.482 error: 1-wire system : error reading value /sys/bus/w1/devices/28-000006062975 2015-04-26 20:00:27.483 error: 1-wire system : error reading value /sys/bus/w1/devices/28-00000592b88e 2015-04-26 20:00:27.483 error: 1-wire system : error reading value /sys/bus/w1/devices/28-000006062975 2015-04-26 20:00:30.152 hardware monitor: fetching data (system sensors) 2015-04-26 20:00:37.484 error: 1-wire system : error reading value /sys/bus/w1/devices/28-00000592b88e 2015-04-26 20:00:37.485 error: 1-wire system : error reading value /sys/bus/w1/devices/28-000006062975 2015-04-26 20:00:37.886 (1-wire) temp (temp buiten) 2015-04-26 20:00:47.485 error: 1-wire system : error reading value /sys/bus/w1/devices/28-00000592b88e 2015-04-26 20:00:47.486 error: 1-wire system : error reading value /sys/bus/w1/devices/28-000006062975 2015-04-26 20:00:57.486 error: 1-wire system : error reading value /sys/bus/w1/devices/28-00000592b88e 2015-04-26 20:00:57.487 error: 1-wire system : error reading value /sys/bus/w1/devices/28-000006062975 2015-04-26 20:01:00.317 hardware monitor: fetching data (system sensors) 2015-04-26 20:01:07.488 error: 1-wire system : error reading value /sys/bus/w1/devices/28-00000592b88e 2015-04-26 20:01:07.488 error: 1-wire system : error reading value /sys/bus/w1/devices/28-000006062975
when reboot , of time have no sensors @ , when have sensor's detected , working pi crc errors:
code: select all
pi@raspberrypi /sys/bus/w1/devices $ ls w1_bus_master1
code: select all
[ 5.833711] w1-gpio onewire@0: gpio pin 4, external pullup pin 5, parasitic power 0 [ 6.005028] w1_add_master_device: set_pullup requires write_byte or touch_bit , disabling [ 6.285826] usbcore: registered new interface driver usbserial [ 6.402092] usbcore: registered new interface driver usbserial_generic [ 6.492035] usbserial: usb serial support registered generic [ 6.727536] usbcore: registered new interface driver cp210x [ 6.899922] usbserial: usb serial support registered cp210x [ 6.908126] cp210x 1-1.4:1.0: cp210x converter detected [ 7.349713] usb 1-1.4: cp210x converter attached ttyusb0 [ 8.384108] random: nonblocking pool initialized [ 11.389812] ext4-fs (mmcblk0p2): re-mounted. opts: (null) [ 11.808709] ext4-fs (mmcblk0p2): re-mounted. opts: (null) [ 21.839733] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup [ 23.575336] smsc95xx 1-1.1:1.0 eth0: link up, 100mbps, full-duplex, lpa 0xc1e 1 [ 28.596815] adding 102396k swap on /var/swap. priority:-1 extents:2 across:2 134012k ssfs [ 31.979693] w1_slave_driver 28-00000592b88e: read failed crc check [ 32.199622] w1_slave_driver 28-000006062975: read failed crc check [ 42.419736] w1_slave_driver 28-00000592b88e: read failed crc check [ 42.619687] w1_slave_driver 28-000006062975: read failed crc check [ 52.819852] w1_slave_driver 28-00000592b88e: read failed crc check [ 53.859895] w1_slave_driver 28-000006062975: read failed crc check [ 64.080173] w1_slave_driver 28-00000592b88e: read failed crc check [ 535.898325] w1_slave_driver 28-00000592b88e: read failed crc check [ 536.098339] w1_slave_driver 28-000006062975: read failed crc check
rpi b+
2x ds18b20 connected 30m utp cable (i used 1 wire extend ds18b20 sensors did not use 2 or so, have 5 wire's in utp wich not used)
4,7k ohm resistor
3 wire connected (3.3v) not in parasitic mode
code: select all
pi@raspberrypi /sys/bus/w1/devices $ uname -a linux raspberrypi 3.18.11+ #781 preempt tue apr 21 18:02:18 bst 2015 armv6l gnu/linux
update
upgrade
dist-upgrade
rpi-upgrade (latest firmware)
after update's got system detect sensor's, out of box did not work because of kernel patch 1 wire not applied.
have tried working with:
2x 4.7k ohm (in serie , parallel)
reconnecting everything
parasitic mode on/off
enable/disable device tree
loading module's
resolder connections
...
config.txt looks now:
code: select all
#uncomment overclock arm. 700 mhz default. #arm_freq=800 #dtparam=i2c1_arm=on dtoverlay=w1-gpio-pullup #device_tree=
before upgrade connected now, spent more day searching solution, realy hope can help.# /etc/modules: kernel modules load @ boot time.
#
# file contains names of kernel modules should loaded
# @ boot time, 1 per line. lines beginning "#" ignored.
# parameters can specified after module name.
snd-bcm2835
#w1-gpio
#w1-therm
i'm having same problem...
i've followed sorts of advice updating/upgrading/distro upgrading/rpi upgrading, followed adding lines /boot/config.txt , nothing appears in devices list...
i've tried disabling device tree through raspi-config, , still nothing... don't know anymore. supposed pretty straightforward basic functionality, it's pretty sad it's not working easily!
last resort can think of downgrade rpi prior kernel...
i've followed sorts of advice updating/upgrading/distro upgrading/rpi upgrading, followed adding lines /boot/config.txt , nothing appears in devices list...
i've tried disabling device tree through raspi-config, , still nothing... don't know anymore. supposed pretty straightforward basic functionality, it's pretty sad it's not working easily!
last resort can think of downgrade rpi prior kernel...
raspberrypi
Comments
Post a Comment