Hello Sven,

I had the same problem. In order to test my ongoing software-development 
for my house-heating-system, I needed a complete identical 
1wire-structure of my existing system. This way I can test without 
horsing things up!

Since I use only the fuse-filesystem to read and write to 1wire, the 
solution I found for simulation was fairly simple:

I just copied the complete fuse-file-structure, and made certain fields 
  of sensors and IO-modules writable. I had to write some simulation 
code of course. For example, if you write outputs, you want to write the 
corresponding sensed.* fields too!

So, I did not use fake-mode at all. I am not even running owfs on my 
test-machine. Again it only works if you use the fuse-filesystem!

Cheers,

Martin




On 11/02/2012 03:45 PM, Sven Geggus wrote:
> Hello,
>
> I have been looking at the simulation mode of owfs if this might be
> useful as a unit test for my software.
>
> Well basically it's not because a constant value is not what one
> usually gets from real world sensors.  Currently I'm testing using
> fake mode which is only somewhat annoying because of the
> unpredictable sensor ID's.
>
> A more useful simulation mode would read/write its values from/to an ascii
> file or even better from an external process using popen.
>
> Regards
>
> Sven
>

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to