Click or drag to resize

CsaPws10sHub Class

Power Supply with Cresnet interface that powers up to 10 Crestron Quiet Motor Technology roller shade or drapery system motors and features a built-in, 5-segment Cresnet hub with network diagnostics capabilities.

This class will trigger BaseEvent and BranchStateChange events.

Inheritance Hierarchy
SystemObject
  Crestron.SimplSharpProGenericBase
    Crestron.SimplSharpProGenericDevice
      Crestron.SimplSharpPro.GeneralIOCsaPws10sHub

Namespace: Crestron.SimplSharpPro.GeneralIO
Assembly: Crestron.SimplSharpPro.GeneralIO (in Crestron.SimplSharpPro.GeneralIO.dll) Version: 2.21.121
Syntax
C#
public sealed class CsaPws10sHub : GenericDevice

The CsaPws10sHub type exposes the following members.

Constructors
 NameDescription
Public methodCsaPws10sHub(UInt32, CrestronControlSystem) Constructor to generate a new CSA-PWS10S-HUB device.
Public methodCsaPws10sHub(UInt32, IDeviceBranch) Constructor to generate a new CSA-PWS10S-HUB device.
Top
Properties
 NameDescription
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 propertyHubBranch Power Supply Hub ShadePowerSupplyBranch Collection.
Public propertyHubStatusFeedback Property to indicate the CsaPws10sHub status.

The BaseEvent event will trigger with HubStatusFeedbackEventId.

Public propertyID Property to get the ID of the device.
(Inherited from GenericDevice)
Public propertyInTestModeFeedback Property to indicate if the device is in test mode. Test mode can be triggered by calling TestAllBranches method or pressing the TEST push button.

The BaseEvent event will trigger with InTestModeFeedbackEventId.

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 propertyPowerSupplyStatusFeedback Collection to indicate the power supply status for the device.
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 propertyUserSpecifiedObject Can be assigned anything that user wants.
(Inherited from GenericBase)
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 perform the actual disposing of the device.
(Inherited from GenericDevice)
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 methodTestAllBranches Property to disconnect all branches from the control system and perform all electrical testing on each branch.
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
Fields
 NameDescription
Public fieldStatic memberBranchDisabledFeedbackEventId The state of DisabledFeedback has changed.

The BranchStateChange event will trigger for this event Id.

Public fieldStatic memberBranchStatusFeedbackEventId The value of StatusFeedback has changed.

The BranchStateChange event will trigger for this event Id.

Public fieldStatic memberFuseFailFeedbackEventId The state of FuseFailFeedback has changed.

The BranchStateChange event will trigger for this event Id.

Public fieldStatic memberHubStatusFeedbackEventId The value of HubStatusFeedback has changed.

The BaseEvent event will trigger for this event id.

Public fieldStatic memberInTestModeFeedbackEventId The state of InTestModeFeedback has changed.

The BaseEvent event will trigger for this event id.

Public fieldStatic memberNumberOfBranches Number of branches on the CsaPws10sHub device.
Public fieldStatic memberNumberOfFusesPerBranch Number of fuses per branch on the CsaPws10sHub device.
Public fieldStatic memberNumberOfPowerSupplies Number of power supplies on the CsaPws10sHub device.
Public fieldStatic memberPowerSupplyStatusFeedbackEventId The value of PowerSupplyStatusFeedback has changed.

The BaseEvent event will trigger for this event id.

Top
Example
C#
static CsaPws10sHub _csaPws10SHub;

   public ControlSystemCsaPws10sHub()
   {
       //Register console commands
       CrestronConsole.AddNewConsoleCommand(CreateDeviceCmd, "CreateDevice", "This is a CSA-PWS10S-HUB CreateDevice command", ConsoleAccessLevelEnum.AccessOperator);
   }

   //Method to create and register the CSA-PWS10S-HUB device with the Control System.
   public void CreateDeviceCmd(String args)
   {
       //Initialize the CSA-PWS10S-HUB device for Cresnet Communication
       _csaPws10SHub = new CsaPws10sHub(0x18, this);

       _csaPws10SHub.BaseEvent += CsaPws10sHub_EventHandler;

       for (uint i = 1; i <= 5; i++)
       {
           _csaPws10SHub.HubBranch[i].BranchStateChange += CsaPws10sHub_BranchSigEventHandler;
       }

       //Register the CSA-PWS10S-HUB with the Control system
       _csaPws10SHub.Register();
   }

   // Method to handle sig change events for CSA-PWS10S-HUB ShadePowerSupplyBranch class.
   static void CsaPws10sHub_BranchSigEventHandler(object device, ShadePowerSupplyBranchStateEventArgs args)
   {
       if (args.EventId == CsaPws10sHub.FuseFailFeedbackEventId)
       {
           CrestronConsole.PrintLine("ShadePowerSupplyBranch {0} fuse {1} fail feedback event received\r\n",
               args.ShadePowerSupplyBranch.Number, args.Index);
       }
   }

   // Method to handle sig change events for CSA-PWS10S-HUB top level sigs.
   static void CsaPws10sHub_EventHandler(GenericBase device, BaseEventArgs args)
   {
       switch (args.EventId)
       {
           case CsaPws10sHub.PowerSupplyStatusFeedbackEventId:
               CrestronConsole.PrintLine("Power Supply Status feedback Event received\r\n");
               break;
       }
   }

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also