I am trying to implement COV(Change Of Value) functionality in Bacnet Server using “bacnet4j” java library.
Scenario (1 ) : Java code to SubscribeCOV to Object “analog input” :
ObjectIdentifier oid = new ObjectIdentifier(ObjectType.binaryInput, remoteDevice.getInstanceNumber());
SubscribeCOVRequest req = new SubscribeCOVRequest(new UnsignedInteger(0), oid, new Boolean(true),new UnsignedInteger(0));
localDevice.send(remoteDevice, req));
But I am getting following exception : com.serotonin.bacnet4j.exception.ErrorAPDUException: ErrorAPDU(choice=5, errorClass=Object, errorCode=Unknown object)
Scenario (2 ) : Java code to SubscribeCOV to Property “present value” in object ”binary input”:
ObjectIdentifier oid = new ObjectIdentifier(ObjectType.binaryInput, rd.getInstanceNumber());
SubscribeCOVPropertyRequest req=new SubscribeCOVPropertyRequest(new UnsignedInteger(1), oid, new Boolean(true), new UnsignedInteger(0), new PropertyReference(new PropertyIdentifier(85)), new Real((float) 1.23));
localDevice.send(remoteDevice, req));
But I am getting following exception : com.serotonin.bacnet4j.exception.RejectAPDUException: Reject(originalInvokeId=0, rejectReason=9)
Please correct me, if I am wrong.
Can anyone tell whether BACnetServer supports SubscribeCOV Object & SubscribeCOVProperty ? If yes, then How to do it? or What to modify in the code?
Any further response would be highly appreciated. !!
Thanks,
Raveesh.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Sorry for the mistake in above query.
Actually, BinaryInput Object was subscribed in BACnet Server.
Query after correction :
I am trying to implement COV(Change Of Value) functionality in Bacnet Server using “bacnet4j” java library.
Scenario (1 ) : Java code to SubscribeCOV to Object “analog input” : ObjectIdentifier oid = new ObjectIdentifier(ObjectType.analogInput, remoteDevice.getInstanceNumber()); SubscribeCOVRequest req = new SubscribeCOVRequest(new UnsignedInteger(0), oid, new Boolean(true),new UnsignedInteger(0));
localDevice.send(remoteDevice, req));
But I am getting following exception : com.serotonin.bacnet4j.exception.ErrorAPDUException: ErrorAPDU(choice=5, errorClass=Object, errorCode=Unknown object)
Scenario (2 ) : Java code to SubscribeCOV to Property “present value” in object ”binary input”: ObjectIdentifier oid = new ObjectIdentifier(ObjectType.binaryInput, rd.getInstanceNumber()); SubscribeCOVPropertyRequest req=new SubscribeCOVPropertyRequest(new UnsignedInteger(1), oid, new Boolean(true), new UnsignedInteger(0), new PropertyReference(new PropertyIdentifier(85)), new Real((float) 1.23)); localDevice.send(remoteDevice, req));
But I am getting following exception : com.serotonin.bacnet4j.exception.RejectAPDUException: Reject(originalInvokeId=0, rejectReason=9)
According to my perspective :- (1) Only binaryInput object is supported in BACnet Server. Rest are not supported.
(2) SubscribeCOVProperty is not supported in BACnet Server.
Please correct me, if I am wrong.
If Subscription of COV is possible in BACnet Server , then Please suggest How to check it ? as writeProperty functionality is not supported in BACnet Server.
Any further response would be highly appreciated. !!
Thanks,
Raveesh.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am trying to implement COV(Change Of Value) functionality in Bacnet Server using “bacnet4j” java library.
Scenario (1 ) : Java code to SubscribeCOV to Object “analog input” :
ObjectIdentifier oid = new ObjectIdentifier(ObjectType.binaryInput, remoteDevice.getInstanceNumber());
SubscribeCOVRequest req = new SubscribeCOVRequest(new UnsignedInteger(0), oid, new Boolean(true),new UnsignedInteger(0));
localDevice.send(remoteDevice, req));
But I am getting following exception :
com.serotonin.bacnet4j.exception.ErrorAPDUException: ErrorAPDU(choice=5, errorClass=Object, errorCode=Unknown object)
Scenario (2 ) : Java code to SubscribeCOV to Property “present value” in object ”binary input”:
ObjectIdentifier oid = new ObjectIdentifier(ObjectType.binaryInput, rd.getInstanceNumber());
SubscribeCOVPropertyRequest req=new SubscribeCOVPropertyRequest(new UnsignedInteger(1), oid, new Boolean(true), new UnsignedInteger(0), new PropertyReference(new PropertyIdentifier(85)), new Real((float) 1.23));
localDevice.send(remoteDevice, req));
But I am getting following exception :
com.serotonin.bacnet4j.exception.RejectAPDUException: Reject(originalInvokeId=0, rejectReason=9)
Please correct me, if I am wrong.
Can anyone tell whether BACnetServer supports SubscribeCOV Object & SubscribeCOVProperty ? If yes, then How to do it? or What to modify in the code?
Any further response would be highly appreciated. !!
Thanks,
Raveesh.
Hi,
Sorry for the mistake in above query.
Actually, BinaryInput Object was subscribed in BACnet Server.
Query after correction :
I am trying to implement COV(Change Of Value) functionality in Bacnet Server using “bacnet4j” java library.
Scenario (1 ) : Java code to SubscribeCOV to Object “analog input” :
ObjectIdentifier oid = new ObjectIdentifier(ObjectType.analogInput, remoteDevice.getInstanceNumber()); SubscribeCOVRequest req = new SubscribeCOVRequest(new UnsignedInteger(0), oid, new Boolean(true),new UnsignedInteger(0));
localDevice.send(remoteDevice, req));
But I am getting following exception :
com.serotonin.bacnet4j.exception.ErrorAPDUException: ErrorAPDU(choice=5, errorClass=Object, errorCode=Unknown object)
Scenario (2 ) : Java code to SubscribeCOV to Property “present value” in object ”binary input”:
ObjectIdentifier oid = new ObjectIdentifier(ObjectType.binaryInput, rd.getInstanceNumber()); SubscribeCOVPropertyRequest req=new SubscribeCOVPropertyRequest(new UnsignedInteger(1), oid, new Boolean(true), new UnsignedInteger(0), new PropertyReference(new PropertyIdentifier(85)), new Real((float) 1.23)); localDevice.send(remoteDevice, req));
But I am getting following exception :
com.serotonin.bacnet4j.exception.RejectAPDUException: Reject(originalInvokeId=0, rejectReason=9)
According to my perspective :-
(1) Only binaryInput object is supported in BACnet Server. Rest are not supported.
(2) SubscribeCOVProperty is not supported in BACnet Server.
Please correct me, if I am wrong.
If Subscription of COV is possible in BACnet Server , then Please suggest How to check it ? as writeProperty functionality is not supported in BACnet Server.
Any further response would be highly appreciated. !!
Thanks,
Raveesh.
Have you got suceeded with it?