public AbstractECU(ICommbox commbox) { this.commbox = commbox; this.protocol = null; this.pack = new NoPack(); stopReadDataStream = false; }
public PowertrainECU300(VehicleDB db, ICommbox box, PowertrainModel model) : base(db, box) { switch (model) { case PowertrainModel.QM48QT_8: Parameter.KLineParity = KLineParity.None; Parameter.KLineBaudRate = 19200; Channel = ChannelFactory.Create(Parameter, box, ProtocolType.MikuniECU300); Format = new MikuniECU300Format(Parameter); break; default: throw new DiagException("Unsupport model!"); } startConnection = Format.Pack(Database.QueryCommand("Start Connection", "Mikuni ECU300")); tpsIdleLearningValueSetting = Format.Pack(Database.QueryCommand("TPS Idle Learning Value Setting", "Mikuni ECU300")); longTermLearningValueReset = Format.Pack(Database.QueryCommand("02 Feed Back Long Term Learning Value Reset", "Mikuni ECU300")); dsvISCLearningValueSetting = Format.Pack(Database.QueryCommand("DSV ISC Learning Value Reset", "Mikuni ECU300")); readEcuVersion = Format.Pack(Database.QueryCommand("ECU Version Information", "Mikuni ECU300")); this.model = model; rData = new byte[128]; DataStream = new PowertrainDataStreamECU300(this); }
public static IChannel Create(Parameter param, ICommbox box, ProtocolType type) { if (box is Commbox.W80.W80Commbox) { return W80Create(param, box as Commbox.W80.W80Commbox, type); } throw new ArgumentException("Commbox"); }
public ISO9141(ICommbox box) : base(box) { options = null; kLine = SK_NO; lLine = RK_NO; func = new Default<ISO9141>(box, this); }
public KWP2000(ICommbox box) : base(box) { this.func = new Default<KWP2000>(box, this); StartCommunicationInit(); kLine = SK_NO; lLine = RK_NO; }
public GW250(ICommbox commbox) : base(commbox) { startCommunication = Database.GetCommand("Enter1", "GW250"); DataStreamInit(); ProtocolInit(); }
public Mikuni(ICommbox commbox, MikuniOptions options) : base(commbox) { this.options = options; FailureCmdsInit(); ProtocolInit(); DataStreamInit(); }
public AbstractECU(VehicleDB db, ICommbox box) { troubleCode = null; dataStream = null; freezeFrame = null; activeTest = null; this.db = db; this.box = box; param = new Parameter(); format = null; chn = null; }
public PowertrainECU200(VehicleDB db, ICommbox box, PowertrainModel model) : base(db, box) { switch (model) { case PowertrainModel.DCJ_16A: case PowertrainModel.DCJ_16C: case PowertrainModel.DCJ_10: Parameter.KLineParity = KLineParity.None; Parameter.KLineBaudRate = 19200; Channel = ChannelFactory.Create(Parameter, box, ProtocolType.MikuniECU200); Format = new MikuniECU200Format(Parameter); break; case PowertrainModel.QM200GY_F: case PowertrainModel.QM200_3D: case PowertrainModel.QM200J_3L: Parameter.KLineParity = KLineParity.Even; Parameter.KLineBaudRate = 19200; Channel = ChannelFactory.Create(Parameter, box, ProtocolType.MikuniECU300); Format = new MikuniECU200Format(Parameter); break; default: throw new DiagException("Unsupport model!"); } this.model = model; if (Channel == null) throw new DiagException("Cannot create channel!!!"); readECUVersion1 = Format.Pack(Database.QueryCommand("Read ECU Version 1", "Mikuni ECU200")); readECUVersion2 = Format.Pack(Database.QueryCommand("Read ECU Version 2", "Mikuni ECU200")); engineRevolutions = Format.Pack(Database.QueryCommand("Engine Revolutions", "Mikuni ECU200")); tpsIdleAdjustments = Format.Pack(Database.QueryCommand("TPS Idle Adjustment", "Mikuni ECU200")); longTermLearnValueZoneInitialization = Format.Pack(Database.QueryCommand("Long Term Learn Value Zone Initialization", "Mikuni ECU200")); longTermLearnValueZones = new Dictionary<int, byte[]>(); for (int i = 1; i < 11; i++) { longTermLearnValueZones.Add(i, Format.Pack( Database.QueryCommand( "Long Term Learn Value Zone_" + Convert.ToString(i), "Mikuni ECU200") ) ); } iscLearnValueInitialization = Format.Pack(Database.QueryCommand("ISC Learn Value Initialization", "Mikuni ECU200")); rData = new byte[100]; DataStream = new PowertrainDataStreamECU200(this); TroubleCode = new PowertrainTroubleCodeECU200(this); }
public Synerject(ICommbox commbox) : base(commbox) { keepLink = Database.GetCommand("KeepLink", "Synerject"); startCommunication = Database.GetCommand("Start Communication", "Synerject"); startDiagnosticSession = Database.GetCommand("Start DiagnosticSession", "Synerject"); stopDiagnosticSession = Database.GetCommand("Stop DiagnosticSession", "Synerject"); stopCommunication = Database.GetCommand("Stop Communication", "Synerject"); DataStreamInit(); ActiveTestInit(); ProtocolInit(); ActiveOn = ActiveState.Stop; }
public Protocol(ICommbox box) { this.box = box; }
public Mikuni(ICommbox box) : base(box) { this.func = new Default <Mikuni>(box, this); }
public Visteon(ICommbox commbox) : base(commbox) { ProtocolInit(); DataStreamInit(); }
public AbstractChannel(Parameter param, ICommbox commbox) { this.param = param; this.commbox = commbox; }
public Mikuni(ICommbox box) : base(box) { this.func = new Default<Mikuni>(box, this); }