Am 18.11.2016 um 10:45 schrieb Arne Raaen:
> Hi,
> 
> I have a HobbyBoards relay card based on DS2408, used with LinkUSB
> 
> I used a routine (unconditionally) updating PIO.0 through PIO.5 every
> minute.
> 
> I observed that PIO.6 and PIO.7 would be activated at random intervals,
> typically a few times per day or less.
> 
You cannot set single PIOs on the DS2408, owfs has to set them all as
one. That's why owfs maintains the last state written to the PIO byte.
As you found out the byte stored within owfs may be incorrect for
circumstances we have yet to check.

In the meantime, store the desired output pattern within your
application and write PIO.ALL (or PIO.BYTE) instead of individual bits.
That should make your problem go away immediately.

Kind regards

        Jan







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

Reply via email to