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
Issue with connecting the client
February 10, 2021
14:31, EET
Avatar
majaba
New Member
Members
Forum Posts: 2
Member Since:
February 10, 2021
sp_UserOfflineSmall Offline

Hello everyone,

I’m using Prosys Simulation Server and OPC UA Foundation ANSI C stack to connect to the server with anonymous user.
I can activate session, but when I want to read something from the node, it returns me in the responseHeader ServiceResult status code 0x80260000 (The session was closed by the client.)

Please can you give me advice about this ?

February 11, 2021
12:55, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 983
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

My advice is to stop using a “legacy stack”, which is pretty much discontinued completely by the OPC Foundation at this point and use a proper SDK-level library/framework for your OPC UA needs. The readme in https://github.com/OPCFoundation/UA-AnsiC-Legacy says “This repository (https://github.com/OPCFoundation/UA-AnsiC-Legacy) will be closed end of February 2021.”

Generally speaking, you are completely on your own if you use a bare “stack” level implementation. Using those requires expertise in OPC UA and even with that they usually simply lack features to deal with the every growing feature set which OPC Foundation is continously increasing.

That being said, the error code in the full form is Bad_SessionClosed, 0x80260000, “The session was closed by the client.”. You can check if the simulation server logs indicate anything, they are written by default /.prosysopc/prosys-opc-ua-simulation-server/log/.

Do you mean by “activate session”, that you made both CreateSession and ActivateSession calls with both succeeding, and you are using the authentication token returned in CreateSessionResponse in the ActivateSession and all further calls? Failing to do these would be one cause, which would been seen by the client by that error code. Typically all that is implemented by an SDK-level framework internally.

February 15, 2021
9:48, EET
Avatar
majaba
New Member
Members
Forum Posts: 2
Member Since:
February 10, 2021
sp_UserOfflineSmall Offline

Thank you Bjarne, you have right I didn’t assign everything for the Auth. token.

P.S

I’m using the stack because I want to know how stuff works not just to use some done solution.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

ibrahim: 75

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 685

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6259

Newest Members:

fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com, aytule, rashadbrownrigg, christi10l, ahamad1, Flores Frederick, ellenmoss

Moderators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1