Hi,
I am new in Bacnet and Bacnet4J. I am developping an slave bacnet application. this application has to discover a list of bacnet objects/devices and after to manage its. I am using VTS (Virtual Tset Shell) to test my application.
I have some questions, so :
1- i create a localDevice
LocalDevice localDevice = new LocalDevice(1, "10.193.224.255", "10.193.224.239");
10.193.224.255 : address broadcast
and after i initialise it
try {
localDevice.initialize();
}catch(IOException e) {
System.out.println("IO Error!");
e.printStackTrace();
return;
}
finally i send a broadcast request
localDevice.sendBroadcast(0xBAC0, new WhoIsRequest(null, null));
but the list of object is empty and VTS doesn't receive any thing, i don't know why because with VTS i create devices and objects that have "10.193.224.177" address IP. So i don't know how i can do this
2- what is the different between remoteDevice and localDevice ?
3- second test : with VTS i send WhoIsRequest
after i create a bacnet object in my application
LocalDevice localDevice = new LocalDevice(1, "10.193.224.255", "10.193.224.239");
BACnetObject bacnetObj = new BACnetObject(localDevice, new ObjectIdentifier(ObjectType.analogInput, 10));
bacnetObj.setProperty(PropertyIdentifier.objectName, new CharacterString("TemperatureSensorOneRF"));
bacnetObj.setProperty(PropertyIdentifier.description, new CharacterString("Controller of TemperatureSensor"));
after i send :
localDevice.sendBroadcast(0xBAC0, new IAmRequest(new ObjectIdentifier(ObjectType.analogInput, 10), new UnsignedInteger(1024), Segmentation.noSegmentation, new UnsignedInteger(236)));
But VTS doesn't receive any thing
thanks for help