9:12, EEST
April 6, 2014
Hello,
I have a problem with connecting my Android Client application with B&R Automation Studio UA Server.
My Android Client is connecting properly with SampleConsoleClient and with UA Demo Server. But when I try to connect to B&R server, error occurs: Failed to create session channel to server. The error is the same when I try with SampleConsoleClient.
I tried to connect to B&R server via UnifiedAutomation UaExpert and it works property (I entered URL: opc.tcp://192.168.1.100:4841).
I tried to discover using SampleConsoleClient. The result is on the screen below.
https://drive.google.com/file/d/0B-IkuZ-4FrRkUjZlSkdIb0FwUm8/edit?usp=sharing
Can anybody help me? Why I can’t connect with this server when I enter the same URI like in UaExpert?
Best regards
Blazej Brzostowicz
9:57, EEST
April 6, 2014
Could someone explain to me the steps to connect to server properly? I’m a student and I have Master Thesis in June in which I use my OPC UA Android Client, but problem still exist (and time is running out…)
This is what I have:
client.setUri(serverURI);
final PkiFileBasedCertificateValidator validator = new PkiFileBasedCertificateValidator();
client.setCertificateValidator(validator);
appDescription.setApplicationName(new LocalizedText(“UA_CLIENT”, Locale.ENGLISH));
appDescription.setApplicationUri(“urn:BeBE-PC/BuR/UA/EmbeddedServer”);
appDescription.setProductUri(“http://www.br-automation.com/UA/EmbeddedServer”);
appDescription.setApplicationType(ApplicationType.Client);
client.setSecurityMode(SecurityMode.NONE);
client.connect();
Do I have to use Application Certificate (with loadOrCreateCertificate)?
Do I have to use ValidationListener (with CertificateValidationListener)?
I don’t need any security. I just want to establish a connection with each server. What are the minimum NECESSARY settings to be able to connect to each server. This above works only with SampleConsoleServer and UA Demo Server. Why it not works with B&R Automation Studio UA Server?
8:27, EEST
December 21, 2011
There have been many similar problems, when the server is developed with the ANSI C SDK. See for example, http://www.prosysopc.com/blog/…..alid/#p738
So the problem is with the server, which is providing a different endpoint address as a response to GetEndpoints and CreateSession. The UaExpert and the C++ client applications do not validate this, but it is a required validation, nevertheless.
I am not quite sure about the B&R server: you will probably need to contact them to find out how you can define the endpoint properly. Or see the linked issue if you can use the same strategy to just define the server hostname.
12:02, EEST
February 21, 2014
I do have the exact same problem with the latest B&R OPC UA Server and the latest UA SDK. How can I verify what endpoint address(es) the server gives back in response to the CreateSession call? The GetEndpoints response show exactly what I’m trying to connect to.
If I could tell B&R where the problem is they would certainly correct the issue.
12:14, EEST
December 21, 2011
16:44, EEST
February 21, 2014
Most Users Ever Online: 1919
Currently Online:
4 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: 731
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
inilarythikibia, rickykennion, PromotionToold, HypromeImpupe, toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1