ANSI C OPCUA demo server

Questions regarding the use of the ANSI C SDK for Server or Client development or integration into customer products ...

Moderator: uasdkc

Post Reply
gjevremovic
Jr. Member
Jr. Member
Posts: 1
Joined: 17 Nov 2016, 12:17

ANSI C OPCUA demo server

Post by gjevremovic »

Hi,
I have one issue that might be server side bug.
I am using latest release of prosys java lib and for test I am using UaAnsiC demo server (v1.7.0).
The issue is related to subscription to String nodes.
I have simple app which add 2 nodes to subscription. One is LocalizedText and another is of type String.
Steps:
1) start UaAnsiC demo server
2) start app
I see in log that nodes are added to subscription and subscribed but onDataChange() returns value only for LocalizedText.
Initial publish event (first after subscribe) for String node is missing:
16.11.2016 14:41:57,958 DEBUG TSubscriptionNotificationListener.onDataChange – Monitored data item ns=4;s=Demo.Static.Scalar.LocalizedText has changed, new value () kkkknnn
16.11.2016 14:41:57,958 DEBUG TSubscriptionNotificationListener.onDataChange – NodeReference nsuri=http://www.unifiedautomation.com/DemoSe ... alizedText
16.11.2016 14:41:57,958 DEBUG TSubscriptionNotificationListener.onDataChange – Node element class class org.opcfoundation.ua.builtintypes.LocalizedText
16.11.2016 14:41:57,959 DEBUG TSubscriptionNotificationListener.onDataChange – Variable nsuri=http://www.unifiedautomation.com/DemoSe ... alizedText found in cache.
3) Now I closed the app.
4) I entered empty string to String node by using UaExpert client (just enter in the field of DataAccess view)
5) Start app again
Now in log I see it is subscribed to both nodes and listener returns data change for both:
16.11.2016 16:24:11,943 DEBUG TSubscriptionNotificationListener.onDataChange – Monitored data item ns=4;s=Demo.Static.Scalar.String has changed, new value
16.11.2016 16:24:11,943 DEBUG TSubscriptionNotificationListener.onDataChange – NodeReference nsuri=http://www.unifiedautomation.com/DemoSe ... lar.String
16.11.2016 16:24:11,944 DEBUGTSubscriptionNotificationListener.onDataChange – Node element class class java.lang.String
16.11.2016 16:24:11,944 DEBUG TSubscriptionNotificationListener.onDataChange – Variable nsuri=http://www.unifiedautomation.com/DemoSe ... lar.String found in cache.
16.11.2016 16:24:11,945 DEBUG TSubscriptionNotificationListener.onDataChange – Monitored data item ns=4;s=Demo.Static.Scalar.LocalizedText has changed, new value null
16.11.2016 16:24:11,945 DEBUG TSubscriptionNotificationListener.onDataChange – NodeReference nsuri=http://www.unifiedautomation.com/DemoSe ... alizedText
16.11.2016 16:24:11,945 DEBUG TSubscriptionNotificationListener.onDataChange – Node element class class org.opcfoundation.ua.builtintypes.LocalizedText
16.11.2016 16:24:11,945 DEBUG TSubscriptionNotificationListener.onDataChange – Variable nsuri=http://www.unifiedautomation.com/DemoSe ... alizedText found in cache.

It looks that for String nodes in UaAnsiC demo server just after subscription there is publish skip. But that happen only when you have initial server state.
Could you please check?
BR,
gjevremovic

User avatar
Support Team
Hero Member
Hero Member
Posts: 3064
Joined: 18 Mar 2011, 15:09

Re: ANSI C OPCUA demo server

Post by Support Team »

Hello gjevremovic,

we could not reproduce the issue, the AnsiC Demoserver sends initial data changes for all nodes that are monitored. Please create a Wireshark or Compliance Test Tool recording of the problem and send it to support@unified-automation.com for us to further analyze the issue.

Best Regards,
Unified Automation Support Team
Best regards
Unified Automation Support Team

Post Reply