Data Change Notification Issue Query|OPC UA Standard|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Data Change Notification Issue Query
Avatar
Mohit Agarwal
Member
Members
Forum Posts: 57
Member Since:
10/18/2019
sp_UserOfflineSmall Offline
1
11/21/2024 - 13:47
sp_Permalink sp_Print
Hi,
 
Can you please help with the following scenario?
 
We have an OPC UA server reporting Result structure as per our companion standard. Result is reported in two ways:
 
  1. Result Variable in address space and it's reported as Data Change Notification 
  2. Result event and it's reported as Event notification 
 
Use Case: For a scenario when one operations executed, we send three result messages as fast as possible. Basically 3 messages pushed to Data Change Notifications and Event Notification.
 
Problem: Events are working fine as client gets 3 event messages. But Result variable gets only the 3rd message which is the latest one. The time interval between these messages is as soon as possible and is around 5 milliseconds.
 
I tried increasing Queue Size , setting sampling interval to 1 , etc.
 
When checked with Wireshark, it shows only one message in the publish response.
 
Can you please help in troubleshooting it as I verified all basic options of OPC UA
Avatar
Randy Armstrong
Admin
Forum Posts: 1568
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
11/23/2024 - 02:42
sp_Permalink sp_Print

Did you build the Server?

The ability to detect a data change depends on the architecture of the server. Some servers may not be true exception based.

Server may not be detecting a change in the timestamp so it assumes the change is a duplicate.

If there are multiple threads involved the "older" change could arrive before the newer change and be dropped.

Can you slow down the changes see if it works?

Avatar
Mohit Agarwal
Member
Members
Forum Posts: 57
Member Since:
10/18/2019
sp_UserOfflineSmall Offline
3
11/23/2024 - 12:23
sp_Permalink sp_Print

Hi Randy,

Thank you very much for the response.

I developed the OPC UA Server using a commercial SDK and am using the relevant SDK API to update the Data Source value.

The timestamp between three Results is around 3-5 milliseconds and all three values are generated one after one as I am simulating those in the code for testing.

I will try to check if slowing down works, but even if it does, I was confused that the same thing was working with Event Notifications but was only a problem in Data Change Notifications even after setting a very low sampling and publishing interval on the Server.

Avatar
Randy Armstrong
Admin
Forum Posts: 1568
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
11/23/2024 - 16:29
sp_Permalink sp_Print

DataChanges are different from events because only changes are reported. This means you have different logic executing which could mean different behavior in the edge cases.

You should set the SamplingInterval to 0. If accepted the Server is treating data changes like events. If it is raised to some no zero value the Server is telling samples that come too fast will be dropped.

Avatar
Mohit Agarwal
Member
Members
Forum Posts: 57
Member Since:
10/18/2019
sp_UserOfflineSmall Offline
5
11/24/2024 - 07:28
sp_Permalink sp_Print

Thank you Randy. When i added the delay of 50 ms, it worked.

Sampling Interval set to 0 even in the SDK settings did NOT work. For time being, I will use 50 ms as the elapsed time for data change of same Variable.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online: Kengo Iwamoto
Guest(s) 14
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1435
Posts: 4862