python-opcua icon indicating copy to clipboard operation
python-opcua copied to clipboard

OPC UA and Python

Open ksrangini05 opened this issue 5 years ago • 7 comments

Hi all, I have learnt python for machine learning algorithms (basic level - numpy, scipy, matplotlib, regressions, knn, etc.). Now I got assigned to work in OPC UA with python coding in it. I am completely new to python codes for opc ua protocol to initiate communication between server and client. Please can anyone refer some links or tutorials to start with some samples and also how to master the coding. Thanks in advance

ksrangini05 avatar Sep 16 '20 11:09 ksrangini05

https://github.com/FreeOpcUa/python-opcua/tree/master/examples

AndreasHeine avatar Sep 16 '20 12:09 AndreasHeine

one thing to mention is that "opcua-binary" is a protocol, "opcua" is a communication standard which also describe how data is represented

AndreasHeine avatar Sep 17 '20 06:09 AndreasHeine

For OPC UA itself I liked the introduction from here. The official Specs are online here. And dealing with OPC UA with our repo see examples, mentioned from Andreas (also they create many "Aaaaahhhhhh"-Effects). If you like async stuff more than sync, you may want to switch to opcua-asyncio.

swamper123 avatar Sep 17 '20 06:09 swamper123

http://wiki.opcfoundation.org/index.php/UA_Capabilities

AndreasHeine avatar Sep 22 '20 12:09 AndreasHeine

To connect the server, I am using Unified Automation UA Expert client tool. While connecting the server program(with user authentication -username & password) with UA client tool, I got error as "Bad Certificate Entrusted". Then I checked with server with encryption example from github- python opcua examples( https://github.com/FreeOpcUa/python-opcua/tree/master/examples) which has certificate and private key in the same program. I am able to connect but still I am not getting any data. Please can anybody help me on this?

  1. What are the basic python functions which need to be in server program for client authentication?
  2. If any simple documents /tutorials available on this, please refer

Thank you

ksrangini05 avatar Oct 16 '20 07:10 ksrangini05

What does your server want? User/Password or a certificate?

swamper123 avatar Oct 16 '20 08:10 swamper123

What does your server want? User/Password or a certificate? I just want to include user authentication code in this server with encryption example from github- python opcua examples( https://github.com/FreeOpcUa/python-opcua/tree/master/examples). I dont understand the user manager examples in github( https://github.com/FreeOpcUa/python-opcua/tree/master/examples).

ksrangini05 avatar Oct 20 '20 01:10 ksrangini05