Exemple #1
0
 public AbstractECU(ICommbox commbox)
 {
     this.commbox = commbox;
     this.protocol = null;
     this.pack = new NoPack();
     stopReadDataStream = false;
 }
Exemple #2
0
        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);
        }
Exemple #3
0
 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");
 }
Exemple #4
0
 public ISO9141(ICommbox box)
     : base(box)
 {
     options = null;
     kLine = SK_NO;
     lLine = RK_NO;
     func = new Default<ISO9141>(box, this);
 }
Exemple #5
0
 public KWP2000(ICommbox box)
     : base(box)
 {
     this.func = new Default<KWP2000>(box, this);
     StartCommunicationInit();
     kLine = SK_NO;
     lLine = RK_NO;
 }
Exemple #6
0
        public GW250(ICommbox commbox)
            : base(commbox)
        {
            startCommunication = Database.GetCommand("Enter1", "GW250");

            DataStreamInit();
            
            ProtocolInit();
        }
Exemple #7
0
        public GW250(ICommbox commbox)
            : base(commbox)
        {
            startCommunication = Database.GetCommand("Enter1", "GW250");

            DataStreamInit();

            ProtocolInit();
        }
Exemple #8
0
        public Mikuni(ICommbox commbox, MikuniOptions options)
            : base(commbox)
        {
            this.options = options;

            FailureCmdsInit();

            ProtocolInit();

            DataStreamInit();
        }
Exemple #9
0
        public Mikuni(ICommbox commbox, MikuniOptions options)
            : base(commbox)
        {
            this.options = options;

            FailureCmdsInit();

            ProtocolInit();

            DataStreamInit();
        }
Exemple #10
0
 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;
 }
Exemple #11
0
        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);
        }
Exemple #12
0
        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;
        }
Exemple #13
0
        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;
        }
Exemple #14
0
 public Protocol(ICommbox box)
 {
     this.box = box;
 }
Exemple #15
0
 public Protocol(ICommbox box)
 {
     this.box = box;
 }
Exemple #16
0
 public Mikuni(ICommbox box)
     : base(box)
 {
     this.func = new Default <Mikuni>(box, this);
 }
Exemple #17
0
 public Visteon(ICommbox commbox)
     : base(commbox)
 {
     ProtocolInit();
     DataStreamInit();
 }
Exemple #18
0
 public AbstractChannel(Parameter param, ICommbox commbox)
 {
     this.param = param;
     this.commbox = commbox;
 }
Exemple #19
0
 public Mikuni(ICommbox box)
     : base(box)
 {
     this.func = new Default<Mikuni>(box, this);
 }
Exemple #20
0
 public Visteon(ICommbox commbox)
     : base(commbox)
 {
     ProtocolInit();
     DataStreamInit();
 }