• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. cenk
    3. Posts

    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
    C
    • Profile
    • Following 0
    • Followers 0
    • Topics 15
    • Posts 48
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by cenk

    • RE: Realize Connection and object exists check

      Hi,

      So sorry I am not sure understand exactly. To check that everything is ok, I have to remove subscription and subscription again periodically? For example each 1 min
      For removing subscription

      localDevice.send(remoteDevice, new SubscribeCOVRequest(new UnsignedInteger(4),
                      			new ObjectIdentifier(ObjectType.analogValue, 1), null null)).get();
      

      And after subscription again

      localDevice.send(remoteDevice, new SubscribeCOVRequest(new UnsignedInteger(4),
                      			new ObjectIdentifier(ObjectType.analogValue, 1),, Boolean.FALSE, null)).get();
      

      Is it ok?

      Is there any example for this issue

      Thankyou for your help.

      posted in BACnet4J general discussion
      C
      cenk
    • Realize Connection and object exists check

      Hi
      I defined cov subscribe. I can see change of value in covNotificationReceived method.

      localDevice.send(remoteDevice, new SubscribeCOVRequest(new UnsignedInteger(4),
                      			new ObjectIdentifier(ObjectType.analogValue, 1),, Boolean.FALSE, null)).get();
      
      

      When The application running, remote device can be shutdown or connection broken or Object can be deleted on remote device. How can be checked this situations in the application. How can be realized in the application.

      posted in BACnet4J general discussion check connectio
      C
      cenk
    • RE: RequestUtils.readProperties Bacnettimeoutexception

      Hi,

      I increased time out

      ld.withAPDUTimeout(new UnsignedInteger(30000));
      

      But result is same.

      We are not using remotedevice cach of local device. Remotedevice is a variable in our class.

      posted in BACnet4J general discussion
      C
      cenk
    • RequestUtils.readProperties Bacnettimeoutexception

      We are reading present value each 1 second periodically in the thread.

      refs3 = new PropertyReferences();
      refs3.add(oid, PropertyIdentifier.presentValue);
      
      PropertyValues pvs3 = RequestUtils.readProperties(ld, rd, refs3, null);
      

      Sometimes Bacnettimeoutexception error occurred.

      com.serotonin.bacnet4j.exception.BACnetTimeoutException
      at com.serotonin.bacnet4j.transport.ServiceFutureImpl.result(ServiceFutureImpl.java:74)
      	at com.serotonin.bacnet4j.transport.ServiceFutureImpl.get(ServiceFutureImpl.java:63)
      	at com.serotonin.bacnet4j.util.RequestUtils.readProperties(RequestUtils.java:313)
      

      When LocalDevice terminated and initial again error looking up

      ld.terminate();
      try {
      	ld.initialize();
      } catch (Exception e) {
          e.printStackTrace();
      }
      

      What is the problem. How can I find a solution?

      Thank you

      posted in BACnet4J general discussion
      C
      cenk
    • RemoteDevice connection check

      Hi,

      How can I check RemoteDevice gone to down.(connection broken)

      posted in BACnet4J general discussion
      C
      cenk
    • RE: Trend Log defination for SlaveDevice

      Is there any one response me. I need help.

      Thank you!!!

      posted in BACnet4J general discussion
      C
      cenk
    • RE: Trend Log defination for SlaveDevice

      Thank you for your example.

      But I think We have to send BUFFER_READY notification to make ready. How can I send it.

      After We have to wait the BUFFER_PRUGED notification to reset buffer. Is it ok?

      Thank you for your help!

      posted in BACnet4J general discussion
      C
      cenk
    • RE: Buffer_READY event notification

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

      I need help about trend log.

      posted in BACnet4J general discussion
      C
      cenk
    • RE: Buffer_READY event notification

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

      posted in BACnet4J general discussion
      C
      cenk
    • Buffer_READY event notification

      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

      posted in BACnet4J general discussion
      C
      cenk
    • RE: Buffer_READY event notification

      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

      posted in BACnet4J general discussion
      C
      cenk
    • RE: Trend Log defination for SlaveDevice

      Maybe I couldnt explain my problem. Really I need help.
      We are developing bacnet slave software. And I want to buffering some value. For example sometimes bacnet master can be closed. for reason We have to define the object as trend log. Is it correct. What is the other properties to define object as trend log object. We need a example for this.

      posted in BACnet4J general discussion
      C
      cenk
    • RE: Trend Log defination for SlaveDevice

      There is a device as bacnet IP master. And this this device can read trend log object. So that The Object that define in my bacnet slave application can be defined as trend log. So I need trend log object in my application. I see object properties The object can be defined as a trend log. Bu I dont understand how can I use it. I need a example?

      Thank you for your help!

      posted in BACnet4J general discussion
      C
      cenk
    • RE: Trend Log defination for SlaveDevice

      Anyone has not used trend log before with bacnet4j. why does anyone response my question

      posted in BACnet4J general discussion
      C
      cenk
    • RE: Trend Log defination for SlaveDevice

      Hi,

      I need to help about trend log. Are there anyone used trend log in slave device.

      posted in BACnet4J general discussion
      C
      cenk
    • Trend Log defination for SlaveDevice

      Hi,

      We are developing a slavedevice and we want to log some value.How can I define the values as trend log. Is there any example for trend log for slavedevice.

      Thank you!

      posted in BACnet4J general discussion
      C
      cenk
    • RE: Trend Log defination for SlaveDevice

      Hi,

      We are developing a slavedevice and we want to log some value.How can I define the values as trend log. Is there any example for trend log for slavedevice.

      Thank you!

      posted in BACnet4J general discussion
      C
      cenk
    • Java.net.SocketException: getifaddrs not supported

      Hi;

      I am trying Bacnet4j on linux. But when I created bacnet device The error occured. Message is below

      java.lang.RuntimeException: java.net.SocketException: getifaddrs not supported
      at com.serotonin.bacnet4j.LocalDevice.getAllLocalAddresses(LocalDevice.java:779)
      at com.serotonin.bacnet4j.service.unconfirmed.IAmRequest.handle(IAmRequest.java:71)
      at com.serotonin.bacnet4j.LocalDevice.handleUnconfirmedRequest(LocalDevice.java:733)
      at com.serotonin.bacnet4j.npdu.ip.IpMessageControl$IncomingMessageExecutor.runImpl(IpMessageControl.java:555)
      at com.serotonin.bacnet4j.npdu.ip.IpMessageControl$IncomingMessageExecutor.run(IpMessageControl.java:489)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.net.SocketException: getifaddrs not supported
      at java.net.VMNetworkInterface.getVMInterfaces(Native Method)
      at java.net.NetworkInterface.getNetworkInterfaces(Unknown Source)
      at com.serotonin.bacnet4j.LocalDevice.getAllLocalAddresses(LocalDevice.java:768)
      ...7 more

      It seem the Operating system is not supported getifaddrs. But how can I do.

      Thank you!

      posted in BACnet4J general discussion
      C
      cenk
    • RE: Java.net.SocketException: getifaddrs not supported

      Hi;

      I am trying Bacnet4j on linux. But when I created bacnet device The error occured. Message is below

      java.lang.RuntimeException: java.net.SocketException: getifaddrs not supported
      at com.serotonin.bacnet4j.LocalDevice.getAllLocalAddresses(LocalDevice.java:779)
      at com.serotonin.bacnet4j.service.unconfirmed.IAmRequest.handle(IAmRequest.java:71)
      at com.serotonin.bacnet4j.LocalDevice.handleUnconfirmedRequest(LocalDevice.java:733)
      at com.serotonin.bacnet4j.npdu.ip.IpMessageControl$IncomingMessageExecutor.runImpl(IpMessageControl.java:555)
      at com.serotonin.bacnet4j.npdu.ip.IpMessageControl$IncomingMessageExecutor.run(IpMessageControl.java:489)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.net.SocketException: getifaddrs not supported
      at java.net.VMNetworkInterface.getVMInterfaces(Native Method)
      at java.net.NetworkInterface.getNetworkInterfaces(Unknown Source)
      at com.serotonin.bacnet4j.LocalDevice.getAllLocalAddresses(LocalDevice.java:768)
      ...7 more

      It seem the Operating system is not supported getifaddrs. But how can I do.

      Thank you!

      posted in BACnet4J general discussion
      C
      cenk
    • RE: Multi broadcast address

      I cant find any soltion. Because of DatagramPacket is only send one address.

      posted in BACnet4J general discussion
      C
      cenk