1-Wire sensors on Home automation HAT V4

jhp

New member
Hello everyone,

I recently acquired the latest version of the Home Automation HAT version 4. I started with a clean installation on a Raspberry Pi 4B, performed all updates, installed and compiled ioplus-rpi, and updated the HAT firmware to version 1.32. Initially, the HAT was detected as hardware version 3 with firmware 1.12.

I connected a 1-wire temperature sensor DS18B20 and successfully scanned the bus with the command: `ioplus 0 owbscan`. However, when I tried to determine the number of connected sensors using the command `ioplus 0 owbcntrd`, I consistently get a reading of 0. I have tried different HAT boards, other Raspberry Pis, and different sensors, but I still can't resolve this issue.

Does anyone have experience with a similar problem or any tips on how I can get the system to read temperatures from the sensors? Any suggestions or advice would be greatly appreciated. Thanks in advance for your help!
 

jhp

New member
I have also tried several DS18B20 temperature sensors, both original DALLAS and its copies. I experimented with both 2-wire and 3-wire connections. Additionally, I tested the DHT-11 sensor. I even attempted using Python for installation and communication, but the outcome remains consistent: the scan is OK, but the sensor count is always 0 (Python shows 1 on scan but 0 for sensor count). Does anyone have any ideas on what else I could try?
 

jhp

New member
I turned off the Raspberry Pi and disconnected it from the power supply. After booting up and logging in, I entered: ioplus 0 owbcntrd, but it still returns 0. Another interesting point is that after each restart, the result of the command ioplus 0 owbscan is: Segmentation fault. Subsequent repetitions of the command result in: OK. I have three HATs and they all behave the same way. I've tried Raspberry Pi models 3B 2GB and 4B 4GB, running the OS BookWorm. I've tested the power supply separately through USB-C and the header on the HAT, ensuring each source maintained a voltage of 5V.
 

alexburcea

Moderator
Staff member
Hi,
It looks like the last firmware changes affect the one-wire bus functionality, give me some time to dig into it.
 

alexburcea

Moderator
Staff member
Hi,

A new firmware version for the Home Automation card has been released. Please update the firmware on the card and let me know how the one-wire bus sensor is working. Firmware update instructions here.

Alex.
 

jhp

New member
Dear alexburcea,

Thank you very much for your prompt resolution of the issue. I have installed the new firmware on several HAT v4 units, and all of them now correctly read the temperature data from the 1-wire bus. However, a persistent issue remains where, after restarting the Raspberry Pi and executing the ioplus command, a Segmentation Fault occurs, which complicates the practical use of the ioplus program. It may be related to some settings, but it occurs on both the RPi3 and RPi4. Could you please confirm if this is an expected feature, or offer any advice on where the problem might lie?
 
Top