Hi Support Team,
As CTT Test Spec. Base Info Diagnostics --> 008 (or 009)
Description: Invoke a Publish() call and then read ServerDiagnostics.SubscriptionDiagnosticsArray.
Expect result: Service/operation results are `Good`. A data-change notification is received (initial values). The publishRequestCount, dataChangeNotificationsCount, notificationsCount, and unacknowledgedMessageCount increases by 1.
As we monitor the node SubscriptionDiagnosticsArray with UAExpert.
the value unacknowledgedMessageCount doesn't increase in UaCppServer.
But it does increase in Fundation ReferenceServer.
what's wrong with it?
unacknowledgedMessageCount issue
Moderator: uasdkcpp
- Support Team
- Hero Member
- Posts: 3068
- Joined: 18 Mar 2011, 15:09
Re: unacknowledgedMessageCount issue
Hello KnightChang,
how do you test this?
If you use a client like UaExpert you can't really observe that since the Messages are immediatly Acknowledged.
how do you test this?
If you use a client like UaExpert you can't really observe that since the Messages are immediatly Acknowledged.
Best regards
Unified Automation Support Team
Unified Automation Support Team
-
- Hero Member
- Posts: 32
- Joined: 19 Feb 2016, 09:01
Re: unacknowledgedMessageCount issue
Hi Support Team,Support Team wrote:Hello KnightChang,
how do you test this?
If you use a client like UaExpert you can't really observe that since the Messages are immediatly Acknowledged.
1. open OPC fundation ReferenceServer
2. monitor node Server/ServerDiagnostics/ServerDiagnosticsArray by UaExpert
3. expand SubscrptionDiagnosticsArray
you can find UnacknowledgedMessageCount = 1 in the subitem.
- Support Team
- Hero Member
- Posts: 3068
- Joined: 18 Mar 2011, 15:09
Re: unacknowledgedMessageCount issue
I see but why do you think the value should be 1?
What happens in the C++ server:
Time -150ms: Server Samples the value for the unacknowledgedMessageCount (count=0)
Time 0ms: Server sends PublishResponse A to the Client and increases the UnacknowledgedMessageCount (count=1)
Time 1ms: Client Receives the PublishResponse A and immediatly sends a new PublishRequest that acknowledges the PublishResponse A
Time 2ms: Server Receives the acknowlegement and decreases the UnacknowledgedMessageCount (count=0)
Time 150ms: Server Samples the value for the unacknowledgedMessageCount (it's still 0)
What happens in the C++ server:
Time -150ms: Server Samples the value for the unacknowledgedMessageCount (count=0)
Time 0ms: Server sends PublishResponse A to the Client and increases the UnacknowledgedMessageCount (count=1)
Time 1ms: Client Receives the PublishResponse A and immediatly sends a new PublishRequest that acknowledges the PublishResponse A
Time 2ms: Server Receives the acknowlegement and decreases the UnacknowledgedMessageCount (count=0)
Time 150ms: Server Samples the value for the unacknowledgedMessageCount (it's still 0)
Best regards
Unified Automation Support Team
Unified Automation Support Team
-
- Hero Member
- Posts: 32
- Joined: 19 Feb 2016, 09:01
Re: unacknowledgedMessageCount issue
Dear Support Team,Support Team wrote:I see but why do you think the value should be 1?
What happens in the C++ server:
Time -150ms: Server Samples the value for the unacknowledgedMessageCount (count=0)
Time 0ms: Server sends PublishResponse A to the Client and increases the UnacknowledgedMessageCount (count=1)
Time 1ms: Client Receives the PublishResponse A and immediatly sends a new PublishRequest that acknowledges the PublishResponse A
Time 2ms: Server Receives the acknowlegement and decreases the UnacknowledgedMessageCount (count=0)
Time 150ms: Server Samples the value for the unacknowledgedMessageCount (it's still 0)
Because CTT Test profile reporting: Base Info Diagnostics --> 008, it doesn't point out the value unacknowledgedMessageCount should be decreased.
And we can also see the result difference between two servers (uacppserver & ReferenceServer).
- Support Team
- Hero Member
- Posts: 3068
- Joined: 18 Mar 2011, 15:09
Re: unacknowledgedMessageCount issue
The unacknowledgedMessageCount is decreased whenever a message is acknowledged.OPC Specification Part 5:
unacknowledgedMessageCount: The number of unacknowledged messages saved in the republish
queue.
Best regards
Unified Automation Support Team
Unified Automation Support Team