So as I understand OWFS virtually mounts a filesystem from the onewire
device, after it I can access to its properties, like files


> Well, the easiest way to explore OWFS would be to use the web interface.
>
> # start the web server on port 4444
> # "-u" assumes you are using the USB bus master
> # "-d /dev/ttyS0" for a serial adapter, etc
> sudo /opt/owfs/bin/owhttpd -u -p 4444
>
> then point your web browser to http://localhost:4444
>
> ----------
>
> On the other hand, to show the usage in an email message, we'll use
> the filesystem interface (uses FUSE)
>
> # make a plce to mount the virtual filesystem
> mkdir 1wire
>
> # use simulated devices (fake) in this case
> # --allow_other lets a regular user access the directory
> sudo /opt/owfs/bin/owfs --fake=10,10 -m 1wire --allow_other
>
> # see the directory with 2 DS18S20 devices (10.xxx)
> ls 1wire/
> 10.4AEC29CDBAAB  alarm  settings      statistics  system
> 10.67C6697351FF  bus.0  simultaneous  structure   uncached
>
> # show their available properties
> ls 1wire/10.*
> 1wire/10.4AEC29CDBAAB:
> address  crc8    family  locator  present    r_id       temperature
> templow
> alias    errata  id      power    r_address  r_locator  temphigh     type
>
> 1wire/10.67C6697351FF:
> address  crc8    family  locator  present    r_id       temperature
> templow
> alias    errata  id      power    r_address  r_locator  temphigh     type
>
> # read the temperatures using a grep trick
> grep -r "." 1wire/10.*/temperature
> 1wire/10.4AEC29CDBAAB/temperature:     14.3879
> 1wire/10.67C6697351FF/temperature:     52.1366
>
> Paul Alfille
>
> On Tue, Mar 23, 2010 at 2:54 AM, kako <k...@zhnet.hu> wrote:
>> Hi,
>>
>> I've just found the owfs tools. Downloaded, compiled successfully but I
>> don't know, how to use it.
>> I simply want to read out the temperature data out of two different
>> addressed DS1825 (0 and 1 :-) ) periodically. So my question is "how to
>> start?". I've read the manuals from the source tree, but did'n find the
>> holy grail:-)
>>
>> Thanks
>> Istvan Kassai
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to