Issue
I have a Raspberry Pi B+ with the latest raspbian.
I activated 1wire support through interface options in raspi-config
command and I connected my DS2408 chip on to the GPIO 4.
When I try to check for the list of devices, they all show up
ls -la /sys/bus/w1/devices/
when I try to cat
their output or status I receive ?
.
when I try to write on the output file, the nothing happens.
I have two questions:
- Is there an easier software interface to communicate with the DS2408? There is a lot of documentation for reading temperature sensor data but DS2408 does not work like that.
- I tried with a 1wire USB dongle and OWFS which works, but is there a possibility to make the GPIO 4 as the bus master for OWFS and communicate using the OWFS software interface?
answer to any one of these questions would solve my problem of talking to DS2408 connected to GPIO 4 of a RPI B+
Solution
Actually I have managed to operate DS2408 with Raspberry Pi 4 but I had really tough time getting it to work. First of all it had to be connected properly: RSTZ through 10k resistor to Vcc, I/O pin to GPIO4 and GPIO4 to 3V3 through 4,7k resistor. After that I was able to read and write using "echo -n -e '\x02' > output", where output was in /sys/bus/w1/devices/29-...
Answered By - Paul Answer Checked By - Dawn Plyler (WPSolving Volunteer)