On Sun, May 16, 2010 at 02:57:14PM +0200, Guy COLIN wrote:
> Hi Paul,
> 
> Thanks for your quick and full answer.
> 
> Yes even if I'm not a pure hardware guy (I'm a Guy guy (Guy is my name 
> ;-) )), I had the Maxim DS2413 documentation nearby when performing the 
> first tests. That's why I found it strange to be reversed. However after 
> reading owfs DS2413 man page, I saw it was consistent.
> I clearly understand your choice: 1 is ON and O is OFF, it's the 
> behavior everybody expect.

That's true when I first tried to echo 1 to turn on a relay on the hobby
boards 8 channel IO board, but notice this:

1gargamel:/etc/owfs/bus3/aux/29.E73E06000000# cat sensed.0; echo 
1
gargamel:/etc/owfs/bus3/aux/29.E73E06000000# echo 1 > PIO.0
gargamel:/etc/owfs/bus3/aux/29.E73E06000000# cat sensed.0; echo 
0
gargamel:/etc/owfs/bus3/aux/29.E73E06000000# echo 0 > PIO.0
gargamel:/etc/owfs/bus3/aux/29.E73E06000000# cat sensed.0; echo 
1


This is not super obvious :)

Paul, I support your choice of 1 for on and 0 for off, but if you use that,
you should revert the sensed values too: getting back the opposite of what
you just echoed in is not consistent IMO.

Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/  

------------------------------------------------------------------------------

_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to