Rohde&Schwarz NRP-Zxx USB power sensors are not USB TMC but something undocumented and cursed.

You send it null terminated SCPI commands chunked into 16 byte pieces and 0 padded as USB bulk.

It sends back 16 byte USB bulk, byte 0 indicates what it is which can be a status, a little endian single precision float, 10 bytes of string or an indication that it's done sending a string.

Made a really basic UI for the NRP-Zxx power meters using egui. Not sure what I think of that. I find the docs a bit lacking, the executable size is huge but it does work pretty well.

I've not pushed the repo anywhere yet but do plan to. Maybe codeberg? I've been using Gitlab for years but they now seem to be going bad in most of the same ways as Github. When I chose Gitlab, part of the reasoning was that I could self host if it went bad but the LLM crawlers today make that undesirable.

@dlharmon what font is that? That’s a pretty distinctive zero glyph.
@aholtzma It's the default monospace font in egui: https://github.com/source-foundry/Hack
GitHub - source-foundry/Hack: A typeface designed for source code

A typeface designed for source code. Contribute to source-foundry/Hack development by creating an account on GitHub.

GitHub