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.
I am saying the only way to detect a spontaneous disconnection, which I think it what you're asking, is to send a request of some sort and have it time out.
Then you should be able to drop a breakpoint in the ServiceFutureImpl method and see where that BACnet timeout exception is coming from.
But result is same.
Does it at least take longer to timeout? I do not believe the actual sending of the property request is present in the code you have shared. Nor is the configuration of the local device there. That's not a lot of information to work with.
how can i use mango master to get data/value from simulator device and monitor the simulator using any data source like modbus/dnp3/bacnet etc. please help me
Hi;
I am trying Bacnet4j on linux. But when I created bacnet device The error occured. Message is below
java.lang.RuntimeException: java.net.SocketException: getifaddrs not supported
at com.serotonin.bacnet4j.LocalDevice.getAllLocalAddresses(LocalDevice.java:779)
at com.serotonin.bacnet4j.service.unconfirmed.IAmRequest.handle(IAmRequest.java:71)
at com.serotonin.bacnet4j.LocalDevice.handleUnconfirmedRequest(LocalDevice.java:733)
at com.serotonin.bacnet4j.npdu.ip.IpMessageControl$IncomingMessageExecutor.runImpl(IpMessageControl.java:555)
at com.serotonin.bacnet4j.npdu.ip.IpMessageControl$IncomingMessageExecutor.run(IpMessageControl.java:489)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketException: getifaddrs not supported
at java.net.VMNetworkInterface.getVMInterfaces(Native Method)
at java.net.NetworkInterface.getNetworkInterfaces(Unknown Source)
at com.serotonin.bacnet4j.LocalDevice.getAllLocalAddresses(LocalDevice.java:768)
...7 more
It seem the Operating system is not supported getifaddrs. But how can I do.
Thank you!
I think this is more a networking issue rather than a BACnet or BACnet4j issue.
What I would do is create a seperate network with only the devices you want to broadcast to, and put in a gateway/route to the rest of the network to provide connectivity if you require it.
I committed a change to IpMessageControl that will provide a better exception message than the NPE. Please build from the latest source and give it another try.
Yes, you should be able to do that. I don't have any equipment here at the moment to test with, but you're basically just reading object properties, so it's really no different than anything else.
The real-life analogy is, e.g. an outdoor temperature. You can only read it - you can't change it (realistically). In cases like this having a read-only type is appropriate.