-
Notifications
You must be signed in to change notification settings - Fork 93
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
UaExpert client not connect #6
Comments
Hello, Quick sanity checklist: The ApplicationDescription structure is just some info to show UA clients what your UA server's purpose is. The GetApplicationDescription method can return a different ApplicationDescription depending on the URL queried by a client. |
Hello,
Yes.
No. I set a breakpoint on GetEndpointDescription but it never comes. I attach a screenshot: https://www.dropbox.com/s/i2e92uk1m229y3s/OPCUA.jpg?dl=0 Thank you. |
It seems that the request for endpoints is failing, which works for me locally. You should try setting a breakpoint on these two methods and stepping through: Line 1097 in 019448e
Line 1058 in 019448e
These two message types can be handled without an established session and are used for UA discovery. |
Hello, I have set a breakpoint in those functions but nothing happened. Please, Could you try UAExpert client with your server and make sure it works, and if so, give me all the steps to follow?. I'm desperate because nothing works for me. Thank you very much. |
This is very strange because when I run TestServer, I am able to connect fine with UaExpert. I am running uaexpert-bin-win32-x86-vs2008sp1-v1.3.0-201 locally. I just add opc.tcp://127.0.0.1:7718 under Custom Discovery and the endpoints are listed properly. Could you run UaExpert on one computer and your server on another, and use Wireshark to capture traffic on either end? Zip and attach the captured traffic here. This will show me the messages sent by UaExpert and the library's responses so I can look for any issues. NetDispatcher handles incoming messages from connected clients, so if those are not being triggered then something is definitely wrong. |
Hello, I came across the same problem, and I found my SecurityPolicy is "Invalid" when I set a breakpoint on I'm using UaExpert 1.5.1 331, and did as @nauful but showed nothing, I'm not sure it is the reason. I tried the UaExpert1.2(I could not find the 1.3), then I got the list of SeverNode. |
Hello, I just checked it and I have the same problem as @loongtail. @loongtail version 1.2 worked for you then?. Where did you download it?. I dont find it. Thanks. |
The default security policy should be http://opcfoundation.org/UA/SecurityPolicy#None If UaExpert expects something different now, I'd like to find out what it's doing. Could you please capture the Wireshark traffic? |
Hello, I have tried version 1.2 of UAExpert and I did not find any problem either. I have seen that you have used version 1.3 of UAExpert. I have had problems with later versions, 1.5 (@loongtail) and 1.4.4 (me) which is the one I am currently using. I think if you directly download the latest version of UAExpert you will find the same problems that we have had. This problem that I have mentioned also happens to us with another SCADA of a client so it is not an isolated case or referred only to UAExpert. Best regards. |
I only see the connection request in this Wireshark capture, not the response. I don't have any insights into what's changed in UaExpert as a client, it's sending the same OpenSecureChannel message as before. Perhaps it now expects something differently, which breaks compatibility with most existing UA servers. |
I don't know how to use the wireshark correctly, maybe I filtered by wrong key, whatever, thank you for your support :) |
Happy to help, I just don't see anything that would cause an issue being returned. I don't have an account to download new OPC Foundation tools, will investigate further when I get the chance to. |
WS&UAExpert1.51.zip |
I have found one bug in the OPC Foundation's current client library: maximum chunk size of 64k causes an exception (their client tries to read 65536 from a buffer of 65535). As a workaround (for compatibility... a never-ending game of whack-a-mole), I am updating DispatchHello with this local config for transmission limits:
UaExpert 1.5.1 still has an issue, continuing to investigate. |
Thank you very much for your support. We await more news from you. Thanks again. |
UaExpert 1.5.1 seems to have raised the minimum acceptable token lifetime, so changing the default from 1 minute to 10 minutes has fixed the problem. Updated source with two commits, one for NetDispatcher with the change above and one in Server for this:
Please take a look and let me know if it works, then you can close the issue. |
Hi, I was just trying UAExpert 1.5.1.311 too at the same time you commited changes : now it is ok on my side despite of the messages that pops up in the log window. |
Thanks a lot, it works now. |
Hello, thanks a lot!!!. It works now, yes. Thank you very much for your support. I close the issue, thanks again. |
Welcome, feel free to ask if you have any questions or other problems. |
Hi, I have a problem using TestServer and trying to connect the UaExpert client. I use the TestServer example provided in the repository as it is and I can't connect to that client. I would appreciate if you could show me how to configure the connection for that client or if you could explain to me the new ApplicationDescription () function.
Thank you.
The text was updated successfully, but these errors were encountered: