0

I am trying to read Objects and Properties from BACnet interface. We are using example code of BACnet4J where our client code is expected to communicate with BACnet interface provided by LumInsight Desktop(Propriety Software).

So, in our case the device discovery is complete but we are stuck in how to read Device level and Object level information from BACnet interface.

Here is the output I am getting currently:

SLF4J: Failed to load class

"org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. initialized Printing address...Address [networkNumber=0, macAddress=[a,2c,37,5,ba,c0]] RemoteDevice(instanceNumber=10001, address=Address [networkNumber=0, macAddress=[a,2c,37,5,ba,c0]]) ObjectIdentifier:Device 10001 getName:LumInsight Virtual Router getModelName:LIBI-01 Remote Device:RemoteDevice(instanceNumber=10001, address=Address [networkNumber=0, macAddress=[a,2c,37,5,ba,c0]]) User data: analog input:Analog Input 12 Analog Input 12 com.serotonin.bacnet4j.exception.PropertyValueException

Please find attached source code for your reference.

ObjectIdentifier ai3 = new ObjectIdentifier(ObjectType.analogInput,12);
            System.out.println("analog input:"+ai3);
            List<ObjectIdentifier> oids = new ArrayList<ObjectIdentifier>();
            oids.add(ai3);
           System.out.println(ai3);
            for (int i = 0; i < 10; i++) {
                PropertyValues pvs = RequestUtils.readOidPresentValues(localDevice1, d1, oids, null);
               // System.out.println(pvs);
                //System.out.println(pvs.get(ai3, PropertyIdentifier.presentValue));
                System.out.println(pvs.get(ai3, PropertyIdentifier.presentValue));
                Thread.sleep(5000);
            }
Community
  • 1
  • 1
Ishan
  • 13
  • 7
  • Please read [Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers?](//meta.stackoverflow.com/q/326569) - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions. – halfer Jul 31 '17 at 12:10

2 Answers2

0

Please include a valid logging backend for slf4j (Simple logging facade for java) in your class path You will find the library here After extracting downloaded file you can include sl4j-api-(version).jar and sl4j-simple-(version).jar Sorry for late reply.

splatch
  • 1,547
  • 2
  • 10
  • 15
Anand Shrestha
  • 39
  • 1
  • 11
0

I can't give a direct hand, but I would advise that you consider trying your test-case with the VTS (advanced & free) graphical tool too, for the benefit of contrast / matching one success with a failure to hopefully get you to having two successes / the success for your intended test case that little bit sooner.

DennisVM-D2i
  • 416
  • 3
  • 8