Teilen Sie Ihre Erfahrunge und Wünsche mit uns und anderen Usern!

0
Not a bug

Interface losing connection after certain amount of time

ThomasDM 9 months ago in OPCUA4Unity updated by Support 9 months ago 3

When connecting the OPCUA_Interface with a PLC I lose connection with the PLC after a certain amount of time. One kicks me out after 2 min, another after 15 min (2 different connections).

The interface seems not to notice the disconnect because the value of isConnected in the interface stays on true but if I check the connected clients to the PLC the interface is gone (which was there on startup).

Reading a value after the disconnect on node level gives me the status value: Connection error

I import the nodes with the editor button but remove all nodes I dont need. And I dont continuously get new values on the nodes I keep. I can have the same values (no changes) for long periods of time.

Does the Interface only keeps the connection alive if the values continuously update or is something else going wrong?

Answer
Support 9 months ago

Yes I understand but the used Library gives us no direct information about disconnection events. And I don't know exactly in your case who is closing the communication when nothing happens - is it the client or the server. I am closing this issue because for the moment we don't have a better solution.

0
Not a bug

Organizes Reference Infinity Loop Asyncua

konrad ebel 28 9 months ago in OPCUA4Unity updated by Support 8 months ago 6

When loading the nodes from a asyncua server with an organizes refrence the loading ends in an infinity loop. I have the organizes refrence assigned to an object (against the standard), i dont know if this is the problem. When i use the client in the documentation to test the connection the client is working properly.

0
Declined

Asyncua Unsupported Communciation

konrad ebel 28 9 months ago in OPCUA4Unity updated by Support 8 months ago 3

I get an error when trying to connect to an asyncua server. The client OPCUA4Unity is loading infinite and the Error Requested Value False was not found shows up:

asyncua.ua.uaerrors._base.UaError: Unsupported message type b'\x16\x03\x01'

0
Not a bug

License: The evaluation period is expired

ThomasDM 10 months ago in OPCUA4Unity updated by Support 10 months ago 5

When using your plugin I first ran into the problem that I had too many subscriptions for 1 PLC so I changed the OPCUAConnection class to the native OpcClient connection so I could use the Opc.UaFx.Client approach of adding multiple nodes to 1 subscription instead of making 1 subscription for every node.
After I did this I started getting the following error:

LicenseException: The evaluation period is expired, you need to purchase a license to take further use of the OPC UA Framework Advanced. Please contact your support!

What should I do in order to fix this error, cause the connection stops working after a while.

0
Not a bug

Subscription not working

Elio 10 months ago in OPCUA4Unity updated 9 months ago 16

Hello, we found some problem using the subscription method. Initially we used the polling method (not recommended), but eventually we found out that this starts failing when we try to capture values from different servers at the same time.


Here is the project attached with some debug lines added. We are using Integration Objects OPC UA server to test the subscription.

0
Answered

OPCUA_Interface with Kepserverex Windows 11 communication issue

Ernesto 11 months ago in OPCUA4Unity updated by Support 10 months ago 3

Dear all,

I experienced a problem when connecting with Kepserverex OPCUA server through OPCUA_Interface in windows 11.

When I specify the IP address in the OPCUA_Interface, the following error appears:

Image 918

Image 919

Looks like the problem is in line 133 of the OPCUA_Interface script: 

IPAddress ipAddress = Dns.GetHostEntry (ServerIP).AddressList[0];


If I remove this instruction, then the communication seems to be established.

Image 920


This issue doesn't happen when running the same version of Keperverex and Project Unity in Windows 10.

Have any one experienced this issue?

Thank you in advance!

0
Answered

Relationship between the number of points of parameters managed by the OPCUA server and the communication cycle.

h-morishita 12 months ago in OPCUA4Unity updated by Support 10 months ago 13

When the number of parameters managed by the OPCUA server is increased (from 30 to 120),

The values are being sent in bits and pieces.

Does the frequency of communication decrease in proportion to the number of parameters?

Answer
Support 10 months ago

Yes the performance should go down. It also depend on the subscription parameters and server settings, e.g. how often updates are sent. If there are many parameters which are changing very fast it might make sense to poll the variables instead of subscribing to them. But all depends on the application you are building.

0
Under review

Connection to certificate based authentication OPCUA server

Iacopo Checcacci 1 year ago in OPCUA4Unity updated by Support 12 months ago 6

Hi, I’m using the OPCUA4Unity plugin purchased on the Unity Asset Store.I’m able to connect a Unity project to a OPCUA server with no certificates, but my main need is to connect it to a certificate based authentication OPCUA server. In the specific is a Basic 256 security policy.Trying to connect my Unity project to the certificate based authentication OPCUA server, filling the Security Policy field with Basic 256, I receive the following errors:

  • OPCUA Interface - Connection Error Object reference not set to an instance of an object
  • SocketException: A request to send or receive data was disallowed because the socket is not connected and(when sending on a datagram socket using a sendto call) no address was supplied.

Looking on the documentation I found that you specify that "Currently certificate based authentication and communication is not supported. We are working on the problem and try to find as soon as possible a solution.”
I would like to know if a new version of the plugin that supports the certificate based authentication OPCUA server is scheduled or if you have already a beta version or also a workaround for this issue.
Thank you

0
Under review

The data obtained by OPCUA interface is not updated for a long time

zhyi 1 year ago in OPCUA4Unity updated by Support 1 year ago 1

The OPCUA interface is used to obtain the data. At the beginning of the data update, the data change information can be obtained, but after a few minutes, the latest data cannot be obtained

0
Under review

OPCUA4Unity can't connect to opcua server with username and password

VBKsjjW 1 year ago in OPCUA4Unity updated by Support 1 year ago 5

On the OPCUA server, I logged in a user.

I set up the "OPCUA_Interface" component in Unity.

At that time, the "user name" and "password" set on the server were set to "OPCUA_Interface".

In this state, click the "Import nodes" button of "OPCUA_Interface".

Then the following error is displayed in the console.

「OPCUA Interface - Error in activating session [BadUnknownResponse]UnityEngine.Debug:LogError (object)」

Please tell me how to improve.

Answer
Support 1 year ago

Hi, I was able to connect with your type of OPCUA server. I will send you in a private message a beta. If successful it will be included in our next release (2021.15).