Esempio n. 1
0
        private void DelcoVWPremium5SafeCode(IKW1281Dialog kwp1281)
        {
            if (_controllerAddress != (int)ControllerAddress.RadioManufacturing)
            {
                Logger.WriteLine("Only supported for radio manufacturing address 7C");
                return;
            }

            // Thanks to Mike Naberezny for this (https://github.com/mnaberez)
            const string secret       = "DELCO";
            var          code         = (ushort)(secret[4] * 256 + secret[3]);
            var          workshopCode = (ushort)(secret[1] * 256 + secret[0]);
            var          unknown      = (byte)secret[2];

            kwp1281.Login(code, workshopCode, unknown);
            var bytes = kwp1281.ReadRomEeprom(0x0014, 2);

            Logger.WriteLine($"Safe code: {bytes[0]:X2}{bytes[1]:X2}");
        }