• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Buffer_READY event notification

    BACnet4J general discussion
    2
    5
    2.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cenk
      last edited by

      Hi,

      I defined a trend log object in bacnet slave application this like

      
              BACnetObject ai0 = new BACnetObject(localDevice, localDevice.getNextInstanceObjectIdentifier(ObjectType.trendLog));
      
              ai0.setProperty(PropertyIdentifier.enable, new Boolean(true));
              ai0.setProperty(PropertyIdentifier.stopWhenFull, new Boolean(true));
              ai0.setProperty(PropertyIdentifier.bufferSize, new UnsignedInteger(20));
              ai0.setProperty(PropertyIdentifier.recordCount, new UnsignedInteger(0));
              ai0.setProperty(PropertyIdentifier.totalRecordCount, new UnsignedInteger(0));
              ai0.setProperty(PropertyIdentifier.notificationThreshold, new UnsignedInteger(4));
              ai0.setProperty(PropertyIdentifier.loggingType, LoggingType.polled);
      
      

      And I added value to ai0 object this like

      
      
                  SequenceOf<LogRecord> lrs = (SequenceOf<LogRecord>) ai0.getProperty(PropertyIdentifier.logBuffer);
                  count++;
                  ai0.setProperty(PropertyIdentifier.recordCount, new UnsignedInteger(count));
                  ai0.setProperty(PropertyIdentifier.totalRecordCount, new UnsignedInteger(count));
                  
                  
                  LogRecord lr = new LogRecord(new DateTime(System.currentTimeMillis()), true, new Real(ai0value), new StatusFlags(false, false, false, false));
                  lrs.add(lr);
      
      

      I think, when record count value is reach the notificationThreshold value(in example this value is setted 4) Buffer_Ready notification event can be sent. Buffer_Ready notification event will be either automaticly sent by bacnet4j or manually in program. How can I send Buffer_Ready event notification

      1 Reply Last reply Reply Quote 0
      • M
        mlohbihler
        last edited by

        A trend log in a BACnet4J should really be a subclass of the BACnetObject class, like the existing FileObject.

        Best regards,
        Matthew

        1 Reply Last reply Reply Quote 0
        • C
          cenk
          last edited by

          So sorry I can not understand that "subclass of the BACnetObject class".

          1 Reply Last reply Reply Quote 0
          • C
            cenk
            last edited by

            Trend log object is working in bacnet4j, isn't it. Have you ever anyone test it before.

            I need help about trend log.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post