This morning it works again. Still don't understand why... Is this a bug? There something I'm missing?
Thank you.
This morning it works again. Still don't understand why... Is this a bug? There something I'm missing?
Thank you.
Hi,
I have recently approached BACnet technology and I have succesfully tested demo applications presents in BACnet stack C library with one windows laptop mounting a linux virtual machine. I was able to launch a BACnet server simulator on my virtual machine and communicate with it through a client running on my host machine.
Last week I have tested BACnet4J and on my host machine with a Java application with BACnet4J I have managed to read and write property on my BACnet server simulator in C running on my virtual machine.
Today, come back from the week end, the same BACnet4J code cannot find my BACnet server (running on virtual machine) no more. I have spent several hours today trying to understand the cause but without success. On my host machine with C BACnet stack clients, I can read properties on my server, but with BACnet4J, the server doesn't respond not even to WhoIs request.
This is the code from Test2.java. After sending WhoIsRequest() the application doesn't receive any Iam message.
LocalDevice localDevice = new LocalDevice(1968, new Transport(new IpNetwork()));
localDevice.getEventHandler().addListener(new Listener());
localDevice.initialize();
try {
localDevice.sendGlobalBroadcast(new WhoIsRequest());
Thread.sleep(2000);
getObjectList(localDevice, new Address(2001, new byte[] { 0x3a }), new OctetString("192.168.0.68", 0xBAC0),
76058);
}
finally {
localDevice.terminate();
}
static class Listener extends DeviceEventAdapter {
@Override
public void iAmReceived(RemoteDevice d) {
System.out.println("IAm received" + d);
}
}
Someone could help me with this problem? What could be the reason why I get no answer not even to WhoIs request with my BACnet4J application?
Thanks in advance.
Hi,
I have recently approached BACnet technology and I have succesfully tested demo applications presents in BACnet stack C library with one windows laptop mounting a linux virtual machine. I was able to launch a BACnet server simulator on my virtual machine and communicate with it through a client running on my host machine.
Last week I have tested BACnet4J and on my host machine with a Java application with BACnet4J I have managed to read and write property on my BACnet server simulator in C running on my virtual machine.
Today, come back from the week end, the same BACnet4J code cannot find my BACnet server (running on virtual machine) no more. I have spent several hours today trying to understand the cause but without success. On my host machine with C BACnet stack clients, I can read properties on my server, but with BACnet4J, the server doesn't respond not even to WhoIs request.
This is the code from Test2.java. After sending WhoIsRequest() the application doesn't receive any Iam message.
LocalDevice localDevice = new LocalDevice(1968, new Transport(new IpNetwork()));
localDevice.getEventHandler().addListener(new Listener());
localDevice.initialize();
try {
localDevice.sendGlobalBroadcast(new WhoIsRequest());
Thread.sleep(2000);
getObjectList(localDevice, new Address(2001, new byte[] { 0x3a }), new OctetString("192.168.0.68", 0xBAC0),
76058);
}
finally {
localDevice.terminate();
}
static class Listener extends DeviceEventAdapter {
@Override
public void iAmReceived(RemoteDevice d) {
System.out.println("IAm received" + d);
}
}
Someone could help me with this problem? What could be the reason why I get no answer not even to WhoIs request with my BACnet4J application?
Thanks in advance.