Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:sw:02-apis:04-sysfs [2024/03/22 12:30] avsetulaen:sw:02-apis:04-sysfs [2026/07/16 11:23] (current) – updated to deb13 ofojt
Line 4: Line 4:
  
 <div class="version-switch1"> <div class="version-switch1">
-  <div class="title">Debian version:</div>+  <div class="title">Debian:</div>
   <div id="tabs">   <div id="tabs">
   <div id="tabs-container">   <div id="tabs-container">
-      <a href=""><span class="actual-version">12 & 11</span></a>+      <a href=""><span class="actual-version">13</span></a> 
 +      <a href="/en:sw:02-apis:04-sysfs-deb11-12-hidden"><span>12 & 11</span></a>      
       <a href="/en:sw:02-apis:04-sysfs-deb10-hidden"><span>10</span></a>       <a href="/en:sw:02-apis:04-sysfs-deb10-hidden"><span>10</span></a>
     </div>     </div>
Line 16: Line 17:
 </div></html> </div></html>
  
-====== SysFS ======+====== Sysfs ======
 <WRAP group> <WRAP group>
 +/*
 <WRAP half column 81%> <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.+*/ 
 +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>
 <WRAP half column 15%> <WRAP half column 15%>
 ;;# ;;#
-<html><span class="dev-tag dev-iris">Iris</span></html> \\+/*<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-patron">Patron</span></html> \\
 <html><span class="dev-tag dev-neuron">Neuron</span></html> <html><span class="dev-tag dev-neuron">Neuron</span></html>
 ;;# ;;#
 </WRAP> </WRAP>
 +*/
 </WRAP> </WRAP>
  
 ---- ----
  
-<WRAP center round info 95%> +<WRAP group center round box 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.+{{ :files:img_warning-line_b.png?nolink |}} 
 +<WRAP half column 13%> 
 +{{ :en:hw:08_safety-instructions_pseudo-ISO-7010-info.png?nolink |(i)}} 
 +</WRAP> 
 +<WRAP half column 83%> 
 +**Note:** \\ 
 +To use 1-Wire on a Unipi unit with Base OS, you must install and configure OWFS. If the OS has Evok preinstalled, OWFS will be already installed.
  
 **Do not install OWFS for Mervis OS**! It uses an alternative method to work with 1-Wire and collisions could occur. **Do not install OWFS for Mervis OS**! It uses an alternative method to work with 1-Wire and collisions could occur.
 +</WRAP>
 </WRAP> </WRAP>
  
Line 41: Line 53:
  
 <html><span class="kbBlueText">Check the following examples of reading and writing I/O to get started: </span></html> \\ <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.+All files within sysfs can be accessed in the same way.
 \\ \\
  
 **DO** status reading:  **DO** status reading: 
-<code>cat /run/unipi/io_group1/do_1_01/do_value</code>+<code>cat /run/unipi-plc/by-sys/DO1.1/value</code>
  
 Setting the **DO** to the closed state:  Setting the **DO** to the closed state: 
-<code>echo 1 > /run/unipi/io_group1/do_1_01/do_value</code>+<code>echo 1 > /run/unipi-plc/by-sys/DO1.1/value</code>
  
 ---- ----
  
 **DI** status reading:  **DI** status reading: 
-<code>cat /run/unipi/io_group1/di_1_01/di_value</code>+<code>cat /run/unipi-plc/by-sys/DI1.1/value</code>
  
 Status reading of all first section **DI**'s:  Status reading of all first section **DI**'s: 
-<code>cat /run/unipi/io_group1/di_[1-3]_[0-9][0-9]/di_value</code>+<code>cat /run/unipi-plc/by-sys/DI1.*/value</code>
  
 Status reading of all available **DI** units: 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> +<code>cat /run/unipi-plc/by-sys/DI[1-3].*/value</code>
- +
- +
-{{page>en:sw:02-apis:04-sysfs:docu-deb11-12-hidden}} +
  
 +{{page>en:sw:02-apis:04-sysfs:docu-deb13-hidden}}