wxr
2020-01-10 1a4b95a7ebef71838bd3eda2c22056bbf0db65ec
HDL_ON/Entity/Enumerative/Command.cs
File was renamed from HDL_ON/HDL/Operation/MyEnum.cs
@@ -1,313 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HDL_ON
using System;
namespace HDL_ON.Entity.Enumerative
{
    /// <summary>
    /// 设备模块类型
    /// </summary>
    public enum ModuleType
    {
        UnKown = int.MaxValue,
        /// <summary>
        /// 面板设备
        /// </summary>
        YIPanel = 0x0001,
    }
    /// <summary>
    /// 设备类型
    /// </summary>
    public enum DeviceType
    {
        //新加
        SonosMusic = 0x1111,
        MechanicalSwitch = 0x1200,
        AutomaticSwitch = 0x1201,
        DoorLockID = 0x1202,
        /// <summary>
        /// 不清楚
        /// </summary>
        UnKown = int.MaxValue,
        /// <summary>
        /// The device common.
        /// </summary>
        DeviceCommon = 0x0000,
        /// <summary>
        /// 电视
        /// </summary>
        TV = 0x0001,
        /// <summary>
        /// 场景
        /// </summary>
        Scene = 0x0002,
        /// <summary>
        /// 系列
        /// </summary>
        Series = 0x0003,
        /// <summary>
        /// 通用开关
        /// </summary>
        CommonSwitch = 0x0004,
        /// <summary>
        /// 摄像机
        /// </summary>
        Monitor = 0x0005,
        /// <summary>
        /// 窗帘模块
        /// </summary>
        CurtainModel = 0x0202,
        /// <summary>
        /// 开合帘电机
        /// </summary>
        CurtainTrietex = 0x0200,
        /// <summary>
        /// 卷帘
        /// </summary>
        CurtainRoller = 0x0201,
        /// <summary>
        /// 调光灯
        /// </summary>
        LightDimming = 0x0100,
        /// <summary>
        /// 开关灯
        /// </summary>
        LightSwitch = 0x0101,
        LightCCT = 0x0102,
        LightRGB = 0x0103,
        LightRGBW = 0x0104,
        LightRGBandCCT = 0x0105,
        LightDALI = 0x0107,
        LightLogic = 0x0108,
        LightMixDimming = 0x0109,
        LightMixSwitch = 0x010A,
        LightEnergySwitch = 0x010B,//能源开关,带功率的继电器
        LightSwitchSocket = 0x0188,//自定义特殊的继电器,作插座使用
        /// <summary>
        /// 窗帘
        /// </summary>
        //Curtain = 0x0200,
        /// <summary>
        /// The AC device.
        /// </summary>
        ACDevice = 0x07FF,
        /// <summary>
        /// AC模块
        /// </summary>
        HVAC = 0x0700,
        /// <summary>
        /// 首城珑玺定制的空调模块
        /// </summary>
        LongXiAC = 0x07F9,
        /// <summary>
        /// 通用空调面板
        /// </summary>
        ACPanel = 0x0703,
        /// <summary>
        /// 红外空调
        /// </summary>
        ACInfrared = 0x0702,
        /// <summary>
        /// The AC coolmaster控制模块
        /// </summary>
        ACCoolmaster = 0x0701,
        /// <summary>
        /// 自定义学习红外码的通用开关空调控制
        /// </summary>
        CustomAC =0x0764,
        /// <summary>
        /// 地热
        /// </summary>
        FoolHeat = 0x0800,
        /// <summary>
        /// 常规地热面板
        /// </summary>
        FoolHeatPanel = 0x0801,
        /// <summary>
        /// 新风系统
        /// </summary>
        FreshAir = 0x1300,
        /// <summary>
        /// 无线网关
        /// </summary>
        OnePortWirelessFR = 0xFE01,
        OnePortBus = 0xFE00,
        RCU = 0xFE04,
        SuperWireless = 0xFE05,
        DMX48 = 0xFD04,
        /// <summary>
        /// 按键面板
        /// </summary>
        ButtonPanel = 0x0401,
        /// <summary>
        /// 干接点
        /// </summary>
        DryContact = 0x0400,
        /// <summary>
        /// 毛细血管空调
        /// </summary>
        Thermostat = 0x0705,
        //WirelessNetManage = 0x1D34,
        MusicModel = 0x0900,
        MusicPanel = 0x0902,
        MusicA31 = 0x0903,
        InfraredMode = 0x0300,
        A31MusicModel = 0x0901,
        InfraredTV = 0x0305,
        InfraredSTB = 0x0303,
        InfraredProjetor = 0x0301,
        /// <summary>
        /// 安防模块
        /// </summary>
        SecurityModule = 0x0A00,
        /// <summary>
        /// 安防面板
        /// </summary>
        SecurityPanel = 0x0A02,
        /// <summary>
        /// 风扇模块
        /// </summary>
        FanModule = 0x1000,
        /// <summary>
        /// 逻辑控制模块
        /// </summary>
        LogicModule = 0x0C00,
        /// <summary>
        /// 通用开关
        /// </summary>
        UniversalDevice = 0x6400,
        DoorLock = 0x1203,
        /// <summary>
        /// The sensor.
        /// </summary>
        Sensor = 0x0500,
        /// <summary>
        /// 移动探测(01)
        /// </summary>
        SensorMobileDetection = 0x0501,
        /// <summary>
        /// 温度
        /// </summary>
        SensorTemperature = 0x0502,
        /// <summary>
        /// 湿度
        /// </summary>
        SensorHumidity = 0x0503,
        /// <summary>
        /// 光照
        /// </summary>
        SensorIllumination =0x0504,
        /// <summary>
        /// VOC(05)
        /// </summary>
        SensorTVOC = 0x0505,
        /// <summary>
        /// The sensor PM 25.
        /// </summary>
        SensorPM25 = 0x0506,
        /// <summary>
        /// The sensor CO2.
        /// </summary>
        SensorCO2 = 0x0507,
        /// <summary>
        /// 液化石油气(LPG)(08)
        /// </summary>
        SensorLPG = 0x0508,
        /// <summary>
        /// 人工煤气(CO,H2)(09)
        /// </summary>
        SensorCOH2 = 0x0509,
        /// <summary>
        /// 天然气(CH4)(10)
        /// </summary>
        SensorCH4 = 0x0510,
        /// <summary>
        /// 烟雾(11)
        /// </summary>
        SensorSmoke = 0x0511,
        /// <summary>
        /// 风速(12)
        /// </summary>
        SensorWindSpeed = 0x0512,
        /// <summary>
        /// 风压(13)
        /// </summary>
        SensorWindPressure = 0x0513,
        /// <summary>
        /// 液体流量(14)
        /// </summary>
        SensorLiquidFlow = 0x0514,
        /// <summary>
        /// 液体压力(15)
        /// </summary>
        SensorLiquidPressure = 0x0515,
        /// <summary>
        /// 液体深度(16)
        /// </summary>
        SensorLiquidDepth = 0x0516,
        /// <summary>
        /// 雨量(17)
        /// </summary>
        SensorRainfall = 0x0517,
        /// <summary>
        /// 重量
        /// </summary>
        SensorWeight = 0x0518,
        /// <summary>
        /// 高度/长度
        /// </summary>
        SensorHeightLength  = 0x0519,
        /// <summary>
        /// 物体速度(20)
        /// </summary>
        SensorVelocity = 0x0520,
        /// <summary>
        /// 震动(21)
        /// </summary>
        SensorVibration = 0x0521,
        /// <summary>
        /// 电压
        /// </summary>
        SensorVoltage = 0x0522,
        /// <summary>
        /// 电流
        /// </summary>
        SensorCurrent = 0x0523,
        /// <summary>
        /// 功率
        /// </summary>
        SensorPower = 0x0524,
        /// <summary>
        /// 水浸(25)
        /// </summary>
        SensorWater = 0x0525,
        /// <summary>
        /// 门磁、窗磁(26)
        /// </summary>
        SensorMenciAndwindowMagnetic = 0x0526,
    }
    /// <summary>
    /// 操作码
    /// </summary>
@@ -451,12 +144,12 @@
        //[0]//灯号    1-64                                        1BYTE
        //[1]1色温调冷,2色温调暖,                              1BYTE
        //==================单路色温控制=========================//20190307
        read_lamp_color_Temperature = 0x19E0 ,
        read_lamp_color_Temperature = 0x19E0,
        //[0]//灯号    1-64                                        1BYTE
        read_lamp_color_Temperature_ack = 0x19E1 ,
        read_lamp_color_Temperature_ack = 0x19E1,
        //[0]//灯号    1-64                                        1BYTE
        //[1][2]//色温值高BYTE+色温值低BYTE     0-0xFFFF         2BYTE
        control_lamp_color_Temperature = 0x19E2,
        control_lamp_color_Temperature = 0x19E2,
        //[0]//灯号    1-64                                        1BYTE
        //[1][2]//色温值高BYTE+色温值低BYTE     0-0xFFFF         2BYTE
        control_lamp_color_Temperature_ack = 0x19E3,     //广播
@@ -2099,13 +1792,13 @@
        //摄氏温度浮点值2      1byte    //20110328加//把浮点值按存储的4个byte发送    
        //摄氏温度浮点值3      1byte    //20110328加//把浮点值按存储的4个byte发送   
        //摄氏温度浮点值4      1byte    //20110328加//把浮点值按存储的4个byte发送  
        PanleBroadcastTemp = 0xE3E5,
        PanleBroadcastTemp = 0xE3E5,
        ////未用
        //PanleBroadcastTempACK = 0xE3E6,
        //读温度
        //通道号,   0-255       1btye//面板默认为1                                   
        //读温度返回
        ReadPanleTemp = 0xE3E7 ,
        ReadPanleTemp = 0xE3E7,
        //通道号,   0-255       1btye//面板默认为1                                  
        //摄氏温度值,         1btye      //注意:temperature为负数的时候,最高位置1
        //20151013
@@ -3371,7 +3064,7 @@
        /// <summary>
        /// 区号  通道号 状态(0:闭合 1:断开 2:不在线)  Bypass(0:不使能  1:使能)  备注
        /// </summary>
        ReadSecurityStatusACK = 0x15E5,
        ReadSecurityStatusACK = 0x15E5,
        /// <summary>
        /// 设置安防 BYPASS
@@ -3382,81 +3075,4 @@
    }
    /// <summary>
    /// 发送绳
    /// </summary>
    public enum SendCount
    {
        Zero = 0,
        /// <summary>
        /// 一次
        /// </summary>
        One = 1,
        /// <summary>
        /// 二次
        /// </summary>
        Two = 2,
        /// <summary>
        /// 三次
        /// </summary>
        Three = 3
    }
    public enum InfraredCode_TV
    {
        VolDown = 1,
        ChannelUp,//00002=频道+
        Menu,//00003=菜单
        ChannelDown,//00004=频道-
        VolUp,//00005=音量+
        Power,//00006=电源键
        Mute,//00007=静音
        One,//00008=1
        Two,//00009=2
        Three,//00010=3
        Four,//00011=4
        Five,//00012=5
        Six,//00013=6
        Seven,//00014=7
        Eight,//00015=8
        Nine,//00016=9
        Change,//00017=-/--
        Zero,//00018=0
        AV_TV,//00019=AV/TV
        Back,//00020=返回
        Confrim,//00021=确定
        Up,//00022=上
        Left,//00023=左
        Right,//00024=右
        Down,//00025=下
    }
    public enum InfraredCode_STB
    {
        Standby = 1,
        One,
        Two,
        Three,
        Four,
        Five,
        Six,
        Seven,
        Eight,
        Nine,
        //Change,
        HomePage,
        Zero,
        Back,
        Up,
        Left,
        Confrim,
        Right,
        Down,
        VolUp,
        VolDown,
        ChannelUp,
        ChannelDown,
        Menu,
    }
}
}