Benutzer-Werkzeuge

Webseiten-Werkzeuge


projects:1-wire:software

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige ÜberarbeitungVorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
projects:1-wire:software [2012/12/06 19:52] benhprojects:1-wire:software [2013/12/20 18:25] (aktuell) – Externe Bearbeitung 127.0.0.1
Zeile 1: Zeile 1:
 ====== 1-Wire Software ====== ====== 1-Wire Software ======
-[[http://www.digitemp.com/|DigiTemp v3.5.0]] by Brian C. Lane+[[http://www.digitemp.com/|DigiTemp v3.5.0]] by Brian C. Lane \\ 
 +{{:projects:1-wire:digitemp-3.6.0.tar.gz|Download}}
   - download sources <code bash>wget http://www.digitemp.com/software/linux/digitemp-3.6.0.tar.gz</code>   - download sources <code bash>wget http://www.digitemp.com/software/linux/digitemp-3.6.0.tar.gz</code>
   - untar archive <code bash>tar xzvf digitemp-3.6.0.tar.gz</code>   - untar archive <code bash>tar xzvf digitemp-3.6.0.tar.gz</code>
Zeile 7: Zeile 8:
   - copy binary <code bash>cp ./digitemp_DS9097 /usr/local/bin/</code>   - copy binary <code bash>cp ./digitemp_DS9097 /usr/local/bin/</code>
   - create softlink <code bash>ln -s /usr/local/bin/digitemp_DS9097 /usr/local/bin/digitemp</code>   - create softlink <code bash>ln -s /usr/local/bin/digitemp_DS9097 /usr/local/bin/digitemp</code>
-  - search for 1-wire sensors (walk the tree) <code bash>digitemp -w -s /dev/ttyS0</code> +  - search for 1-wire sensors (walk the tree) <code bash>digitemp -w -s /dev/ttyS0</code> sample output: <code
-<note>root@habakuk:~# digitemp -w -s /dev/ttyS0 +    DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane 
-DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane +    GNU Public License v2.0 - http://www.digitemp.com 
-GNU Public License v2.0 - http://www.digitemp.com +    Turning off all DS2409 Couplers 
-Turning off all DS2409 Couplers +    .. 
-.. +    Devices on the Main LAN 
-Devices on the Main LAN +    10444341020800A3 : DS1820/DS18S20/DS1920 Temperature Sensor 
-10444341020800A3 : DS1820/DS18S20/DS1920 Temperature Sensor +    28F4E539040000FD : DS18B20 Temperature Sensor</code> 
-28F4E539040000FD : DS18B20 Temperature Sensor</note>+  - write config file to .digitemprc <code bash>digitemp -q -i -s /dev/ttyS0</code> sample output: <code> 
 +    10444341020800A3 : DS1820/DS18S20/DS1920 Temperature Sensor 
 +    28F4E539040000FD : DS18B20 Temperature Sensor 
 +    ROM #0 : 10444341020800A3 
 +    ROM #1 : 28F4E539040000FD</code> 
 +  - edit config file <code bash>vi .digitemprc</code><code bash .digitemprc> 
 +    TTY /dev/ttyS0 
 +    READ_TIME 1000 
 +    FAIL_TIME 5 
 +    LOG_TYPE 1 
 +    #LOG_FORMAT "%b %d %H:%M:%S Sensor %s C: %.2C F: %.2F" 
 +    LOG_FORMAT "%Y-%m-%d %H:%M:%S Sensor_%s (%R) %.2C" 
 +    CNT_FORMAT "%b %d %H:%M:%S Sensor %s #%n %C" 
 +    HUM_FORMAT "%b %d %H:%M:%S Sensor %s C: %.2C F: %.2F H: %h%%"</code> 
 +  - request temperature from sensors <code bash>digitemp -q -a</code> sample output: <code> 
 +    2012-12-07 00:48:51 Sensor_0 (10444341020800A3) 20.31 
 +    2012-12-07 00:48:52 Sensor_1 (28F4E539040000FD) 20.94</code> 
 + 
 +    
projects/1-wire/software.1354819935.txt.gz · Zuletzt geändert: (Externe Bearbeitung)