Ejemplo n.º 1
0
 public static void Init()
 {
     ControlBusinessData.Init();             //初始化转台/云台基本数据
     SerialCOMInit.SerialCOMEquipmentInit(); //初始化串口设备
     //CHCNetSDKInterface.HK_EquipmentInit(); //初始化HK网络设备
     ////////////自动获取UPS数据///////////////////
     UPSDataInterface();
     IRProtect();
 }
Ejemplo n.º 2
0
        //static public void CommunicationWrite(Guid? GuidCommunicationID, string strCommunicationType, byte[] tmp_Data)
        //{
        //    switch (strCommunicationType)
        //    {
        //        case "1"://串口
        //            { SerialCOMInit.WriteCom(GuidCommunicationID, tmp_Data); }
        //            break;
        //        case "2"://网络
        //            { }
        //            break;
        //    }
        //}

        //static public void CommunicationWrite(Guid? GuidCommunicationID, string strCommunicationType, string tmp_Data)
        //{
        //    switch (strCommunicationType)
        //    {
        //        case "1"://串口
        //            { SerialCOMInit.WrirtCom_str(GuidCommunicationID, tmp_Data); }
        //            break;
        //        case "2"://网络
        //            { }
        //            break;
        //    }
        //}

        static public void CommunicationWrite(Guid?GuidCommunicationID, string strCommunicationType, byte[] tmp_Data)
        {
            string falseMsg = string.Empty;

            if (GuidCommunicationID != null)
            {
                switch (strCommunicationType)
                {
                case "1":    //串口
                { SerialCOMInit.WriteCom(GuidCommunicationID.Value, tmp_Data, out falseMsg); }
                break;

                case "2":    //网络
                {
                }
                break;
                }
            }
        }