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: 1032
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: 1919

Currently Online:
42 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: 726

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7, franciscagrimwad, adult_gallery

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

Administrators: admin: 1