Tutorial on how to start using BACnet4J
-
Hi there, i am sorry for asking such a question but i couldn't find any form of guide or tutorial on how i can use BACnet4J. I have try to creat a Java project in eclipse and and imported your bacnet4J-src.zip in the src folder and also the seroUtils.jar. But when i try to run the DiscoveryTest.java and SlaveDeviceTest.java, Nothing was being output on the console.
Btw, i am trying to figure up how to setup mock bacnet devices and a bacnet client to detect this devices all on the same machine.
-
Hi guys, i manage to set up the stuff but when I try to run the DiscoveryTest.java (with SlaveDeviceTest.java running) an error below show up in the console:
Exception in thread "main" java.net.BindException: Address already in use: Cannot bind
at java.net.PlainDatagramSocketImpl.bind0(Native Method)
at java.net.PlainDatagramSocketImpl.bind(Unknown Source)
at java.net.DatagramSocket.bind(Unknown Source)
at java.net.DatagramSocket.<init>(Unknown Source)
at java.net.DatagramSocket.<init>(Unknown Source)
at com.serotonin.bacnet4j.npdu.ip.IpMessageControl.initialize(IpMessageControl.java:156)
at com.serotonin.bacnet4j.LocalDevice.initialize(LocalDevice.java:211)
at com.serotonin.bacnet4j.test.DiscoveryTest.main(DiscoveryTest.java:48Anyone can advice on this?