owperl − perl interface for the 1-wire filesystem
OW.pm
use OW ;
OW::init( interface );
OW::init( initialization string );
The full set of
initialization options is extensive. They correspond roughly
to the command line options of ,B owfs (1) owhttpd
(1) and owftpd (1)
OW::get( path );
OW::put( path , value );
OW::finish();
owperl (3) is a perl module that provides an interface to OWFS. The path to each 1-wire device is the same as owfs (1) . Only the top layer has been modified to return native perl strings.
owperl (3) is created by swig (1) (http://www.swig.org) which can be easily modified to support other programming languages.
interface
Location of the 1-wire bus:
"u" |
Direct connection to the 1-wire interface on the USB port -- DS9490 |
/dev/ttySx
Direct connection to a 1-wire interface on the serial port -- DS9097U or DS9097
port | :port | IPaddress:port
Location of an owserver daemon that connects to the 1-wire bus. Multiple owperl as well as owfs and owhttpd programs can access the owserver process simultaneously. In fact, this will probably be the preferred mode of access to OWFS for owperl except in trivial applications.
perl −MOW −e "OW::init(’/dev/ttyS1’); printf OW::get(’´);"
http://www.owfs.org
Paul Alfille ([email protected])