> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinatric.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect to the gateway

> Configure DDS discovery and verify a read-only connection to the RK3576 gateway.

This guide applies to Kinatric D2 and D2W on the RK3576 deployment. Commands run from the deployment repository root with its pinned SDK dependencies available.

Use the same **external DDS domain** on the board and client. The default external domain is `0`. The board uses a separate internal domain, `71` by default. Configure the board's interface with `KINATRIC_DDS_INTERFACE` and the external domain with `KINATRIC_DDS_DOMAIN`. On a unicast discovery setup, set the board's `KINATRIC_DDS_PEER` to the client IP and pass the board IP to the client as `--peer`. Multicast discovery can omit the peer on a compatible network.
From the repository root on the client, run the read-only status probe. Set `D2_DOMAIN` to the gateway's external domain, `PC_IFACE` to the client interface name or IPv4 address, and `D2_IP` to the board's IPv4 address. The probe reports the API version, service list, `CheckMode` result, control status, and available feedback. In standby, version and service queries can succeed while live joint feedback is unavailable and `CheckMode` reports `4202`.

```sh theme={null}
python sdk/read_status.py --domain "$D2_DOMAIN" --interface "$PC_IFACE" --peer "$D2_IP"
```

C++ applications initialize `ChannelFactory` before constructing the clients. This read-only example assumes DDS discovery is already configured for the selected interface. The repository's interoperability example also supports a Cyclone DDS configuration for explicit peers.

```cpp theme={null}
#include <iostream>
#include <string>
#include <kinatric/robot/channel/channel_factory.hpp>
#include <kinatric/robot/d2/sport/sport_client.hpp>

int main(int argc, char* argv[]) {
    if (argc != 3) return 2;  // Arguments are the DDS domain and client interface.
    const auto domain = std::stoi(argv[1]);
    kinatric::robot::ChannelFactory::Instance()->Init(domain, argv[2]);

    kinatric::robot::d2::SportClient sport;
    sport.SetTimeout(3.0f);
    sport.Init();

    const auto version = sport.GetServerApiVersion();
    std::cout << version << '\n';
    return version == sport.GetApiVersion() ? 0 : 1;
}
```

Continue to [motion control and service discovery](https://docs.kinatric.com/sdk/motion-services/motion-control.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.