Owfs

From OLPC
Jump to: navigation, search

Introduction

OWFS is a method under linux to allow 1-wire devices to appear like files in a directory. You can then enter a command like "cat */temperature" to have all the temperatures sensors measure and print their data. For instance, the collection of temperature sensors above are all on one bus, individually addressable, and will reconfigure on the fly as items are added or removed. Each device is it's own directory with it's own properties.

Instalation

Quick install

  1. Download and unpack owfs (you can find it on sourceforge:http://www.sf.net/projects/owfs )
  2. cd owfs directory
  3. ./bootstrap
  4. ./configure
  5. make install

Instalation notes

  • Better work with tar.gz from
http://sourceforge.net/project/showfiles.php?group_id=85502&package_id=88590&rele$
http://sourceforge.net/projects/owfs
  • There is also cvs
http://sourceforge.net/cvs/?group_id=85502
For the instalation to succed we need the latest version of FUSE that is in http://sourceforge.net/cvs/?group_id=121684, at the end of the instalation module owfs must be enabled.

with the actual implementation of the OpenEc this is no longer necesary, but is an alternative that is worth trying. if you are not skilled at hardware hacking.

See also

Notes

find /usr/lib -name "libusb.*" (To find libusb support in your machine) 
apt-get install tree