Skip to main content

connect

The connect command routes a signal of any type between devices. If the source stream is not currently running, connect starts it before routing it to the destination. As part of the DisplayNet API, connect consolidates multiple SDVoE commands into one, enabling simplified signal routing.

Command TypeDisplayNet
Minimum Version2.x.x

Usage

connect <stream_type> <source> <destination>[,<destination>...] [<mode>] [size <width> <height>] [fps <rate>] [quantization <range>] [nokvm|withkvm]

mode, size, fps, and quantization apply only to HDMI and SCALER connections. All other stream types take no options:

connect <stream_type> <source> <destination>[,<destination>...]

Arguments

ArgumentRequiredDescription
stream_typeYesThe signal layer to route. See Stream types.
sourceYesHostname or MAC address of the transmitting device.
destinationYesHostname(s) or MAC address(es) of the receiving device(s). See Destinations.
modeNoDisplay mode for HDMI/SCALER connections. Defaults to the receiver's preferred display mode. See Display modes.
size, fps, quantizationNoCustom output format for HDMI/SCALER connections. See Video parameters.
nokvm, withkvmNoOverride the destination seat's keyboard-and-mouse policy for this one route. See KVM follows video.

Device names are case-insensitive. For hostnames, replace any spaces in the device name with underscores: a source named "Blu-ray Player" in DisplayNet Manager is referenced as blu-ray_player.

Stream types

ValueSignal
HDMIThe primary HDMI video stream
SCALERThe scaled HDMI video stream (used in multiviews)
AUDIOThe analog stereo audio stream
HDMI_AUDIOThe HDMI audio stream
MULTICH_AUDIOThe multichannel audio stream
RS232RS-232 serial connections
INFRAREDInfrared connections
CECCEC connections
USBUSB pairing between one source and one destination
USB_HIDHID-only (keyboard/mouse) pairing between two devices
USBHUBUSB pairing from one source to multiple destination devices

KVM follows video

5.0

A connect routes video. Whether it also hands the destination keyboard and mouse is a property of the destination seat, set with kvm workstation follow and off by default.

Two options override that policy for a single route:

OptionEffect
nokvmRoute video only, even to a seat with follow on.
withkvmCarry keyboard and mouse, even to a seat with follow off.

Giving both is an error — they are opposite instructions for the same route.

The options are accepted on every stream type but only mean anything for HDMI and SCALER; there is no keyboard to follow an audio or serial route. They are also ignored when there is nothing to hand over: a source with no USB host of its own, or a destination that is a plain display rather than a seat. Neither case is an error.

A KVM failure never fails the route. Video is dispatched first and control settles afterwards, so a locked device or an absent receiver leaves the picture exactly where the operator put it and reports the problem as a kvm_autoconnect_warning notification.

Destinations

A destination is a single device, a comma-separated list of devices (no spaces), or one of the group macros below. For AV signals, the source must be a TX device and each destination must be an RX device.

ValueValid forRoutes to
<device>All stream typesA single device, by hostname or MAC address
<device>,<device>,...All except USB, USB_HIDEach listed device
ALL_RXHDMI, SCALER, audio, serialAll receivers in the system
ALL_TXRS232, INFRAREDAll transmitters in the system
ALLRS232, INFRAREDAll other devices in the system
APIRS232, INFRAREDThe API, for ingestion by connected clients
RS-232 and Infrared direction

To establish a bidirectional serial connection between two units, send a command for each direction: connect rs232 device1 device2 and connect rs232 device2 device1.

USB pairing uses hostnames

For USB connections, use device hostnames rather than MAC addresses. The USB chipset has its own MAC address, which is not the MAC address used for AV routing.

Display modes

Applies to HDMI and SCALER connections only. If no mode is given, the connection uses the receiver's configured preferred display mode (fast switched by default).

ModeBehavior
fastswitchFast-switched signal, scaled through the receiver's frame buffer
fastswitch cropFast-switched, cropping the image to preserve the source aspect ratio
fastswitch stretchFast-switched, stretching the image to fill the display
genlockGenlocked signal at source resolution (no scaling, lowest latency)
genlock_scalingScaled signal with genlocked timing, without frame buffer delay

Receivers without a frame buffer always connect genlocked, regardless of the requested mode.

Video parameters

For HDMI and SCALER connections in genlock_scaling or fastswitch modes, a custom output format may be specified. When omitted, the output format is derived from the display's EDID.

ParameterValueDescription
size<width> <height>Output resolution in pixels, e.g. size 1920 1080
fps<rate>Output frame rate, e.g. fps 60
quantizationSee belowOutput color quantization range. Defaults to STANDARD
Quantization valueDescription
STANDARDAppropriate quantization range for the video format, as defined by the CEA-861-F standard
AUTOSame as STANDARD, but explicitly states FULL or LIMITED in the AVI InfoFrame. Works around some monitor issues
LIMITEDForce limited quantization range
FULLForce full quantization range

Examples

Route HDMI video from a Blu-ray player to a display
connect HDMI blu-ray_player lg_4ktv
Route one source to several displays at once
connect HDMI media_pc lobby_left,lobby_right,lobby_center
Route the scaled stream, genlocked
connect SCALER workstation projector genlock
Fast-switch with a custom output format
connect HDMI roku4k monitor fastswitch size 3840 2160 fps 60
Show a source at a workstation without taking its keyboard
connect HDMI camera_1 trading_desk_1 nokvm
Broadcast infrared from a source to every receiver
connect INFRARED stage_laptop ALL_RX
Pair USB from a desktop to a seat
connect USB desktop front_desk

Return value

On success, connect returns the same payload as calling get settings on the destination immediately after the new settings were applied:

connect HDMI blu-ray_player lg_4ktv
{
"status": "SUCCESS",
"request_id": null,
"result": { "...": "device settings for lg_4ktv" },
"error": null
}

Errors

On failure, no routing changes are applied and status is "ERROR":

connect HDMI office_rx lg_4ktv
{
"status": "ERROR",
"request_id": null,
"result": null,
"error": {
"message": "office_rx is not a valid transmitter",
"reason": "CONNECT API ERROR"
}
}
MessageCause
<name> is not a valid transmitterThe source did not match any device, or is not a TX device
<name> is not a valid receiverA destination is not an RX device
Unknown subcommand '<name>'The stream type is not one of the values above
Cannot join stream to locked deviceThe destination is locked
Cannot join to SCALER: <name> has no SCALER streamThe source does not expose a scaled stream

State and side effects

  • DisplayNet records the route. That record is what disconnect tears down, what DisplayNet Manager displays, and what a snapshot preset captures. An SDVoE join or switch moves the same signal without creating the record.
  • The source stream is started for you if it is not already running. You do not need start before connecting.
  • MultiView bookkeeping is kept consistent. A session already running on the affected devices is updated rather than left describing a route that no longer exists.
  • A locked device is refused, whether it is the source or a destination. See lock.

Notifications

Connecting devices generally results in one or more NOTIFICATION or DN_NOTIFICATION replies reflecting the updated state of the devices. See Notifications.

REST API

Endpoint typeDisplayNet API command
AddressPOST /api/displaynet/<operation>, or name the operation in the body of a POST /api/displaynet. See Sending commands.
RoleUser
SubcommandOperationParameters
cecconnect_cecsource destinations [options]*
hdmiconnect_hdmisource destinations [options]*
hdmi_audioconnect_hdmi_audiosource destinations [options]*
infraredconnect_infraredsource destinations [options]*
multich_audioconnect_multich_audiosource destinations [options]*
rs232connect_rs232source destinations [options]*
scalerconnect_scalersource destinations [options]*
stereo_audioconnect_stereo_audiosource destinations [options]*
usbconnect_usbsource destination
usb_hidconnect_usb_hidsource destination
usbhubconnect_usbhubsource destinations

A parameter in brackets is optional. A parameter marked * takes the remainder of the command line as one string. Pass the text exactly as you would type it on the TCI interface.

See also

  • disconnect: tear down a routed connection
  • start / stop: control source streams directly
  • get: inspect the resulting device settings
  • kvm workstation: the seat policy behind nokvm / withkvm