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

Add VXI-11 server and improve robustness of socket server #52

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

hb020
Copy link

@hb020 hb020 commented Feb 23, 2025

With a VXI-11 server, the device will become much more compatible with various control mechanisms. PyVISA for example.

This PR includes:

How it works:

  • The vxi servers and rpc bind servers run as independent services (with begin() and loop())
  • The vxi server calls upon the SCPI Parser from riden_scpi via an interface class.
  • The SCPI parser is kept in riden_scpi to lower the amount of code changes. It has a lockout mechanism: whenever the vxi server serves a client, the raw socket server is disabled. This prevents strange surprises.
  • I have not investigated locking with the modbus tcp server, as I do not have the tool set for testing that.

Credits:

The VXI server is heavily inspired by https://github.com/awakephd/espBode, in which I also collaborated.
I made the server "live" in a single directory, with an interface class to the SCPI parser.

Final words

Of course happy to discuss improvements or modifications.

@hb020 hb020 mentioned this pull request Feb 23, 2025
@hb020
Copy link
Author

hb020 commented Feb 25, 2025

Can't put this PR in draft mode, so doing it via a comment: Hold on, I'll add a small change in lxi discovery in the coming hours.

Done. Ready for merge.

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

Successfully merging this pull request may close these issues.

1 participant