Menu

Arduino project

Help
2023-04-18
2023-06-06
  • Ben Bartling

    Ben Bartling - 2023-04-18

    Hello,

    Newbie here as well as C/C++ but I do dabble with Python and bacpypes quite a bit.

    Am curious to ask for a microcontroller project can I use the C bacnet-stack running a simple BACnet server and then use C++ for some basic calculations/algorithms on the same microcontroller for the data coming to the bacnet server points??

    For example take data in on a few writeable/command-able AV bacnet server points ---> make some calculations in C++ ---> change the value of a non-writable BV on the bacnet server

    Apologize if this is a silly question...but curious to ask if there would be a simple bacnet server example to look at and if I can combine C/C++ on the same board??

    Thanks!

     
    • Steve Karg

      Steve Karg - 2023-04-18

      Yes, it is certainly possible to do those kind of things - see apps/server-client or apps/piface for some C code ideas where the object properties are manipulated.
      https://sourceforge.net/p/bacnet/src/ci/master/tree/apps/piface/
      https://sourceforge.net/p/bacnet/src/ci/master/tree/apps/server-client/

      It would be nice to have an example BACnet server with a program object with an interpreter/virtual-machine that could be programmed like Arduino C or Circuit Python, but nothing like that has been done in the examples or apps (yet).

       
      • Ben Bartling

        Ben Bartling - 2023-04-18

        thank you...would you have any simple BACnet server examples look at?

         
  • Ben Bartling

    Ben Bartling - 2023-04-19

    Can one just modify the point names in here to try it out?
    https://svn.code.sf.net/p/bacnet/code/trunk/bacnet-stack/demo/server/

    In this file can I experiment with creating what points I would like in the BACnet server?
    https://svn.code.sf.net/p/bacnet/code/trunk/bacnet-stack/demo/server/epics_vts3.tpi

    Am curious to experiment trimming it down to a few writeable/commable analogValues (AVs) and one BV object. Thanks!

     
    • Steve Karg

      Steve Karg - 2023-06-06

      There are also examples of other selections of 'device' objects containing a few other objects in various ports/ folders.

       

Log in to post a comment.