cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

QtOpcUa: Error when attempting to monitor OPC UA node on ctrlX CORE

QtOpcUa: Error when attempting to monitor OPC UA node on ctrlX CORE

bostroemc
New Contributor

Does anyone have experience with the Qt OPC UA  Viewer application given here?

With this application, using the open62451 backend, I am able to connect to the OPC UA server on ctrlX CORE and read nodes, but I am unable to enable monitoring.  Typical log output is:

Warning: Could not add monitored item for QOpcUa::NodeAttribute::Value of node "ns-2;s=plc/app/Application/sym/UserVarGlobal/Value" : BadInternalError

This issue is not present on other OPC UA servers that I have tried, including the server on XM22 (14VRS firmware), the sample OPC UA C++ Demo Server (Windows) available from Unified Automation, and the public simulation server available here from Prosys.  In these cases I can connect and enable monitoring successfully.  See attached videos.

UaExpert connects and monitors nodes on ctrlX CORE successfully and I have tried to implement the settings used there in my Qt OPC UA Viewer source -- all to no avail.  See images below.

uaexpert_settings.png

QOpcUaMonitoringParameters.png

The ctrlX CORE server settings and debug output verifying the monitoring parameters are attached. 

If anyone can shed light on this issue, it would be greatly appreciated. 

Qt 6.4.2; open62451 Git-Revision: v1.1.2-8-ge941fc23; OPC UA Server app 1.18.1

4 REPLIES 4

smueller
Established Member

Hi,

this issue was not known before. To analyse the problem we require in best case a wireshark record (with non-encrypted traffic) and also a trace records of ctrlX OPC UA Server. Before activating trace please set in DataLayer the opcuaserver/trace-configuration/facilicty-mask to 8388599 and the opcuaserver/trace-configuration/trace-level to 511. To activate trace please set trace/rexroth-opcua-server/units to (true,true,true), before starting the connecting with the client. After the try to monitor, just download the logbook over ctrlX WebUi using the following configuration:

smueller_0-1675683752395.png

 

Please provide the downloaded logbook and wireshark record here or directly as private message to me.

Thanks

smueller

Requested trace and Wireshark capture files are attached.

Some additional info: I had created a user token for Policy=NONE.  Deactivating this and reactivating the user token with Policy=BASIC256SHA256 seems to have solved the problem.  See attached video.

Screenshot from 2023-02-06 10-34-51.png

smueller
Established Member

Hi,

thanks for your additional information. That was the hot tip. We can reproduce the issue for connections using None UserName Token. That is independend from the client. In this case no subscription are possible. Please notice that the most of the client using the best encrypted UserName Token, even you select a none secure endpoint. In this case it is possible to subscribe sucessful.

We already identify the bug and will bring a fix in the next release.

Thanks for your bug report and your investigation.

smueller

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist