[Interest] QTOPCUA: Received Publish Response with code BadSessionNotActivated

Klaus Schwarzkopf klaus.schwarzkopf at sensortherm.de
Wed Feb 24 17:03:48 CET 2021


Hello,

when i connect to a Siemens SIMATIC S7-1500 SPS, it looks everything 
good. I can subscribe and receive the values of the subscribed node ids. 
Also i can change values there, but after some seconds, i get the 
following warnings and i can't get/set values anymore.

Environment: Ubuntu 20.04


How i build qtopcua:

git clone https://code.qt.io/qt/qtopcua.git
cd qtopcua
git checkout 5.12

edit qtopcua/src/3rdparty/open62541.pri #add -Wno-format-security 
-Wno-date-time to OPEN62541_CFLAGS

mkdir build && cd build
qmake ..
make
sudo make install



QTOPCUA warnings:


[2021-02-24 16:43:45.232 (UTC+0100)] info/client	Received a ServiceFault 
response
[2021-02-24 16:43:45.232 (UTC+0100)] warn/client	Received Publish 
Response with code BadSessionNotActivated
[2021-02-24 16:43:45.238 (UTC+0100)] info/client	Received a ServiceFault 
response
[2021-02-24 16:43:45.238 (UTC+0100)] warn/client	Received Publish 
Response with code BadSessionNotActivated

... 10000 lines deleted

[2021-02-24 16:44:21.443 (UTC+0100)] info/client	Received a ServiceFault 
response
[2021-02-24 16:44:21.443 (UTC+0100)] warn/client	Received Publish 
Response with code BadSessionNotActivated
[2021-02-24 16:44:21.450 (UTC+0100)] info/client	Received a ServiceFault 
response
[2021-02-24 16:44:21.450 (UTC+0100)] warn/client	Received Publish 
Response with code BadSessionNotActivated
[2021-02-24 16:44:21.505 (UTC+0100)] info/client	Received a ServiceFault 
response
[2021-02-24 16:44:21.505 (UTC+0100)] warn/client	Received Publish 
Response with code BadTimeout
[2021-02-24 16:44:21.505 (UTC+0100)] info/client	Received a ServiceFault 
response
[2021-02-24 16:44:21.505 (UTC+0100)] warn/client	Received Publish 
Response with code BadTimeout
[2021-02-24 16:44:21.505 (UTC+0100)] info/client	Received a ServiceFault 
response
[2021-02-24 16:44:21.505 (UTC+0100)] warn/client	Received Publish 
Response with code BadTimeout
[2021-02-24 16:44:21.505 (UTC+0100)] info/client	Received a ServiceFault 
response
[2021-02-24 16:44:21.505 (UTC+0100)] warn/client	Received Publish 
Response with code BadTimeout
[2021-02-24 16:44:21.505 (UTC+0100)] info/client	Received a ServiceFault 
response
[2021-02-24 16:44:21.505 (UTC+0100)] warn/client	Received Publish 
Response with code BadTimeout
[2021-02-24 16:44:21.505 (UTC+0100)] info/client	Received a ServiceFault 
response
[2021-02-24 16:44:21.505 (UTC+0100)] warn/client	Received Publish 
Response with code BadSessionNotActivated
[2021-02-24 16:44:21.511 (UTC+0100)] info/client	Received a ServiceFault 
response
[2021-02-24 16:44:21.511 (UTC+0100)] warn/client	Received 
BadSessionIdInvalid
unknown:0: Unable to send publish request







What can be the error?
I hope you can help me. Thanks a lot.

Best regards,
Klaus







-- 
Sensortherm GmbH
Hauptstraße 123
65843 Sulzbach (Taunus)
Germany

Registergericht:/Registry office: Amtsgericht Frankfurt/M.
Eintragungs-Nr.:/Registry-No. HRB 52438
Geschäftsführer:/General Manager: Benjamin Wuttke


More information about the Interest mailing list