Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:sw:02-apis:04-sysfs [2018/07/12 07:56]
martin_kudlacek ↷ Page moved from en:sw:02-evok:03-sysfs to en:sw:02-sdks:03-sysfs
en:sw:02-apis:04-sysfs [2024/03/22 12:42] (current)
avsetula
Line 1: Line 1:
 +<​html><​style>​@media only screen and 
 +  (min-width: 450px)
 +{div#​lButton,​ div#​rButton{display:​ none;​}}</​style>​
 +
 +<div class="​version-switch1">​
 +  <div class="​title">​Debian:</​div>​
 +  <div id="​tabs">​
 +  <div id="​tabs-container">​
 +      <a href=""><​span class="​actual-version">​12 & 11</​span></​a>​
 +      <a href="/​en:​sw:​02-apis:​04-sysfs-deb10-hidden"><​span>​10</​span></​a>​
 +    </​div>​
 +    ​
 +    <div id="​lButton"></​div><​div id="​lButton-bg"></​div>​
 +    <div id="​rButton"></​div><​div id="​rButton-bg"></​div>​
 +  </​div>​
 +</​div></​html>​
 +
 ====== SysFS ====== ====== SysFS ======
 +<WRAP group>
 +<WRAP half column 81%>
 +The SysFS driver is part of the kernel module for Unipi units with inputs and outputs and provides easy file-based access to all inputs and outputs.
 +</​WRAP>​
 +<WRAP half column 15%>
 +;;#
 +<​html><​span class="​dev-tag dev-iris">​Iris</​span></​html>​ \\
 +<​html><​span class="​dev-tag dev-patron">​Patron</​span></​html>​ \\
 +<​html><​span class="​dev-tag dev-neuron">​Neuron</​span></​html>​
 +;;#
 +</​WRAP>​
 +</​WRAP>​
 +
 +----
 +
 +<WRAP center round info 95%>
 +To use 1-Wire on a Unipi unit with OpenSource OS, you must install and configure OWFS. In the case of an OS with EVOK, OWFS is already installed.
 +
 +**Do not install OWFS for Mervis OS**! It uses an alternative method to work with 1-Wire and collisions could occur.
 +</​WRAP>​
 +
 +----
 +
 +<​html><​span class="​kbBlueText">​Check the following examples of reading and writing I/O to get started: </​span></​html>​ \\
 +All files within SysFS can be accessed in the same way.
 +\\
 +
 +**DO** status reading: ​
 +<​code>​cat /​run/​unipi/​io_group1/​do_1_01/​do_value</​code>​
 +
 +Setting the **DO** to the closed state: ​
 +<​code>​echo 1 > /​run/​unipi/​io_group1/​do_1_01/​do_value</​code>​
 +
 +----
 +
 +**DI** status reading: ​
 +<​code>​cat /​run/​unipi/​io_group1/​di_1_01/​di_value</​code>​
 +
 +Status reading of all first section **DI**'​s: ​
 +<​code>​cat /​run/​unipi/​io_group1/​di_[1-3]_[0-9][0-9]/​di_value</​code>​
 +
 +Status reading of all available **DI** units:
 +<​code>​cat /​run/​unipi/​io_group[1-3]/​di_[1-3]_[0-9][0-9]/​di_value</​code>​
 +
  
 +{{page>​en:​sw:​02-apis:​04-sysfs:​docu-deb11-12-hidden}}