2019-08-29, 07:47 PM
Hi,
i have tested the i2c-1-wire server:
I use the ds2482-100. you can directly conect a DS18B20 as example.
for use you mus load the driver. (first be sure i2c bus is running and i2c tools installed. ;-) )
then you load the Kernel modul:
You must do this with sudo su. Why? I dont know. after this you can finish sudo su an load the basic 1-wire modul with normal sudo:
now your 1-wire works ;-)
If you have a DS18B20connected you shuld find them:
now you can list the directory:
In my case:
An you get the temperature of the ds18b20
Here 26,750°C.
This readings you can do later automaticly in a script.
If everything works I try this in Op
i have tested the i2c-1-wire server:
I use the ds2482-100. you can directly conect a DS18B20 as example.
for use you mus load the driver. (first be sure i2c bus is running and i2c tools installed. ;-) )
then you load the Kernel modul:
Code:
sudo modprobe ds2482
sudo su
echo ds2482 0x18 > /sys/bus/i2c/devices/i2c-1/new_device
Code:
sudo modprobe wire
If you have a DS18B20connected you shuld find them:
Code:
cd /sys/bus/w1/devices
ls
now you can list the directory:
In my case:
Code:
cd /sys/bus/w1/devices/28-0118306524ff
ls
cat w1_slave
Here 26,750°C.
This readings you can do later automaticly in a script.
If everything works I try this in Op