You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When my application closes the zmq sockets not in graceful way (crash), after restarts it gets messages from the previous acquisition. Is there a way to discard/reset the message queue, aka flush old messages? I try to disable/enable the STREAM2 subsystem but I am still getting unexpected message types from older instance of the application . When my application restart, the state of the DCU is "ready" so I would think abort would not help. What would be the right way to do a clean cold-and-dark start of STREAM2?
The text was updated successfully, but these errors were encountered:
This is currently not possible without re-initializing the detector which is a slow operation.
I don't think it is necessary to clear the message queue. You can easily filter incoming messages based on the series_id field. Is there any reason this approach won't work for you?
This is not ideal, but I have implemented a workaround that skips any message until I get a STREAM2_MSG_START. This means that we still have to receive all the messages of the previous acquisition.
At startup, I don't know the series_id until I get a start message.
I do a similar thing, but it is more as a sanity check that we are receiving image messages with a series_id matching the most recent start message. If not it logs a warning and throws it away.
When my application closes the zmq sockets not in graceful way (crash), after restarts it gets messages from the previous acquisition. Is there a way to discard/reset the message queue, aka flush old messages? I try to disable/enable the STREAM2 subsystem but I am still getting unexpected message types from older instance of the application . When my application restart, the state of the DCU is "ready" so I would think
abort
would not help. What would be the right way to do a clean cold-and-dark start of STREAM2?The text was updated successfully, but these errors were encountered: