8:46, EEST
October 21, 2014
Dear Sir,
In the sampleConsole application , the default serverUri is hardcoded which is taken if we do not specify URI in the command line. But the question is, is there a way to know the hostnames of the OPC servers available on the network and present them to the user for selection? This way user doesn’t have to type the URI and avoid any typoerrors.
My second question is, I see a discover option in the main menu, it displays the Endpoints of the server of given ServerUri after connection is established. What are endpoints in an OPC UA Server? Can this call be used for finding available Servers (asked in question 1)?
Also despite giving the default ServerUri as “opc.tcp://LAPTOP-RLSQD170:4096/iaopcua/SignAndEncrypt” it prints on console “Using SecurityPolicy http://opcfoundation.org/UA/Se…..olicy#None“? Is it not taking the SignAndEncrypt option?
Best Regards
PRAMANJ
13:25, EEST
April 17, 2013
Hello,
The process of finding out available OPC servers in the network is called discovery. For the most thorough presentation about different kinds of discovery mechanisms in OPC UA, see specification part 12: https://opcfoundation.org/developer-tools/specifications-unified-architecture/part-12-discovery/
If you want to have a separate discovery server, you can download one from OPC Foundation (registration needed):
https://opcfoundation.org/developer-tools/developer-kits-unified-architecture/local-discovery-server-lds/
As for the question about the URI: the URI in the question has the following form:
The path is just additional data used to identify a specific Server. The supported security policies are returned by the server in the GetEndpoints response. The URI does not specify anything about security policies even though in this questions it happens to mention SignAndEncrypt.
In SampleConsoleClient, use the “-s” command line parameter to connect with SecurityPolicy other than none. For example, to connect to SampleConsoleServer with SecurityPolicy Basic128Rsa15 and SecurityMode SignAndEncrypt, use the following command line options:
Most Users Ever Online: 1919
Currently Online:
11 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 730
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
PromotionToold, HypromeImpupe, toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachusModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1