• 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

    Bacnet4J v6 - Getting Started

    Scheduled Pinned Locked Moved BACnet4J general discussion
    3 Posts 2 Posters 18 Views 2 Watching
    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.
    • Bård LindB Offline
      Bård Lind
      last edited by

      Hi.

      I'm trying to to a quite simple setup, yet not able to figure out how to get started.
      I am tring to create a client that can do COV from a device in the same network.

      I have tried to look at https://github.com/RadixIoT/BACnet4J/blob/master/src/test/java/com/serotonin/bacnet4j/LocalDeviceTest.java.
      Acutually I'm stuck in how to create a Local Device, and to do a whoIs request.
      Also what is the propper way to do COV subscription from versjon 6?

      Regards
      Bard Lind

      Bård LindB 1 Reply Last reply Reply Quote 0
      • Bård LindB Offline
        Bård Lind @Bård Lind
        last edited by

        I'm trying this:

                   IpNetwork ipNetwork = new IpNetworkBuilder()
                            .withLocalBindAddress(192.168.2.28)
                            .withBroadcast("192.168.2.255", 32)
                            .build();
                    localDevice = new LocalDevice(LOCAL_DEVICE_ID, new DefaultTransport(ipNetwork));
                    localDevice.initialize();
                    RemoteDeviceFinder.RemoteDeviceFuture remoteDeviceFuture = localDevice.getRemoteDevice(2401);
                    RemoteDevice remoteDevice = remoteDeviceFuture.get();
                    if (remoteDevice == null) {
                        log.warn("Remote device with ID {} not found", REMOTE_DEVICE_ID);
                        return;
                    }
        

        With Wireshark I can see the messages returning, yet none are arriving in Bacnet4J.
        I have tried to run this code with and without Wiresharck running.

        Any sugestions into what is wrong?

        Regards
        Bard

        terrypackerT 1 Reply Last reply Reply Quote 0
        • terrypackerT Offline
          terrypacker @Bård Lind
          last edited by

          @Bård-Lind you are binding to a specific IP, you won't receive broadcasts if you are running this on Linux. You need to bind to the local address of 0.0.0.0 to get the messages from the initial WhoIs during initialization. Hopefully this helps you out, it could be many things but this is a common one when getting started with BACnet over IP.

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