Monday, July 31, 2017

kernel: [ 1636.320383] w1_master_driver w1_bus_master1: Family 0 for 00.f80000000000.b6 is not registered.

Spent nearly a day trying to figure out that why my temperature sensor is not working and giving the below message in /var/log/syslog

kernel: [ 1636.320383] w1_master_driver w1_bus_master1: Family 0 for 00.f80000000000.b6 is not registered.

My config.txt settings are as below:

pi@raspberrypi:~ $ grep -i 'dtoverlay' /boot/config.txt
#dtoverlay=lirc-rpi
dtoverlay=w1-gpio
pi@raspberrypi:~ $ 

Nothing special in /etc/module

pi@raspberrypi:~ $ cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
snd-bcm2835
#w1-gpio pullup=1
#w1-therm
pi@raspberrypi:~ $ 

but I was still getting the error in the logs.

Now I am getting the link of 28.XXXXXXX but before I was getting 00.XXXXXXXX . So I was not sure that what is happening and what is causing the temp sensor not to work.

Current output is

pi@raspberrypi:/sys/bus/w1/devices $ ls -l
total 0
lrwxrwxrwx 1 root root 0 Jul 31 20:53 28-041600c817ff -> ../../../devices/w1_bus_master1/28-041600c817ff
lrwxrwxrwx 1 root root 0 Jul 31 20:56 w1_bus_master1 -> ../../../devices/w1_bus_master1
pi@raspberrypi:/sys/bus/w1/devices $ 


pi@raspberrypi:~ $ dmesg | grep w1
[    5.663840] w1-gpio onewire@0: gpio pin 4, external pullup pin -1, parasitic power 0
[    5.663887] w1_add_master_device: set_pullup requires write_byte or touch_bit, disabling
pi@raspberrypi:~ $ 


I have spent time reading device tree, checking different gpio pins, updating and upgrading os anything and everything.

In the end I thought of having a closer look then found that the resistor 4.7K Ohm is not connected to one side of the sensor properly, which was causing the abnormal behaviour.

After ensuring the proper connection things have started working okay and now I can see the temp again.

pi@raspberrypi:/sys/bus/w1/devices/28-041600c817ff $ cat w1_slave
9b 00 4b 46 7f ff 0c 10 e1 : crc=e1 YES
9b 00 4b 46 7f ff 0c 10 e1 t=9687
pi@raspberrypi:/sys/bus/w1/devices/28-041600c817ff $ 

No comments: