JoelBender / bacpypes

BACpypes provides a BACnet application layer and network layer written in Python for daemons, scripting, and graphical interfaces.
MIT License
302 stars 129 forks source link

COV stop after a while #536

Open kazemiprince opened 1 month ago

kazemiprince commented 1 month ago

I am testing COV(for analog input object) with Yabe and I see COV stop sending new values to Yabe and have to subscribe again to see new values. sometimes it stop after 1-2 minutes and sometimes it stop sooner.

JoelBender commented 1 month ago

Subscriptions have a "lifetime" parameter, Clause 13.14.1.1.4, what is the value from Yabe? Do the notifications stop for different versions of the parameter?

kazemiprince commented 2 weeks ago

its lifetime is 120 seconds. notification stop randomly. I though it's because I run bacnet on another thread, but even if I run it on main , it stop again. what I see is if I decrees the lifetime to 30 seconds, it will be much much better.

skehd13 commented 2 weeks ago

Checking the logs, it appears that self.algorithm.triggered = True is running late on line 55 of the service.Detect.py file. If we move that line to line 52, COV still appears to work.

Is this method correct?

JoelBender commented 1 week ago

Perhaps, that's not in the BACpypes code.