Exemple #1
0
 public code(ref SerialPort sPort)
     : base(ref sPort)
 {
     engineData = new dataElement[] {
         new dataElement(lang.ErrCnt, "#", "0", new byte[] { 0x73 }, new dataElement.ValDecode(CRDVAS))
     };
     activeTest   = new testElement[] { };
     engineErrReq = new byte[] { };
     immoErrReq   = new byte[] { 0x71, 0x72 };
     clearCodes   = new testElement("", false, 10, new byte[] { 0x84 });
     engineErrors = new errorElement[] { };
     immoErrors   = new errorElement[] {
         new errorElement(lang.ErrNoSync, 0x71, 0, 0x72, 0, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE)),
         new errorElement(lang.ErrStartDis, 0x71, 0, 0x72, 1, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE)),
         new errorElement(lang.ErrUniCode, 0x71, 0, 0x72, 2, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE)),
         new errorElement(lang.ErrC4, 0x71, 0, 0x72, 3, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE)),
         new errorElement(lang.ErrBackdoor, 0x71, 0, 0x72, 4, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE)),
         new errorElement(lang.ErrKeyCode, 0x71, 0, 0x72, 5, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE)),
         new errorElement(lang.ErrUnrCode, 0x71, 0, 0x72, 6, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE)),
         new errorElement(lang.ErrLinkDown, 0x71, 0, 0x72, 7, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE))
     };
     adjustments = new adjustElement[] { };
 }
Exemple #2
0
 public iaw18fd(ref SerialPort sPort)
     : base(ref sPort)
 {
     engineData = new dataElement[] {
         new dataElement(lang.PERIODE, lang.rpm, "0", new byte[] { 0x01, 0x02 }, new dataElement.ValDecode(PERIODE)),
         new dataElement(lang.T_INJ_AP, "ms", "0.00", new byte[] { 0x03, 0x04 }, new dataElement.ValDecode(T_INJ_AP)),
         new dataElement(lang.AVANCE, "°", "0.00", new byte[] { 0x05 }, new dataElement.ValDecode(AVANCE)),
         new dataElement(lang.MP2_MP8, "hPa", "0", new byte[] { 0x06 }, new dataElement.ValDecode(MP2_MP8)),
         new dataElement(lang.MT_AIR_L, "°C", "0", new byte[] { 0x07 }, new dataElement.ValDecode(MT_AIR_L)),
         new dataElement(lang.MT_EAU_L, "°C", "0", new byte[] { 0x08 }, new dataElement.ValDecode(MT_EAU_L)),
         new dataElement(lang.ANG_PAP0, "°", "0.00", new byte[] { 0x09 }, new dataElement.ValDecode(ANG_PAP0)),
         new dataElement(lang.V_BATT, "V", "0.00", new byte[] { 0x0A }, new dataElement.ValDecode(M_VBATT)),
         new dataElement(lang.K_O2, "", "0.00", new byte[] { 0x0B }, new dataElement.ValDecode(K_O2)),
         new dataElement(lang.K_O2_RAW, "mV", "0.00", new byte[] { 0x6F }, new dataElement.ValDecode(K_O2_RAW)),
         new dataElement(lang.ALFAR, lang.steps, "0", new byte[] { 0x0C }, new dataElement.ValDecode(ALFAR)),
         new dataElement(lang.INTEGR, "", "0", new byte[] { 0x0D }, new dataElement.ValDecode(INTEGR)),
         new dataElement(lang.PROP, "", "0", new byte[] { 0x0E }, new dataElement.ValDecode(PROP)),
         new dataElement(lang.TRIMRAM, lang.steps, "0", new byte[] { 0x0F }, new dataElement.ValDecode(TRIMRAM)),
         new dataElement(lang.ALFAU, "", "0", new byte[] { 0x10, 0x11 }, new dataElement.ValDecode(ALFAU)),
         new dataElement(lang.ALFAUC, "", "0", new byte[] { 0x12, 0x13 }, new dataElement.ValDecode(ALFAUC)),
         new dataElement(lang.CONS_REG, lang.rpm, "0", new byte[] { 0x16 }, new dataElement.ValDecode(CONS_REG)),
         new dataElement(lang.OFNNTR, lang.rpm, "0", new byte[] { 0x15 }, new dataElement.ValDecode(OFNNTR)),
         new dataElement(lang.OFFSET1, "ms", "0", new byte[] { 0x22 }, new dataElement.ValDecode(OFFSET1)),
         new dataElement(lang.OFFSET2, "ms", "0", new byte[] { 0x23 }, new dataElement.ValDecode(OFFSET2)),
         new dataElement(lang.OFFSET3, "ms", "0", new byte[] { 0x24 }, new dataElement.ValDecode(OFFSET3)),
         new dataElement(lang.OFFSET4, "ms", "0", new byte[] { 0x25 }, new dataElement.ValDecode(OFFSET4)),
         new dataElement(lang.OFFSET5, "ms", "0", new byte[] { 0x26 }, new dataElement.ValDecode(OFFSET5)),
         new dataElement(lang.OFFSET6, "ms", "0", new byte[] { 0x27 }, new dataElement.ValDecode(OFFSET6)),
         new dataElement(lang.OFFSETm, "ms", "0", new byte[] { 0x28 }, new dataElement.ValDecode(OFFSETm)),
         new dataElement(lang.StaEngRun, "", lang.yes_no, new byte[] { 0x36 }, new dataElement.ValDecode(S2)),
         new dataElement(lang.StaSensOK, "", lang.yes_no, new byte[] { 0x36 }, new dataElement.ValDecode(S3)),
         new dataElement(lang.StaThrMM, "", lang.yes_no, new byte[] { 0x36 }, new dataElement.ValDecode(S4)),
         new dataElement(lang.StaClLoop, "", lang.yes_no, new byte[] { 0x36 }, new dataElement.ValDecode(S5)),
         new dataElement(lang.StaAirCoON, "", lang.yes_no, new byte[] { 0x36 }, new dataElement.ValDecode(S6)),
         new dataElement(lang.StaMixACOK, "", lang.yes_no, new byte[] { 0x36 }, new dataElement.ValDecode(S7)),
         new dataElement(lang.StaAdvDecr, "", lang.yes_no, new byte[] { 0x37 }, new dataElement.ValDecode(S25)),
         new dataElement(lang.StaStepACOK, "", lang.yes_no, new byte[] { 0x37 }, new dataElement.ValDecode(S26)),
         new dataElement(lang.StaGearEng, "", lang.yes_no, new byte[] { 0x37 }, new dataElement.ValDecode(S27))
     };
     activeTest = new testElement[] {
         new testElement(lang.FuelPump, false, 30, new byte[] { 0x80 }),
         new testElement(lang.Injectors, false, 10, new byte[] { 0x81 }),
         new testElement(lang.Coil1, false, 5, new byte[] { 0x82 }),
         new testElement(lang.Coil2, false, 5, new byte[] { 0x83 }),
         new testElement(lang.EVAP, false, 7, new byte[] { 0x85 }),
         new testElement(lang.REVmeter, false, 2, new byte[] { 0x86 }),
         new testElement(lang.ACrelay, false, 30, new byte[] { 0x87 }),
         new testElement(lang.MIL, false, 30, new byte[] { 0x88 }),
         new testElement(lang.EGR, false, 30, new byte[] { 0x89 }),
         new testElement(lang.ConMeter, false, 30, new byte[] { 0x8A })
     };
     adjustments = new adjustElement[] {
         new adjustElement(lang.ToggleTrimAC, 0x00, 0x00, new byte[] { 0x8D }, null, "toggle"),
         new adjustElement(lang.ToggleStepAC, 0x00, 0x00, new byte[] { 0x91 }, null, "toggle"),
         new adjustElement(lang.TrimReset, 0x00, 0x00, new byte[] { 0x8D, 0x8D }, null, "toggle"),
         new adjustElement(lang.StepReset, 0x00, 0x00, new byte[] { 0x91, 0x91 }, null, "toggle")
     };
     engineErrReq = new byte[] { 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45 };
     immoErrReq   = new byte[] { 0x71, 0x72 };
     clearCodes   = new testElement("", false, 10, new byte[] { 0x84 });
     engineErrors = new errorElement[] {
         new errorElement(lang.ErrTPS, 0x30, 0x39, 0x40, 0, 0x35, 0x3E, 0x45, 5, lang.ShortToGND, lang.ShortToVcc, new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrI2, 0x30, 0x39, 0x40, 1, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrLambda, 0x30, 0x39, 0x40, 2, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrECT, 0x30, 0x39, 0x40, 3, 0x35, 0x3E, 0x45, 3, lang.ShortToGND, lang.ShortToVcc, new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrIAT, 0x30, 0x39, 0x40, 4, 0x35, 0x3E, 0x45, 4, lang.ShortToGND, lang.ShortToVcc, new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrBattV, 0x30, 0x39, 0x40, 5, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrIdleReg, 0x30, 0x39, 0x40, 6, 0x35, 0x3E, 0x45, 1, lang.NoAir, lang.TooMuchAir, new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrKnockS, 0x30, 0x39, 0x40, 7, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrInj1, 0x31, 0x3A, 0x41, 0, 0x34, 0x3D, 0x44, 0, lang.ShortToGNDorOpen, lang.ShortToVcc, new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrCoil1, 0x31, 0x3A, 0x41, 1, 0x34, 0x3D, 0x44, 1, lang.ShortToGNDorOpen, lang.ShortToVcc, new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrCoil2, 0x31, 0x3A, 0x41, 2, 0x34, 0x3D, 0x44, 2, lang.ShortToGNDorOpen, lang.ShortToVcc, new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrIAV, 0x31, 0x3A, 0x41, 3, 0x34, 0x3D, 0x44, 3, lang.ShortToGNDorOpen, lang.ShortToVcc, new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrEVAP, 0x31, 0x3A, 0x41, 4, 0x34, 0x3D, 0x44, 4, lang.ShortToGNDorOpen, lang.ShortToVcc, new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrAirCo, 0x31, 0x3A, 0x41, 5, 0x34, 0x3D, 0x44, 5, lang.ShortToGNDorOpen, lang.ShortToVcc, new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrFuelPump, 0x31, 0x3A, 0x41, 6, 0x34, 0x3D, 0x44, 6, lang.ShortToGNDorOpen, lang.ShortToVcc, new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrMIL, 0x31, 0x3A, 0x41, 7, 0x34, 0x3D, 0x44, 7, lang.ShortToGNDorOpen, lang.ShortToVcc, new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrO1a, 0x32, 0x3B, 0x42, 0, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrO2a, 0x32, 0x3B, 0x42, 1, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrO3a, 0x32, 0x3B, 0x42, 2, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrInj2, 0x32, 0x3B, 0x42, 3, 0x35, 0x3E, 0x45, 7, lang.ShortToGNDorOpen, lang.ShortToVcc, new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrMixRatio, 0x32, 0x3B, 0x42, 4, 0x35, 0x3E, 0x45, 6, lang.MaxLEAN, lang.MaxRICH, new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrWasteG, 0x32, 0x3B, 0x42, 5, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrConMet, 0x32, 0x3B, 0x42, 6, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrMAP, 0x32, 0x3B, 0x42, 7, 0x35, 0x3E, 0x45, 0, lang.ShortToGNDorOpen, lang.ShortToVcc, new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrACParam, 0x33, 0x3C, 0x43, 0, 0x35, 0x3E, 0x45, 2, lang.MaxLEAN, lang.MaxRICH, new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrRAM, 0x33, 0x3C, 0x43, 1, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrROM, 0x33, 0x3C, 0x43, 2, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrEEPROM, 0x33, 0x3C, 0x43, 3, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrCPU, 0x33, 0x3C, 0x43, 4, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrRPMSens, 0x33, 0x3C, 0x43, 5, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrAutoTrans, 0x33, 0x3C, 0x43, 6, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err18F)),
         new errorElement(lang.ErrEGRVal, 0x33, 0x3C, 0x43, 7, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err18F))
     };
     immoErrors = new errorElement[] {
         new errorElement(lang.ErrNoSync, 0x71, 0, 0x72, 0, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE)),
         new errorElement(lang.ErrStartDis, 0x71, 0, 0x72, 1, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE)),
         new errorElement(lang.ErrUniCode, 0x71, 0, 0x72, 2, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE)),
         new errorElement(lang.ErrC4, 0x71, 0, 0x72, 3, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE)),
         new errorElement(lang.ErrBackdoor, 0x71, 0, 0x72, 4, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE)),
         new errorElement(lang.ErrKeyCode, 0x71, 0, 0x72, 5, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE)),
         new errorElement(lang.ErrUnrCode, 0x71, 0, 0x72, 6, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE)),
         new errorElement(lang.ErrLinkDown, 0x71, 0, 0x72, 7, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE))
     };
 }
Exemple #3
0
 public iaw16f(ref SerialPort sPort)
     : base(ref sPort)
 {
     engineData = new dataElement[] {
         new dataElement(lang.PERIODE, lang.rpm, "0", new byte[] { 0x01, 0x02 }, new dataElement.ValDecode(PERIODE)),
         new dataElement(lang.T_INJ_AP, "ms", "0.00", new byte[] { 0x03, 0x04 }, new dataElement.ValDecode(T_INJ_AP)),
         new dataElement(lang.AVANCE, "°", "0.00", new byte[] { 0x05 }, new dataElement.ValDecode(AVANCE)),
         new dataElement(lang.MP2_MP8, "hPa", "0", new byte[] { 0x06 }, new dataElement.ValDecode(MP2_MP8)),
         new dataElement(lang.MT_AIR_L, "°C", "0", new byte[] { 0x07 }, new dataElement.ValDecode(MT_AIR_L)),
         new dataElement(lang.MT_EAU_L, "°C", "0", new byte[] { 0x08 }, new dataElement.ValDecode(MT_EAU_L)),
         new dataElement(lang.ANG_PAP0, "°", "0.00", new byte[] { 0x09 }, new dataElement.ValDecode(ANG_PAP0)),
         new dataElement(lang.V_BATT, "V", "0.00", new byte[] { 0x0A }, new dataElement.ValDecode(M_VBATT)),
         new dataElement(lang.K_O2, "", "0.00", new byte[] { 0x0B }, new dataElement.ValDecode(K_O2)),
         new dataElement(lang.ALFAR, lang.steps, "0", new byte[] { 0x0C }, new dataElement.ValDecode(ALFAR)),
         new dataElement(lang.INTEGR, "", "0", new byte[] { 0x0D }, new dataElement.ValDecode(INTEGR)),
         new dataElement(lang.PROP, "", "0", new byte[] { 0x0E }, new dataElement.ValDecode(PROP)),
         new dataElement(lang.TRIMRAM, lang.steps, "0", new byte[] { 0x0F }, new dataElement.ValDecode(TRIMRAM)),
         new dataElement(lang.ALFAU, "", "0", new byte[] { 0x22, 0x23 }, new dataElement.ValDecode(ALFAU)),
         new dataElement(lang.ALFAUC, "", "0", new byte[] { 0x24, 0x25 }, new dataElement.ValDecode(ALFAUC)),
         new dataElement(lang.CONS_REG, lang.rpm, "0", new byte[] { 0x26 }, new dataElement.ValDecode(CONS_REG)),
         new dataElement(lang.OFNNTR, lang.rpm, "0", new byte[] { 0x27 }, new dataElement.ValDecode(OFNNTR)),
         new dataElement(lang.DELREG, "", "0", new byte[] { 0x28 }, new dataElement.ValDecode(DELREG)),
         new dataElement(lang.ALFAFTR, "", "0", new byte[] { 0x29 }, new dataElement.ValDecode(ALFAFTR)),
         new dataElement(lang.ADOFFSET, "", "0", new byte[] { 0x32, 0x33 }, new dataElement.ValDecode(ADOFFSET)),
         new dataElement(lang.ADOFFPURG, "", "0", new byte[] { 0x34, 0x35 }, new dataElement.ValDecode(ADOFFPURG)),
         new dataElement(lang.ADOFFPL, "", "0", new byte[] { 0x36, 0x37 }, new dataElement.ValDecode(ADOFFPL)),
         new dataElement(lang.ADGAIN, "", "0", new byte[] { 0x38, 0x39 }, new dataElement.ValDecode(ADGAIN)),
         new dataElement(lang.StaEngRun, "", lang.yes_no, new byte[] { 0x13 }, new dataElement.ValDecode(S2)),
         new dataElement(lang.StaSensOK, "", lang.yes_no, new byte[] { 0x13 }, new dataElement.ValDecode(S3)),
         new dataElement(lang.StaThrMM, "", lang.yes_no, new byte[] { 0x13 }, new dataElement.ValDecode(S4)),
         new dataElement(lang.StaClLoop, "", lang.yes_no, new byte[] { 0x13 }, new dataElement.ValDecode(S5)),
         new dataElement(lang.StaAirCoON, "", lang.yes_no, new byte[] { 0x13 }, new dataElement.ValDecode(S6)),
         new dataElement(lang.StaMixACOK, "", lang.yes_no, new byte[] { 0x13 }, new dataElement.ValDecode(S7)),
         new dataElement(lang.StaStepACOK, "", lang.yes_no, new byte[] { 0x2A }, new dataElement.ValDecode(S23)),
         new dataElement(lang.StaPLatchOK, "", lang.yes_no, new byte[] { 0x2A }, new dataElement.ValDecode(S27))
     };
     activeTest = new testElement[] {
         new testElement(lang.FuelPump, false, 30, new byte[] { 0x80 }),
         new testElement(lang.Injector, false, 5, new byte[] { 0x81 }),
         new testElement(lang.Coil1, false, 5, new byte[] { 0x82 }),
         new testElement(lang.Coil2, false, 5, new byte[] { 0x83 }),
         new testElement(lang.EVAP, false, 7, new byte[] { 0x85 }),
         new testElement(lang.REVmeter, false, 2, new byte[] { 0x86 }),
         new testElement(lang.ACrelay, false, 30, new byte[] { 0x87 }),
         new testElement(lang.GenericRelay, false, 30, new byte[] { 0x88 })
     };
     //new testElement( lang.Stepper, true, 30, new byte[] { 0x8E })};
     adjustments = new adjustElement[] {
         new adjustElement(lang.ToggleTrimAC, 0x00, 0x00, new byte[] { 0x89 }, null, "toggle"),
         new adjustElement(lang.ToggleStepAC, 0x00, 0x00, new byte[] { 0x91 }, null, "toggle"),
         new adjustElement(lang.TrimReset, 0x00, 0x00, new byte[] { 0x89, 0x89 }, null, "toggle"),
         new adjustElement(lang.StepReset, 0x00, 0x00, new byte[] { 0x91, 0x91 }, null, "toggle"),
         new adjustElement(lang.TrimSet, 0x0F, 0xFF, new byte[] { 0x8F }, new byte[] { 0xFF }, "onebyte"),
         new adjustElement(lang.StepSet, 0x29, 0xFF, new byte[] { 0x92 }, new byte[] { 0xFF }, "onebyte"),
     };
     engineErrReq = new byte[] { 0x10, 0x11, 0x12, 0x14, 0x15, 0x16, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30 };
     immoErrReq   = new byte[] { 0x71, 0x72 };
     clearCodes   = new testElement("", false, 10, new byte[] { 0x84 });
     engineErrors = new errorElement[] {
         new errorElement(lang.ErrTPS, 0x10, 0, 0x14, 0, 0x2B, 0, 0x2E, 0, lang.ShortToGND, lang.ShortToVcc, new errorElement.ErrDecode(err16F)),
         new errorElement(lang.ErrMAP, 0x10, 0, 0x14, 1, 0x2B, 0, 0x2E, 1, lang.ShortToVcc, lang.ShortToGND, new errorElement.ErrDecode(err16F)),
         new errorElement(lang.ErrLambda, 0x10, 0, 0x14, 2, 0x2B, 0, 0x2E, 2, "", "", new errorElement.ErrDecode(err16F)),
         new errorElement(lang.ErrECT, 0x10, 0, 0x14, 3, 0x2B, 0, 0x2E, 3, lang.ShortToGND, lang.ShortToVcc, new errorElement.ErrDecode(err16F)),
         new errorElement(lang.ErrIAT, 0x10, 0, 0x14, 4, 0x2B, 0, 0x2E, 4, lang.ShortToGND, lang.ShortToVcc, new errorElement.ErrDecode(err16F)),
         new errorElement(lang.ErrBattV, 0x10, 0, 0x14, 5, 0x2B, 0, 0x2E, 5, lang.AtMAX, lang.AtMIN, new errorElement.ErrDecode(err16F)),
         new errorElement(lang.ErrIdleReg, 0x10, 0, 0x14, 6, 0x2B, 0, 0x2E, 6, "", "", new errorElement.ErrDecode(err16F)),
         new errorElement(lang.ErrI8, 0x10, 0, 0x14, 7, 0x2B, 0, 0x2E, 7, "", "", new errorElement.ErrDecode(err16F)),
         new errorElement(lang.ErrInj, 0x11, 0, 0x15, 0, 0x2C, 0, 0x2F, 0, lang.Therm, lang.OpenCircuit, new errorElement.ErrDecode(err16F)),
         new errorElement(lang.ErrCoil1, 0x11, 0, 0x15, 1, 0x2C, 0, 0x2F, 1, lang.ShortToVcc, lang.ShortToGNDorOpen, new errorElement.ErrDecode(err16F)),
         new errorElement(lang.ErrCoil2, 0x11, 0, 0x15, 2, 0x2C, 0, 0x2F, 2, lang.ShortToVcc, lang.ShortToGNDorOpen, new errorElement.ErrDecode(err16F)),
         new errorElement(lang.ErrIAV, 0x11, 0, 0x15, 3, 0x2C, 0, 0x2F, 3, lang.Therm, lang.OpenCircuit, new errorElement.ErrDecode(err16F)),
         new errorElement(lang.ErrEVAP, 0x11, 0, 0x15, 4, 0x2C, 0, 0x2F, 4, lang.ShortToVcc, lang.ShortToGNDorOpen, new errorElement.ErrDecode(err16F)),
         new errorElement(lang.ErrAirCo, 0x11, 0, 0x15, 5, 0x2C, 0, 0x2F, 5, lang.ShortToVcc, lang.ShortToGNDorOpen, new errorElement.ErrDecode(err16F)),
         new errorElement(lang.ErrFuelPump, 0x11, 0, 0x15, 6, 0x2C, 0, 0x2F, 6, lang.ShortToVcc, lang.ShortToGNDorOpen, new errorElement.ErrDecode(err16F)),
         new errorElement(lang.ErrGenRel, 0x11, 0, 0x15, 7, 0x2C, 0, 0x2F, 7, lang.ShortToVcc, lang.ShortToGNDorOpen, new errorElement.ErrDecode(err16F)),
         new errorElement(lang.ErrACParam, 0x12, 0, 0x16, 0, 0x2D, 0, 0x30, 0, lang.MaxRICH, lang.MaxLEAN, new errorElement.ErrDecode(err16F)),
         new errorElement(lang.ErrRAM, 0x12, 0, 0x16, 1, 0x2D, 0, 0x30, 1, "", "", new errorElement.ErrDecode(err16F)),
         new errorElement(lang.ErrROM, 0x12, 0, 0x16, 2, 0x2D, 0, 0x30, 2, "", "", new errorElement.ErrDecode(err16F)),
         new errorElement(lang.ErrEEPROM, 0x12, 0, 0x16, 3, 0x2D, 0, 0x30, 3, "", "", new errorElement.ErrDecode(err16F)),
         new errorElement(lang.ErrCPU, 0x12, 0, 0x16, 4, 0x2D, 0, 0x30, 4, "", "", new errorElement.ErrDecode(err16F)),
         new errorElement(lang.ErrRPMSens, 0x12, 0, 0x16, 5, 0x2D, 0, 0x30, 5, "", "", new errorElement.ErrDecode(err16F)),
         new errorElement(lang.ErrF7, 0x12, 0, 0x16, 6, 0x2D, 0, 0x30, 6, "", "", new errorElement.ErrDecode(err16F)),
         new errorElement(lang.ErrF8, 0x12, 0, 0x16, 7, 0x2D, 0, 0x30, 7, "", "", new errorElement.ErrDecode(err16F))
     };
     immoErrors = new errorElement[] {
         new errorElement(lang.ErrNoSync, 0x71, 0, 0x72, 0, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE)),
         new errorElement(lang.ErrStartDis, 0x71, 0, 0x72, 1, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE)),
         new errorElement(lang.ErrUniCode, 0x71, 0, 0x72, 2, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE)),
         new errorElement(lang.ErrC4, 0x71, 0, 0x72, 3, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE)),
         new errorElement(lang.ErrBackdoor, 0x71, 0, 0x72, 4, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE)),
         new errorElement(lang.ErrKeyCode, 0x71, 0, 0x72, 5, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE)),
         new errorElement(lang.ErrUnrCode, 0x71, 0, 0x72, 6, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE)),
         new errorElement(lang.ErrLinkDown, 0x71, 0, 0x72, 7, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(errCODE))
     };
 }
Exemple #4
0
 public iaw04k(ref SerialPort sPort)
     : base(ref sPort)
 {
     engineData = new dataElement[] {
         new dataElement(lang.PERIODE, lang.rpm, "0", new byte[] { 0x01, 0x02 }, new dataElement.ValDecode(PERIODE)),
         new dataElement(lang.T_INJ_AP, "ms", "0.00", new byte[] { 0x03, 0x04 }, new dataElement.ValDecode(T_INJ_AP)),
         new dataElement(lang.AVANCE, "°", "0.00", new byte[] { 0x05 }, new dataElement.ValDecode(AVANCE)),
         new dataElement(lang.MP2_MP8, "hPa", "0", new byte[] { 0x06 }, new dataElement.ValDecode(MP2_MP8)),
         new dataElement(lang.MP2_MP8t, "hPa", "0", new byte[] { 0x06 }, new dataElement.ValDecode(MP2_MP8t)),
         new dataElement(lang.MT_AIR_L, "°C", "0.0", new byte[] { 0x07 }, new dataElement.ValDecode(MT_AIR_L)),
         new dataElement(lang.MT_EAU_L, "°C", "0.0", new byte[] { 0x08 }, new dataElement.ValDecode(MT_EAU_L)),
         new dataElement(lang.ANG_PAP0, "°", "0.00", new byte[] { 0x09 }, new dataElement.ValDecode(ANG_PAP0)),
         new dataElement(lang.V_BATT, "V", "0.00", new byte[] { 0x0A }, new dataElement.ValDecode(M_VBATT)),
         new dataElement(lang.ALFAR, lang.steps, "0", new byte[] { 0x0B }, new dataElement.ValDecode(ALFAR)),
         new dataElement(lang.TRIMRAM, lang.steps, "0", new byte[] { 0x19 }, new dataElement.ValDecode(TRIMRAM)),
         new dataElement(lang.INJ_AVA, "°", "0", new byte[] { 0x0C }, new dataElement.ValDecode(INJ_AVA)),
         new dataElement(lang.T_VAE, "%", "0", new byte[] { 0x0D }, new dataElement.ValDecode(T_VAE)),
         new dataElement(lang.K_O2, "", "0.00", new byte[] { 0x12, 0x13 }, new dataElement.ValDecode(K_O2)),
         new dataElement(lang.FLGSMA, "", lang.yes_no, new byte[] { 0x14 }, new dataElement.ValDecode(FLGSMA)),
         new dataElement(lang.FABEPAT, "", lang.yes_no, new byte[] { 0x1B }, new dataElement.ValDecode(FABEPAT)),
         new dataElement(lang.FABEEAT, "", lang.yes_no, new byte[] { 0x1C }, new dataElement.ValDecode(FABEEAT)),
         new dataElement(lang.FABEPATi, "", lang.yes_no, new byte[] { 0x1B }, new dataElement.ValDecode(FABEPATi)),
         new dataElement(lang.FABEEATi, "", lang.yes_no, new byte[] { 0x1C }, new dataElement.ValDecode(FABEEATi)),
         new dataElement(lang.StaAdvDecr, "", lang.yes_no, new byte[] { 0x15 }, new dataElement.ValDecode(UR2)),
         new dataElement(lang.StaSigPanOK, "", lang.yes_no, new byte[] { 0x15 }, new dataElement.ValDecode(UR3)),
         new dataElement(lang.StaThrMM, "", lang.yes_no, new byte[] { 0x15 }, new dataElement.ValDecode(UR4)),
         new dataElement(lang.StaABSON, "", lang.yes_no, new byte[] { 0x15 }, new dataElement.ValDecode(UR5)),
         new dataElement(lang.StaAirCoON, "", lang.yes_no, new byte[] { 0x15 }, new dataElement.ValDecode(UR6)),
         new dataElement(lang.StaGearEng, "", lang.yes_no, new byte[] { 0x15 }, new dataElement.ValDecode(UR7)),
         new dataElement(lang.StaVAESC, "", lang.yes_no, new byte[] { 0x15 }, new dataElement.ValDecode(UR8))
     };
     activeTest = new testElement[] {
         new testElement(lang.FuelPump, false, 30, new byte[] { 0x80 }),
         new testElement(lang.Injectors, false, 5, new byte[] { 0x81 }),
         new testElement(lang.Injector1, false, 5, new byte[] { 0x8C }),
         new testElement(lang.Injector2, false, 5, new byte[] { 0x8D }),
         new testElement(lang.Injector3, false, 5, new byte[] { 0x8E }),
         new testElement(lang.Injector4, false, 5, new byte[] { 0x8F }),
         new testElement(lang.Coil1, false, 5, new byte[] { 0x82 }),
         new testElement(lang.Coil2, false, 5, new byte[] { 0x85 }),
         new testElement(lang.VAE, false, 5, new byte[] { 0x83 }),
         new testElement(lang.OverB, false, 5, new byte[] { 0x84 }),
         new testElement(lang.EVAP, false, 5, new byte[] { 0x90 }),
         new testElement(lang.REVmeter, false, 2, new byte[] { 0x89 }),
         new testElement(lang.ConMeter, false, 10, new byte[] { 0x88 })
     };
     engineErrReq = new byte[] { 0x0F, 0x10, 0x11, 0x16, 0x17, 0x18, 0x1D, 0x1E, 0x1F };
     immoErrReq   = new byte[] { };
     clearCodes   = new testElement("", false, 10, new byte[] { 0x86 });
     engineErrors = new errorElement[] {
         new errorElement(lang.ErrVAE, 0x0F, 0x16, 0x1D, 0, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err04K)),
         new errorElement(lang.ErrMixRatio, 0x0F, 0x16, 0x1D, 1, 0x11, 0x18, 0x1F, 0, lang.MaxRICH, lang.MaxLEAN, new errorElement.ErrDecode(err04K)),
         new errorElement(lang.ErrIAT, 0x0F, 0x16, 0x1D, 2, 0x11, 0x18, 0x1F, 1, lang.OpenCircuit, lang.ShortToVcc, new errorElement.ErrDecode(err04K)),
         new errorElement(lang.ErrKnock, 0x0F, 0x16, 0x1D, 3, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err04K)),
         new errorElement(lang.ErrECT, 0x0F, 0x16, 0x1D, 4, 0x11, 0x18, 0x1F, 2, lang.OpenCircuit, lang.ShortToVcc, new errorElement.ErrDecode(err04K)),
         new errorElement(lang.ErrLambda, 0x0F, 0x16, 0x1D, 5, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err04K)),
         new errorElement(lang.ErrMAP, 0x0F, 0x16, 0x1D, 6, 0x11, 0x18, 0x1F, 7, lang.OpenCircuit, lang.ShortToVcc, new errorElement.ErrDecode(err04K)),
         new errorElement(lang.ErrTPS, 0x0F, 0x16, 0x1D, 7, 0x11, 0x18, 0x1F, 3, lang.OpenCircuit, lang.ShortToVcc, new errorElement.ErrDecode(err04K)),
         new errorElement(lang.ErrCam, 0x10, 0x17, 0x1E, 0, 0x11, 0x18, 0x1F, 6, lang.OpenCircuit, lang.ShortToVcc, new errorElement.ErrDecode(err04K)),
         new errorElement(lang.ErrSPS, 0x10, 0x17, 0x1E, 1, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err04K)),
         new errorElement(lang.ErrEPROM, 0x10, 0x17, 0x1E, 2, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err04K)),
         new errorElement(lang.ErrEEPROM, 0x10, 0x17, 0x1E, 3, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err04K)),
         new errorElement(lang.ErrNeutralGear, 0x10, 0x17, 0x1E, 4, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err04K)),
         new errorElement(lang.ErrDigimatic, 0x10, 0x17, 0x1E, 5, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err04K)),
         new errorElement(lang.ErrRAM, 0x10, 0x17, 0x1E, 6, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err04K)),
         new errorElement(lang.ErrSMOT, 0x10, 0x17, 0x1E, 7, 0x11, 0x18, 0x1F, 5, lang.OpenCircuit, lang.ShortToVcc, new errorElement.ErrDecode(err04K))
     };
     immoErrors  = new errorElement[] { };
     adjustments = new adjustElement[] { };
 }
Exemple #5
0
 public iaw8f_68(ref SerialPort sPort)
     : base(ref sPort)
 {
     engineData = new dataElement[] {
         new dataElement(lang.PERIODE, lang.rpm, "0", new byte[] { 0x01, 0x02 }, new dataElement.ValDecode(PERIODE)),
         new dataElement(lang.T_INJ_AP, "ms", "0.00", new byte[] { 0x03, 0x04 }, new dataElement.ValDecode(T_INJ_AP)),
         new dataElement(lang.AVANCE, "°", "0.00", new byte[] { 0x05 }, new dataElement.ValDecode(AVANCE)),
         new dataElement(lang.MP2_MP8, "hPa", "0", new byte[] { 0x06 }, new dataElement.ValDecode(MP2_MP8)),
         new dataElement(lang.MT_AIR_L, "°C", "0", new byte[] { 0x07 }, new dataElement.ValDecode(MT_AIR_L)),
         new dataElement(lang.MT_EAU_L, "°C", "0", new byte[] { 0x08 }, new dataElement.ValDecode(MT_EAU_L)),
         new dataElement(lang.ANG_PAP0, "°", "0.00", new byte[] { 0x09 }, new dataElement.ValDecode(ANG_PAP0)),
         new dataElement(lang.V_BATT, "V", "0.00", new byte[] { 0x0A }, new dataElement.ValDecode(M_VBATT)),
         new dataElement(lang.K_O2, "", "0.00", new byte[] { 0x0B }, new dataElement.ValDecode(K_O2)),
         new dataElement(lang.ALFAR, lang.steps, "0", new byte[] { 0x0C }, new dataElement.ValDecode(ALFAR)),
         new dataElement(lang.INTEGR, "", "0", new byte[] { 0x0D }, new dataElement.ValDecode(INTEGR)),
         new dataElement(lang.PROP, "", "0", new byte[] { 0x0E }, new dataElement.ValDecode(PROP)),
         new dataElement(lang.TRIMRAM, lang.steps, "0", new byte[] { 0x0F }, new dataElement.ValDecode(TRIMRAM)),
         new dataElement(lang.ALFAU, "", "0", new byte[] { 0x22, 0x23 }, new dataElement.ValDecode(ALFAU)),
         new dataElement(lang.ALFAUC, "", "0", new byte[] { 0x24, 0x25 }, new dataElement.ValDecode(ALFAUC)),
         new dataElement(lang.CONS_REG, lang.rpm, "0", new byte[] { 0x26 }, new dataElement.ValDecode(CONS_REG)),
         new dataElement(lang.OFNNTR, lang.rpm, "0", new byte[] { 0x27 }, new dataElement.ValDecode(OFNNTR)),
         new dataElement(lang.DELREG, "", "0", new byte[] { 0x28 }, new dataElement.ValDecode(DELREG)),
         new dataElement(lang.ALFAFTR, "", "0", new byte[] { 0x29 }, new dataElement.ValDecode(ALFAFTR)),
         new dataElement(lang.ADOFFSET, "", "0", new byte[] { 0x32, 0x33 }, new dataElement.ValDecode(ADOFFSET)),
         new dataElement(lang.ADOFFPURG, "", "0", new byte[] { 0x34, 0x35 }, new dataElement.ValDecode(ADOFFPURG)),
         new dataElement(lang.ADOFFPL, "", "0", new byte[] { 0x36, 0x37 }, new dataElement.ValDecode(ADOFFPL)),
         new dataElement(lang.ADGAIN, "", "0", new byte[] { 0x38, 0x39 }, new dataElement.ValDecode(ADGAIN)),
         new dataElement(lang.StaEngRun, "", lang.yes_no, new byte[] { 0x13 }, new dataElement.ValDecode(S2)),
         new dataElement(lang.StaSensOK, "", lang.yes_no, new byte[] { 0x13 }, new dataElement.ValDecode(S3)),
         new dataElement(lang.StaThrMM, "", lang.yes_no, new byte[] { 0x13 }, new dataElement.ValDecode(S4)),
         new dataElement(lang.StaClLoop, "", lang.yes_no, new byte[] { 0x13 }, new dataElement.ValDecode(S5)),
         new dataElement(lang.StaAirCoON, "", lang.yes_no, new byte[] { 0x13 }, new dataElement.ValDecode(S6)),
         new dataElement(lang.StaMixACOK, "", lang.yes_no, new byte[] { 0x13 }, new dataElement.ValDecode(S7))
     };
     activeTest = new testElement[] {
         new testElement(lang.FuelPump, false, 30, new byte[] { 0x80 }),
         new testElement(lang.Injectors, false, 5, new byte[] { 0x81 }),
         new testElement(lang.Coil1, false, 5, new byte[] { 0x82 }),
         new testElement(lang.Coil2, false, 5, new byte[] { 0x83 }),
         new testElement(lang.EVAP, false, 7, new byte[] { 0x85 }),
         new testElement(lang.REVmeter, false, 2, new byte[] { 0x86 }),
         new testElement(lang.ACrelay, false, 30, new byte[] { 0x87 }),
         new testElement(lang.GenericRelay, false, 30, new byte[] { 0x88 })
     };
     adjustments = new adjustElement[] {
         new adjustElement(lang.ToggleTrimAC, 0x00, 0x00, new byte[] { 0x89 }, null, "toggle"),
         new adjustElement(lang.ToggleStepAC, 0x00, 0x00, new byte[] { 0x91 }, null, "toggle"),
         new adjustElement(lang.TrimReset, 0x00, 0x00, new byte[] { 0x89, 0x89 }, null, "toggle"),
         new adjustElement(lang.StepReset, 0x00, 0x00, new byte[] { 0x91, 0x91 }, null, "toggle")
     };
     engineErrReq = new byte[] { 0x10, 0x11, 0x12, 0x14, 0x15, 0x16 };
     immoErrReq   = new byte[] { };
     clearCodes   = new testElement("", false, 10, new byte[] { 0x84 });
     engineErrors = new errorElement[] {
         new errorElement(lang.ErrTPS, 0x10, 0, 0x14, 0, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err8F_68)),
         new errorElement(lang.ErrMAP, 0x10, 0, 0x14, 1, 0, 0, 0, 1, "", "", new errorElement.ErrDecode(err8F_68)),
         new errorElement(lang.ErrLambda, 0x10, 0, 0x14, 2, 0, 0, 0, 2, "", "", new errorElement.ErrDecode(err8F_68)),
         new errorElement(lang.ErrECT, 0x10, 0, 0x14, 3, 0, 0, 0, 3, "", "", new errorElement.ErrDecode(err8F_68)),
         new errorElement(lang.ErrIAT, 0x10, 0, 0x14, 4, 0, 0, 0, 4, "", "", new errorElement.ErrDecode(err8F_68)),
         new errorElement(lang.ErrBattV, 0x10, 0, 0x14, 5, 0, 0, 0, 5, "", "", new errorElement.ErrDecode(err8F_68)),
         new errorElement(lang.ErrIdleReg, 0x10, 0, 0x14, 6, 0, 0, 0, 6, "", "", new errorElement.ErrDecode(err8F_68)),
         new errorElement(lang.ErrI8, 0x10, 0, 0x14, 7, 0, 0, 0, 7, "", "", new errorElement.ErrDecode(err8F_68)),
         new errorElement(lang.ErrInj, 0x11, 0, 0x15, 0, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err8F_68)),
         new errorElement(lang.ErrCoil1, 0x11, 0, 0x15, 1, 0, 0, 0, 1, "", "", new errorElement.ErrDecode(err8F_68)),
         new errorElement(lang.ErrCoil2, 0x11, 0, 0x15, 2, 0, 0, 0, 2, "", "", new errorElement.ErrDecode(err8F_68)),
         new errorElement(lang.ErrIAV, 0x11, 0, 0x15, 3, 0, 0, 0, 3, "", "", new errorElement.ErrDecode(err8F_68)),
         new errorElement(lang.ErrEVAP, 0x11, 0, 0x15, 4, 0, 0, 0, 4, "", "", new errorElement.ErrDecode(err8F_68)),
         new errorElement(lang.ErrAirCo, 0x11, 0, 0x15, 5, 0, 0, 0, 5, "", "", new errorElement.ErrDecode(err8F_68)),
         new errorElement(lang.ErrFuelPump, 0x11, 0, 0x15, 6, 0, 0, 0, 6, "", "", new errorElement.ErrDecode(err8F_68)),
         new errorElement(lang.ErrGenRel, 0x11, 0, 0x15, 7, 0, 0, 0, 7, "", "", new errorElement.ErrDecode(err8F_68)),
         new errorElement(lang.ErrACParam, 0x12, 0, 0x16, 0, 0, 0, 0, 0, "", "", new errorElement.ErrDecode(err8F_68)),
         new errorElement(lang.ErrRAM, 0x12, 0, 0x16, 1, 0, 0, 0, 1, "", "", new errorElement.ErrDecode(err8F_68)),
         new errorElement(lang.ErrROM, 0x12, 0, 0x16, 2, 0, 0, 0, 2, "", "", new errorElement.ErrDecode(err8F_68)),
         new errorElement(lang.ErrEEPROM, 0x12, 0, 0x16, 3, 0, 0, 0, 3, "", "", new errorElement.ErrDecode(err8F_68)),
         new errorElement(lang.ErrCPU, 0x12, 0, 0x16, 4, 0, 0, 0, 4, "", "", new errorElement.ErrDecode(err8F_68)),
         new errorElement(lang.ErrRPMSens, 0x12, 0, 0x16, 5, 0, 0, 0, 5, "", "", new errorElement.ErrDecode(err8F_68)),
         new errorElement(lang.ErrF7, 0x12, 0, 0x16, 6, 0, 0, 0, 6, "", "", new errorElement.ErrDecode(err8F_68)),
         new errorElement(lang.ErrF8, 0x12, 0, 0x16, 7, 0, 0, 0, 7, "", "", new errorElement.ErrDecode(err8F_68))
     };
     immoErrors = new errorElement[] { };
 }