Giter Club home page Giter Club logo

Comments (5)

skarg avatar skarg commented on July 22, 2024

From the code posted, it appears that the bacnet_task() is running in a separate task from COV without using mutex for data protection with other data in the stack.

In a product I developed that used MSTP with FreeRTOS:

  • called all the BACnet tasks functions in the one FreeRTOS task with a thread-safe queue for incoming PDUs and outgoing PDUs
  • one task for mstimer
  • one task for each MSTP datalink calling datalink_receive() feeding the incoming queue with PDUs received, and sending the outgoing queued PDUs

There is a work-in-progress (incomplete, not tested yet, not compiled yet) branch of a FreeRTOS BACnet MSTP example at github.

You might also have success refactoring handler_cov_fsm() to suit your needs (it only processes one subscription and one state per call), shrinking the number of COV subscriptions, or running your handler_cov_fsm() task faster than 10ms.

from bacnet-stack.

coskunyildirimcosel avatar coskunyildirimcosel commented on July 22, 2024

Hello,
In version 0.9, Analog_Input and Binary_Input also work with COV and there are no problems.
I noticed that COV is not working in the latest version.
handler_cov_task also causes a stack overflow.
I'm working with Esp32.
If there is a setting, can you share it?

from bacnet-stack.

Twillpower avatar Twillpower commented on July 22, 2024

Hello,
My current solution is to use ucov instead of ccov.

from bacnet-stack.

coskunyildirimcosel avatar coskunyildirimcosel commented on July 22, 2024

Merhaba, Şu anki çözümüm ckov yerine ucov kullanmak.

hello, thank you for your answer.
In which version of COV Bacnet does it work properly?
COV does not work for me in version 1.3.1. In version 0.9, COV responds fast enough in mstp, but in IP it responds in 1-2 seconds.

from bacnet-stack.

Twillpower avatar Twillpower commented on July 22, 2024

The version I am currently using is 1.0.0. I only use mstp. IP is not currently used. Both ccov and ucov can run through.

from bacnet-stack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.