Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trex server v2.88 ZMQ API interface changes #135

Open
hhaim opened this issue Feb 18, 2021 · 2 comments
Open

trex server v2.88 ZMQ API interface changes #135

hhaim opened this issue Feb 18, 2021 · 2 comments

Comments

@hhaim
Copy link
Contributor

hhaim commented Feb 18, 2021

Due to this issue, #636 there was a need to change the major API version to 5.0 (STL)

I will add the commit once it will be ready.

The high level changes from client side are:

  1. Client should keep the ZMQ SUB/PUB but there is no need to read from it the information. The events shoudl be read using REQ/RES channel
  2. Client must use a thread that pool the events using a new API get_async_events with session_id as an input. Each session will have a seperate queue for events. session_id is a unique number per session
  3. Python client pool every 200msec the events queue
  4. There is a new field in each event json called seq from type ```uint32``. Client could check that there is no missing events using this counter.
@leomaatEric
Copy link
Collaborator

Does it impact the ASTF mode implementation?

@hhaim
Copy link
Contributor Author

hhaim commented Feb 18, 2021

@leomaatEric yes, in case of ASTF there is one more thing,
acquire command require session_id as in STL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants