-
Notifications
You must be signed in to change notification settings - Fork 410
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
[Bug]: OPCUA server and OPCUA failed to read data #1705
Comments
I think the reson is in the opcua-server.
|
The incompatible datatype exception means that value you expect to be a float is encoded differently. Try first switching |
@kdxq Can you try |
@splatch do you mean like this? still failed |
@splatch did you mean like this? still failed |
Hi,@ottlukas ,@splatch,I have tested the opcu ua server from 0.10.0 to 0.13.0, but none of them were able to read data, and none of the data types worked. Do you have any other testing suggestions? Additionally, the testing sources for the OPCUA I am using are publicly available online (https://github.com/node-opcua/node-opcua/wiki/publicly-available-OPC-UA-Servers-and-Clients). Can you provide some guidance on how to conduct the testing,Or publish a config. xml file that you believe can correctly read and write data related to OPC UA configuration? I want to make plc4x better and more stable. |
@kdxq I’m going to work on some integration tests which will need working opc ua server. I’ll try to pull this issue as part of test setup. |
@kdxq I've had a look on behavior of starfive demo server and there is something odd in there. I've found that with 0.13 anonymous authentication differs between clients. We do not supply client nonce nor certificate for create session request if security mode is NONE. I'll try to fix connectivity issue first and then see if readout issue still remains. |
Amended selection logic made use of streams with side effects. When server had more than one endpoint and these endpoints had same policy (i.e. anonymous) with different identifiers (i.e. anonymous_1, anonymous_2), it lead to wrong activate session requests which mixed endpoint and user token policy. Updated logic removes side effects and makes sure that only policies of matched server endpoint are tested against client configuration. Closes #1705. Signed-off-by: Łukasz Dywicki <[email protected]>
Amended selection logic made use of streams with side effects. When server had more than one endpoint and these endpoints had same policy (i.e. anonymous) with different identifiers (i.e. anonymous_1, anonymous_2), it lead to wrong activate session requests which mixed endpoint and user token policy. Updated logic removes side effects and makes sure that only policies of matched server endpoint are tested against client configuration. Closes #1705. Signed-off-by: Łukasz Dywicki <[email protected]>
@kdxq I've pushed a fix which fixed compatibility issue with demo server from starfive / node-opcua. Please test current develop and re-open this issue in case if bug you spotted still remains. The timeout errors you was getting was likely caused by client not really connecting to demo server, and so making it impossible to fetch tag value. |
What happened?
uaExpert can read data,just like follow;
I use opcua-server,config as follow:
and the opcua server init. seems ok.
and use opcua to read data from opcua-server, code as follow
but the FanSpeed return Null
what's wrong? @splatch please give me some suggest, waiting for your replay, thank you very much!
Version
v0.12.0
Programming Languages
Protocols
The text was updated successfully, but these errors were encountered: