3

I am trying to access SINUMERIK (Siemens) OPC UA. The server is only username and password protected (without certificate and private key). I have tried to connect with the following:

client = Client(url)
client.set_user("my_user")
client.set_passwotd("my_password")
client.connect()

But I have received a "TimeoutError". I have also tried the following:

client = Client(url)
client.connect_socket()
client.create_session()
client.activate_session(username="my_user", password = "my_password")

But it leads to the same timeout error as well.

It is working on UaExpert though. What could be the issue here?

Tom Carrick
  • 6,349
  • 13
  • 54
  • 78
Aburub
  • 31
  • 1
  • 1
    I have no experience with Siemens and the library you use but connecting to an OPC UA server has more steps than what you use. I think you also need to do **handshake**, **select an endpoint** for which surely before you will have first to list them and also **open secure channel** – from56 Dec 05 '19 at 19:41
  • Hey, did you find a solution? – Tom Holland Dec 26 '19 at 14:06
  • I am stuck at the same problem. Please help ,if you found any solution – Tom Holland Dec 26 '19 at 14:06
  • You're only showing the user authentication part of the connection process. What security policy do you use? – starturtle Mar 02 '20 at 18:02

0 Answers0