question

Roger Rossow avatar image
Roger Rossow asked

VenusOS-TemperatureService will not display DS18B20 readings

Hi,

I have unsuccessfully tried to set up the VenusOS-TemperatureService to read/display temperature from a DS18B20 sensor.
The library will display the RPi CPU temperature. It will not display the DS18B20 temperature readings. It is if the sensor was never connected.

I have tried switching IO pins (changing the /u-boot/config.txt accordingly), using a new DS18B20 device, connecting a pull-up resistor, playing with small/large VenusOS, using a lower version of VenUS. Still no luck

Any hints where I can find the cause of this behavior?

I can see the logfile has an error in it. Do not understand if this is related to my problem:

** Exception: The settings service com.victronenergy.settings does not exist! **

Thanks
RogerR

System:
Raspberry Pi 4 1GB RAM
DS18B20 temperature sensor
Venus OS v3.32
VenusOS-TemperatureService v0.52

Logfile from boot:

tail -n 23 -f /data/log/VenusOS-TemperatureService/current | tai64nlocal:

2024-05-28 16:13:36.771309500 *** CCGX booted (0) ***

2024-05-28 16:13:40.589566500 INFO:root:/data/VenusOS-TemperatureService/dbus-i2c.py is starting up - python 3
2024-05-28 16:13:40.589722500 INFO:root:Loglevel set to INFO
2024-05-28 16:13:40.596588500 INFO:root:registered ourselves on D-Bus as com.victronenergy.temperature.RPi_cpu_id01
2024-05-28 16:13:40.598883500 INFO:root:Add setting /Settings/Temperature/1/TemperatureType [0, 0, 3]
2024-05-28 16:13:40.599243500 INFO:root:Add setting /Settings/Temperature/1/CustomName ['', 0, 0]
2024-05-28 16:13:40.644747500 Traceback (most recent call last):
2024-05-28 16:13:40.644753500 File "/data/VenusOS-TemperatureService/dbus-i2c.py", line 404, in <module>
2024-05-28 16:13:40.644756500 initSettings(newSettings)
2024-05-28 16:13:40.644759500 File "/data/VenusOS-TemperatureService/dbus-i2c.py", line 264, in initSettings
2024-05-28 16:13:40.644763500 settings = SettingsDevice(
2024-05-28 16:13:40.644765500 File "/opt/victronenergy/dbus-modem/settingsdevice.py", line 51, in __init__
2024-05-28 16:13:40.644769500 raise Exception("The settings service com.victronenergy.settings does not exist!")
2024-05-28 16:13:40.645164500 Exception: The settings service com.victronenergy.settings does not exist!
2024-05-28 16:13:42.639492500 INFO:root:/data/VenusOS-TemperatureService/dbus-i2c.py is starting up - python 3
2024-05-28 16:13:42.639601500 INFO:root:Loglevel set to INFO
2024-05-28 16:13:42.672151500 INFO:root:registered ourselves on D-Bus as com.victronenergy.temperature.RPi_cpu_id01
2024-05-28 16:13:42.675588500 INFO:root:Add setting /Settings/Temperature/1/TemperatureType [0, 0, 3]
2024-05-28 16:13:42.675594500 INFO:root:Add setting /Settings/Temperature/1/CustomName ['', 0, 0]
2024-05-28 16:13:42.835902500 INFO:root:Retreived setting /Settings/Temperature/1/TemperatureType /TemperatureType 2
2024-05-28 16:13:42.836859500 INFO:root:Retreived setting /Settings/Temperature/1/CustomName /CustomName RPi4
2024-05-28 16:13:42.838163500 INFO:root:cpu temperature interface connected
2024-05-28 16:13:42.842135500 INFO:root:Connected to dbus, and switching over to GLib.MainLoop() (= event based)

Venus OS v3.00-32
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

0 Answers

Related Resources

Additional resources still need to be added for this topic

Venus OS v3.00 – Generator start/stop improvements, ESS Peak shaving