<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Raspberry Pi. One-wire devices</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/31a74563ed/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/31a74563ed/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/31a74563ed/</id><updated>2020-02-27T17:03:58.203000Z</updated><subtitle>Recent posts to Raspberry Pi. One-wire devices</subtitle><entry><title>Raspberry Pi. One-wire devices</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/31a74563ed/?limit=25#f3ee" rel="alternate"/><published>2020-02-27T17:03:58.203000Z</published><updated>2020-02-27T17:03:58.203000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comd32c0d4ac1bdb34193095e5b69e18181c3fe1a65</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; PI_Mü&lt;/p&gt;
&lt;p&gt;Hi ,is there any progres with the bib for the DS2438?&lt;/p&gt;
&lt;p&gt;Thanx in advance&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry Pi. One-wire devices</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/31a74563ed/?limit=25#182a" rel="alternate"/><published>2020-02-27T17:03:57.249000Z</published><updated>2020-02-27T17:03:57.249000Z</updated><author><name>DavidCozens</name><uri>https://forge.codesys.com/u/davidcozens/</uri></author><id>https://forge.codesys.comabd9f1c0572eb7bd73d747ef622879bc32a331fb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;DavidCozens hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
A little further information if it helps. In my driver library I have temporarily ignored the value of and hard coded the value I expected. The result is that my driver is now functional, I can set output bits and read back the state. However I notice that the device status of the is "Not Running", I suspect that is related.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I'm leaving these comments here in case they help others. The issue appears to have been something to do with the history of edits. Deleting and recreating the devices it all sprang into life. I'll post drivers when they are complete.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry Pi. One-wire devices</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/31a74563ed/?limit=25#877e" rel="alternate"/><published>2020-02-27T17:03:54.570000Z</published><updated>2020-02-27T17:03:54.570000Z</updated><author><name>DavidCozens</name><uri>https://forge.codesys.com/u/davidcozens/</uri></author><id>https://forge.codesys.com5e0b926d07e09bb4568e67ed25540b5be0adb7ec</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;A little further information if it helps. In my driver library I have temporarily ignored the value of and hard coded the value I expected. The result is that my driver is now functional, I can set output bits and read back the state. However I notice that the device status of the is "Not Running", I suspect that is related.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry Pi. One-wire devices</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/31a74563ed/?limit=25#235e" rel="alternate"/><published>2020-02-27T17:03:53.535000Z</published><updated>2020-02-27T17:03:53.535000Z</updated><author><name>DavidCozens</name><uri>https://forge.codesys.com/u/davidcozens/</uri></author><id>https://forge.codesys.com0065c4a15d02fee7a0dba6a2db715233245bf909</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am currently working on a driver for the DS2408 which I will publish once complete.&lt;/p&gt;
&lt;p&gt;I have written a new device descriptor and library. Both are installed and when the device is added the function block is created successfully. &lt;/p&gt;
&lt;p&gt;I am having an issue with the path to the device. Taking the driver for DS18B20 as a model, I have accessed the path to the device from the property , however when I run has the value &lt;/p&gt;
&lt;p&gt;I have set the parameter in my test application for the device to and so expected  to be  .&lt;/p&gt;
&lt;p&gt;So it appears that the OneWire function block is not reading the parameter value and is using a default. Without access to the source of OneWire I'm finding this hard to debug.&lt;/p&gt;
&lt;p&gt;The Connector part of my device descriptor is below.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;Connector&lt;/span&gt; &lt;span class="nv"&gt;moduleType&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;500&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;interface&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Raspberry.Onewire&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;role&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;child&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;explicit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;false&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;connectorId&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;1&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;hostpath&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;-1&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
         &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;InterfaceName&lt;/span&gt; &lt;span class="nv"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;local:PCI&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nv"&gt;wire&lt;/span&gt; &lt;span class="nv"&gt;bus&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nv"&gt;InterfaceName&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
         &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;Slot&lt;/span&gt; &lt;span class="nv"&gt;count&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;1&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;allowEmpty&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;false&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;      &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nv"&gt;Slot&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
         &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;HostParameterSet&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;Parameter&lt;/span&gt; &lt;span class="nv"&gt;ParameterId&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;1&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;std:STRING&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
               &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;Attributes&lt;/span&gt; &lt;span class="nv"&gt;channel&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;none&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;download&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;true&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;functional&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;false&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;onlineaccess&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;read&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
               &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;Default&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;XX-AABBCCDDEEFF&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nv"&gt;Default&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
               &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;Name&lt;/span&gt; &lt;span class="nv"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;local:Id393218&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nv"&gt;Unique&lt;/span&gt; &lt;span class="nv"&gt;device&lt;/span&gt; &lt;span class="nv"&gt;address&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nv"&gt;Name&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
               &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;Description&lt;/span&gt; &lt;span class="nv"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;local:Id393218.Desc&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nv"&gt;wire&lt;/span&gt; &lt;span class="nv"&gt;address&lt;/span&gt; &lt;span class="nv"&gt;of&lt;/span&gt; &lt;span class="nv"&gt;the&lt;/span&gt; &lt;span class="nv"&gt;device&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nv"&gt;Description&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nv"&gt;Parameter&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
         &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nv"&gt;HostParameterSet&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
         &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;DriverInfo&lt;/span&gt; &lt;span class="nv"&gt;needsBusCycle&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;false&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;RequiredLib&lt;/span&gt; &lt;span class="nv"&gt;libname&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Raspberry 1-wire DS2408&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;vendor&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Cozens Software Solutions Ltd&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;version&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;0.0.0.0&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;identifier&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;IoDrvDS2408&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
               &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;FBInstance&lt;/span&gt; &lt;span class="k"&gt;basename&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;$(DeviceName)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;fbname&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;OneWire_DS2408&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                  &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;Initialize&lt;/span&gt; &lt;span class="nv"&gt;methodName&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Initialize&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
                  &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;CyclicCall&lt;/span&gt; &lt;span class="nv"&gt;methodname&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;AfterReadInputs&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;task&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;#buscycletask&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;whentocall&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;afterReadInputs&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
                  &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;CyclicCall&lt;/span&gt; &lt;span class="nv"&gt;methodname&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;BeforeWriteOutputs&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;task&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;#buscycletask&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;whentocall&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;beforeWriteOutputs&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
               &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nv"&gt;FBInstance&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nv"&gt;RequiredLib&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
         &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nv"&gt;DriverInfo&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nv"&gt;Connector&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;The function block calls  in the body of the function block, looks like this&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;EvaluateOutput&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="n"&gt;SUPER&lt;/span&gt;&lt;span class="o"&gt;^&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;BeforeWriteOutputs&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;What have I missed that is causing  to be incorrect?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry Pi. One-wire devices</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/31a74563ed/?limit=25#2562" rel="alternate"/><published>2020-02-27T17:03:50.844000Z</published><updated>2020-02-27T17:03:50.844000Z</updated><author><name>digitalbuilding</name><uri>https://forge.codesys.com/u/digitalbuilding/</uri></author><id>https://forge.codesys.comb9901a4e1a5bda88f89471b9cc6fa4a4a6a37cb2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo zusammen,&lt;/p&gt;
&lt;p&gt;bin neu hier im Forum und hänge am gleichen Problem.&lt;br/&gt;
Ich bekomme keine gültigen Werte vom DS2438.&lt;br/&gt;
Die lib und device-repo's von Edwin habe ich integriert.&lt;br/&gt;
Da bekam ich allerdings zuerst einen Übersetzungsfehler. Es wurde in der device-repo noch auf den FB "OneWire_DS18B20" referenziert&lt;br/&gt;
Ich habe dann die DS2438.devdesc.xml geändert auf OneWire_DS2438, so wie der FB in der lib auch aufgerufen wird.&lt;br/&gt;
Der Treiber läuft aber leider immer noch nicht an.&lt;br/&gt;
Im Pfad /sys/bus/w1/drivers/w1_slave_driver/26-0000017c96bd habe ich:&lt;br/&gt;
id, name, rw, uevent &lt;br/&gt;
Die Datei w1_slave gibt es nicht.&lt;/p&gt;
&lt;p&gt;Hat es schon jemand geschafft einen DS2438 zu integrieren?&lt;/p&gt;
&lt;p&gt;PS: Ich bin unterwegs mit raspbian jessie&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: DS2438.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1868"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry Pi. One-wire devices</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/31a74563ed/?limit=25#67e6" rel="alternate"/><published>2020-02-27T17:03:49.894000Z</published><updated>2020-02-27T17:03:49.894000Z</updated><author><name>murdemon</name><uri>https://forge.codesys.com/u/murdemon/</uri></author><id>https://forge.codesys.com5f77e157857f18b7b32fcfe66ed7ee9fa497c2b1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Edwin,&lt;/p&gt;
&lt;p&gt;If we need write (not read) some date to our onewire device... witch method we have to overwrite?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry Pi. One-wire devices</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/31a74563ed/?limit=25#cc68" rel="alternate"/><published>2020-02-27T17:03:48.928000Z</published><updated>2020-02-27T17:03:48.928000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com9f4e071d33edfa6da9d4541f3ab19de74c55f36a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
maybe the following links helps:&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://www.raspberrypi.org/forums/viewtopic.php?f=44&amp;amp;t=50755" rel="nofollow"&gt;http://www.raspberrypi.org/forums/viewt ... 44&amp;amp;t=50755&lt;/a&gt;&lt;br/&gt;
&lt;a class="" href="http://rants.dyer.com.hk/rpi/humidity_1w.html" rel="nofollow"&gt;http://rants.dyer.com.hk/rpi/humidity_1w.html&lt;/a&gt;&lt;br/&gt;
not really sure...&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry Pi. One-wire devices</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/31a74563ed/?limit=25#eb4f" rel="alternate"/><published>2020-02-27T17:03:46.266000Z</published><updated>2020-02-27T17:03:46.266000Z</updated><author><name>acter</name><uri>https://forge.codesys.com/u/acter/</uri></author><id>https://forge.codesys.com5208673318d3ba2a8346efe55a436d555e1e04b3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;at begin I found one problem...if I understand Evaluate fcn, it`s reading file in /sys/bus/w1/28-xxxxxxxxxxxxxx...&lt;/p&gt;
&lt;p&gt;but I see a directory of new sensor, but inside there are different files, than in DS18B20 directories...&lt;/p&gt;
&lt;p&gt;I Googling...and there is no support for DS2438 in RasPi kernel...&lt;/p&gt;
&lt;p&gt;Any idea ?&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: 2015_03_12_08_23_26_mc_pi_hmx01_sys_bus_w1_devices.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=997"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry Pi. One-wire devices</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/31a74563ed/?limit=25#7261" rel="alternate"/><published>2020-02-27T17:03:45.303000Z</published><updated>2020-02-27T17:03:45.303000Z</updated><author><name>acter</name><uri>https://forge.codesys.com/u/acter/</uri></author><id>https://forge.codesys.com0bde8639f7feb208b351090b7589f0a0442f62ce</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;@Erwin: thanks a lot for the "manual", normally I&lt;code&gt;m Siemens PLC programmer, I&lt;/code&gt;m learning....I try it and if I have a success, of course, I share it...&lt;/p&gt;
&lt;p&gt;Go for it !!!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry Pi. One-wire devices</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/31a74563ed/?limit=25#fb62" rel="alternate"/><published>2020-02-27T17:03:42.517000Z</published><updated>2020-02-27T17:03:42.517000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com8a655e6fdf0f83cf4a70c5eed7fa406769316a17</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi acter,&lt;/p&gt;
&lt;p&gt;use DS18B20.devdesc.xml and rename it to your DS2438 and generate a libary called &lt;br/&gt;
I have added both files the original and the new one.&lt;/p&gt;
&lt;p&gt;Last step is to change the library in the methode 'evaluate'&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;IF&lt;/span&gt; &lt;span class="nv"&gt;_pMaster&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt;
   &lt;span class="nv"&gt;sPath&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;DataPath&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;hFile&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;SysFileOpen&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;sPath&lt;/span&gt;, &lt;span class="nv"&gt;ACCESS_MODE&lt;/span&gt;.&lt;span class="nv"&gt;AM_READ&lt;/span&gt;, &lt;span class="nv"&gt;ADR&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;result&lt;/span&gt;&lt;span class="ss"&gt;))&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="k"&gt;IF&lt;/span&gt; &lt;span class="nv"&gt;hFile&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;RTS_INVALID_HANDLE&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt;
      &lt;span class="nv"&gt;fr&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;hFile&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;hFile&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
      &lt;span class="k"&gt;IF&lt;/span&gt; &lt;span class="nv"&gt;fr&lt;/span&gt;.&lt;span class="nv"&gt;GetLine&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;ADR&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;sData&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;, &lt;span class="nv"&gt;SIZEOF&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;sData&lt;/span&gt;&lt;span class="ss"&gt;))&lt;/span&gt; &lt;span class="nv"&gt;AND&lt;/span&gt; &lt;span class="nv"&gt;LEN&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;sData&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt;
         &lt;span class="k"&gt;IF&lt;/span&gt; &lt;span class="nv"&gt;RIGHT&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;sData&lt;/span&gt;, &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;YES&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt;
            &lt;span class="nv"&gt;xSignalOk&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;TRUE&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
         &lt;span class="k"&gt;ELSE&lt;/span&gt;
            &lt;span class="nv"&gt;xSignalOk&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;FALSE&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
         &lt;span class="nv"&gt;END_IF&lt;/span&gt;
      &lt;span class="k"&gt;ELSE&lt;/span&gt;
         &lt;span class="nv"&gt;xSignalOk&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;FALSE&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
      &lt;span class="nv"&gt;END_IF&lt;/span&gt;
      &lt;span class="k"&gt;IF&lt;/span&gt; &lt;span class="nv"&gt;xSignalOk&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt;
         &lt;span class="k"&gt;IF&lt;/span&gt; &lt;span class="nv"&gt;fr&lt;/span&gt;.&lt;span class="nv"&gt;GetLine&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;ADR&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;sData&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;, &lt;span class="nv"&gt;SIZEOF&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;sData&lt;/span&gt;&lt;span class="ss"&gt;))&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt;
            &lt;span class="nv"&gt;i&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;FIND&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;sData&lt;/span&gt;, &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;t=&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
            &lt;span class="k"&gt;IF&lt;/span&gt; &lt;span class="nv"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt;
               &lt;span class="nv"&gt;sData&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;RIGHT&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;sData&lt;/span&gt;, &lt;span class="nv"&gt;LEN&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;sData&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nv"&gt;i&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
               &lt;span class="k"&gt;IF&lt;/span&gt; &lt;span class="nv"&gt;sData&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;85000&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt;
                  &lt;span class="nv"&gt;xSignalOk&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;FALSE&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
               &lt;span class="k"&gt;ELSE&lt;/span&gt;
                  &lt;span class="nv"&gt;rTemp&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;STRING_TO_REAL&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;sData&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="nv"&gt;E&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
                  &lt;span class="nv"&gt;SysTimeRtcConvertUtcToDate&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;SysTimeRtcGet&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;result&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;, &lt;span class="nv"&gt;stdTimeStamp&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
               &lt;span class="nv"&gt;END_IF&lt;/span&gt;
            &lt;span class="k"&gt;ELSE&lt;/span&gt;
               &lt;span class="nv"&gt;xSignalOk&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;FALSE&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
            &lt;span class="nv"&gt;END_IF&lt;/span&gt;
         &lt;span class="nv"&gt;END_IF&lt;/span&gt;
      &lt;span class="nv"&gt;END_IF&lt;/span&gt;
   &lt;span class="k"&gt;ELSE&lt;/span&gt;
      &lt;span class="nv"&gt;xSignalOk&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;FALSE&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;END_IF&lt;/span&gt;
   &lt;span class="nv"&gt;SysFileClose&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;hFile&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;END_IF&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Attention: without implementing/adapting the 'evaluate' in this new OneWire_DS2438.library to your DS2438 sensor it will not work this is the missing step to do!&lt;br/&gt;
If you need the information how to work with libraries, read the following faq section:&lt;br/&gt;
 l &lt;a class="" href="http://forum.codesys.com/viewtopic.php?f=22&amp;amp;t=5641&amp;amp;x=10677&amp;amp;p=10677&amp;amp;lan=en" rel="nofollow"&gt;viewtopic.php?f=22&amp;amp;t=5641&amp;amp;p=10677#p10677&lt;/a&gt; l &lt;/p&gt;
&lt;p&gt;You and sure you need to install the new device description to the device repository.&lt;br/&gt;
After doing this you could add your new Onewire device, see screenshot.&lt;/p&gt;
&lt;p&gt;If it works then you please publish the library and devdesc here for other users?&lt;br/&gt;
 l &lt;a class="" href="http://forum.codesys.com/viewforum.php?f=23" rel="nofollow"&gt;viewforum.php?f=23&lt;/a&gt; l &lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: NewOnewire.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=996"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=994" rel="nofollow"&gt;OneWire_DS2438.library &lt;span&gt;&lt;span&gt;[199.32 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=993" rel="nofollow"&gt;DS2438.devdesc.xml &lt;span&gt;&lt;span&gt;[2.51 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=992" rel="nofollow"&gt;DS18B20.devdesc.xml &lt;span&gt;&lt;span&gt;[2.51 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>