Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Question: Subscription / Monitoring - Connection Drop #2092
I'm currently running a FreeOpcUa server on a Raspberry Pi and connecting to it with a Qt Android Application (QtOpcUa + Open62541 Backend)
I seem to have some trouble monitoring nodes for value changes as the connection will just drop out after around 10 minutes of starting the monitoring.
I'm having a hard time debugging this and was just wondering if this is something you've came across before or would have any better ideas on how to diagnose.
I enabled logging on my server and can see an entry closing the connection to the client and cleaning up. Looking at the output the application provides only shows the following from open62541:
I've tried Wireshark but can't seem to spot anything as the packets stop when the connection drops, this may just be my inexperience using it so please point me in the right direction if possible.
I have also tried changing the log level when building open62541 but don't see anything new (again this may be an error on my behalf).
Any thoughts or ideas would be greatly appreciated.
Edit: Tested this a little more today, and it seems after ~10 minutes of being connected any interaction with the server will cause the connection to drop not just subscriptions (E.g. Subscribe to a node, read a node, etc)
Thank you for the suggestion; I was able to find a default lifetime variable on the server but changing it didn't seem to affect anything and it was already very high.
I'm wondering if it's just a mismatched setting somewhere, trying QtOpcUa/Open62541 with other servers doesn't have the same issue and trying different clients with the server is also fine.
I'll have another look into the default values and settings over the weekend.
Unfortunately don't have them to hand but can try and recreate the drop-out tomorrow if you'd like.
Open62541: Unable to Send Publish Request
And the server would just log a client disconnection and cleanup of the session.
I've tried using a Node.js server instead and have no issues but I have noticed logs about security tokens changing with a timeout of 600000ms (10 min) so I wonder if there's something similar going on with the Python FreeOpcUa server.