Click or drag to resize

GlsOirLclCCn Class

Cresnet-based passive infrared (PIR) occupancy sensor without the external ambient light level.

This class will trigger BaseEvent and GlsOccupancySensorChangeevent.

Inheritance Hierarchy

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

The GlsOirLclCCn type exposes the following members.

Constructors
 NameDescription
Public methodGlsOirLclCCn(UInt32, CrestronControlSystem) Constructor to generate a new GLS-OIRLCL-C-CN Occupancy Sensor that resides on the cresnet bus for the specified control system.
Public methodGlsOirLclCCn(UInt32, IDeviceBranch) Constructor to generate a new GLS-OIRLCL-C-CN Occupancy Sensor that resides on the cresnet bus for the specified IDeviceBranch.
Top
Properties
 NameDescription
Public propertyCommandReceivedFeedbackSigs Property to return a collection of Sigs each corresponding to an command number. Each BoolOutputSig is toggled when the IR receiver hears the corresponding command number.

The GlsOccupancySensorChange event will trigger with CommandReceivedFeedbackEventId.

This property is not supported by "GlsOirLclCCn" device.
(Inherited from GlsOccupancySensorBase)
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 propertyCurrentTimeoutFeedback Property to indicate which timeout being used by the sensor.

The BaseEvent event will trigger with TimeoutFeedbackEventId.


(Inherited from GlsOccupancySensorBase)
Public propertyDecrementPirSensitivityInOccupiedState Property to decrease PIR sensitivity while sensor is in occupied state by 1.
(Inherited from GlsOccupancySensorBase)
Public propertyDecrementPirSensitivityInVacantState Property to decrease the PIR sensitivity while sensor is in vacant state by 1.
(Inherited from GlsOccupancySensorBase)
Public propertyCode exampleDescription Get/Set the description of this device.
(Inherited from GenericBase)
Public propertyDisableLedFlash Property to disable the red feedback LED from blinking when motion is detected.
(Inherited from GlsOccupancySensorBase)
Public propertyDisablePir Property to disable the PIR Sensor.
(Inherited from GlsOccupancySensorBase)
Public propertyDisableShortTimeout Property to disable the short timeout functionality.
(Inherited from GlsOccupancySensorBase)
Public propertyDisposed Property to indicate if the device has been disposed.
(Inherited from GenericDevice)
Public propertyEnableLedFlash Property to enable the red feedback LEDs.
(Inherited from GlsOccupancySensorBase)
Public propertyEnablePir Property to enable the PIR Sensor.
(Inherited from GlsOccupancySensorBase)
Public propertyEnableRawStates Property to enable RawOccupancyFeedback property.
(Inherited from GlsOccupancySensorBase)
Public propertyEnableShortTimeout Property to enable a “walk-through” mode for a shorter timeouts upon periods of minimal occupancy.
(Inherited from GlsOccupancySensorBase)
Public propertyEnableToReceiveIrOutputs Property to enable the IR outputs. This property is not supported by "GlsOirLclCCn" device.
(Inherited from GlsOccupancySensorBase)
Public propertyExternalPhotoSensorMinimumChange Property to set the minimum change in lux that the external Photosensor must see before reporting a new value. This property is not supported by "GlsOirLclCCn" device.
(Inherited from GlsOccupancySensorBase)
Public propertyExternalPhotoSensorValueFeedback Property to report the external photosensor value.

The BaseEvent event will trigger with ExternalPhotoSensorValueFeedbackEventId.

This property is not supported by "GlsOirLclCCn" device.
(Inherited from GlsOccupancySensorBase)
Public propertyForceOccupied Property to force the device to report that the room is occupied even if the infrared sensor does not detect motion.
(Inherited from GlsOccupancySensorBase)
Public propertyForceVacant Property to force the sensor into the state of vacancy.
(Inherited from GlsOccupancySensorBase)
Public propertyGraceOccupancyDetectedFeedback Property to indicate occupancy event detected within 15s of initial vacancy event.

The BaseEvent event will trigger with GraceOccupancyDetectedFeedbackEventId.


(Inherited from GlsOccupancySensorBase)
Public propertyID Property to get the ID of the device.
(Inherited from GenericDevice)
Public propertyIncrementPirSensitivityInOccupiedState Property to increase the PIR sensitivity while sensor is in occupied state by 1.
(Inherited from GlsOccupancySensorBase)
Public propertyIncrementPirSensitivityInVacantState Property to increase the PIR sensitivity while sensor is in vacant state by 1.
(Inherited from GlsOccupancySensorBase)
Public propertyInternalPhotoSensorMinimumChange Property to set the minimum change in value that the internal Photosensor must sense before reporting a new value.
(Inherited from GlsOccupancySensorBase)
Public propertyInternalPhotoSensorValueFeedback Property to report the internal photosensor value.

The BaseEvent event will trigger with InternalPhotoSensorValueFeedbackEventId.


(Inherited from GlsOccupancySensorBase)
Public propertyIsOnline Property to get the current online state of the device.
(Inherited from GenericDevice)
Public propertyLedFlashEnabledFeedback Property to indicate if feedback LED is enabled or disabled.

The GlsOccupancySensorChange event will trigger with LedFlashEnabledFeedbackEventId.


(Inherited from GlsOccupancySensorBase)
Public propertyLocalTimeoutFeedback Property to report the timeout set from the IR remote.

The BaseEvent event will trigger with TimeoutLocalFeedbackEventId.


(Inherited from GlsOccupancySensorBase)
Public propertyName Get the name of this device.
(Inherited from GenericBase)
Public propertyOccupancyDetectedFeedback Property to indicate when the room is occupied.

The BaseEvent event will trigger with RoomOccupiedFeedbackEventId.


(Inherited from GlsOccupancySensorBase)
Public propertyParent The parent that a given object was added to.
(Inherited from GenericBase)
Public propertyPassiveInfraredSensorEnabledFeedback Property to report if the PIR Sensor is enabled.

The GlsOccupancySensorChange event will trigger with PirEnabledFeedbackEventId.


(Inherited from GlsOccupancySensorBase)
Public propertyPirEnabledFeedback Property to report if the PIR Sensor is enabled.

The GlsOccupancySensorChange event will trigger with PirEnabledFeedbackEventId.


(Inherited from GlsOccupancySensorBase)
Public propertyPirSensitivityInOccupiedStateFeedback Property to report Sensitivity level for PIR while sensor is in occupied state.

The GlsOccupancySensorChange event will trigger with PirSensitivityInOccupiedStateFeedbackEventId.


(Inherited from GlsOccupancySensorBase)
Public propertyPirSensitivityInVacantStateFeedback Property to report Sensitivity level for PIR while sensor is in vacant state.

The GlsOccupancySensorChange event will trigger with PirSensitivityInVacantStateFeedbackEventId.


(Inherited from GlsOccupancySensorBase)
Public propertyRawOccupancyFeedback Property to return the current occupancy status.

The BaseEvent event will trigger with RawOccupancyFeedbackEventId.


(Inherited from GlsOccupancySensorBase)
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)
Public propertyRemoteTimeout Property to set a dynamic timeout.
(Inherited from GlsOccupancySensorBase)
Public propertyShortTimeoutEnabledFeedback Property to report if the short timeout functionality has been enabled.

The GlsOccupancySensorChange event will trigger with ShortTimeoutEnabledFeedbackEventId.


(Inherited from GlsOccupancySensorBase)
Protected propertySIMPLDeviceImplementation Internal protected member used for actual device control.
(Inherited from GenericDevice)
Public propertySystemAddressReceivedFeedback Property to return the system address heard by the IR receiver.

The GlsOccupancySensorChange event will trigger with SystemAddressReceivedFeedbackEventId.

This property is not supported by "GlsOirLclCCn" device.
(Inherited from GlsOccupancySensorBase)
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)
Public propertyVacancyDetectedFeedback Property to indicate when the room is vacant.

The BaseEvent event will trigger with RoomVacantFeedbackEventId.


(Inherited from GlsOccupancySensorBase)
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 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 eventGlsOccupancySensorChange Event triggered when the GLS Cresnet Occupancy Sensor reports information to the Control System.

Valid event IDs are available in GlsOccupancySensorBase


(Inherited from GlsOccupancySensorBase)
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 GlsOirLclCCn _glsOirCCn;

public ControlSystemGlsOirCCn()
{
    //Register console commands
    CrestronConsole.AddNewConsoleCommand(CreateDeviceCmd, "CreateDevice", "This is a GLS-OIRLCL-C-CN CreateDevice command", ConsoleAccessLevelEnum.AccessOperator);
}

//Method to create the device object
public void CreateDeviceCmd(String args)
{
    _glsOirCCn = new GlsOirLclCCn(0x17, this);
    _glsOirCCn.BaseEvent += GlsOirCCnPropertyChangeEventHandler;
    _glsOirCCn.GlsOccupancySensorChange += OccupancySensorPropertyChange;

    _glsOirCCn.Register();
}

//Method to handle the Occupancy Sensor slot property change events
public void OccupancySensorPropertyChange(GlsOccupancySensorBase device, GlsOccupancySensorChangeEventArgs args)
{
    if (args.EventId == GlsOccupancySensorBase.LedFlashEnabledFeedbackEventId)
    {
        CrestronConsole.PrintLine("Led Flash Enabled Feedback Event Received, LedFlashEnabledFeedback state is {0}", _glsOirCCn.LedFlashEnabledFeedback.BoolValue);
    }
}

//Method to handle the top level slot property change events 
public void GlsOirCCnPropertyChangeEventHandler(GenericBase device, BaseEventArgs args)
{
    if (args.EventId == GlsOccupancySensorBase.RoomOccupiedFeedbackEventId)
    {
        CrestronConsole.PrintLine("Room Occupied Feedback Event Received, OccupancyDetectedFeedback state is {0}", _glsOirCCn.OccupancyDetectedFeedback.BoolValue);
    }
}

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also