OPCFoundation / UA-.NETStandard-Samples

Other
264 stars 188 forks source link

Siemens TP1200 v14 -- OPCUA Stack v1.5.374.126 #645

Open MoxxxIT opened 1 week ago

MoxxxIT commented 1 week ago

Type of issue

Current Behavior

OpcFoundation version:1.5.374.126 DataAccess Client, after success connection to OPCUA Server, on variables subscription, with:


ManufactureName: Siemens AG ProductName: WinCC RT Comfort Panel SoftwareVersion: V14 ProductUri :urn:Siemens:Automation:WinCC:PanelRT


reports this errors in the log file (Quickstarts.DataAccessClient.log.txt, TraceMasks:1):

11/08/2024 08:08:14.560 A smaller minLifetimeInterval 10000ms than session timeout 60000ms configured for subscription 0. 11/08/2024 08:08:14.562 Lifetime 10000ms configured for subscription 0 is less than session timeout 60000ms. 11/08/2024 08:08:15.626 Unexpected error processing response. BadDecodingError 'Cannot determine length of unknown extension object body with type 'i=811'.'

11/08/2024 08:08:15.636 Publish #2, Reconnecting=False, Error: Unexpected error processing response. 11/08/2024 08:08:15.638 PUBLISH #2 - Unhandled error BadDecodingError during Publish. BadDecodingError 'Unexpected error processing response.'

11/08/2024 08:08:21.921 Unexpected error processing response. BadDecodingError 'Cannot determine length of unknown extension object body with type 'i=864'.'

11/08/2024 08:08:28.812 Unexpected error processing response. BadDecodingError 'Cannot determine length of unknown extension object body with type 'i=811'.'

11/08/2024 08:08:28.812 Publish #15, Reconnecting=False, Error: Unexpected error processing response. 11/08/2024 08:08:28.812 PUBLISH #15 - Unhandled error BadDecodingError during Publish. BadDecodingError 'Unexpected error processing response.'

11/08/2024 08:08:29.824 Unexpected error processing response. BadDecodingError 'Cannot determine length of unknown extension object body with type 'i=811'.'

11/08/2024 08:08:29.824 Publish #16, Reconnecting=False, Error: Unexpected error processing response. 11/08/2024 08:08:29.825 PUBLISH #16 - Unhandled error BadDecodingError during Publish. BadDecodingError 'Unexpected error processing response.'

11/08/2024 08:08:30.834 Unexpected error processing response. BadDecodingError 'Cannot determine length of unknown extension object body with type 'i=811'.'

11/08/2024 08:08:30.835 Publish #17, Reconnecting=False, Error: Unexpected error processing response. 11/08/2024 08:08:30.835 PUBLISH #17 - Unhandled error BadDecodingError during Publish. BadDecodingError 'Unexpected error processing response.' ...............................

Expected Behavior

No response

Steps To Reproduce

1) Compile the Samples Stack; 2) Connect to Siemens TP1200 HMI with software; 3) Subscribe to a variable.

Environment

- OS:Windows 10/11
- Environment:Microsoft Visual Studio Community 2022 (64 bit) Versione 17.11.5
- Runtime:.NET 4.8.1
- Nuget Version:
- Component:Opc.Ua.Core
- Server:Siemens AG WinCC RT Comfort Panel V14
- Client: Quickstarts.DataAccessClient

Anything else?

No response

MoxxxIT commented 6 days ago

Found it on another post: "The problem seems to be that some servers (in my case a very old version of a Siemens OPCUA server running on a HMI Panel) do not compute the length of the DataChangeNotification body as it can be decoded without the length (it is not free-length, and UAExpert has no issue in decoding it). These servers just fill the field with 0xFFFFFFFF"