here is my code to write /simultaneous/voltage which increases CRC16 by
one only
waiting for one or two seconds did not change that. It increases CRC16
only by one.
Should the write not being re-tried automatically? Like any other failed
read or write? Confused...

> from pyownet import protocol
> import time
>
> op = protocol.proxy()
>
> try:
>
>     x = op.read('/statistics/errors/CRC16_errors')
>     print 'CRC16_errors',x
>
>     op.write('/uncached/simultaneous/voltage','1')
>
> #    time.sleep(1)
>
>     x = op.read('/statistics/errors/CRC16_errors')
>     print 'CRC16_errors',x
>
>
> except Exception as e:
>     print str(e)


On 16.08.20 21:59, Mick Sulley wrote:
>
> First, I noticed a typo in my mail, the CRC value increases by 8, not
> 1, when I set /simultaneous/voltage.  My code was setting /temperature
> then /voltage, I wondered if a delay between them may help, tried and
> it did not.  I also tried setting /voltage first then /temperature but
> it still increased CRC on /voltage.
>
> Yes I do have a voltage device, a DS2437.  I only have one, so setting
> /simultaneous/voltage is probably not going to save any time, but it
> seemed the right way to do it.
>
> I looked at issue 55, don't know if that is related on not.  I am
> happy to test 3.2p4 but don't know how to do it. 
>
> If I download from https://sourceforge.net/projects/owfs/  I get 3.2p1
> which is what I was running anyway.
>
> I download the .zip from https://github.com/owfs/owfs  unpacked into a
> new directory and tried to follow the instructions in INSTALL, this is
> what I got -
>
> pi@pi4B:~/owfs/owfs-master $ ls
> acinclude.m4    COPYING             Makefile.am        RELEASE.md
> AUTHORS         COPYING.LIB         man2md             release.pl
> autom4te.cache  debian              module             src
> bootstrap       description-pak     NEWS               TODO
> ChangeLog       Dockerfile.release  README.DEVELOPERS 
> update_wiki_manpages
> configure.ac    INSTALL             README.md
> pi@pi4B:~/owfs/owfs-master $ ./configure
> -bash: ./configure: No such file or directory
> pi@pi4B:~/owfs/owfs-master $
>
> I ran out of knowledge at this point.  If you can tell me how to
> install it I will test it out.
>
> Thanks
>
> Mick
>
>
> On 16/08/2020 17:29, Stefano Miccoli via Owfs-developers wrote:
>> The CRC16 error could be related
>> to https://github.com/owfs/owfs/issues/55
>>
>> The version on master is already patched, and will be released in
>> 3.2p4. If possible check if the current version on master works as
>> expected.
>>
>> Stefano
>>
>>> On 16 Aug 2020, at 18:22, Martin Patzak <martin.pat...@gmx.de
>>> <mailto:martin.pat...@gmx.de>> wrote:
>>>
>>> I tested it and I can confirm that writing to
>>> /uncached/simultaneous/voltage increases the CRC16_error by one.
>>>
>>> Mick, do you have voltage devices on your network? (I hope it is not
>>> a stupid question)
>>> I don't have such devices, so I cannot test this further...
>>>
>>> Greetings,
>>> Marty
>>>
>>> On 13.08.20 01:04, Mick Sulley wrote:
>>>>
>>>> I have been doing some more testing and have a couple of issues. 
>>>> My code sets simultaneous/temperature, waits a couple of seconds
>>>> then reads latesttemp from each sensor.
>>>>
>>>>  1. Reading latesttemp generally takes 0.07 seconds BUT every 120
>>>>     seconds every sensor takes 0.75 seconds for a single loop, then
>>>>     back to 0.07 seconds.  (/settings/timeout/presence is set to 120)
>>>>  2. My understanding is that simultaneous/voltage works in the same
>>>>     way, however when I set it my CRC_errors increases by 8.  Why
>>>>     is this?
>>>>
>>>> Cheers
>>>>
>>>> Mick
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Owfs-developers mailing list
>>> Owfs-developers@lists.sourceforge.net
>>> <mailto:Owfs-developers@lists.sourceforge.net>
>>> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>>
>>
>>
>> _______________________________________________
>> Owfs-developers mailing list
>> Owfs-developers@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers

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

Reply via email to