12:37, EEST
February 10, 2021
Hello, i was using the UaSdkCClient 1.9.1 version on linux without any problem but now when i tried to upgrade to the 1.9.2 version, i can’t even connect me to the PLC. The errror i get is :
*****************************************************
405|W|96358280* ProcessOpenSecureChannelResponse: revised lifetime 3600000 below limit 4294967040.
.405|W|96358280* ProcessOpenSecureChannelResponse: Handling error 0x80AB0000.
:OPC_ConnectError_CB:
: ServiceType: OpenSecureChannel
: Error: 0x80ab0000
: Overridable: false
*****************************************************
even after several reconnection attempts the same errors appears.
To fix it, i tried these 3 methods :
1) I change the SecureChannelLifetime (by example to 4294967041) in the client_settings.conf file but the errors appears again : “revised lifetime 3600000 below limit 4294967040.”
2) I manually change the SecureChannelLifetime of the UaClient_Session but the errors appears again : “revised lifetime 3600000 below limit 4294967040.”
3) I manually change the SecureChannelLifetime of theUaClient_Configuration but the errors appears again : “revised lifetime 3600000 below limit 4294967040.”
I realized that no matter where I try to change the SecureChannelLifetime (to make it superior than the limit 4294967040 mentioned in the error message), my change does not take effect and it is always the value 3600000 that remains. Can you tell me where to really modify it or how to solve my problem please.
Thanks
14:07, EEST
Moderators
February 1, 2019
Hello,
The default value for “SecureConnection_MinRevisedSecureChannelLifetime” is 300000 in the client config file and in the SDK:
/** @brief The minimum lifetime of a secure channel security token in milliseconds. */
#ifndef OPCUA_SECURITYTOKEN_LIFETIME_MIN
1. define OPCUA_SECURITYTOKEN_LIFETIME_MIN 300000
#endif /* OPCUA_SECURITYTOKEN_LIFETIME_MIN */
/** @brief The minimum revised lifetime of a secure channel security token in milliseconds (for clients). */
#ifndef OPCUA_SECURITYTOKEN_REVISED_LIFETIME_MIN
1. define OPCUA_SECURITYTOKEN_REVISED_LIFETIME_MIN OPCUA_SECURITYTOKEN_LIFETIME_MIN
#endif /* OPCUA_SECURITYTOKEN_REVISED_LIFETIME_MIN */
Also, there would be fallback to default value 300000 incase “SecureConnection_MinRevisedSecureChannelLifetime” is set to -1 in the configuration.
The reported error indicates that “SecureConnection_MinRevisedSecureChannelLifetime” is set to invalid value “4294967040”.
So the changes made in the default configuration should be checked to figure out where “4294967040” comes from because it does not come from the SDK.
Most Users Ever Online: 1919
Currently Online:
36 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 726
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7, franciscagrimwad, adult_galleryModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1