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.
Bacnet4J v6 - Getting Started
-
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 -
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 -
@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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login