| OWFS | SF.net project page | New OWFS Website! | by Paul H Alfille |
| OWFS Design OWFS Features OWFS Software
Install instructions
Examples & UsageBootable CD Filesystem (owfs) Web Server (owhttpd) Backend Server (owserver) Perl bindings (owperl) Python bindings (owpython) PHP bindings (owphp) Tcl bindings (owtcl) Download Daily Configured Package CVS -- newest CVS Statistics FAQ 1-wire
wireless 1-Wire Hardware Adapters
OWFS ProjectFamily Codes Supported Devices DS1822 DS18B20 DS18S20 DS1921 Thermachron DS1977 DS1991 DS1992 DS1993 DS1995 DS1996 DS2401 DS2405 DS2406 DS2408 DS2409 DS2413 DS2415 DS2417 DS2423 DS2431 DS2433 DS2436 DS2438 DS2450 DS2502 DS2505 DS2506 DS2720 DS2740 DS2751 DS276X DS2770 DS2780 DS2804 DS2890 LCD Thermocouples |
Table of Contents
Nameowperl - perl interface for the 1-wire filesystemSynopsisOW.pmuse OW ; OW::init( interface ); OW::get( path ); OW::put( path , value ); OW::finish(); Description1-Wire1-wire is a wiring protocol and series of devices designed and manufactured by Dallas Semicondictor, Inc. The bus is a low-power low-speed low-connector scheme where the data line can also provide power.Each device is uniquely unalterably numbered during manufacture. There is a wide variety of devices, including memory, sensors (humidity, temperature, voltage, contact, current), switches, timers, loggers, and more complex devices (like thermocouple sensors) can be built wit hte basic devices. There are also 1-wire devices that have encryption included. The 1-wire bus is accessed via one of a number of serial, parallel or USB adapters. OWFS designOWFS is a suite of programs that fundementally make the 1-wire bus and its devices easily accessible. The underlying priciple is to create a virtual filesystem, with the unique ID being the directory, and the individual properties of the device files.There is optional data caching to improved performance, but possible confusion over stale data. owperlowperl (3) is a perl module that provides an interface to OWFS. The path to each 1-wire device is the same as owfs (1)owperl (3) is created by swig (1) (http://www.swig.org) which can be easily modified to support other programming languages. FunctionsOW::init( interface )interfaceLocation of the 1-wire bus:
-h --helpShows this summary of options.-d --device "deviceport"Sets the serial port. It should have a LINK, DS9097U or DS9097 (passive adapter) attached. The "-d" is implied if two arguments are supplied. (See examples). The -d and -u options are mutually exclusive.-u --usbUse the USB adapter (DS9490) as 1-wire bus master. An optional number 1,2,... specifies which adapter to use if more than one is present.-t --timeout "seconds"Set the number of seconds that volitile data (measured values like temperature and voltage) should be cached before requerying the BUS. More stable values will be saved ten times longer (switch settings, memory contents). 10 seconds is the default.-C --Celsius | -F --Fahrenheit | -K --Kelvin | -R --RankineTemperature scale used for data output. Celsius is the default.-f --format "f[.]i[[.]c]"Display format for the 1-wire devices. Each device has a 8byte address, consisting of 1byte f amily code, 6 byte I D number, and 1 byte C RC checksum.Possible formats are f.i (default, 01.A1B2C3D4E5F6), fi fic f.ic f.i.c and fi.c All formats are accepted as input, but the output will be in the specified format. --background | --foregroundWhether the program releases the console and runs in the .I background after evaluating command line options. background is the default.-V --versionVersion of this program and related libraries.Exampleperl -MOW -e "OW::init(’/dev/ttyS1’); printf OW::get(’’);"See AlsoProgramsowfs (1) owhttpd (1) owftpd (1) owserver (1)Language bindingsowtcl (3) owperl (3)ClocksDS1427 (3) DS1904(3) DS1994 (3) DS2404 (3) DS2404S (3) DS2415 (3) DS2417 (3)IDDS2401 (3) DS1990A (3)MemoryDS1982 (3) DS1985 (3) DS1986 (3) DS1991 (3) DS1992 (3) DS1993 (3) DS1995 (3) DS1996 (3) DS2431 (3) DS2433 (3) DS2502 (3) DS2506 (3) DS2804 (3)SwitchesDS2405 (3) DS2406 (3) DS2408 (3) DS2409 (3) DS2413 (3)TemperatureDS1822 (3) DS18B20 (3) DS18S20 (3) DS1920 (3) DS1921 (3) DS1821 (3)HumidityDS1922 (3)VoltageDS2450 (3)ResistanceDS2890 (3)MultifunctionDS2436 (3) DS2438 (3) DS2760 (3)CounterDS2423 (3)LCD ScreenLCD (3) DS2408 (3)CryptoDS1977 (3)Availabilityhttp://owfs.sourceforge.netAuthorPaul Alfille (palfille@earthlink.net)
|