Am 26.11.2017 um 17:35 schrieb Laurent FAILLIE via Owfs-developers:
> Hi all,
> 
> I'm playing with a DS28EA00's PIOs and a LM393 based rain detector (the 
> classical schema used as well on light detector, vibration detector, etc ...).
> 
> * PIO.A is used to switch ON / OFF the detector by controlling it's VCC 
> through a transistor : no problem here.
> * PIO.B is connected LM393 output with an inboard pull-up.
> 
> The problem is if LM393 is low when PIO.A is set low (to switch on the 
> detector), PIO.B is forced as output LOW.
> It's clearly an issue with OWFS as I tested with an ESP8266 with following 
> code and I haven't this issue :
> 
The current OW_w_pio() function inside module/owlib/src/c/ow_1820.c is
rather primitive, it always writes both the PIO.A and PIO.B bits.

As a workaround, please use PIO.ALL or PIO.BYTE and store the current
value of all bits in your application.

I will take a look for a more sophisticated solution in the meantime.

Kind regards

        Jan

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to