-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OPCUA CLIENT]: "UA_Client_getEndpoints" return "BadSecureChannelIdInvalid" #2844
Comments
@elitezhu in both cases, open62541 client as well as UAExpert client, can you share the Wireshark trace? Regards, |
@opcua-tsn-team-kalycito In the customer's plant, there's 3 same type PLCs. And two is existed, another is new added. The open62541 can't get the endpoint from the new one, but other two is OK. For the new one, UaExpert and C# core OPCUA lib can get the endpoint well. It's very strange. Actually the PLC is working in the customer's plant, so it's hard to get the Wireshark trace directly. I have asked the customer send me this PLC to test. And Could you give me some hints? |
@elitezhu We understand your constraint in sharing Wireshark traces. While we wait to receive your traces, could you share your open62541 client log with log configuration set at UA_LOGLEVEL=100 for both cases, i.e. the old PLC (working) and new PLC (not-working). Regards, |
@opcua-tsn-team-kalycito , I have captured the raw telegram via wireshark, please have a check. |
@opcua-tsn-team-kalycito And this is the uaexpert telegram with the PLC via wirshark. |
@elitezhu, Thanks for the Wirehark trace, can you also share the client logs with log configuration set at UA_LOGLEVEL=100 for open62541 client in both cases? One case where open62541 client is connecting successfully with the older PLC and the other case where open62541 client is throwing error code "BadSecureChannelIdInvalid" with the newer PLC. Regards |
The only notable difference i see is that the open62541 client sends null array instead of empty arrays. |
@mlgiraud How can I change the arrays to empty? which function ? I can test if it works. |
@mlgiraud I have update the array size to 0, and the telegram looks almost the same as the one of UaExpert, but it still fails. Very Strange. B&R_PLC_Open62541_Telegram_2019_07_04.zip @opcua-tsn-team-kalycito Sorry, I can't get the debug log of the old PLCs, Here is the log of the newer one. Please have a check. |
Did you find a solution? We have a similar problem with a B&R X20 PLC and BadSecureChannelIdInvalid. |
I checked the issue with engineer from B&R, obviously, it comes the server of B&R, and they just said they would keep solving. But they didn't reply me until now. So you'd better ask some support from B&R. |
Description
I use open6541 as OPCUA client, and connect a B&R X20 PLC which acts OPCUA server.
I refer the example of https://github.com/open62541/open62541/blob/master/examples/client.c
But when it starts to get the endpoint, the API, "UA_Client_getEndpoints" return "BadSecureChannelIdInvalid". I also use the UAExpert to connect the server, it's OK. Besides, I also use the OPCUA lib from C# core to do the same thing, it's also OK.
So I'm wondering what's wrong.
Background Information / Reproduction Steps
Used CMake options:
Checklist
Please provide the following information:
UA_LOGLEVEL
set as low as necessary) attachedThe text was updated successfully, but these errors were encountered: