1 Wire devices
-
Hi, I'm working on a third-party software like codesys and mervis to support all axon features.
I'm trying to implement the 1wire devices read functions and I'm having some problems reading
sedtronic 1wire sensor. Actually I'm using owfs but I'm getting an error[ 473.375444] w1_master_driver w1_bus_master1: Attaching one wire slave 26.00000210d40b crc af [ 473.380035] w1_master_driver w1_bus_master1: Family 26 for 26.00000210d40b.af is not registered.
The 3 possibile ways to read one wire devices are:
I would like to use the method 2 but in order to use it I would need the kernel toolchain of the unipi axon.
What do you suggest?
Thanks, Daniel
-
@Martin-Kudláček @tomas_hora any suggestions?
-
Using Owfs with kernel modules ds2482 doesn't work well.
It requires to disable ds2482 in devicetree.
Insert this patchfdt set /soc/i2c@01c2ac00/w1master@18 status "disabled"
into file /boot/boot.cmd, call
mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr
and reboot.
If you have our new kernel, there is not file /boot/boot.cmd
In this case copy attached file attached file 30-disable-1wmaster.conf to directory /etc/bootcmd.d/src
and callcd /etc/bootcmd.d; make force; reboot
-
@tomas_hora Thanks for the response! Does this patch also works for the Linux Filesystem method? What method does evok/mervis uses to read 1wire devices?
-
@roberts_lando In the next release axon-kernel we include more modules (at least 1wire devices)
-
@tomas_hora When will next release be ready? How can I upgrade the kernel?
-
@tomas_hora Actually I'm reading 1wire devices using Linux FIlesystem like described here but I'm still not able to read your sedtronic 1wire sensor. I'm just able to read temperature sensors using this method. Any help please? I have also created a dashboard using node-red that displays all available 1wire devices with actual values in realtime
I have also found that
/etc/owfs.conf
is already present inside AXON even without the installation of OWFS. I have also checked evok source code and seems that evok uses OWFS to read 1wire sensors.
Is owfs already installed? I can't start it I have just found that fileAt the end my question is: should I keep working with Linux Filesystem or Owfs for 1wire devices? Actually I'm stucked and I can't find a way to read the sedtronic sensors
-
@roberts_lando That tutorial uses the RPI GPIO4 bitbanging access to the 1W but Neurons/Axons use the DS2482 I2C to 1Wire convertor. You should use the "ds2482" module... For example check this https://skyboo.net/2017/02/raspberry-pi-1wire-bus-master/
-
But why temperature sensors are automatically discovered and sedtronic sensor is not?
-
@tomas_hora Any news about this?
-
@roberts_lando Sorry, dont know.