opc-uaopen62541

open62541 Client is disconnect from OPC-UA Server


first thanks to read this question

I have some problem about open62541 disconnect issue

I checked that the connection is lost every same cycle.

cycle time is 12min 40sec.

I checked connect status from this code

UA_ReadResponse response = UA_Client_Service_read(client, request);

if (response.responseHeader.serviceResult != UA_STATUSCODE_GOOD)
{
    return 0;
}

response.responseHeader.serviceResult isn't UA_STATUS_GOOD

response.responseHeader.serviceResult is UA_STATUS_GOOD before 12min 40sec

I added a temporary reconnection process and noticed that a message like the picture

below occurs every 12 min and 40 sec.

Reconnect Picture

And i check OPC-UA Sever

I used to B&R PLC.

The OPC-UA server role is played by B & R PLC and the settings are as shown below.

enter image description here

I suspect that I have nothing to do with setting up and disconnecting from B & R.

I want to find a solution or suspected part of this problem.

Please provide any additional information or estimates that may be needed for review.

Thanks


Solution

  • I solve this problem myself

    I tested other open62541 version.

    It is work. Just changed open62541