/// <summary>
        /// 静态构造函数
        /// </summary>
        static ReadWriteIdHandle()
        {
            atSnRead     = new CmdRead(CmdRead.ReadIdType.SnRead, "AT+CBSN\r\n", "+CBSN:");
            atIccidRead  = new CmdRead(CmdRead.ReadIdType.IccidRead, "AT+CCID\r\n", "+CCID:");
            atImeiRead   = new CmdRead(CmdRead.ReadIdType.ImeiRead, "AT+CGSN\r\n", "+CGSN:");
            atEidRead    = new CmdRead(CmdRead.ReadIdType.EidRead, "AT+CEID\r\n", "+CEID:");
            atVersonRead = new CmdRead(CmdRead.ReadIdType.VersonRead, "AT+CGMR\r\n", VersonStart);

            atImeiWrite = new CmdWrite(CmdWrite.WriteIdType.ImeiWrite, "AT+EGMR=1,7,\"", "\"\r\n");
            atSnWrite   = new CmdWrite(CmdWrite.WriteIdType.SnWrite, "AT+EGMR=1,5,\"", "\"\r\n");
        }
        /// <summary>
        /// 写入模块ID
        /// </summary>
        /// <param name="atWeiteCmd"></param>
        /// <param name="id"></param>
        /// <returns></returns>
        public int WriteId(CmdWrite.WriteIdType writeIdType, string id)
        {
            CmdWrite CmdWrite = null;

            switch (writeIdType)
            {
            case CmdWrite.WriteIdType.SnWrite:
                CmdWrite = atSnWrite;
                break;

            case CmdWrite.WriteIdType.ImeiWrite:
                CmdWrite = atImeiWrite;
                break;

            default:
                throw new NullReferenceException("ATWeiteCmd.WriteIdType引用异常");
            }

            string writeCmd = string.Format("{0}{1}{2}", CmdWrite.CmdPrefix, id, CmdWrite.CmdSuffix);

            return(ATCmdCommunication(writeCmd));
        }