-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing 1 wire driver for thermal sensor/s (DS18B20) #51
Comments
an updated image for the Pi Zero W including the w1-gpio dtb and loading the kernel modules w1-gpio and w1-therm can be found at https://storage.googleapis.com/reswarmos/raspberrypi/ReswarmOS-0.4.3-raspberrypi0w.img.gz |
Hi Mario, ich habe den Sensor nochmal mit beidem Pi0 und 3 probiert und umgesetzte alle mögliche Lösungen, die ich auf internet gefunden habe. Dan nach vergleicht ich auch ReswamOS und Raspbian Config Dateien und ich galube, dass wir Probleme bei dtoverlay=w1-gpio haben. Den Befehl dtoverlay=w1-gpio aktiviert 1 wire module und zeigt w1_bus_master1 im /sys/bus/w1/devices trotz der Tatsache, dass den Sensor mit dem Pi eingeschlossen ist oder nicht. Das heißt den Ordner wird immer verfügbar und get erst nur weg wenn wir dtoverlay=w1-gpio von /boot/config.txt weg machen. Nur bei diesem Fall, wird ls im /sys/bus/w1/devices nicht zeigen. Auf der anderen Seite (ReswamOS), egal ob wir dtoverlay=w1-gpio in der config.txt Dateien schreiben oder nicht, wird den Ordner /sys/bus/w1/devices immer leer. Auch nicht w1_bus_master1 Ordner ist verfügbar. Es kann sein dass irgendwie den Befehl dtoverlay=w1-gpio funktioniert nicht richtig weil, wenn er richtig funktioniert hatte, hätten wir schon mindestens w1_bus_master1 Ordne gesehen. |
…ice-tree to fix missing 1-wire devices => issue #51
…ice-tree to fix missing 1-wire devices => issue #51
For thermal sensors, we need
dtoverlay=w1-gpio
in/boot/config.txt
.Adding this line in the config file and loading the module via modeprobe i.e.,
sudo modprobe w1-gpio
andsudo modprobe w1-therm
must show the sensor as 28-xxxxxxxx in/sys/bus/w1/devices
, which is not the case for Reswarm OS.The ReswarmOS does not show any device at all in the
/sys/bus/w1/devices
folder. After going through the posts I came to know that even if the sensor is not attached to the Pi, after addingdtoverlay=w1-gpio
in/boot/config.txt
a device 00-xxxxxx, dummy/temporary devices appear in the/sys/bus/w1/devices
.Here are the steps I am following to make the sensor appear in the
/sys/bus/w1/devices
directory:dtoverlay=w1-gpio
Exit Nano, and reboot the Pi with sudo reboot
Log in to the Pi again, and at the command prompt enter sudo modprobe w1-gpio
Then enter sudo modprobe w1-therm
Change directories to the /sys/bus/w1/devices directory by entering cd /sys/bus/w1/devices
ls
In Raspbian these two directories are displayed 28-000006637696 and w1_bus_master1.
The text was updated successfully, but these errors were encountered: