Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
(Client SDK) Making a connection with a Kep server
March 31, 2015
15:36, EEST
Avatar
seong
Member
Members
Forum Posts: 6
Member Since:
March 31, 2015
sp_UserOfflineSmall Offline

Dear Sir/ Madam

I searched on this forum and I saw there were people able to connect to a Kep server.

Nonetheless, they didn’t elaborate enough how they actually did it.

I am using a limited version of Prosys UA client SDK.

I am trying to connect it to Kep Server version 5 (Kepware) and I am trying the following
client = new UaClient(“opc.tcp://192.168.1.29:???”);

but it has not been successful.

I previously used OpenScada instead of Prosys client SDK and I didn’t need to specify a port number to make a connection.
I used Opens Scada ConnectionInformation and Server classes to make a connection.

I tried various ports but it has not been promising.

If you can advice me on this matter, I will be grateful.

Thank you

Kind regards

Seong

April 1, 2015
6:23, EEST
Avatar
gjevremovic
Member
Members
Forum Posts: 49
Member Since:
January 30, 2014
sp_UserOfflineSmall Offline

Hi, did you try port 49320? If yes and don’t work than maybe you have issue with server uri resolution. Try to put this IP in your host file with hostname of your server. Than try. BR

April 1, 2015
7:28, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

I guess you have used OPC DA with openSCADA.

OPC UA is a bit different, and you can define the TCP/IP port in which the server is listening to connections. This is more secure, since you can control connections per server in the firewall, for example. On the other hand, you will need to know the port number in the client, when you are making connections. Different servers use different port numbers by default, and you will need to find the complete address from the server application.

April 1, 2015
10:48, EEST
Avatar
seong
Member
Members
Forum Posts: 6
Member Since:
March 31, 2015
sp_UserOfflineSmall Offline

Hi gjevremovic and Mr Jouni Aro,

Thank you for your kind comments. I am delighted that I got your attention.

I right-clicked Kep server v5 tray icon and went to UA configuration Setting and made a configuration.

It now works fine. The default port is 49320 as gjevremovic stated.

Thank you.

Kind regards

Seong

April 28, 2015
18:40, EEST
Avatar
jvarma80
Member
Members
Forum Posts: 3
Member Since:
April 25, 2015
sp_UserOfflineSmall Offline

Hi,

Can you please let me know what type of a configuration change you made for this to work?. I am also the Prosys Client Java SDK limited version and having issues in connecting to the Kepware Server. Getting the BadConnection exception.

Tried the following way,

UaClient client = new UaClient(
“opc.tcp://123.456.7.890:49320/UA/Kepware.KEPServerEX.V5”);

Tried different ports but of no use. Not sure where I am going wrong. I am trying to print the server status to the console.
DataValue value = client.readValue(Identifiers.Server_ServerStatus_State);
But I am not able to connect to the server. Please let me know how I can move forward and what is the mistake I am doing.

Thanks,

seong said

Hi gjevremovic and Mr Jouni Aro,

Thank you for your kind comments. I am delighted that I got your attention.

I right-clicked Kep server v5 tray icon and went to UA configuration Setting and made a configuration.

It now works fine. The default port is 49320 as gjevremovic stated.

Thank you.

Kind regards

Seong

June 13, 2015
16:07, EEST
Avatar
MuckersMate
New Member
Members
Forum Posts: 1
Member Since:
June 13, 2015
sp_UserOfflineSmall Offline

jvarma80 : Did you get this to work?

This is my first attempt to try to get the UA Client to connect to Kepware and having looked at numerous prosysopc posts,the information seems to be vague at best. I’m having the same problems as you.

I’m not sure if this is deliberate obfuscation (I hope not) on behalf of prosys. The standard response seems to be “READ THE README in the docs folder”. Well, I have done and am none the wiser.

PROSYS -This post deserves a reply!

June 15, 2015
8:13, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

I am sorry that connecting to KepServerEX has not been documented better.

However, in OPC UA, connections require that you find out the correct endpointUrl of the server. We don’t necessarily know these URLs ourselves, and it is better to ask server specific features from the server manufacturer.

We looked this up now, and it seems that the default URL to the KepServerEX is

opc.tcp://localhost:49320

– there is no server name part in the URL. ‘localhost’ must be replaced with the actual hostname or IP address, if you are connecting from remote, of course.

Forum Timezone: Europe/Helsinki

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: 738

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1524

Posts: 6451

Newest Members:

jonathonmcintyre, fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1