简体   繁体   English

OPC UA标准,用于编写简单的Java客户端/服务器

[英]OPC UA standard for writing simple Java client/server

I am new to OPC and is required to develop a simple OPC server using Java to test a connection with a OPC client, retrieve data through the server from a database and returning the data to the OPC client. 我是OPC的新手,需要使用Java开发一个简单的OPC服务器以测试与OPC客户端的连接,通过服务器从数据库中检索数据,并将数据返回给OPC客户端。 I am having difficulties understanding the standards of OPC UA and would appreciate if anyone could highlight the standards/things to note regarding the standard in the Java OPC UA server application. 我很难理解OPC UA的标准,如果有人可以强调有关Java OPC UA服务器应用程序中的标准的标准/注意事项,我将不胜感激。 For example, for a web server, HTTP header is the standard. 例如,对于Web服务器,HTTP标头是标准的。 So while receiving a HTTP request, I can decipher the HTTP header for the content and create a response header in the right format for the client browser to understand. 因此,在接收HTTP请求时,我可以解密内容的HTTP标头,并以正确的格式创建响应标头,以供客户端浏览器理解。

To be exactly, Read request has an option maxAge: 确切地说,读取请求具有maxAge选项:

The maxAge parameter is used to direct the Server to access the value from the underlying data source, such as a device, if its copy of the data is older than that which the maxAge specifies. 如果maxAge参数的数据副本早于maxAge指定的数据副本,则该参数用于指示服务器从基础数据源(例如设备)访问值。 If the Server cannot meet the requested maximum age, it returns its “best effort” value rather than rejecting the request. 如果服务器无法满足请求的最大使用期限,它将返回其“最大努力”值,而不是拒绝该请求。 (OPC UA Spec Part 4) (OPC UA规范第4部分)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM