mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-09 01:35:02 +00:00
Compare commits
10 Commits
hotfix/ssh
...
feature/mo
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bbc994afb4 | ||
|
|
e7d7b8638e | ||
|
|
0eb2436fa0 | ||
|
|
192991cc65 | ||
|
|
421f87db5e | ||
|
|
eb388d28db | ||
|
|
a2b7a39082 | ||
|
|
2850920d6e | ||
|
|
a5de8b14d9 | ||
|
|
9d71810e04 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -390,3 +390,4 @@ MigrationBackup/
|
|||||||
FodyWeavers.xsd
|
FodyWeavers.xsd
|
||||||
essentials-framework/Essentials Interfaces/PepperDash_Essentials_Interfaces/PepperDash_Essentials_Interfaces.csproj
|
essentials-framework/Essentials Interfaces/PepperDash_Essentials_Interfaces/PepperDash_Essentials_Interfaces.csproj
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
._.DS_Store
|
||||||
|
|||||||
@@ -68,7 +68,13 @@ namespace PepperDash.Essentials.Core.Bridges
|
|||||||
public JoinDataComplete HdcpInputPortCount = new JoinDataComplete(new JoinData { JoinNumber = 5, JoinSpan = 1 },
|
public JoinDataComplete HdcpInputPortCount = new JoinDataComplete(new JoinData { JoinNumber = 5, JoinSpan = 1 },
|
||||||
new JoinMetadata { Description = "Number of Input Ports that support HDCP", JoinCapabilities = eJoinCapabilities.ToSIMPL, JoinType = eJoinType.Analog });
|
new JoinMetadata { Description = "Number of Input Ports that support HDCP", JoinCapabilities = eJoinCapabilities.ToSIMPL, JoinType = eJoinType.Analog });
|
||||||
|
|
||||||
|
[JoinName("ScalerOutWallMode")]
|
||||||
|
public JoinDataComplete ScalerOutWallMode = new JoinDataComplete(new JoinData { JoinNumber = 6, JoinSpan = 1 },
|
||||||
|
new JoinMetadata { Description = "Set Wall Mode for Scaler video Wall mode", JoinCapabilities = eJoinCapabilities.ToFromSIMPL, JoinType = eJoinType.Analog });
|
||||||
|
|
||||||
|
[JoinName("ScalerOutWallModeRaw")]
|
||||||
|
public JoinDataComplete ScalerOutWallModeRaw = new JoinDataComplete(new JoinData { JoinNumber = 7, JoinSpan = 1 },
|
||||||
|
new JoinMetadata { Description = "Set Wall Mode for Scaler video Wall mode", JoinCapabilities = eJoinCapabilities.ToFromSIMPL, JoinType = eJoinType.Analog });
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constructor to use when instantiating this Join Map without inheriting from it
|
/// Constructor to use when instantiating this Join Map without inheriting from it
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using PepperDash.Core;
|
using PepperDash.Core;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
|
namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
|
||||||
{
|
{
|
||||||
@@ -19,6 +20,39 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
|
|||||||
public interface IMobileControl3 : IMobileControl
|
public interface IMobileControl3 : IMobileControl
|
||||||
{
|
{
|
||||||
void CreateMobileControlRoomBridge(IEssentialsRoom room, IMobileControl parent);
|
void CreateMobileControlRoomBridge(IEssentialsRoom room, IMobileControl parent);
|
||||||
|
|
||||||
|
void SendMessageObject(object o);
|
||||||
|
|
||||||
|
void AddAction(string key, object action);
|
||||||
|
|
||||||
|
void RemoveAction(string key);
|
||||||
|
|
||||||
|
void AddDeviceMessenger(IMobileControlMessenger messenger);
|
||||||
|
|
||||||
|
bool CheckForDeviceMessenger(string key);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Describes a mobile control messenger
|
||||||
|
/// </summary>
|
||||||
|
public interface IMobileControlMessenger : IKeyed
|
||||||
|
{
|
||||||
|
IMobileControl3 AppServerController { get; }
|
||||||
|
string MessagePath { get; }
|
||||||
|
void RegisterWithAppServer(IMobileControl3 appServerController);
|
||||||
|
}
|
||||||
|
|
||||||
|
public interface IMobileControlResponseMessage
|
||||||
|
{
|
||||||
|
[JsonProperty("type")]
|
||||||
|
string Type { get; }
|
||||||
|
|
||||||
|
[JsonProperty("clientId")]
|
||||||
|
object ClientId { get; }
|
||||||
|
|
||||||
|
[JsonProperty("content")]
|
||||||
|
object Content { get; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -88,4 +88,10 @@ namespace PepperDash_Essentials_DM
|
|||||||
{
|
{
|
||||||
eHdcpCapabilityType DisplayPortInHdcpCapability { get; }
|
eHdcpCapabilityType DisplayPortInHdcpCapability { get; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public interface IhasWallMode
|
||||||
|
{
|
||||||
|
void SetWallMode(ushort walLMode);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -10,12 +10,13 @@ using PepperDash.Essentials.Core;
|
|||||||
using PepperDash.Essentials.Core.Bridges;
|
using PepperDash.Essentials.Core.Bridges;
|
||||||
using PepperDash.Core;
|
using PepperDash.Core;
|
||||||
using PepperDash_Essentials_DM;
|
using PepperDash_Essentials_DM;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace PepperDash.Essentials.DM
|
namespace PepperDash.Essentials.DM
|
||||||
{
|
{
|
||||||
[Description("Wrapper Class for DM-RMC-4K-Z-SCALER-C")]
|
[Description("Wrapper Class for DM-RMC-4K-Z-SCALER-C")]
|
||||||
public class DmRmc4kZScalerCController : DmRmcControllerBase, IRmcRoutingWithFeedback,
|
public class DmRmc4kZScalerCController : DmRmcControllerBase, IRmcRoutingWithFeedback,
|
||||||
IIROutputPorts, IComPorts, ICec, IRelayPorts, IHasDmInHdcp, IHasHdmiInHdcp
|
IIROutputPorts, IComPorts, ICec, IRelayPorts, IHasDmInHdcp, IHasHdmiInHdcp, IhasWallMode
|
||||||
{
|
{
|
||||||
private readonly DmRmc4kzScalerC _rmc;
|
private readonly DmRmc4kzScalerC _rmc;
|
||||||
|
|
||||||
@@ -26,9 +27,10 @@ namespace PepperDash.Essentials.DM
|
|||||||
public IntFeedback DmInHdcpStateFeedback { get; private set; }
|
public IntFeedback DmInHdcpStateFeedback { get; private set; }
|
||||||
public IntFeedback HdmiInHdcpStateFeedback { get; private set; }
|
public IntFeedback HdmiInHdcpStateFeedback { get; private set; }
|
||||||
|
|
||||||
|
|
||||||
public BoolFeedback HdmiVideoSyncFeedback { get; private set; }
|
public BoolFeedback HdmiVideoSyncFeedback { get; private set; }
|
||||||
|
|
||||||
|
private Dictionary<ushort, EndpointScalerOutput.eWall> WallModes;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The value of the current video source for the HDMI output on the receiver
|
/// The value of the current video source for the HDMI output on the receiver
|
||||||
@@ -87,6 +89,9 @@ namespace PepperDash.Essentials.DM
|
|||||||
|
|
||||||
VideoOutputResolutionFeedback = new StringFeedback(() => _rmc.HdmiOutput.GetVideoResolutionString());
|
VideoOutputResolutionFeedback = new StringFeedback(() => _rmc.HdmiOutput.GetVideoResolutionString());
|
||||||
|
|
||||||
|
VideoWallModeRawFeedback = new IntFeedback("ScalerVideoWallModeRaw",
|
||||||
|
() => (int)_rmc.Scaler.WallModeRawFeedback.UShortValue);
|
||||||
|
|
||||||
InputPorts = new RoutingPortCollection<RoutingInputPort> { DmIn, HdmiIn };
|
InputPorts = new RoutingPortCollection<RoutingInputPort> { DmIn, HdmiIn };
|
||||||
OutputPorts = new RoutingPortCollection<RoutingOutputPort> { HdmiOut };
|
OutputPorts = new RoutingPortCollection<RoutingOutputPort> { HdmiOut };
|
||||||
|
|
||||||
@@ -94,6 +99,7 @@ namespace PepperDash.Essentials.DM
|
|||||||
_rmc.HdmiOutput.ConnectedDevice.DeviceInformationChange += ConnectedDevice_DeviceInformationChange;
|
_rmc.HdmiOutput.ConnectedDevice.DeviceInformationChange += ConnectedDevice_DeviceInformationChange;
|
||||||
_rmc.HdmiIn.InputStreamChange += InputStreamChangeEvent;
|
_rmc.HdmiIn.InputStreamChange += InputStreamChangeEvent;
|
||||||
_rmc.DmInput.InputStreamChange += InputStreamChangeEvent;
|
_rmc.DmInput.InputStreamChange += InputStreamChangeEvent;
|
||||||
|
_rmc.Scaler.OutputChange += Scaler_OutputChange;
|
||||||
|
|
||||||
_rmc.OnlineStatusChange += _rmc_OnlineStatusChange;
|
_rmc.OnlineStatusChange += _rmc_OnlineStatusChange;
|
||||||
|
|
||||||
@@ -101,6 +107,15 @@ namespace PepperDash.Essentials.DM
|
|||||||
HdmiOut.Port = _rmc.HdmiOutput;
|
HdmiOut.Port = _rmc.HdmiOutput;
|
||||||
|
|
||||||
AudioVideoSourceNumericFeedback = new IntFeedback(() => (ushort)(_rmc.SelectedSourceFeedback));
|
AudioVideoSourceNumericFeedback = new IntFeedback(() => (ushort)(_rmc.SelectedSourceFeedback));
|
||||||
|
|
||||||
|
WallModes = new Dictionary<ushort, EndpointScalerOutput.eWall>()
|
||||||
|
{
|
||||||
|
{0, EndpointScalerOutput.eWall.Disabled},
|
||||||
|
{2211, EndpointScalerOutput.eWall.Mode11},
|
||||||
|
{2212, EndpointScalerOutput.eWall.Mode12},
|
||||||
|
{2221, EndpointScalerOutput.eWall.Mode13},
|
||||||
|
{2222, EndpointScalerOutput.eWall.Mode14}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
void InputStreamChangeEvent(EndpointInputStream inputStream, EndpointInputStreamEventArgs args)
|
void InputStreamChangeEvent(EndpointInputStream inputStream, EndpointInputStreamEventArgs args)
|
||||||
@@ -241,5 +256,47 @@ namespace PepperDash.Essentials.DM
|
|||||||
_rmc.HdmiIn.HdcpCapability = hdcpState;
|
_rmc.HdmiIn.HdcpCapability = hdcpState;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#region IhasWallMode Members
|
||||||
|
|
||||||
|
public void SetWallMode(ushort wallMode)
|
||||||
|
{
|
||||||
|
EndpointScalerOutput.eWall wallValue;
|
||||||
|
|
||||||
|
if (WallModes.TryGetValue(wallMode, out wallValue))
|
||||||
|
_rmc.Scaler.WallMode = wallValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
public void SetWallModeRaw(ushort wallMode)
|
||||||
|
{
|
||||||
|
_rmc.Scaler.WallModeRaw.UShortValue = wallMode;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Scaler_OutputChange(EndpointScalerOutput scalerOutput, ScalerOutputEventArgs args)
|
||||||
|
{
|
||||||
|
if (scalerOutput == null)
|
||||||
|
{
|
||||||
|
Debug.Console(1, this, "Scaler Output object is null");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (args == null)
|
||||||
|
{
|
||||||
|
Debug.Console(1, this, "Scaler Output Args are null");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
Debug.Console(2, this, "Scaler Event ID: {0}", args.EventId);
|
||||||
|
switch (args.EventId)
|
||||||
|
{
|
||||||
|
case ScalerOutputEventIds.WallModeFeedbackEventId:
|
||||||
|
VideoWallModeRawFeedback.FireUpdate();
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
Debug.Console(2, this, "Scaler Default Unhandled Event ID: {0}", args.EventId);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -28,6 +28,9 @@ namespace PepperDash.Essentials.DM
|
|||||||
public StringFeedback EdidPreferredTimingFeedback { get; protected set; }
|
public StringFeedback EdidPreferredTimingFeedback { get; protected set; }
|
||||||
public StringFeedback EdidSerialNumberFeedback { get; protected set; }
|
public StringFeedback EdidSerialNumberFeedback { get; protected set; }
|
||||||
|
|
||||||
|
public IntFeedback VideoWallModeFeedback { get; protected set; }
|
||||||
|
public IntFeedback VideoWallModeRawFeedback { get; protected set; }
|
||||||
|
|
||||||
protected DmRmcControllerBase(string key, string name, EndpointReceiverBase device)
|
protected DmRmcControllerBase(string key, string name, EndpointReceiverBase device)
|
||||||
: base(key, name, device)
|
: base(key, name, device)
|
||||||
{
|
{
|
||||||
@@ -167,8 +170,23 @@ namespace PepperDash.Essentials.DM
|
|||||||
trilist.SetUShortSigAction(joinMap.AudioVideoSource.JoinNumber,
|
trilist.SetUShortSigAction(joinMap.AudioVideoSource.JoinNumber,
|
||||||
a => routingWithFeedback.ExecuteNumericSwitch(a, 1, eRoutingSignalType.AudioVideo));
|
a => routingWithFeedback.ExecuteNumericSwitch(a, 1, eRoutingSignalType.AudioVideo));
|
||||||
|
|
||||||
|
var dmRmcScalerWithVideowall = rmc as DmRmc4kZScalerCController;
|
||||||
|
|
||||||
|
if (dmRmcScalerWithVideowall != null)
|
||||||
|
{
|
||||||
|
trilist.SetUShortSigAction(joinMap.ScalerOutWallMode.JoinNumber, a => dmRmcScalerWithVideowall.SetWallMode(a));
|
||||||
|
trilist.SetUShortSigAction(joinMap.ScalerOutWallModeRaw.JoinNumber, a => dmRmcScalerWithVideowall.SetWallModeRaw(a));
|
||||||
|
|
||||||
|
if (rmc.VideoWallModeFeedback != null)
|
||||||
|
rmc.VideoWallModeFeedback.LinkInputSig(trilist.UShortInput[joinMap.ScalerOutWallMode.JoinNumber]);
|
||||||
|
if (rmc.VideoWallModeRawFeedback != null)
|
||||||
|
rmc.VideoWallModeRawFeedback.LinkInputSig(trilist.UShortInput[joinMap.ScalerOutWallModeRaw.JoinNumber]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#region Implementation of IDeviceInfoProvider
|
#region Implementation of IDeviceInfoProvider
|
||||||
|
|
||||||
public DeviceInfo DeviceInfo { get; private set; }
|
public DeviceInfo DeviceInfo { get; private set; }
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ namespace PepperDash.Essentials.DM
|
|||||||
InputPorts = new RoutingPortCollection<RoutingInputPort> {DmIn};
|
InputPorts = new RoutingPortCollection<RoutingInputPort> {DmIn};
|
||||||
OutputPorts = new RoutingPortCollection<RoutingOutputPort> {HdmiOut};
|
OutputPorts = new RoutingPortCollection<RoutingOutputPort> {HdmiOut};
|
||||||
|
|
||||||
|
|
||||||
// Set Ports for CEC
|
// Set Ports for CEC
|
||||||
HdmiOut.Port = _rmc.HdmiOutput;
|
HdmiOut.Port = _rmc.HdmiOutput;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
<HintPath>..\..\..\..\..\..\..\..\..\ProgramData\Crestron\SDK\SSPDevices\Crestron.SimplSharpPro.UI.dll</HintPath>
|
<HintPath>..\..\..\..\..\..\..\..\..\ProgramData\Crestron\SDK\SSPDevices\Crestron.SimplSharpPro.UI.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="mscorlib" />
|
<Reference Include="mscorlib" />
|
||||||
<Reference Include="PepperDash_Core, Version=1.2.1.30543, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="PepperDash_Core, Version=1.3.3.32940, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\..\..\packages\PepperDashCore\lib\net35\PepperDash_Core.dll</HintPath>
|
<HintPath>..\..\..\packages\PepperDashCore\lib\net35\PepperDash_Core.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
|||||||
Reference in New Issue
Block a user