/// <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); }
public DiagnosticSessionControl(ISO_TP.Message message) : base(message) { SessionType = (DiagnosticSessionType)message.Payload[1]; if (base.MessageType == ServiceMessageType.Request) { } else { } }