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

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:48

    Anyone can advice on this?