Skip to main content

disconnect

The disconnect command tears down routed connections in a DisplayNet system, regardless of the signal or connection type. For multicast streams (such as HDMI), the receiver leaves the stream and the source stream is stopped and its multicast address freed. For unicast connections (such as RS232 or USB), the connection is terminated.

Command TypeDisplayNet
Minimum Version2.x.x

Usage

disconnect <type | type_macro> <destination>[,<destination>...] [tx | rx]
disconnect wall <wall_name>

Arguments

ArgumentRequiredDescription
typeYesThe signal layer to disconnect, or a macro covering several layers. See Types and Type macros.
destinationYesDevice(s) to disconnect. See Destinations. For wall, the name of the wall.
tx / rxNoRestricts the disconnect to the device's transmit or receive side. See Side restriction.

Types

ValueDisconnects
HDMIThe primary HDMI video stream
SCALERThe scaled HDMI video stream (used in multiviews)
THUMBNAILThe thumbnail stream
STEREO_AUDIOThe analog stereo audio stream
HDMI_AUDIOThe HDMI audio stream
MULTICH_AUDIOThe multichannel audio stream
RS232RS-232 connections (both directions of a bidirectional link)
INFRAREDInfrared connections
CECCEC connections
USBUSB pairings (aliases: USB2, USB_EXTENDER)
USB_HIDHID (keyboard/mouse) pairings
MTVA multiview connection on the given receiver(s)
WALLA wall's routing. The destination is a wall name, not a device

Type macros

A type macro disconnects several layers in a single command:

MacroExpands to
ALL_VIDEOHDMI, SCALER, THUMBNAIL
ALL_AUDIOSTEREO_AUDIO, HDMI_AUDIO, MULTICH_AUDIO
ALL_SERIALRS232, INFRARED, CEC
ALL_LAYERSAll video, audio, and serial layers, plus USB

Destinations

ValueDisconnects
<device>A single device, by hostname or MAC address
<device>,<device>,...Each listed device
ALLAll devices in the system
ALL_TXAll transmitter devices
ALL_RXAll receiver devices

Disconnecting a transmitter detaches every receiver subscribed to its stream, then stops the stream and frees its multicast address. Disconnecting a receiver only detaches that receiver; the source continues streaming for any other subscribers.

A multiview configuration name is also accepted as a destination: it disconnects every receiver currently showing that multiview.

Side restriction

When a destination acts as both a source and a sink (a transceiver, or a device list that mixes both), the optional trailing tx or rx keyword limits the disconnect to one role. Without it, both roles are torn down.

ValueEffect
txOnly tear down the device's outgoing connections. Subscribed receivers detach; the device's own incoming subscriptions stay up.
rxOnly tear down the device's incoming connections. The device's outgoing streams keep running for their subscribers.

The keyword is case-insensitive. Any other value is an error and no routing changes are applied.

The restriction applies to the video, audio, and serial types. A USB, USB_HID, or MTV connection has no separate sides, and naming a side with those types is an error. Within ALL_LAYERS, the USB layer is skipped when a side is given.

Examples

Disconnect everything from every device
disconnect all_layers all
Disconnect HDMI video from two receivers
disconnect hdmi lobby_left,lobby_right
Disconnect all audio layers from a source
disconnect all_audio bluray_player
Remove a seat's USB pairing
disconnect usb front_desk
Exit multiview on a receiver
disconnect mtv control_room_rx
Detach every receiver without stopping any source streams
disconnect hdmi all rx
Stop a transceiver's outgoing stream only
disconnect hdmi conference_trx tx

Return value

On success, the result lists the low-level SDVoE commands that were issued:

disconnect hdmi lobby_left
{
"status": "SUCCESS",
"request_id": null,
"result": {
"rawcommands": ["leave 001ec0f04d9c:HDMI:0"]
},
"error": null
}

Errors

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

ErrorCause
Invalid ArgumentsMissing destination, or an unrecognized type
Invalid device type '<value>': expected tx or rxThe trailing side keyword is not tx or rx
'<side>' cannot be used with <type>: this layer has no separate tx or rx sidesA side keyword with USB, USB_HID, or MTV
Cannot disconnect locked device <name>The receiver is locked in DisplayNet Manager
Cannot stop stream on locked source <name>The source is locked in DisplayNet Manager
Cannot disconnect: subscribed device <name> is lockedA locked receiver is subscribed to the source being disconnected

State and side effects

  • The routing record created by connect is cleared, so DisplayNet Manager and any later snapshot preset match the system. An SDVoE leave or stop tears down the stream without clearing the record, leaving DisplayNet reporting a route that no longer exists.
  • MultiView sessions on the affected devices are updated, so a session is not left pointing at a stream that has stopped.
  • A locked device is refused. See lock.

Notifications

Disconnecting 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
all_audiodisconnect_all_audiodevices [device_type]
all_layersdisconnect_all_layersdevices [device_type]
all_serialdisconnect_all_serialdevices [device_type]
all_videodisconnect_all_videodevices [device_type]
cecdisconnect_cecdevices [device_type]
hdmidisconnect_hdmidevices [device_type]
hdmi_audiodisconnect_hdmi_audiodevices [device_type]
infrareddisconnect_infrareddevices [device_type]
mtvdisconnect_mtvdevices [device_type]
multich_audiodisconnect_multich_audiodevices [device_type]
rs232disconnect_rs232devices [device_type]
scalerdisconnect_scalerdevices [device_type]
stereo_audiodisconnect_stereo_audiodevices [device_type]
thumbnaildisconnect_thumbnaildevices [device_type]
usbdisconnect_usbdevices [device_type]
usb_extenderdisconnect_usb_extenderdevices [device_type]
usb_hiddisconnect_usb_hiddevices [device_type]
usb_icrondisconnect_usb_icrondevices [device_type]
usb2disconnect_usb2devices [device_type]
walldisconnect_wallwall

A parameter in brackets is optional.

See also

  • connect: route a signal between devices
  • stop: stop source streams directly