Click or drag to resize

DmTx200C22G Class

The DM-TX-200-C2-2G is a 2x1 DigitalMedia 8G+ audio/video transmitter designed to distribute laptop AV and keyboard/mouse commands to a DM switcher or receiver.
Inheritance Hierarchy

Namespace: Crestron.SimplSharpPro.DM.Endpoints.Transmitters
Assembly: Crestron.SimplSharpPro.DM (in Crestron.SimplSharpPro.DM.dll) Version: 2.21.121
Syntax
C#
public sealed class DmTx200C22G : DmTx200C2GBase

The DmTx200C22G type exposes the following members.

Constructors
 NameDescription
Public methodDmTx200C22G(DMInput) Constructor to generate a new DM-TX-200-C2-2G DM transmitter that is connected to a DMPS3-4K style switcher.
Public methodDmTx200C22G(UInt32, CrestronControlSystem) Constructor to generate a new DM-TX-200-C2-2G DM transmitter that is controlled separately from a DM switcher.
Public methodDmTx200C22G(UInt32, DMInput) Constructor to generate a new DM-TX-200-C2-2G DM transmitter that is connected to a switcher's DM Input.
Top
Properties
 NameDescription
Public propertyAudioSource Select the audio source for the Dm Endpoint. Not supported by "DM-TX-4KZ-100-C-1G" device. If this property is not supported then Auto will be returned and write to this property will be ignored.
(Inherited from DmTx200Base)
Public propertyAudioSourceFeedback Reports the active audio source. Not supported by "DM-TX-4KZ-100-C-1G" device. If this property is not supported then Auto will be returned.

The BaseEvent event will trigger with AudioSourceFeedbackEventId.


(Inherited from DmTx200Base)
Public propertyConnectedIpList A property containing the list of the ConnectedIpInformation objects which contain information about the devices that are connected to this IP ID. This property is only valid for an ethernet device. If this is not an ethernet device, then this property will return null. If this is an ethernet device, the list will be non-null. It will be empty if no devices are connected. The order of items in this list is not guaranteed.
(Inherited from GenericDevice)
Public propertyCode exampleDescription Get/Set the description of this device.
(Inherited from GenericBase)
Public propertyDisposed Property to indicate if the device has been disposed.
(Inherited from GenericDevice)
Public propertyDMInput Reference back to the DM Input this transmitter is attached to.
(Inherited from EndpointTransmitterBase)
Public propertyDmOutput Get the Dm Output port for this Endpoint.
(Inherited from DmTx200Base)
Public propertyHDBaseTDevice Get the current HDBaseTBase attached to this DM Input/Output
(Inherited from DMEndpointBase)
Public propertyHdmiInput Get the HDMI Input port for this Endpoint.
(Inherited from DmTx200Base)
Public propertyID Property to get the ID of the device.
(Inherited from GenericDevice)
Public propertyIsOnline Property to get the current online state of the device.
(Inherited from GenericDevice)
Public propertyName Get the name of this device.
(Inherited from GenericBase)
Public propertyParent The parent that a given object was added to.
(Inherited from GenericBase)
Public propertyRegisterable Property to indicate that this device can be registered.
(Inherited from GenericDevice)
Public propertyRegistered Property to get the current registration state of the device.
(Inherited from GenericDevice)
Public propertyRegistrationFailureReason Property to get the Registration Failure Reason, this will match the return value from the call to register.
(Inherited from GenericDevice)
Protected propertySIMPLDeviceImplementation Internal protected member used for actual device control.
(Inherited from GenericDevice)
Public propertyType Property to determine to type of device this is.
(Inherited from GenericDevice)
Public propertyUnRegistrationFailureReason Property to get the Unregistration Failure Reason, this will match the return value from the call to unregister.
(Inherited from GenericDevice)
Public propertyUsbPort Get the USB port for this Endpoint. Not supported by "DM-TX-4KZ-100-C-1G" device.
(Inherited from DmTx200Base)
Public propertyUserSpecifiedObject Can be assigned anything that user wants.
(Inherited from GenericBase)
Public propertyVgaInput Get the VGA Input port for this Endpoint. Not supported by "DM-TX-4KZ-100-C-1G" device.
(Inherited from DmTx200Base)
Public propertyVideoSource Select the Video Source for the Dm Endpoint. Not supported by "DM-TX-4KZ-100-C-1G" device. If this property is not supported then Auto will be returned and write to this property will be ignored.
(Inherited from DmTx200Base)
Public propertyVideoSourceFeedback Reports the active video source. Not supported by "DM-TX-4KZ-100-C-1G" device. If this property is not supported then Auto will be returned.

The BaseEvent event will trigger with VideoSourceFeedbackEventId.


(Inherited from DmTx200Base)
Protected propertyXioEndpointStubSIMPLDevice The SIMPL "stub" Device that the XiO Director creates for an endpoint to send the 1C/0E to the correct place in hierarchy.
(Inherited from GenericDevice)
Top
Methods
 NameDescription
Public methodDispose Clean up of resources.
(Inherited from GenericBase)
Protected methodDispose(Boolean) Method to dispose the endpoint.
(Inherited from EndpointTransmitterBase)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize Destructor of the device.
(Inherited from GenericDevice)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodOnBaseEvent(Int32) Protected member used to fire the BaseEvent with the default extended information.
(Inherited from GenericBase)
Protected methodOnBaseEvent(Int32, UInt16) Protected member used to fine the BaseEvent with extended event information.
(Inherited from GenericBase)
Public methodRegister Register this device with the system.
(Inherited from GenericDevice)
Public methodToString Return the name of the device.
(Inherited from GenericDevice)
Public methodUnRegister Unregister this device with the system. This function can not be called from the device's own SigChange event handler.

On successful unregistration, if this device supports the OnlineStatusChange event, it will trigger indicating the device when offline.


(Inherited from GenericDevice)
Top
Events
 NameDescription
Public eventBaseEvent Generic base event, triggered when the there are no other handlers available for a specific EventID.
(Inherited from GenericBase)
Public eventIpInformationChange Event that tells what IP Address is connected/disconnected from an IP ID for a non-UDP device. This is only valid for an Ethernet device. An exception will be thrown if it is not.
(Inherited from GenericDevice)
Public eventOnlineStatusChange Event triggered when the Online status of the device changes.
(Inherited from GenericDevice)
Top
Example
C#
static DmTx200C22G _dmTx20XC2;

public ControlSystemDmTx200C22G()
{
    //Register console commands 
    CrestronConsole.AddNewConsoleCommand(CreateDeviceCmd, "CreateDevice", "This is a DmTx200C22G CreateDevice command", ConsoleAccessLevelEnum.AccessOperator);
}

public void CreateDeviceCmd(String args)
{
    //Initialize the DmTx200C22G device
    _dmTx20XC2 = new DmTx200C22G(0x16, this);

    _dmTx20XC2.HdmiInput.StreamCec.CecChange += StreamCecChangeEventHandler;
    _dmTx20XC2.HdmiInput.VideoAttributes.AttributeChange += VideoAttributeChange;
    _dmTx20XC2.HdmiInput.InputStreamChange += HdmiInputStreamChange;

    _dmTx20XC2.VgaInput.InputStreamChange += DmTx20XC2VgaStreamChange;
    _dmTx20XC2.VgaInput.VideoAttributes.AttributeChange += VideoAttributeChange;
    _dmTx20XC2.VgaInput.VideoControls.ControlChange += VgaVideoControlEventHandler;

    _dmTx20XC2.DmOutput.OutputStreamChange += DmOutputStreamChange;
    _dmTx20XC2.DmOutput.StreamCec.CecChange += StreamCecChangeEventHandler;
    _dmTx20XC2.DmOutput.ConnectedDevice.DeviceInformationChange += ConnectedDeviceOnDeviceInformationChange;

    _dmTx20XC2.UsbPort.UsbHidChange += UsbPortChange;
    _dmTx20XC2.BaseEvent += DmTx20XC2EventHandler;

    //Register the DmTx200C22G with the Control system
    //This will enable the gateway connection ("127.0.0.1") in the system at the 
    //ID specified above that the DmTx20XC2 will connect to.
    _dmTx20XC2.Register();

    if (_dmTx20XC2.Registered)
    {
        CrestronConsole.PrintLine("{0} device successfully registered\r\n", _dmTx20XC2.ToString());
    }
}

// Method to handle connected device sig change events for DM-TX-200-C2-2G device.
static void ConnectedDeviceOnDeviceInformationChange(ConnectedDeviceInformation connectedDevice, ConnectedDeviceEventArgs args)
{
    if (args.EventId == ConnectedDeviceEventIds.ManufacturerEventId)
    {
        CrestronConsole.PrintLine("Manufacturer Event occurred on {0}", connectedDevice.ToString());
    }
}

// Method to handle top level DM Out sig change events for DM-TX-200-C2-2G device.
static void DmOutputStreamChange(EndpointOutputStream outputStream, EndpointOutputStreamEventArgs args)
{
    if (args.EventId == EndpointOutputStreamEventIds.HotplugDetectedEventId)
    {
        CrestronConsole.PrintLine("DM Out Hot Plug Detected Feedback Event occurred on {0}", outputStream.ToString());
    }
}

// Method to handle top level stream sec sig change events for DM-TX-200-C2-2G device.
static void StreamCecChangeEventHandler(Cec cecDevice, CecEventArgs args)
{
    if (args.EventId == CecEventIds.CecMessageReceivedEventId)
    {
        CrestronConsole.PrintLine("Cec Message Received Event Received for {0}\r\n", cecDevice.ToString());
    }
}

// Method to handle HDMI input stream sig change events for DM-TX-200-C2-2G device.
static void HdmiInputStreamChange(EndpointInputStream inputStream, EndpointInputStreamEventArgs args)
{
    if (args.EventId == EndpointInputStreamEventIds.HdcpSupportOnFeedbackEventId)
    {
        CrestronConsole.PrintLine("Hdcp Support On Feedback Event Received for {0}\r\n", inputStream.ToString());
    }
}

// Method to handle video attribute sig change events for DM-TX-200-C2-2G device.
static void VideoAttributeChange(object sender, GenericEventArgs args)
{
    if (args.EventId == VideoAttributeEventIds.HorizontalResolutionFeedbackEventId)
    {
        CrestronConsole.PrintLine("Horizontal Resolution Feedback Event occurred on {0}", _dmTx20XC2.ToString());
    }
}

// Method to handle VGA stream change sig change events for DM-TX-200-C2-2G device.
static void DmTx20XC2VgaStreamChange(EndpointInputStream inputstream, EndpointInputStreamEventArgs args)
{
    if (args.EventId == EndpointInputStreamEventIds.AudioFormatFeedbackEventId)
    {
        CrestronConsole.PrintLine("Audio Format Feedback Event ID is received for {0}", inputstream);
    }
}

// Method to handle VGA video control sig change events for DM-TX-200-C2-2G device.
static void VgaVideoControlEventHandler(object sender, GenericEventArgs args)
{
    if (args.EventId == VideoControlsEventIds.BrightnessFeedbackEventId)
    {
        CrestronConsole.PrintLine("Brightness Feedback Event occurred on {0}", _dmTx20XC2.ToString());
    }
}

// Method to handle USB port change sig change events for DM-TX-200-C2-2G device.
static void UsbPortChange(UsbHidPort usbHidPort, UsbHidEventArgs args)
{
    if (args.EventId == UsbHidEventIds.DeviceCountEventId)
    {
        CrestronConsole.PrintLine("Device Count Event occurred on {0}", usbHidPort.ToString());
    }
}

// Method to handle top level sig change events for DM-TX-200-C2-2G device.
static void DmTx20XC2EventHandler(GenericBase device, BaseEventArgs args)
{
    if (args.EventId == EndpointTransmitterBase.VideoSourceFeedbackEventId)
    {
        CrestronConsole.PrintLine("Video Source Feedback Event occurred on {0}", _dmTx20XC2.ToString());
    }
}

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also