ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
vxi11.h File Reference

VXI-11 (TCP/IP Instrument Protocol) codec over ONC RPC / XDR (PC_ENABLE_VXI11) - a zero-heap codec for the legacy LXI instrument transport that predates HiSLIP. More...

#include "protocore_config.h"

Go to the source code of this file.

Detailed Description

VXI-11 (TCP/IP Instrument Protocol) codec over ONC RPC / XDR (PC_ENABLE_VXI11) - a zero-heap codec for the legacy LXI instrument transport that predates HiSLIP.

VXI-11 rides on ONC RPC (Sun RPC, RFC 5531) with XDR (RFC 4506) over TCP. A session: portmap GETPORT(0x0607AF, 1, TCP) -> the DEVICE_CORE port ; connect there ; create_link("inst0") -> a link id ; device_write("*IDN?\n") ; device_read() -> the reply ; destroy_link().

This codec provides the reusable ONC-RPC framing (the TCP record-marking header + the CALL / accepted-REPLY message headers with AUTH_NONE) over XDR (big-endian, 4-byte aligned, length-prefixed opaque/string - no sub-word types on the wire), plus the VXI-11 DEVICE_CORE procedure builders + response parsers and the portmapper GETPORT call. Pairs with PC_ENABLE_SCPI (the payload). Pure codec, host-tested; the TCP connection is the application's.

References: VXI-11 (VXIbus Consortium, 1995); RFC 5531 (ONC RPC), RFC 4506 (XDR), RFC 1833 (portmap).

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file vxi11.h.