I use UaExpert (version 1.2.2 175) to test server redundancy (UA SDK C++ source 1.40).
But the server redundancy can not work.
My redundancy architecture uses two UA Demo Server(Server1 and Server2).
After the UaExpert connect to Server1,It can not get correct Serveruri's value at ServeruriArray in ServerRedundancy object.
When I terminate Server1,the UaExpert does not connnect Server2.
How can I solve it.
This is my setting data in ServerConfig.xml
in Server1
Code: Select all
<!--Server instance information defined for the server installation.
[NodeName} can be used as place-holder for the computer name. -->
<ServerUri>urn:[NodeName]:UnifiedAutomation:UaDemoserver:Server1</ServerUri>
<ServerName>UaServerCpp_1@[NodeName]</ServerName>
Code: Select all
<!--Server instance information defined for the server installation.
[NodeName} can be used as place-holder for the computer name. -->
<ServerUri>urn:[NodeName]:UnifiedAutomation:UaDemoserver:Server2</ServerUri>
<ServerName>UaServerCpp_2@[NodeName]</ServerName>
Code: Select all
<RedundancySettings>
<!--Redundancy support options are None, Cold, Warm, Hot and Transparent. Transparent requires special module. -->
<RedundancySupport>Hot</RedundancySupport>
<!--List of server URIs for the servers in the NonTransparent redundant set.
<ServerUri>urn:SUN-NB:UnifiedAutomation:Server1</ServerUri>
<ServerUri>urn:SUN-PC:UnifiedAutomation:Server2</ServerUri>
</RedundancySettings>
<AdditionalServerEntries>
<ApplicationDescription>
<ApplicationUri>urn:UnifiedAutomation:UaDemoserver</ApplicationUri>
<ProductUri>urn:UnifiedAutomation:RedundancySample</ProductUri>
<ApplicationName>C++ SDK UaDemoserver</ApplicationName>
<ApplicationType>Server</ApplicationType>
<DiscoveryUrl>opc.tcp://SUN-NB:48010</DiscoveryUrl>
<DiscoveryUrl>https://SUN-NB:48011</DiscoveryUrl>
</ApplicationDescription>
<ApplicationDescription>
<ApplicationUri>urn:UnifiedAutomation:UaDemoserver</ApplicationUri>
<ProductUri>urn:UnifiedAutomation:RedundancySample</ProductUri>
<ApplicationName>C++ SDK UaDemoserver</ApplicationName>
<ApplicationType>Server</ApplicationType>
<DiscoveryUrl>opc.tcp://SUN-PC:48010</DiscoveryUrl>
<DiscoveryUrl>https://SUN-PC:48011</DiscoveryUrl>
</ApplicationDescription>
</AdditionalServerEntries>
Sun