Holoscan Sensor Bridge#
Holoscan Sensor Bridge (HSB) brings sensor data into a Holoscan pipeline with low latency. An FPGA acquires the data and sends it to the host, where it can be written directly into GPU memory. Operators cover camera, audio, and signal-processing paths over RoCE, UDP, Linux sockets, and CoE. A software emulator exercises those operators without hardware.
Package info#
| Package | holoscan-sensor-bridge |
|---|---|
| GitHub repository | nvidia-holoscan/holoscan-sensor-bridge |
| Version | 3.0.0 |
| C++ namespace | hololink |
| Python namespace | hololink |
| Holoscan SDK | 5.0.0 and CUDA 13. Not compatible with Holoscan SDK 4.x. Holoscan Sensor Bridge 2.7 remains the release for IGX Orin and JetPack 6. |
| Platforms | Jetson AGX Thor and AGX Orin (JetPack 7.2.1), IGX Thor (IGX SW 2.0.1), DGX Spark (DGX OS 7.6.0), and x86_64 Linux workstations with an NVIDIA dGPU (supported; not a primary reference platform) |
| FPGA | v2609 |
| Languages | C++, Python |
| License | Apache-2.0 |
| Maintainer | Holoscan Team, NVIDIA |
Operators#
CsiToBayerOp,ImageProcessorOp, andPackedFormatConverterOpprepare camera data (GPU processing; configure the converter for the sensor's pixel format).ArgusIspOpuses the Jetson Argus hardware ISP (matching Jetson camera stack required). SIPL capture isSIPLCaptureOpin Holoscan Camera.RoceReceiverOp,RoceTransmitterOp,GpuRoceTransceiverOp, andCpuRoceTransceiverOpmove data over RoCE (RDMA-capable networking and platform configuration required).LinuxReceiverOp,UdpTransmitterOp, andLinuxDataPlaneOphandle socket traffic (the data-plane operator is for the software emulator).LinuxCoeReceiverOpandFusaCoeCaptureOpreceive CoE camera data (compatible interface, camera, and host setup required).AudioPacketizerOppacketizes audio;SignalGeneratorOp,SignalViewerOp,IQDecoderOp, andIQEncoderOphandle signals (configure the renderer and data format for the application).ComputeCrcOp,CheckCrcOp,ComputePvaCrcOp, andCheckPvaCrcOpcheck integrity (PVA variants require supported PVA hardware and libraries).SubFrameCombinerOpandSubFrameVisualizerOpprocess partial frames (requires a sub-frame capture configuration).HsbControllerOpmanages bridge and sensor capture (requires matching sensor and receiver factories).
Quick Start#
Installation#
No standalone Sensor Bridge apt package is documented. Follow the host setup for your platform, then build the demo container.
No public holoscan-sensor-bridge wheel is provided. The Python hololink bindings are built with the module in its demo container. The unrelated hololink package on PyPI is not this module.
No standalone module recipe is provided. A Yocto integration needs the module, matching SDK, sensor drivers, and network configuration. Start with the host requirements.
Holoscan Sensor Bridge 3.0.0 runs on Holoscan SDK 5.0.0 and CUDA 13. Holoscan SDK 5 is not compatible with Holoscan SDK 4.x. IGX Orin and JetPack 6 are not supported; use Holoscan Sensor Bridge 2.7 for those platforms.
Build the demo container from the 3.0.0 source checkout. docker/build.sh chooses the container from the host. It accepts --igpu and --dgpu and ignores them.
git clone https://github.com/nvidia-holoscan/holoscan-sensor-bridge.git
cd holoscan-sensor-bridge
git checkout 3.0.0
sh docker/build.sh
Supported hosts are Jetson AGX Thor and Jetson AGX Orin with JetPack 7.2.1, IGX Thor with IGX SW 2.0.1, DGX Spark with DGX OS 7.6.0, and x86_64 Linux workstations with an NVIDIA dGPU. The workstation configuration is supported and is not a primary reference platform. Follow the host setup guide before building.
Example Usage#
Decode camera CSI data in a Holoscan SDK 5 graph. These fragments assume the camera, data channel, CUDA context, CSI geometry, and frame size are already configured. Each frame leaves the receiver on tensor and metadata.
#include <hololink/operators/csi_to_bayer/csi_to_bayer.hpp>
#include <hololink/operators/linux_receiver/linux_receiver_op.hpp>
// ...
auto csi = graph.op<hololink::operators::CsiToBayerOp>("csi_to_bayer");
csi.set_params(csi_params);
auto receiver = graph.op<hololink::operators::LinuxReceiverOp>(
"receiver", hololink_channel,
[camera] { camera->start(); }, [camera] { camera->stop(); });
receiver.set_params(hololink::operators::LinuxReceiverParams{
.frame_context = cu_context,
.frame_size = frame_size,
});
graph.add_flow(receiver->tensor, csi->input_tensor, edge);
graph.add_flow(receiver->metadata, csi->input_metadata, edge);
// ...
import holoscan as hs
import hololink as hl
# ...
graph = hs.Graph("linux_imx274_player")
receiver = graph.op(
hl.operators.LinuxReceiverOp, "receiver",
data_channel=channel, frame_context=int(cu_context),
device_start=camera.start, device_stop=camera.stop,
frame_size=frame_size,
)
csi = graph.op(
hl.operators.CsiToBayerOp, "csi_to_bayer",
cuda_device_ordinal=0, geometry=geometry, bayer_format=bayer_format,
)
graph.add_flow(receiver.tensor, csi.in_tensor)
graph.add_flow(receiver.metadata, csi.in_metadata)
# ...
Docs#
Holoscan Sensor Bridge 3.0 is the Holoscan SDK 5 port. Receivers, FusaCoeCaptureOp, and the image operators publish each frame on tensor and metadata. See the migration guide for the operator API changes from 2.7.
CsiToBayerOp#
CsiToBayerOp decodes received CSI camera data into a Bayer image on the GPU. Sensor-specific configuration supplies line geometry, pixel format, and framing offsets so the converter can extract pixel samples from the received payload. The resulting Bayer image can feed demosaicing or an ISP path.
| Parameter | What it sets |
|---|---|
cuda_device_ordinal |
CUDA device used for conversion |
geometry |
CSI layout. Fill it with the sensor's configure_converter before set_params |
bayer_format |
CFA phase of the reconstructed mosaic, from the sensor's get_bayer_format |
sub_frame_rows |
Rows in each sub-frame band. 0 processes whole frames. A nonzero value must be even and divide the frame height |
header_included |
Whether the input tensor still includes the start-byte header. Set this to false downstream of FusaCoeCaptureOp |
drop_incomplete |
Drop frames with lost data. Otherwise they pass through marked degraded |
Remarks. Call the sensor's configure_converter on geometry before set_params. Decoding Bayer samples does not reconstruct RGB; use a downstream demosaic or ISP operator for color images.
ImageProcessorOp#
ImageProcessorOp performs GPU black-level correction and gray-world white balance on Bayer data. It subtracts the optical-black offset, clamps and rescales the remaining range, and builds per-color histograms. It estimates channel gains from those histograms and applies them to balance the color channels, clamping the result to the available range.
| Parameter | What it sets |
|---|---|
bayer_format |
Bayer pattern used to identify each pixel's color |
pixel_format |
Sensor sample format and bit depth |
optical_black |
Sensor black-level offset to subtract |
cuda_device_ordinal |
CUDA device used for processing |
pixel_width, pixel_height |
Frame size used to size the output tensor pool |
Remarks. Match the Bayer pattern, bit depth, and black level to the sensor. Output remains Bayer data, not RGB. For sub-frame processing, histograms accumulate across the frame and the previous frame's white-balance gains are applied to the current frame.
PackedFormatConverterOp#
PackedFormatConverterOp converts the HSB packetizer's packed 10- or 12-bit camera samples to 16-bit pixel storage on the GPU. The 10-bit transport packs three pixels into four bytes; the 12-bit transport packs two pixels into three bytes. Unpacking reduces the bandwidth needed on the wire while providing byte-addressable samples downstream.
| Parameter | What it sets |
|---|---|
allocator, cuda_device_ordinal |
Output allocation and CUDA device |
in_tensor_name, out_tensor_name |
Input and output tensor names |
Remarks. Configure the converter's geometry and pixel format for the sensor's packetizer output. These packed formats differ from a general RGB image or an arbitrary raw byte stream; unpacking must match the selected format.
ArgusIspOp#
ArgusIspOp sends Bayer image data through the Jetson Argus hardware ISP, then converts the ISP's NV12 result to RGB for the graph. It provides an ISP processing stage for the Sensor Bridge camera pipeline, with the sensor's Bayer pattern, bit depth, exposure, and gain supplied to the Argus path.
| Parameter | What it sets |
|---|---|
bayer_format, pixel_bit_depth |
Raw sensor mosaic and sample depth |
exposure_time_ms, analog_gain |
Exposure and gain information for processing |
camera_index, sensor_mode_index |
Argus camera and sensor mode |
pool, out_tensor_name |
Output allocation and tensor name |
Remarks. Requires the matching Jetson Argus runtime and a supported camera mode. Use sensor-specific settings and tuning. This is a Bayer-processing stage; ArgusCaptureOp in Holoscan Camera is a separate capture operator.
SIPL capture#
SIPL capture has moved to Holoscan Camera. Use SIPLCaptureOp in a Holoscan SDK 5 application. Holoscan Sensor Bridge 3.0 no longer includes SIPLCameraOutputOp, SIPLCaptureService, or the sipl_* examples. FuSa CoE capture, FusaCoeCaptureOp, stays in this module.
RoceReceiverOp#
RoceReceiverOp receives sensor frames over RDMA over Converged Ethernet (RoCE). The HSB writes into registered frame buffers, enabling GPUDirect RDMA on a compatible host. The operator exposes completed frame data to the graph without a conventional socket receive-and-copy path.
| Parameter | What it sets |
|---|---|
ibv_name, ibv_port |
RDMA device and port |
pages, queue_size |
Frame-buffer ring and receive queue capacity |
metadata_offset |
Location of frame metadata in the receive buffer |
| Shared receiver parameters | Channel, frame geometry, memory context, and capture lifecycle; see receiver configuration |
Remarks. GPUDirect RDMA depends on compatible NIC, GPU, driver, and host configuration. Allocate enough space for the actual payload and metadata, and match the HSB transport configuration to the local receiver.
LinuxReceiverOp#
LinuxReceiverOp receives sensor traffic through Linux sockets and assembles frame data for the graph. It provides a socket-based alternative to the RDMA receiver, with a background receive path and configurable CPU affinity.
| Parameter | What it sets |
|---|---|
receiver_affinity |
CPU affinity for the receive thread |
pages, queue_size |
Receive-buffer and queue capacity |
| Shared receiver parameters | Channel, frame geometry, memory context, and capture lifecycle; see receiver configuration |
Remarks. Socket reception has different CPU and copy costs from GPUDirect RDMA. Size buffers and configure the host network for the sensor's data rate. The Python operator is LinuxReceiverOp. LinuxReceiverOperator was removed in 3.0.
RoceTransmitterOp#
RoceTransmitterOp sends graph data over a configured RoCE connection. It uses the local RDMA device and the remote queue-pair information to submit outgoing buffers to the receiving endpoint.
| Parameter | What it sets |
|---|---|
ibv_name, ibv_port |
Local RDMA device and port |
hololink_ip, ibv_qp |
Remote bridge address and queue pair |
buffer_size, queue_size |
Transmission buffer and queue capacity |
on_start, on_stop |
Application callbacks for transport lifecycle |
Remarks. Configure a matching remote queue pair and compatible memory/network setup. Buffer capacity must cover the messages submitted by the upstream operator.
GpuRoceTransceiverOp#
GpuRoceTransceiverOp moves sensor data over RoCE using DOCA Verbs for GPU-based completion-queue and queue-pair management. It supports receiving data and a configured forwarding path, moving queue management away from the traditional CPU-managed verbs approach.
| Parameter | What it sets |
|---|---|
ibv_name, ibv_port |
RDMA interface and port |
tx_ibv_qp |
Transmit queue pair |
gpu_id |
GPU used by the transceiver |
forward |
Forwarding configuration |
| Shared receiver parameters | Frame and channel configuration; see receiver configuration |
Remarks. Follow the supported GPU RoCE/DOCA host setup for the NIC, GPU, drivers, and memory registration before selecting this backend.
CpuRoceTransceiverOp#
CpuRoceTransceiverOp moves data over RoCE with CPU-managed completions. It is new in 3.0, with the cpu_roce_loopback example. A failure of the completion-queue monitor ends the run.
UdpTransmitterOp#
UdpTransmitterOp sends input buffers to a configured IP address and UDP port. It provides a socket-based transmit path for sensor, audio, or signal applications whose receiver expects the corresponding payload format.
| Parameter | What it sets |
|---|---|
ip, port |
Destination address and port |
max_buffer_size |
Maximum outgoing buffer size |
queue_size |
Number of queued messages |
lossy |
Whether the transmitter permits dropping data when it cannot keep up |
Remarks. UDP does not provide reliable delivery or retransmission. Account for packet loss, receiver capacity, and the application's tolerance for dropped data. The transmitter does not supply a sensor-specific payload format by itself.
LinuxDataPlaneOp#
LinuxDataPlaneOp implements a Linux data plane for the HSB software emulator. It connects generated graph data to an emulated sensor and data-plane endpoint so applications can exercise network acquisition without an FPGA bridge.
| Parameter | What it sets |
|---|---|
hsb_emulator |
Emulator instance that owns the simulated bridge |
source_ip_address |
Source address for the emulated traffic |
sensor_id, data_plane_id |
Emulated sensor and data-plane identifiers |
Remarks. This is an emulator component. It helps validate application wiring and protocol behavior but does not establish hardware bandwidth or timing performance.
LinuxCoeReceiverOp#
LinuxCoeReceiverOp receives Camera-over-Ethernet (CoE) packets through a Linux interface, assembles complete frames, and makes their payload and capture metadata available to the graph. The receive implementation collects packet counts and frame timing alongside image data.
| Parameter | What it sets |
|---|---|
coe_interface, coe_channel |
Network interface and CoE channel |
pixel_width |
Sensor image width used for frame interpretation |
receiver_affinity |
Receive-thread CPU affinity |
rename_metadata |
Mapping for emitted metadata names |
Remarks. Select the interface and channel configured for the camera and provide matching frame geometry. Receiving CoE payloads does not itself demosaic the sensor image or apply ISP processing.
FusaCoeCaptureOp#
FusaCoeCaptureOp captures CoE camera images through NVIDIA's NvFusaCaptureCoe stack. It combines capture lifecycle control with the sensor's format and line-geometry configuration and can expose CPU output when requested.
| Parameter | What it sets |
|---|---|
interface, mac_addr |
Capture interface and camera MAC address |
timeout |
Capture wait limit |
hololink_channel, device_start, device_stop |
Bridge channel and sensor lifecycle callbacks |
out_tensor_name, cpu_output |
Output tensor name and CPU-output selection |
Remarks. Requires a host with the supported FuSa capture stack. State the pixel format, Bayer pattern, and packetizer mode with configure_format before configuring geometry or starting capture. Packetizer mode is supported for RAW10 and RAW12; unsupported format combinations are rejected.
HsbControllerOp#
HsbControllerOp manages bridge and sensor capture using application-supplied sensor and network-receiver factories. It uses enumeration metadata to select the bridge, configures frame buffers and metadata, and coordinates the capture path. A watchdog setting controls how long the controller tolerates missing progress.
| Parameter | What it sets |
|---|---|
enumeration_metadata |
Discovered bridge and sensor identity |
sensor_factory, network_receiver_factory |
Factories for compatible sensor and receive implementations |
frame_context, frame_size, page_size |
Memory context and frame/page byte sizes |
pages, queue_size, metadata_offset |
Buffer count, queue capacity, and metadata location |
out_tensor_name, rename_metadata |
Output tensor and metadata naming |
watchdog_timeout_s |
Capture watchdog timeout in seconds |
Remarks. Factories, frame geometry, and transport settings must describe the same sensor path. Configure them together before starting capture, including the sensor's watchdog and reconnection policy.
AudioPacketizerOp#
AudioPacketizerOp reads a WAV file and emits chunks for audio transmission. The UDP mode adds the header and CRC used by that audio path; the RoCE mode emits raw audio payload. Packetization prepares data for a transmitter rather than sending it directly.
| Parameter | What it sets |
|---|---|
wav_file |
Input WAV file path |
chunk_size |
Audio payload bytes per packet; default 1024 |
is_udp_tx |
Add UDP-path framing (true, default) or emit raw RoCE payload (false) |
pool |
Allocator for output buffers |
Remarks. Match packet size and framing to the downstream transmitter and receiving audio device. This operator replays a file; it is not microphone capture.
SignalGeneratorOp#
SignalGeneratorOp evaluates configured in-phase and quadrature expressions into GPU-resident floating-point samples. It emits interleaved pairs in the order I0, Q0, I1, Q1, ..., providing a synthetic signal source for transmit and processing examples. An optional renderer exposes interactive controls.
| Parameter | What it sets |
|---|---|
samples_count, sampling_interval |
I/Q pairs per output and interval between samples |
in_phase, quadrature |
Expressions defining the two signal components |
allocator |
Output tensor allocator |
renderer |
Application renderer for interactive controls |
cuda_toolkit_include_path |
CUDA headers used for runtime expression compilation |
Remarks. Runtime generation requires the CUDA toolkit headers. Match the sample interval and I/Q format to the consuming application; the generated data does not configure a physical sample clock.
SignalViewerOp#
SignalViewerOp displays an incoming floating-point I/Q signal using the application's renderer. Its views include the time-domain components and a spectrum computed from the signal, allowing inspection of generated or received samples.
| Parameter | What it sets |
|---|---|
renderer |
Application signal renderer |
Remarks. Input contains interleaved I/Q components and must contain complete pairs. Display requires a running renderer and access to the application's graphics environment.
IQDecoderOp#
IQDecoderOp decodes signed 16-bit interleaved I/Q values into floating-point samples on the GPU, applying the configured scale. It converts a transport representation into the form consumed by the signal-processing and viewing operators.
| Parameter | What it sets |
|---|---|
scale |
Decode scale; default 1 |
renderer |
Optional interactive scale controls |
Remarks. Input packing must match the signed 16-bit I/Q representation. The implementation requires a component count divisible by eight. Agree on scale with the producer rather than assuming all integer samples represent the same physical range.
IQEncoderOp#
IQEncoderOp converts floating-point I/Q samples to signed 16-bit interleaved storage on the GPU, using the configured scale. It prepares signal data for a transport or device expecting integer I/Q values.
| Parameter | What it sets |
|---|---|
scale |
Encode scale; default 1 |
renderer |
Optional interactive scale controls |
Remarks. Input must contain complete interleaved I/Q pairs, with a component count divisible by eight. Choose scaling for the receiver's expected numeric range; integer encoding changes precision.
ComputeCrcOp#
ComputeCrcOp computes a CRC32 checksum over an input GPU tensor using nvCOMP and forwards the tensor unchanged. It uses CRC-32/JAMCRC, the bit-inverted CRC32 representation recorded by HSB. A paired check operator retrieves the asynchronous result later in the graph.
| Parameter | What it sets |
|---|---|
cuda_device_ordinal |
GPU used for CRC computation |
frame_size |
Upper bound used to tune computation; actual checked bytes come from the received tensor |
Remarks. Keep this operator before any stage that modifies the bytes you intend to validate. Retrieving the result synchronizes with CRC completion; use CheckCrcOp at the point where the result is needed.
CheckCrcOp#
CheckCrcOp retrieves the result from a linked ComputeCrcOp and forwards its own input unchanged. Its default behavior records the computed checksum in pipeline metadata. A subclass can override check_crc to compare it with an expected checksum and implement application-specific validation.
| Parameter | What it sets |
|---|---|
compute_crc_op |
Corresponding CRC compute operator |
computed_crc_metadata_name |
Metadata key for the default result storage; default computed_crc |
Remarks. The default implementation records a checksum; it does not automatically compare against a sensor checksum or reject a frame. Fetching the result may stall until GPU computation completes.
ComputePvaCrcOp#
ComputePvaCrcOp offloads CRC computation to the Programmable Vision Accelerator (PVA). It submits a configured byte region asynchronously, with controls for chunked calculation and use of both vector processing units. A paired check operator retrieves the completed result.
| Parameter | What it sets |
|---|---|
data_size, start_byte |
Size and starting offset of the checked byte region |
remaining_size, is_first_chunk |
Chunk position and initial CRC conditioning |
use_dual_vpu |
Split computation across both PVA vector processing units |
Remarks. Requires PVA hardware and libraries supported by this implementation. The configured buffer size must be a multiple of four and fall within the PVA implementation's supported range. Chunk settings affect how partial CRC results combine; use a consistent configuration across chunks.
CheckPvaCrcOp#
CheckPvaCrcOp retrieves the checksum produced by a linked ComputePvaCrcOp and makes it available through the configured metadata key. It separates submission of PVA work from the point where the application needs the result.
| Parameter | What it sets |
|---|---|
compute_pva_crc_op |
Corresponding PVA compute operator |
computed_crc_metadata_name |
Metadata key for the checksum |
Remarks. Result retrieval can wait for PVA completion. Configure the compute and check operators together and supply the application's comparison logic when validating against a received checksum.
SubFrameCombinerOp#
SubFrameCombinerOp copies incoming image strips into a full-height GPU image. It uses frame and row metadata to place each sub-frame and emits the accumulated frame when complete, allowing downstream operators that require whole images to consume a sub-frame capture pipeline.
| Parameter | What it sets |
|---|---|
allocator, cuda_device_ordinal |
Full-frame output allocation and device |
out_tensor_name |
Output tensor name |
height |
Full output image height |
Remarks. Supply correctly ordered frame/row metadata and the full output height. If a new frame arrives before the previous frame is complete, the implementation emits the partial frame and logs a warning about dropped sub-frames; downstream processing must account for that possibility.
SubFrameVisualizerOp#
SubFrameVisualizerOp accumulates and displays image strips as a frame arrives. Its display-timing path can synchronize camera capture to display refresh through a PTP synchronizer, supporting latency-focused sub-frame applications.
| Parameter | What it sets |
|---|---|
full_frame_height |
Height of the complete image being assembled |
fullscreen, use_exclusive_display, display_name |
Window or direct-display mode and target display |
display_width, display_height, display_framerate |
Display geometry and refresh rate |
window_title |
Window caption |
ptp_synchronizer |
Timing connection used to align camera capture and display |
Remarks. Requires display access, correctly timed sub-frame input, and a matching full-frame height. Capture/display synchronization also depends on the sensor and PTP setup; selecting a display rate alone does not establish synchronization.
Receiver configuration#
Receivers take the data channel and the sensor start and stop callbacks when the operator is created. In C++, pass the channel and callbacks to graph.op. In Python, pass data_channel, device_start, and device_stop. Each frame leaves on tensor and metadata, which consumers pair by capture time.
| Parameter | What it sets |
|---|---|
frame_context |
CUDA context the receive thread makes current |
frame_size |
Sensor payload size in bytes. This also sizes the output tensor pool |
trim |
Trim the payload to the bytes written |
frame_limit |
Complete after this many frames. 0 means no limit |
frame_limit_ends_run |
End the run once every receiver with this set has reached its limit |
watch_ingress |
Also run after a second without a frame, and log an ingress timeout |
Size buffers for the sensor's actual payload, transport alignment, and metadata, and configure the sensor and receiver as one capture path.
See the C++ operator sources, Python operators, and HsbControllerOp for complete interfaces and defaults.
Hardware and support#
| Hardware | Role |
|---|---|
| Lattice CertusPro-NX Sensor-to-Ethernet Bridge | Sensor-to-Ethernet bridge board |
| Microchip Holoscan Sensor Bridge | Sensor-to-Ethernet bridge board |
| Sony IMX274, IMX477, and IMX715 | Supported cameras |
| Leopard VB1940 | Supported camera |
Follow the Sensor Bridge user guide for firmware, networking, timing, and platform setup. This release uses FPGA v2609. Update it with hsb_flasher, as described in Firmware Setup. Installing Holoscan SDK 5 alone does not configure the bridge.
Examples#
| Example | What it shows |
|---|---|
linux_imx274_player (C++) / Python |
Linux-socket capture, CSI conversion, image processing, and display |
imx274_player |
IMX274 camera capture over RoCE |
cpu_roce_loopback |
CPU-managed RoCE loopback |
audio_player |
Audio streaming |
signal_generator |
Generate and transmit signal samples |
linux_sub_frame_imx274_player |
Capture and display partial frames |