Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

onewire bus master stop working after 4.8.0.0 upgrade

2023-04-06
2023-09-21
  • michelebianchi - 2023-04-06

    hi,
    onewire stopped working after updating runtime to 4.8.0.0
    codesys control for raspberry pi
    codesys 3.5 sp19

    downgrading to runtime 4.7.0.0 fix the problem

     
  • eschwellinger

    eschwellinger - 2023-04-06

    could you check if reading by cli does work? no changes on OS side?

     
  • augmue - 2023-08-06

    Hi
    I made the update from 4.7.0.0 to 4.9.0.0 and have the same problem again.
    Few weeks ago I tried a other communication way with OWFS.
    Here I wanted to read the value from file /mnt/1wire/temperatur

    At least I found the problem that codesys blocks reading from files.

    I added the two lines in /etc/CODESYSControl.cfg

    ;raspberry
    [SysFile]

    ForceFilePath=0
    ForceIecFilePath=0

    Now it works again.

    Regard August

     
  • eschwellinger

    eschwellinger - 2023-08-06

    I would recommend to add your one wire path here:

    [SysFile]
    FilePath.1=/etc/, 3S.dat
    IecFilePath.1=/proc/, cpuinfo
    IecFilePath.2=/proc/, iomem
    IecFilePath.3=/mnt/1wire/temperatur
    PlaceholderFilePath.1=/sys/devices/w1_bus_master1, $OneWire$
    PlcLogicPrefix=1

    instead of changing the ForceIecFilePath setting

     
  • conny-nm - 2023-09-20

    Habe ein ähniches Problem Ethercat läuft nur mit RT 4.8.0.0 nicht aber Onewire.
    Füge ich ForceFile läuft Onewire, nicht Ethercat. Bei IecFilePath.3 läuft Ethercat nicht aber Onewire

     
  • eschwellinger

    eschwellinger - 2023-09-20

    du musst Onewire in einer eigenen Task aufrufen, das sind blockierende Aufrufe das geht nur in eigener Task, hab hier mal im Forum ein Beispiel gepostet

     

    Last edit: eschwellinger 2023-09-20
  • augmue - 2023-09-20

    ich lese alle 4 Sekunden einen Sensor DS18B20
    aus Datei im Verzeichniss /mnt/1wire
    mit USB-Adapter und owfs

    [SysFile]
    IecFilePath.3=/mnt/1wire

     
  • conny-nm - 2023-09-21

    Danke für die Hilfe habe ich übersehen. Habe zwischenzeitlich ein neues Betriebssystem aufgespielt und jetzt wieder meinen alten Fehler das die Runtime nur ca. 20 Sekund läuft.

     
  • eschwellinger

    eschwellinger - 2023-09-21

    hm.. wie wäre es mit 4.9.0.0 Runtime?

     

Log in to post a comment.