OpC UA server on Raspberry Pi 64 SL runtime

nizrahel
2023-12-03
2023-12-11
  • nizrahel - 2023-12-03

    Hi all!
    I'm working on an home project using a Raspberry Pi 3 device with Codesys for Raspberry Pi 64 SL runtime. I would like to create the HMI interface with Siemens WinCC Unified (or Advanced) configuring the Raspberry as OPC UA server. I tryed everything, but I didn't find the way to let the OPC UA connection works using UaExpert. I tryed to use anonymous connection, authenticated connection and the ip address instead of the server name in the path connection. There is no way to connect to the OPC UA server and I was asking myself if this feature is really supported for the runtime version used. Another strange thing I noted, is that is not possible to quickly create an OPC UA certificate in the Security Screen, as show in any tutorials. I have correctly created the Symbol Configuration enabling the OPC UA feature. I attach to this topic some printscreen of the actual configuration (sorry for the italian language interface, but I didn't find the way to switch to english).
    Thank you very much in advance for your support and advices!

     
  • snhatton - 2023-12-11

    Good afternoon,

    After changing the security settings to:

    CommunicationPolicy: POLICY_BASICSHA256SHA256
    CommunicationMode: ALL
    Activation: Activated
    UserAuthentication: ENABLED

    Then generate a new certificate on the device for the OPC-UA server from Security Agent->Device->OPC UA Server.

    Restart the runtime using tools->Update Raspberry Pi->Stop->Start for the changes to take effect. It may take a minute for the runtime to start.

    Initiate the connection from the UA server side. You should see a pop-up asking you to trust the certificate. Click on the button 'Trust Server Certificate'.

    Next, you should see a certificate in the quarantined folder of the security agent in CODESYS. Click and drag this from quarantined to trusted and then try connecting from UA expert to the device.

    These steps worked for me and my setup and I hope they can help you!

     

Log in to post a comment.