Dm |
This device does not support ComPort extended information events.
This class will trigger OutputStreamChange, CecChange, OutputChange, DeviceInformationChange, InputStreamChange, AttributeChange and OutputChange events.
public class DmRmc4kScalerC : DmRmcScalerC, IRelayPorts
The DmRmc4kScalerC type exposes the following members.
| Name | Description | |
|---|---|---|
| DmRmc4kScalerC(DMOutput) | Constructor to generate a new "DmRmc4kScalerC" DM receiver that is connected to a Switcher's DM Output on a DmOutputBladeCard or DMPS3-4K style Switch. | |
| DmRmc4kScalerC(DMOutput, String) | Constructor to generate a new "DmRmc4kzScalerC" DM receiver that is connected to a Switcher's DM Output on a DmOutputBladeCard or DMPS3-4K style Switch. | |
| DmRmc4kScalerC(UInt32, CrestronControlSystem) | Constructor to generate a new "DmRmc4kScalerc" DM receiver that is controlled separately from a Switch. | |
| DmRmc4kScalerC(UInt32, DMOutput) | Constructor to generate a new "DmRmc4kScalerC" DM receiver that is connected to a Switcher's DM Output. | |
| DmRmc4kScalerC(UInt32, DMOutput, String) | Constructor to generate a new "DmRmc4kzScalerC" DM receiver that is connected to a Switcher's DM Output. |
| Name | Description | |
|---|---|---|
| AudioOutput |
Get the EndpointAudioOutput for this "DmRmc4kScalerC".
This property will trigger OutputChange with AudioOutputEventIds for EndpointAudioOutput object. | |
| ComPorts |
Collection of serial ComPorts on the DmRmcScalerC.
(Inherited from DmRmcScalerC) | |
| ConnectedIpList |
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) | |
| Description |
Get/Set the description of this device.
(Inherited from GenericBase) | |
| Disposed |
Property to indicate if the device has been disposed.
(Inherited from GenericDevice) | |
| DmInput |
The EndpointDmInputStreamWithCec that is a part of this "DmRmc4kScalerC". VideoControlsForRmcDmInput sigs are not applicable for "DmRmc4kScalerC".
This property will trigger AttributeChange with VideoAttributeEventIds for VideoAttributesBasic object. This property will trigger InputStreamChange with EndpointInputStreamEventIds for EndpointDmInputStreamWithCec object. This property will trigger CecChange with CecEventIds for Cec object. | |
| DMOutput |
Reference back to the DM Output this receiver is attached to.
(Inherited from EndpointReceiverBase) | |
| HDBaseTDevice |
Get the current HDBaseTBase attached to this DM Input/Output
(Inherited from DMEndpointBase) | |
| HdmiOutput |
Get the AdvEndpointHdmiOutput for this DmRmcScalerC/"DmRmc4kScalerC"/"DmRmc4kScalerCDsp".
This property will trigger OutputStreamChange with EndpointOutputStreamEventIds for AdvEndpointHdmiOutput object. This property will trigger CecChange with CecEventIds for Cec object. This property will trigger DeviceInformationChange with ConnectedDeviceEventIds for ConnectedDeviceInformation object. (Inherited from DmRmcScalerC) | |
| ID |
Property to get the ID of the device.
(Inherited from GenericDevice) | |
| IROutputPorts |
Collection of IROutputPorts on the DmRmcScalerC.
(Inherited from DmRmcScalerC) | |
| IsOnline |
Property to get the current online state of the device.
(Inherited from GenericDevice) | |
| Name |
Get the name of this device.
(Inherited from GenericBase) | |
| NumberOfComPorts |
Number of serial ComPorts this DmRmcScalerC supports.
(Inherited from DmRmcScalerC) | |
| NumberOfIROutputPorts |
Number of IROutputPorts this DmRmcScalerC supports.
(Inherited from DmRmcScalerC) | |
| NumberOfRelayPorts | Number of Relay ports this "DmRmc4kScalerC" supports. | |
| Parent |
The parent that a given object was added to.
(Inherited from GenericBase) | |
| Registerable |
Property to indicate that this device can be registered.
(Inherited from GenericDevice) | |
| Registered |
Property to get the current registration state of the device.
(Inherited from GenericDevice) | |
| RegistrationFailureReason |
Property to get the Registration Failure Reason, this will match the return value from the call to register.
(Inherited from GenericDevice) | |
| RelayPorts | Collection of Relay ports on the "DmRmc4kScalerC". | |
| Scaler |
Access the EndpointScalerOutput of this DmRmcScalerC/"DmRmc4kScalerC"/"DmRmc4kScalerCDsp".
This property will trigger OutputChange with ScalerOutputEventIds for EndpointScalerOutput object. (Inherited from DmRmcScalerC) | |
| SIMPLDeviceImplementation |
Internal protected member used for actual device control.
(Inherited from GenericDevice) | |
| Type |
Property to determine to type of device this is.
(Inherited from GenericDevice) | |
| UnRegistrationFailureReason |
Property to get the Unregistration Failure Reason, this will match the return value from the call to unregister.
(Inherited from GenericDevice) | |
| UsbPort |
Get the UsbHidPort. This property is only applicable for DmRmcScalerC. This is 'null' when not supported.
This property will trigger UsbHidChange with UsbHidEventIds. (Inherited from DmRmcScalerC) | |
| UserSpecifiedObject |
Can be assigned anything that user wants.
(Inherited from GenericBase) | |
| XioEndpointStubSIMPLDevice |
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) |
| Name | Description | |
|---|---|---|
| Dispose |
Clean up of resources.
(Inherited from GenericBase) | |
| Dispose(Boolean) |
Method to dispose the endpoint.
(Inherited from EndpointReceiverBase) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize |
Destructor of the device.
(Inherited from GenericDevice) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| OnBaseEvent(Int32) |
Protected member used to fire the BaseEvent with the default extended information.
(Inherited from GenericBase) | |
| OnBaseEvent(Int32, UInt16) |
Protected member used to fine the BaseEvent with extended event information.
(Inherited from GenericBase) | |
| Register |
Register this device with the system.
(Inherited from GenericDevice) | |
| ToString |
Return the name of the device.
(Inherited from GenericDevice) | |
| UnRegister |
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) |
| Name | Description | |
|---|---|---|
| BaseEvent |
Generic base event, triggered when the there are no other handlers available
for a specific EventID.
(Inherited from GenericBase) | |
| IpInformationChange |
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) | |
| OnlineStatusChange |
Event triggered when the Online status of the device changes.
(Inherited from GenericDevice) |
// Initialize our DmRmc4kScalarC object, with the output that will be associated with the device on the switcher device. private static void ReceiverSetup(Switch switcher) { try { // Initialize the object with a IPID and the output card physically connected to the receiver. _dmRmc4kScalar = new DmRmc4kScalerC(0x06, switcher.Outputs[24]); _dmRmc4kScalar.Description = "Rmc 4k scalar output 24"; // sets up supporting functionality for transmitting serial data over comm port 1. ReceiverSerialSetup(); } catch (Exception e) { ErrorLog.Error("Error while initializing receivers: {0}", e.Message); } } /// Helper function for setting up sending serial data over comm port 1. private static void ReceiverSerialSetup() { // event handler for serial data coming through comm _dmRmc4kScalar.ComPorts[1].SerialDataReceived += new ComPortDataReceivedEvent(DMSwitchExample_SerialDataReceived); if (_dmRmc4kScalar.ComPorts[1].Register() != eDeviceRegistrationUnRegistrationResponse.Success) { ErrorLog.Error("Error Registering ComPort: {1}", _dmRmc4kScalar.ComPorts[1].DeviceRegistrationFailureReason); } else { // Set up the comm port to send serial data. _dmRmc4kScalar.ComPorts[1].SetComPortSpec(ComPort.eComBaudRates.ComspecBaudRate19200, ComPort.eComDataBits.ComspecDataBits8, ComPort.eComParityType.ComspecParityNone, ComPort.eComStopBits.ComspecStopBits1, ComPort.eComProtocolType.ComspecProtocolRS232, ComPort.eComHardwareHandshakeType.ComspecHardwareHandshakeNone, ComPort.eComSoftwareHandshakeType.ComspecSoftwareHandshakeNone, false ); } } /// Sends Serial Data over the Comm 1 port , Event handler for serial data on the port should trigger. public static void TestSendSerialData(string args) { try { // Specify our comm port. var comm = _dmRmc4kScalar.ComPorts[1]; // Only send data over the port if it is available. if (comm.AvailableForUse) { // Print out the baud rate on the specific port we are send data over. CrestronConsole.PrintLine("Baud rate: {0}", comm.BaudRate.ToString()); /// Create and start a thread that will send three serial commands to the comm port. Thread thrd = new Thread(sendSerialData, comm, Thread.eThreadStartOptions.Running); } } catch (Exception e) { ErrorLog.Error("Error while testing transmitting serial data: {0}", e.Message); } } /// Helper function to for sending serial data. /// Always returns null. private static object sendSerialData(object obj) { ComPort comm = (ComPort)obj; comm.Send("Power\n"); Thread.Sleep(200); comm.Send("DN_Arrow\n"); Thread.Sleep(200); comm.Send("Up_Arrow\n"); return null; }