High-performance Data Distribution Service implementation in pure Rust, with native SDKs for C, C++, Python, and TypeScript.
HDDS is a from-scratch implementation of the OMG DDS (Data Distribution Service) and RTPS (Real-Time Publish-Subscribe) specifications, designed for low-latency data distribution across embedded and distributed systems.
| Languages | Platforms | |
|---|---|---|
| SDKs | Rust, C, C++, Python, TypeScript | Linux (tested); Windows: cross-built, test suites run on Windows 11 and under Wine, with known test-portability failures; macOS: tested natively on macOS 14 (x86_64), Apple Silicon not yet tested (Linux and build from source guides) |
| Embedded | Rust (no_std), C (FFI and header-only) |
Intended: ESP32, ARM64; seL4 on Raspberry Pi 4 (see Hardware Targets; no CI lane) |
| ROS 2 | rmw layer (C) | Humble (ten-round RMW comparison, see ROS 2 Performance); Iron, Jazzy: builds expected, no recorded run (per-distro gate) |
| IDL Codegen | Rust, C, C++, Python, TypeScript, Rust-micro, C-micro | All |
New to DDS? Read What is DDS? for a beginner-friendly introduction.
Quick Start by language: Rust | C | C++ | Python | Embedded
What changed in this release: docs/changelog.md, including the "Upgrading" notes you need when moving generated code from an earlier version.
Nothing received? Discovery uses UDP multicast and fails silently where multicast cannot flow (VPN, container, firewall). See Network prerequisites.
Note: published crates.io versions may lag this repository. For the latest features, clone the repo and use a path dependency. Full documentation: docs.hdds.io
# Clone and build
git clone https://git.hdds.io/hdds/hdds.git && cd hdds
cargo build --release
# Install the code generator (generates types for Rust, C, C++, Python, TypeScript, embedded).
# Use hddsgen 2.0 or later with this release: `hddsgen --version` to check.
git clone https://git.hdds.io/hdds/hdds_gen.git && cargo install --path hdds_gen
# Generate the sample types (sdk/samples/**/generated/ is not checked in)
sdk/samples/scripts/generate.sh
# Run the Hello World sample (two terminals needed)
cd sdk/samples/01_basics/rust
cargo run --bin hello_world # Terminal 1: subscriber
cargo run --bin hello_world -- pub # Terminal 2: publisherIf you use the C, Python or TypeScript SDK: run
cargo build --release -p hdds-cafter any workspace-wide build. A workspace build also builds the ROS 2 middleware crate, which makes cargo resolvehdds-cwith itsrmwfeature, and the resultinglibhdds_cthen carries undefinedrosidl_runtime_c__*symbols; loading it fails withundefined symbol: rosidl_runtime_c__U16String__assignn. Building-p hdds-crelinks it without them.
# In your project's Cargo.toml
[dependencies]
hdds = { path = "../hdds/crates/hdds" }# 1. Build C++ SDK (auto-builds hdds-c + C++ wrappers)
cd hdds
make sdk-cxx
# 2. Build samples (their types come from hddsgen, see Quick Start above)
sdk/samples/scripts/generate.sh
make samples-cpp
# 3. Run (two terminals)
cd sdk/samples/01_basics/cpp/build
./hello_world # Terminal 1: subscriber
./hello_world pub # Terminal 2: publisherIn your own project:
#include <hdds.hpp>
#include "MyType.hpp" // generated by: hddsgen gen cpp MyType.idl -o MyType.hpp
hdds::Participant participant("my_app");
auto writer = participant.create_writer<MyType>("topic");
writer.write(MyType{42, "hello"});cmake_minimum_required(VERSION 3.16)
project(myapp CXX)
set(CMAKE_CXX_STANDARD 17)
find_package(hdds REQUIRED)
add_executable(myapp main.cpp)
target_link_libraries(myapp PRIVATE hdds::hdds)# CMAKE_PREFIX_PATH tells CMake where to find hdds-config.cmake
# (shipped in sdk/cmake/ -- provides the hdds::hdds imported target)
cmake .. -DCMAKE_PREFIX_PATH=/path/to/hdds/sdk/cmakeFull tutorial: Hello World C++
# Build libhdds_c (target/release/libhdds_c.a and libhdds_c.so; header: sdk/c/include/hdds.h)
cd hdds
make sdk-c # same as: cargo build --release -p hdds-c
# Optional: install header, libraries, pkg-config file and CMake config
make install-c PREFIX=$HOME/.local# Link against the shared library (needs LD_LIBRARY_PATH, or a prefix the loader knows)
export PKG_CONFIG_PATH=$HOME/.local/lib/pkgconfig
cc app.c $(pkg-config --cflags --libs hdds_c) -o app
LD_LIBRARY_PATH=$HOME/.local/lib ./app
# Or link the static archive: no runtime dependency on libhdds_c.so
cc app.c -I$HOME/.local/include $HOME/.local/lib/libhdds_c.a -lpthread -ldl -lm -o appfind_package(hdds REQUIRED COMPONENTS c) # C API only, no C++ SDK needed
target_link_libraries(app PRIVATE hdds::hdds_c)make test-c-install checks all three ways against a temporary prefix.
Full tutorial: Hello World C
Participants find each other with UDP multicast (SPDP on 239.255.0.1, on
port 7400 + 250 x domain for domain 0 and each other domain; see
Linux installation). When multicast cannot flow, nothing fails: the
programs run, writes succeed, and the subscriber simply never receives.
Typical causes: a VPN that captures multicast (the log then shows
IP_MULTICAST_IF=... blocked (VPN/tunnel policy?)), a container network, a
firewall dropping the UDP ports of your domain (7400 + 250 x domain to 7649 +
250 x domain, i.e. 7400-7649 for domain 0), or a host without a multicast route.
- One machine: pin both sides to loopback with
HDDS_INTERFACE=lo(an interface name or an IPv4 address). - Several machines on one LAN:
HDDS_INTERFACE=eth0(or the address) selects the interface that carries multicast. - No multicast at all: list the peers by unicast with
HDDS_SPDP_UNICAST_PEERS=10.0.0.5:7410,10.0.0.6:7410(each peer's discovery port: 7410 + 250 x domain + 2 x participant index), or run the Discovery Server. - Telling discovery failed: with logging on (in Rust, install a
logbackend such as env_logger and run withRUST_LOG=info; in C and Python, call the SDK's logging init), each participant prints adiscovery config:line at startup; a writer reports its matched readers (matched_reader_count()in Rust and Python,hdds_writer_matched_reader_count()in C). Zero after a few seconds means the two sides never met.
Full guide: Common issues.
- DDS v1.4 - Publish-subscribe API with typed DataReader/DataWriter; QoS policy coverage: see Quality of Service
- RTPS 2.4 on the wire - announced as protocol version 2.4 for the widest interoperability; the receive path gates on the major version only, so any 2.x peer is accepted. HDDS encodes DATA, DATA_FRAG, GAP, HEARTBEAT, HEARTBEAT_FRAG, ACKNACK, NACK_FRAG, INFO_TS and INFO_DST; INFO_SRC and INFO_REPLY are recognised on receive but not emitted
- XTypes v1.3 - TypeIdentifier/TypeObject, type compatibility checking and type announcement in discovery; runtime TypeLookup is HDDS-only and behind the
type-lookupfeature - DDS Security v1.1 - Authentication, access control and AES-256-GCM payload encryption plugins, HDDS-to-HDDS; payload SIGN and cross-vendor security interoperability are not covered (see security guide)
Complete implementation of the Real-Time Publish-Subscribe protocol:
- Full RTPS message header parsing and construction (GuidPrefix, Version, VendorId)
- Submessages encoded: DATA, DATA_FRAG, GAP, HEARTBEAT, HEARTBEAT_FRAG, ACKNACK, NACK_FRAG, INFO_TS, INFO_DST; INFO_SRC and INFO_REPLY are parsed on receive
- Inline QoS parameter extraction and encoding
- Writer GUID to topic routing with SEDP metadata integration
- 64-bit sequence number tracking
- ParameterList CDR encoding/decoding for discovery payloads
Two-tier CDR implementation:
Encoding (crates/hdds)
- Both XCDR1 and XCDR2 are implemented. A default writer offers and encodes XCDR1 (since 1.5.0); XCDR2 is selected with the DATA_REPRESENTATION QoS, or used by types that do not encode XCDR1 natively
- XCDR2 little-endian encapsulations: 0x0007 (final), 0x0009 (appendable, delimited), 0x000B (mutable, parameter list)
- Compile-time type descriptor generation via derive macro
- Zero-copy cursors for reading serialized data
Decoding
- XCDR1 encapsulations: 0x0001, 0x0003, 0x8001, 0x8003 (CDR v1, including vendor-flagged forms)
- XCDR2 encapsulations: 0x0006, 0x0007 (CDR v2 non-delimited)
- D_CDR2 encapsulations: 0x0008, 0x0009 (Delimited CDR v2 with DHEADER)
CDR Micro (crates/hdds-micro)
- Fixed-buffer encoder/decoder with no heap allocations
- Classic CDR / XCDR1 little-endian only; XCDR2 samples are refused
- Works over a caller-provided buffer; no allocation
XTypes 1.3 type system building blocks (runtime TypeLookup is HDDS-only, behind the type-lookup feature):
- TypeIdentifier - MD5-based equivalence hashing (14-byte truncated)
- TypeObject - Complete and Minimal representations
- Structural type compatibility rules (@final, @appendable, @mutable)
- Member ID tracking for extensible struct evolution
- Bitset, bitmask, enum, union, and alias type support
- Type compression/decompression for wire efficiency
- SEDP integration for automatic type announcement
All 22 DDS v1.4 QoS policies have policy types and builders. The YAML loader covers 21 of them (not DURABILITY_SERVICE) and the Fast DDS XML loader a subset (see QoS Loaders). Not every policy changes runtime behaviour yet: the table below gives the runtime status of each one, and docs/qos-guide.md gives the per-policy detail.
- Enforced: the runtime reads the policy and changes behaviour; limits of scope are in the last column.
- Partial: part of the policy is acted on (a kind, a field or the matching rule), the rest is only accepted.
- Accepted: stored in the QoS, with no runtime effect.
| Policy | Runtime status | What it does at runtime |
|---|---|---|
| Reliability | Enforced | BEST_EFFORT and RELIABLE with NACK-driven retransmission; offered >= requested checked at matching |
| Durability | Partial | VOLATILE and TRANSIENT_LOCAL enforced (late-joiner replay). TRANSIENT and PERSISTENT behave as TRANSIENT_LOCAL in memory in the core; disk persistence is the hdds-persistence service |
| History | Enforced | KEEP_LAST(n) and KEEP_ALL with bounded depth, per instance |
| Deadline | Enforced | Missed-deadline detection on writers and readers with listener status; offered <= requested checked at matching |
| Lifespan | Enforced | Sample expiration on the writer history and the reader cache |
| Ownership | Enforced | SHARED and EXCLUSIVE; under EXCLUSIVE the instance moves to the next writer when the owner unregisters, leaves, loses liveliness or misses its deadline |
| Ownership Strength | Enforced | Writer strength decides the owner of an instance under EXCLUSIVE (ties go to the lower GUID) |
| Partition | Enforced | A writer and a reader match only on a common partition name (wildcards supported) |
| Time-Based Filter | Enforced | Minimum separation between samples, applied on the reader per instance |
| Resource Limits | Enforced | Writer cache: max_samples, max_instances, max_samples_per_instance, max_quota_bytes. Reader: max_samples, max_instances, max_samples_per_instance (max_quota_bytes is not applied on the reader) |
| Presentation | Enforced | Access scope INSTANCE, TOPIC, GROUP; coherent access at TOPIC and GROUP scope; ordered access across a Subscriber's readers at GROUP scope; offered scope >= requested checked at matching |
| Durability Service | Enforced | TRANSIENT and PERSISTENT writers only: history_depth and the resource limits size the replay cache, and service_cleanup_delay drives a cleanup timer for disposed, unreferenced instances |
| Liveliness | Enforced | AUTOMATIC, MANUAL_BY_PARTICIPANT, MANUAL_BY_TOPIC: lease tracking, on_liveliness_changed / on_liveliness_lost, assert_liveliness(); kind and lease checked at matching |
| Latency Budget | Partial | Only the matching rule (offered <= requested) is applied; the value does not affect delivery |
| Transport Priority | Accepted | Stored; not mapped to DSCP, SO_PRIORITY or VLAN PCP, and not announced in discovery. Socket DSCP is configured per participant through the transport options |
| Destination Order | Enforced | BY_RECEPTION_TIMESTAMP and BY_SOURCE_TIMESTAMP (reader-side ordering by source timestamp); offered kind >= requested checked at matching |
| Entity Factory | Accepted | Entities are always created enabled |
| Writer Data Lifecycle | Enforced | autodispose_unregistered_instances is applied on unregister_instance() |
| Reader Data Lifecycle | Accepted | Autopurge delays are stored; no purge timer exists |
| User Data | Partial | Writer and reader user data is announced in SEDP (PID_USER_DATA); no API returns a remote entity's value, and nothing is carried in SPDP |
| Group Data | Accepted | Stored locally; not propagated in discovery |
| Topic Data | Accepted | Stored locally; not propagated in discovery |
DATA_REPRESENTATION (an XTypes policy, not one of the 22) is enforced: a writer resolves its representation at creation and a mismatched pair does not match.
| Format | Loader | Description |
|---|---|---|
| FastDDS XML | FastDdsLoader |
eProsima FastDDS profiles (<data_writer>, <data_reader>); reads a subset of the QoS policies |
| YAML | YamlLoader |
HDDS native format (named profiles, a default profile) |
| Auto-detect | ProfileLoader |
Extension-based format detection (.xml, .yaml, .yml) |
Requires qos-loaders feature flag.
- SPDP (Simple Participant Discovery Protocol) - Multicast participant announcement
- SEDP (Simple Endpoint Discovery Protocol) - Topic, reader, and writer discovery
- Writer GUID to topic name mapping for data routing
- Participant lease duration monitoring with automatic cleanup
The workspace ships the standalone hdds-discovery-server binary and its
matching client protocol. ParticipantBuilder::with_discovery_server starts and
owns the client lifecycle, registers the participant, and turns server-provided
locators into unicast SPDP destinations. Multicast discovery is disabled by
default in this mode and can be retained with with_multicast_enabled().
By default the server is a rendezvous service: after the initial locator
exchange, peers must be able to reach each other's advertised UDP locators
directly. An opt-in relay mode (server --relay, client
DiscoveryServerConfig::with_relay()) forwards datagrams through the server
for peers that announce no address reachable from here; its tested perimeter
is not documented yet, so do not rely on it for NAT traversal.
Cloud provider integration. All three backends are implemented and tested end to end against in-process fake endpoints; none has been certified against a live provider account, so treat them as preview:
| Provider | Status | Features |
|---|---|---|
| AWS Cloud Map | Implemented | ECS task metadata, service registration, DNS-SD, SigV4 signing |
| Azure (Table Storage registry) | Implemented | Managed Identity, AKS Workload Identity or SAS; lease-based expiry |
| Consul | Implemented | Key-value registration, health checking |
- IPv4 unicast and multicast (IGMP) with automatic interface binding; IPv6 sockets are not supported yet (IPv6 locators from peers are parsed but not used)
- RTPS port mapping per the DDSI-RTPS default port formula (PB 7400, DG 250, PG 2, d0 0 / d1 10 / d2 1 / d3 11), identical across 2.3, 2.4 and 2.5
- Custom port mapping overrides for firewall traversal
- Interface filtering by name or IPv4 CIDR
- Source filtering (
HDDS_SOURCE_ALLOW/HDDS_SOURCE_DENY): not supported in 1.5.0; setting either variable makes participant creation fail
HDDS provides an HDDS-to-HDDS TCP endpoint and manual tcp_connect /
tcp_send APIs. Incoming framed RTPS is routed into the reader path, but
DataWriter::write still sends over UDP and TransportPreference does not
route DDS writes today. This is a transport building block, not transparent DDS
over TCP for UDP-blocked deployments.
- Length-prefixed framing (4-byte header)
- Connection pooling with automatic reconnection
- Non-blocking I/O via mio event loop
- Connection state machine (Idle, Connecting, Connected, Reconnecting, Closing, Closed, Failed)
- TLS 1.2/1.3 support with certificate validation (tcp-tls feature)
- Configurable roles: Client, Server, Auto
Same-host inter-process transport over shared memory (one copy into the ring, one copy out; no socket):
- POSIX shared memory segments with deterministic naming
- Lock-free ring buffer with 64-byte cache line alignment
- Futex-based reader wakeup
- No published latency figure yet: the
shm_latencybench exists, but no result is published (see Benchmarks) - Automatic SHM capability negotiation via a vendor-specific SEDP parameter (
PID_HDDS_SHM_CAPABILITY); the standard USER_DATA QoS stays with the application - Host ID matching for same-machine detection
TSN building blocks for deterministic Ethernet; not yet integrated into the DataWriter path:
- SO_PRIORITY to traffic class mapping (mqprio)
- VLAN PCP (Priority Code Point) tagging
- SO_TXTIME / SCM_TXTIME for scheduled transmission
- Runtime detection of ETF / TAPRIO qdiscs and hardware timestamping support (nothing configures a qdisc or reads hardware timestamps)
Optimized HDDS-to-HDDS protocol for constrained links. It is a separate transport API
(Participant::create_lowbw_transport with a user-supplied link and its own send);
DataWriter::write does not use it:
- Designed for 9.6 kbps to 2 Mbps throughput
- 100 ms to 2 second RTT tolerance
- Designed for 10-30% packet loss (the session state machine is unit-tested in
isolation at 30% simulated loss,
crates/hdds/src/transport/lowbw/session_test.rs) - Minimal overhead: 3-6 bytes per record, 6-10 bytes per frame
- ULEB128 varint encoding for compact integers
- LZ4 compression (optional, lowbw-lz4 feature)
- Delta encoding for telemetry streams
- Priority-based scheduling (P0 reliable, P1 batched, P2 droppable)
- Session state machine with HELLO/MAP/ACK handshake: it exists and is unit-tested on its own, but
LowBwTransportdoes not start it yet - CRC-16/CCITT-FALSE integrity checking
Building blocks for applications that explicitly drive IP-change handling:
- Poll-based or Netlink-based change detection (Linux)
- Locator tracking with hold-down timers
- SPDP burst reannouncement helper on locator change
- Interface hot-plug support
The participant does not instantiate the mobility monitor automatically.
- Heartbeat transmission with configurable period and jitter
- Gap submessage generation for non-contiguous sequences
- History cache for sample retransmission
- NACK processing with selective repair
- Writer retransmit handler: repairs from the history cache, GAP for evicted sequence numbers
- Heartbeat reception and processing
- Per-writer acknowledgement state and ACKNACK repair requests from the control plane
- Out-of-order sample buffering
NackSchedulerandGapTrackerexist as standalone utilities, not wired to the live DataReader
Writer-side counters:
- Heartbeats sent
- Retransmissions sent
- Gaps (count, largest)
- Controls refused
Congestion control building blocks, available as library types in hdds::congestion; they are not applied automatically to DataWriters:
- Token Bucket - Per-writer rate limiting with configurable budget
- Priority Queues - P0 (critical), P1 (normal), P2 (background)
- AIMD - Additive Increase / Multiplicative Decrease rate adaptation
- P2 Coalescing - "Last value wins" by instance key
- RTT Estimation - EWMA-based round-trip time tracking
- ECN - Explicit Congestion Notification processing
- WFQ - Weighted Fair Queuing across writers
- Budget Allocator - P0 reserve with P1/P2 distribution
- NACK Coalescing - Batched repair requests
HDDS-to-HDDS. Payload SIGN in governance and cross-vendor security interoperability are not covered; see security guide.
Known limitations: the control submessages of user endpoints (HEARTBEAT, GAP, ACKNACK, end of coherent set) are not authenticated, a governance that requests metadata or RTPS protection is refused at participant creation, and source filtering (HDDS_SOURCE_ALLOW / HDDS_SOURCE_DENY) is not supported: setting it fails participant creation. See Known Limitations in the security guide and SECURITY.md.
- X.509 certificate-based identity verification
- Certificate chain validation with CA trust anchors
- Certificate expiration and revocation checking
- Identity token exchange during discovery handshake
- AES-256-GCM encryption for data confidentiality
- ECDH P-256 key exchange for session key establishment
- HKDF session key derivation
- DDS-Security 1.1 CryptoHeader / CryptoContent / CryptoFooter payload protection, including the serialized encapsulation. Full cross-vendor security interoperability remains unverified; see security guide
- Nonce generation with cryptographic RNG
- Permissions XML parsing and validation
- Topic-level allow/deny rules
- Partition-based access control
- Participant identity to permissions mapping
- Security event trail generation, hash-chained (design goal: ANSSI IGI 1300 style traceability; not a certification)
- File-based log backend
- RFC 5424 syslog export over UDP (
audit_syslog_address), alongside the file or on its own
No-std DDS implementation for microcontrollers and constrained devices.
- no_std compatible - The core builds without
std; the seL4 port builds it foraarch64-unknown-none, the ESP32 example runs it withstdon ESP-IDF - Small footprint by design - no heap allocation in the core (core
.textfootprint: see the hdds-micro API page) - Intended targets - aarch64, armv6, x86_64, Xtensa (see Hardware Targets: no CI or hardware evidence for these)
- Multiple transports - UDP, LoRa, HC-12, NRF24L01, CC1101
- Mesh networking - Multi-hop relay with TTL-based flooding
- RTPS based - Talks to HDDS participants (no discovery in the crate, XCDR1 little-endian samples); not a general-purpose, vendor-interoperable RTPS stack
The Cargo features esp32, rp2040, stm32, wifi and lora are declared but gate no code; they are not target support. Only std, alloc and heapless change the build.
- Flash design target: < 100 KB
- RAM design target: < 50 KB
- No heap allocations in core (fixed-size arrays and caller-provided buffers)
- No floating point in the RTPS and CDR logic (user data may contain f32/f64); the LoRa and HC-12 drivers compute radio frequencies in f32
| Platform | Architecture | Transport |
|---|---|---|
| Linux PC | x86_64 | WiFi UDP |
| Raspberry Pi Zero 2 W | aarch64 | WiFi UDP |
| Raspberry Pi Zero v1 | armv6 | WiFi UDP |
| ESP32-WROOM-32 | Xtensa | WiFi UDP |
| ESP32-WROVER-E | Xtensa | WiFi UDP |
| ESP32 + HC-12 | Xtensa | 433 MHz Radio |
| Raspberry Pi 4 (seL4 / Microkit) | aarch64 | Ethernet UDP (sDDF), see hdds-micro-sel4 |
These are the platforms hdds-micro is intended for. There is no CI lane and no
recorded hardware result in this repository for any of them except the seL4
port, whose README records its Raspberry Pi 4 run. No firmware size is
published. Manual hardware scripts exist (crates/hdds-micro/esp32-example/scripts/,
crates/hdds-micro/scripts/test_pc_to_esp32.sh).
Datasheet values for the chips, not HDDS measurements. The drivers expose a narrower range (for example the CC1101 driver offers 1.2-250 kbps, the HC-12 driver modes about 1.2-5 kbps).
| Module | Frequency | Data Rate (datasheet) | Range (datasheet) | Use Case |
|---|---|---|---|---|
| LoRa SX1276/78 | 868/915 MHz | 0.3-37.5 kbps | 10+ km | Long range, low power |
| HC-12 | 433 MHz | 1.2-236.8 kbps | 1 km | Simple serial radio |
| NRF24L01+ | 2.4 GHz | 250k-2M bps | 100 m | High speed, short range |
| CC1101 | 315/433/868/915 MHz | 1.2-500 kbps | 500 m | Multi-band, versatile |
- Configurable spreading factor (SF7-SF12)
- Bandwidth: 125/250/500 kHz
- Coding rate: 4/5 to 4/8
- TX power: 2 to 20 dBm
- Packet fragmentation for payloads > 255 bytes
- RSSI and SNR monitoring
Multi-hop message relay:
- Controlled flooding with TTL
- Duplicate detection via sequence cache
- RSSI-based neighbor tracking
- Configurable relay behavior
- TTL carried in a 4-bit header field (default 3; the gateway preset uses 7)
LoRa to WiFi/UDP bridge (requires std feature):
- Transparent protocol translation
- Per-stream routing configuration
- Statistics and monitoring
Main modules (not an exhaustive file list):
hdds-micro/
+-- src/
| +-- lib.rs # no_std entry point
| +-- cdr/ # CDR serialization
| +-- rtps/ # RTPS protocol types
| +-- core/ # Participant, Reader, Writer
| +-- gateway/ # LoRa-WiFi bridge (std only)
| +-- transport/
| +-- udp.rs # WiFi/Ethernet UDP
| +-- lora/ # LoRa SX1276/78
| +-- hc12/ # HC-12 433 MHz
| +-- nrf24/ # NRF24L01 2.4 GHz
| +-- cc1101/ # CC1101 multi-band
| +-- mesh/ # Multi-hop relay
+-- examples/
| +-- temperature_pubsub.rs
+-- scripts/
| +-- esp32_publisher.py
| +-- esp32_monitor.py
+-- esp32-example/ # ESP32 firmware project
crates/hdds-micro-c: C FFI over hdds-micro (built withstd) (static and shared library,hdds_micro.h, Arduino examples). It is built on thestdfeature of hdds-micro and has the same perimeter: it talks to HDDS participants, not to arbitrary DDS implementations.crates/hdds-micro-sel4: seL4 / Microkit transport for hdds-micro (no_std,aarch64-unknown-none, standalone crate outside the workspace). Its README records a Raspberry Pi 4 run with static unicast and no discovery: 100 samples in each direction with a Linux hdds-micro peer. The evidence logs are held by the maintainers, not in this repository.
cd crates/hdds-micro
# Native build (output: ../../target/release/examples/temperature_pubsub)
cargo build --release --example temperature_pubsub --features std
# Cross-compile for Pi Zero 2 W (aarch64); needs the Rust target and a cross linker
# (output: ../../target/aarch64-unknown-linux-gnu/release/examples/temperature_pubsub)
cargo build --example temperature_pubsub --features std \
--target aarch64-unknown-linux-gnu --release
# Cross-compile for Pi Zero v1 (armv6, static musl)
# (output: ../../target/arm-unknown-linux-musleabihf/release/examples/temperature_pubsub)
cargo build --example temperature_pubsub --features std \
--target arm-unknown-linux-musleabihf --release
# Run subscriber (from the output directory, or copy the binary to the device)
./temperature_pubsub sub
# Run publisher; the default destination is the subnet broadcast 192.168.0.255:17401,
# set HDDS_DEST_IP to target one host
HDDS_DEST_IP=192.168.0.100 ./temperature_pubsub pubIDL to source code generator:
- Rust output with derive macros
- C/C++ output with type support
- Python bindings generation
- Embedded-optimized output (no-std compatible)
Command-line viewer for the telemetry stream.
Command-line client for the hdds-gateway REST API (default http://127.0.0.1:8080):
health,mesh,topics,metrics,info,statusandwatchsubcommands
Web dashboard over the Admin API (mesh, topics, metrics, health); it does not capture traffic.
QoS profile conversion utility: converts RTI Connext XML QoS profiles to the MCQ YAML format (Fast DDS and Cyclone DDS input is not supported yet); also validates and normalizes MCQ files.
Utilities for protocol analysis and interop debugging:
| Tool | Description |
|---|---|
validate_sedp.py |
SEDP packet validator for cross-vendor interop debugging |
wireshark/hdds_rtps.lua |
Wireshark dissector for RTPS/DDS traffic (see tools/wireshark/README.md) |
Usage:
python3 tools/validate_sedp.py /tmp/capture.pcap --verboseTRANSIENT and PERSISTENT durability service:
- SQLite backend (default)
- A RocksDB feature flag exists, but no RocksDB store is implemented yet
- Sample storage and retrieval
- Late joiner sample replay
Recording and replay service:
- Topic recording to file
- MCAP export of a finished recording (optional
mcapfeature, library API; the command-line tools use the.hddsformat) - Time-synchronized replay
- Topic filtering
Domain bridging and topic transformation:
- Multi-domain routing
- Topic name remapping
- QoS adaptation
Read-only REST view of the Admin API with a web UI:
- Endpoints for health, mesh, topics, metrics, writers, readers and info (GET only; no publishing or subscribing of user data)
- CORS support for web applications
- Embedded static file serving
Centralized DDS logging service:
- Topic-based log aggregation
- Filtering by topic, participant, or content
- Multiple output formats
- Thread-safe metrics collection with atomic counters
- Latency histogram tracking
- Binary frame encoding (HDMX format)
- Live telemetry streaming server
- Epoch-based state snapshots
- Snapshot reads behind a read-write lock, separate from the data path
- Binary protocol on TCP port 4243
- Mesh topology introspection
- Participant, topic, and endpoint views
- Telemetry is exported as an HDMX binary stream; the
hdds-telemetry-otlpcrate is a separate OTLP exporter that HDDS does not feed in this release - Mobility metrics can be rendered in Prometheus text format
| SDK | Location | API Functions | Samples |
|---|---|---|---|
| Rust (native) | crates/hdds/ |
Full typed API | 11 categories |
| C | sdk/c/ + crates/hdds-c/ |
Generated ABI, including dynamic types and filter evaluation | 10 categories |
| C++ | sdk/cxx/ |
RAII wrappers over C FFI | 9 categories |
| Python | sdk/python/ |
ctypes bindings | 10 categories |
| TypeScript | sdk/typescript/ |
Node.js native bindings | 1 category |
| ROS 2 RMW | rmw_hdds/ |
rmw layer (C, ament package); dynamic-type entry points are not supported | ros2 samples |
| SDK | Location | Target Platforms |
|---|---|---|
hdds-micro (Rust no_std) |
crates/hdds-micro/ |
Intended: ESP32, ARM64 (Pi Zero); no CI or hardware evidence, see Hardware Targets |
| hdds-micro-c (C FFI) | crates/hdds-micro-c/ |
Hosts with std (C API, Arduino examples) |
| hdds-micro-sel4 (seL4 / Microkit) | crates/hdds-micro-sel4/ |
Raspberry Pi 4 (see its README) |
| C-Micro (header-only) | via hddsgen gen c-micro |
STM32, AVR, PIC, ESP32 |
Embedded transports: WiFi UDP, LoRa SX1276/78, HC-12 433 MHz, NRF24L01+ 2.4 GHz, CC1101, mesh relay.
Separate repository: hdds_gen
hddsgen gen <target> input.idl [--example] [--out-dir ./project]| Target | Output | Notes |
|---|---|---|
rust |
Typed structs + DDS traits | --serde for JSON/MessagePack |
c |
C89/C99/C11 structs + CDR codec | --c-standard c11 |
cpp |
C++ structs + type support | --fastdds-compat for interop |
python |
Python classes + CDR2 serialization | |
typescript |
TypeScript types + CDR2 codec | alias: ts |
micro |
Rust no_std types for hdds-micro |
|
c-micro |
Header-only C for MCUs | No malloc, fixed buffers |
HDDS ships a shape_main example that drives the OMG DDS-RTPS interoperability test suite, the public test suite the OMG uses for DDS interoperability. To run the suite against HDDS on your own machine:
# Run locally
cargo build --example shape_main --release
cd /path/to/dds-rtps
python3 interoperability_report.py \
-P /path/to/hdds/target/release/examples/shape_main \
-S /path/to/hdds/target/release/examples/shape_mainHDDS speaks standard RTPS. scripts/interop-smoke/ is a reproducible check of
how HDDS interoperates with other open-source DDS implementations: it runs the
same small type in both directions, RELIABLE and BEST_EFFORT, between HDDS and
a container built from each project's own pinned release, and counts the
samples that actually arrive. In the reference runs, three full runs against
- Eclipse Cyclone DDS 11.0.1 (EPL-2.0 OR BSD-3-Clause),
- eProsima Fast DDS 3.6.2 (Apache-2.0),
- OpenDDS 3.34.0 (OpenDDS License, permissive)
reached "interoperates" in all 12 cells of each run (3 projects x 2 directions x 2 reliability kinds, 100/100 samples every time). This is a report of HDDS's own interoperability, not a ranking or a comparison; a cell that does not pass is reported as "not passing yet". The table, the exact versions and the commands to rerun it are in docs/interop/index.md and scripts/interop-smoke/README.md. RTI Connext is not part of this table.
Cargo features for vendor-specific wire format handling (each adapts HDDS to the wire behaviour of one other DDS implementation, selected once when the peer is discovered; the dialect names are the peers' product names):
- dialect-coredx
- dialect-dust
- dialect-gurum
- dialect-intercom
- dialect-opensplice
cargo build --release| Feature | Description |
|---|---|
xtypes |
XTypes v1.3 type discovery (default) |
qos-loaders |
XML/YAML QoS profile loading (default) |
security |
DDS Security v1.1 plugins |
tcp-tls |
TLS support for TCP transport |
cloud-discovery |
AWS/Azure/Consul discovery backends |
lowbw-lz4 |
LZ4 compression for low-bandwidth transport |
logging |
Compile-time logging |
trace |
Detailed tracing (requires logging) |
cd crates/hdds-micro/esp32-example
cargo build --release --target xtensa-esp32-espidfcargo test- Unit tests in the core modules
- Integration tests for QoS policies
- RTPS port mapping validation
- Serialization roundtrip tests
- Reliable repair protocol tests
- Mobility end-to-end tests
- Publisher/subscriber integration tests
- Late joiner (TRANSIENT_LOCAL) tests
cargo benchAvailable benchmarks:
write_latency-DataWriter::write()latencyread_latency-DataReader::take()/read()latencydiscovery- Participant discovery handshake timeruntime- Core runtime performanceshm_latency- Shared-memory transport round tripreader_api- DataReader cache API,read()vstake()throughput- Throughputstress_multi_node- Multi-participant stress test (requires--features bench-stress)stress_phase7a- High-load stress scenarios (requires--features bench-stress)
What each benchmark does and does not measure is described in docs/guides/performance/benchmarks.md.
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Copyright (c) 2025-2026 naskel.com
