15:49, EEST
March 16, 2017
HI,
I’ve seen something strange at an OpcUa server…. in the namespace table there is the same namespace name used for different indexes.
NamespaceTable
[0] http://opcfoundation.org/UA/
[1] urn:com01/OpcUaServer
[2] urn:com01/OpcUaServer
I could not find an answer in the OpcUa reference, but as I know, namespaces should be indentified by it’s name and not by index (because the index can change after a server restart). So in the case above it is impossible to indentify a node using the namespace name, because based on the namespace name I will have two different indexes.
In this particular case there are also two Nodes with the same name but different namespace, which makes it really impossible to identify the node by using the namespace name.
ns=1;s=MyNode
ns=2;s=MyNode
So, the big questions is if it is allowed to have duplicate namespace names in the namespace table and if yes how to deal with it for identifying the nodes using the namespace name and the NodeId?
16:55, EEST
April 3, 2012
Hi,
Each entry must be unique, thus that is not a valid OPC UA server. Pretty much a no can do situation. https://reference.opcfoundation.org/v104/Core/docs/Part5/6.3.1/:
“NamespaceArray defines an array of namespace URIs. This Variable is also referred as namespace table. The indexes into the namespace table are referred to as NamespaceIndexes. NamespaceIndexes are used in NodeIds in OPC UA Services, rather than the longer namespace URI. Index 0 is reserved for the OPC UA namespace, and index 1 is reserved for the local Server.”
Though… technically that part doesn’t say unique. But that can be inferred from the usage https://reference.opcfoundation.org/v104/Core/docs/Part3/8.2.2/
“Namespace URIs, like Server names, are identified by numeric values in OPC UA Services to permit more efficient transfer and processing (e.g. table lookups). The numeric values used to identify namespaces correspond to the index into the NamespaceArray. “
Basically the index is just an optimization thing, thus an uri cannot have 2 indexes.
17:46, EEST
March 16, 2017
14:16, EET
March 16, 2017
Just to give here also the information….
Namespace URIs shall be unique. OpcFoundation will add an explicit statement to the specifiaction and will also add it as test case to the complience tests.
Most Users Ever Online: 1919
Currently Online:
45 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 726
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7, franciscagrimwad, adult_galleryModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1