Esempio n. 1
0
        /// <summary>
        /// 诊断会话控制
        /// </summary>
        /// <param name="sessionType">会话类型</param>
        /// <returns></returns>
        public ApplicationLayerProtocol DiagnosticSessionControl(DiagnosticSessionType sessionType, bool priority)
        {
            ParaInfo para;

            para.ByteLen = 1;
            para.Value   = (byte)sessionType;
            ApplicationLayerProtocol newFrame = new ApplicationLayerProtocol(ApplicationLayerProtocol.RequestID, ServicesID.DiagnosticSessionControl, priority, para);

            return(newFrame);
        }
Esempio n. 2
0
 public DiagnosticSessionControl(ISO_TP.Message message)
     : base(message)
 {
     SessionType = (DiagnosticSessionType)message.Payload[1];
     if (base.MessageType == ServiceMessageType.Request)
     {
     }
     else
     {
     }
 }