/// <summary> /// Overloaded constructor /// </summary> /// <param name="strPortName">Name of new serial port</param> /// <param name="ucaKey">Byte array of new ECU key</param> /// <param name="ConnectionType">Type of connection</param> public Protocol15(string strPortName, byte[] ucaKey, Comm.PortType ConnectionType) : base(strPortName, ucaKey, ConnectionType) { ProtocolVersion = 15; mRtcData = new VolatileData(); mEmpData = new EmpiricalDataBlock(); }
/// <summary>Overloaded constructor</summary> /// <param name="strPortName">Name of new serial port</param> /// <param name="ucaKey">Byte array of new ECU key</param> /// <param name="ConnectionType">Enumeration of connection type</param> public ProtocolBase(string strPortName, byte[] ucaKey, Comm.PortType ConnectionType) { byte[] Client = { 72, 74, 83, 45, 69, 67, 85 }; switch (ConnectionType) { case Comm.PortType.Modem: throw new Exception("The method or operation is not implemented."); case Comm.PortType.Direct: default: mEcu = new SerialDirect(strPortName, mVersion, ucaKey, Client); break; } mFirmware = new Firmware(); mBusy = false; }
/// <summary>Overloaded constructor</summary> /// <param name="strPortName">Name of new serial port</param> /// <param name="ucaKey">Byte array of new ECU key</param> /// <param name="ConnectionType">Type of connection</param> public Protocol14(string strPortName, byte[] ucaKey, Comm.PortType ConnectionType) : base(strPortName, ucaKey, ConnectionType) { ProtocolVersion = 14; }