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.
Non unique Object Names???
-
Hello,
I create and initiate a device with multiple objects with the same name.
No problems, no exceptions, everything works "fine".
But according to the BACnet standard, object names MUST be unique.Am I missing something?
Thanks a lot in advance.
-
As far as I can tell it is the BACnet Object Identifier that must be unique. Although I have noticed that some third party BACnet devices get a bit confused when they see objects that have the same name. Although bacnet4j only cares about the object identifier being unique.
I hope that helps
-
Yes, it helps, thanks a lot for your response.
I see...
Well, actually, according to the standard, the object name MUST be unique:
http://www.bacnet.org/Bibliography/ES-7-96/ES-7-96.htm
(This is not the specification document, but I have read the same in many BACnet sources)
I don't doubt that there may be good arguments why this is not necessary or maybe even a bad strategy.
However, strictly speaking, if we want to say that bacnet4j implements the BACnet specification, I think it should ensure the uniqueness of the object name. -
I've added a check for name uniqueness upon adding a new local object to the local device (check into CVS). Note that uniqueness could still be violated by changing the name of an existing object though.
-
Is then the same true when changing an ObjectIdentifier? Or is the latter simply not writable?
Thanks + regards!
-
Presumably yes, you can change the oid, although oids themselves are immutable.