Hi kishorev,
You seem to be using the bacnet4j api in a bit of a strange way. But I can see a few things that might help. First of all before you ask for the object list, you probably need to do a broadcast, simply so that the responding bacnet device knows you exist, otherwise I'm pretty sure it can't respond to you.
You can do it with a broadcast:
localDevice.sendBroadcast(47808, localDevice.getIAm());Or you can send it a direct message, since you know who you are talking to:
localDevice.sendUnconfirmed(remoteDevice.getAddress(), null, localDevice.getIAm());Then then other problem is the way you are getting the object list, you are really using internal API methods, you are much better off using:
List<ObjectIdentifier> oids = ((SequenceOf<ObjectIdentifier>) localDevice.sendReadPropertyAllowNull(remoteDevice, remoteDevice .getObjectIdentifier(), PropertyIdentifier.objectList)).getValues();Where remoteDevice is an instance of a RemoteDevice, in your case:
Address address = new Address(null,BACnetUtils.dottedStringToBytes("192.168.1.3"),47808); RemoteDevice remoteDevice = localDevice.findRemoteDevice(address, null, deviceId);