Click or drag to resize

Dmb4kIC Class

DM Input Blade : DMB-4K-I-C 8-Channel HDBaseT Certified 4K DigitalMedia 8G+ Input Blade for DM Switchers.

This class will trigger DMInputChange, AttributeChange and CecChange events.

Inheritance Hierarchy

Namespace: Crestron.SimplSharpPro.DM.Blades
Assembly: Crestron.SimplSharpPro.DM (in Crestron.SimplSharpPro.DM.dll) Version: 2.21.121
Syntax
C#
public sealed class Dmb4kIC : DmInputBlade

The Dmb4kIC type exposes the following members.

Constructors
 NameDescription
Public methodDmb4kIC Constructor to generate a new DMB-4K-I-C blade. This device will be attached to a blade based DM switcher.
Top
Properties
 NameDescription
Public propertyCards Collection of input cards.
Public propertyInputs Collection of DM Inputs apart of this blade.
(Inherited from DmInputBlade)
Public propertyName The name of this blade.
(Inherited from DmBladeBaseT)
Public propertyNumber Property to get the blade number.
(Inherited from DmBladeBaseT)
Public propertySwitcher Reference back to the switcher this blade is apart of.
(Inherited from DmBladeBaseT)
Public propertyType Property to get the type of DM Blade this object represents.
(Inherited from DmBladeBaseT)
Top
Methods
 NameDescription
Public methodDispose Remove this blade from the switcher.
(Inherited from DmBladeBaseT)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToString String representation of this DM Blade.
(Inherited from DmBladeBaseT)
Top
Fields
 NameDescription
Protected fieldInputOrOutputs Collection to contain references to the blade's I/O ports.
(Inherited from DmBladeBaseT)
Top
Example
C#
static Dmb4kIC _dmb4kIC;
static DmMd64x64 _dmswitcher;

public ControlSystemDmb4kIC()
{
    //Register console commands
    CrestronConsole.AddNewConsoleCommand(CreateDeviceCmd, "CreateDevice", "This is a DMB-4K-I-C CreateDevice command", ConsoleAccessLevelEnum.AccessOperator);
    CrestronConsole.AddNewConsoleCommand(SetHdcpCapabilityCmd, "SetHdcpCapability", "This is a DMB-4K-I-C SetHdcpCapability command", ConsoleAccessLevelEnum.AccessOperator);
}

//Method to create the DMB-4K-I-C Input Blade Device.
public void CreateDeviceCmd(String args)
{
     //For Switcher
    _dmswitcher = new DmMd64x64(0x20, this);
    _dmb4kIC = new Dmb4kIC(1, _dmswitcher);

    //Register the DM Switcher with the Control System
    _dmswitcher.Register();

    foreach (var card in _dmb4kIC.Cards)
    {
        card.DmInput.VideoAttributes.AttributeChange += DmbDmInputCard_VideoAttributeEventHandler;
        card.DmInput.StreamCec.CecChange += DmbDmInputCard_StreamCecEventHandler;
    }

    _dmswitcher.DMInputChange += Dmb4kIC_InputSigChangeEventHandler;
}

//Method to set the HDCP capability value to card 1 DM Input on the DMB-4K-I-C blade
public void SetHdcpCapabilityCmd(String args)
{
    if (args == "0")
    {
        _dmb4kIC.Cards[1].DmInput.HdcpCapability = eHdcpCapabilityType.HdcpSupportOff;
    }
    else if (args == "1")
    {
        _dmb4kIC.Cards[1].DmInput.HdcpCapability = eHdcpCapabilityType.Hdcp2xSupport;
    }
    else if (args == "2")
    {
        _dmb4kIC.Cards[1].DmInput.HdcpCapability = eHdcpCapabilityType.Hdcp1xSupport;
    }
 }

//Method to handle the Blade VideoAttributes Sig Change events
static void DmbDmInputCard_VideoAttributeEventHandler(object sender, GenericEventArgs args)
{
    if (args.EventId == VideoAttributeEventIds.InterlacedFeedbackEventId)
    {
        CrestronConsole.PrintLine("{0} device Interlaced Feedback Event Occurred, InterlacedFeedback property value is {1}\r\n", sender.ToString(), ((VideoAttributesEnhanced)sender).InterlacedFeedback.BoolValue);
    }
}

//Method to handle the Blade StreamCec Sig Change events
static void DmbDmInputCard_StreamCecEventHandler(Cec cecdevice, CecEventArgs args)
{
    if (args.EventId == CecEventIds.CecMessageReceivedEventId)
    {
        CrestronConsole.PrintLine("{0} Message Received Event Occurred, Received Message is {1}\r\n", cecdevice.ToString(), cecdevice.Send.StringValue);
    }
}

//Method to handle the Blade DM Input Sig Change events
static void Dmb4kIC_InputSigChangeEventHandler(Switch device, DMInputEventArgs args)
{
    if (args.EventId == DMInputEventIds.OnlineFeedbackEventId)
    {
        CrestronConsole.PrintLine("Online Feedback event occurred for {0}, OnlineFeedback status is {1}", device.ToString(), device.Inputs[args.Number].OnlineFeedback.BoolValue);
    }
    else if (args.EventId == DMInputEventIds.PresentFeedbackEventId)
    {
        CrestronConsole.PrintLine("Present Feedback event occurred for {0}, PresentFeedback status is {1}", device.ToString(), device.Inputs[args.Number].PresentFeedback.BoolValue);
    }
    else if (args.EventId == DMInputEventIds.HdcpCapabilityFeedbackEventId)
    {
        CrestronConsole.PrintLine("Hdcp Receive Capability event occurred for {0}, HdcpCapabilityFeedback value is {1}", device.ToString(), _dmb4kIC.Cards[args.Number].DmInput.HdcpCapabilityFeedback);
    }
    else if (args.EventId == DMInputEventIds.TemperatureEventId)
    {
        CrestronConsole.PrintLine("Temperature event occurred for {0}, TemperatureFeedback value is {1}", device.ToString(), _dmb4kIC.Cards[args.Number].TemperatureFeedback.UShortValue);
    }
    else if (args.EventId == DMInputEventIds.EndpointOnlineEventId)
    {
        CrestronConsole.PrintLine("Endpoint Online event occurred for {0}, EndpointOnlineFeedback value is {1}", device.ToString(), _dmb4kIC.Inputs[args.Number].EndpointOnlineFeedback);
    }
}

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also