On Fri, Dec 10, 2010 at 04:01:37PM -0500, Eloy Paris wrote:
> Hi Chris,
> 
> On 12/10/2010 03:45 PM, Chris G wrote:
> 
> > I have my owfs server running with USB master device:-
> >
> >      /opt/owfs/bin/owfs -u -m /mnt/1-wire/
> >
> > This works fine and creates appropriate directories in /mnt/1-wire/
> > where I can see the data from my temperature sensors.
> >
> > How then do I use owdir, owread, etc. to actually read the data?  They
> > seem to need a port number among other things and I don't see how I can
> > know the port number that owfs is using.
> >
> > I just need some simple examples, whenever I run owdir and/or owread at
> > the moment I get no output at all.
> 
> As I understand it, owfs has moved to a client-server model where one 
> server application (owserver) talks to the 1-wire bus and client 
> applications talk, via sockets, to the server. And while some 
> applications still retain the capability of talking to the bus directly 
> (the owfs executable is the prime example), some other programs in the 
> owfs package may not have that capability.
> 
> So, if you want to use some of these programs that cannot talk to the 
> 1-wire bus, you have to run owserver first, and then point the other 
> applications to owserver by providing IP address and port to connect to 
> (the protocol between owserver and the ow* clients uses TCP).
> 
> Personally, I have an init.d script that starts owserver like this:
> 
> /opt/owfs/bin/owserver -d /dev/ttyUSB1 -C --error_print 0 --error_level 
> 1 --nozero
> 
> Since you are using that USB-based master I think you'd have to replace 
> my "-d /dev/ttyUSB1" with just "-u".
> 
> After you have owserver running, you'd run owfs with something like:
> 
> /opt/owfs/bin/owfs --allow_other -C -s localhost:4304 /owfs --nozero
> 
> The other utilities are run in a similar way.
> 
OK, thanks for the clarification.  I hadn't quite got my mind round the
fact that some of the owfs 'bits' are server processes and some are
clients.   Once I'd got past that I realised that I can run owhttpd with
almost the same paramters as owfs (plus a port number) and then I can
view the 1-wire bus sensor values as web pages - excellent!  :-)

-- 
Chris Green

------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to