def parse_fields(long_bytes:int, fields:List[Dict]): out = {} for f in fields: val = get_field_value(long_bytes, f['start_bit'], f['length'], f.get('signed',False)) if f['type']=='scale': val = val * f['scale'].get('factor',1) + f['scale'].get('offset',0) elif f['type']=='bcd': # decode BCD across length bits rounded to full bytes byte_len = (f['length'] + 7)//8 raw = (long_bytes >> f['start_bit']) & ((1<<(byte_len*8))-1) s='' for b in int_to_bytes_le(raw,byte_len): s += f'b>>4:xb&0xF:x' val = int(s) elif f['type']=='enum': val = f.get('choices',{}).get(str(val), f.get('choices',{}).get(val, val)) out[f['name']] = val return out
This software utility is designed to retrieve or compute security codes for compatible Volkswagen factory radios and infotainment systems. Unlike generic "master codes"—which don't exist because codes are personalized to a vehicle's VIN—this tool uses the radio's unique serial number to generate the specific unlock digit.
To use any calculator, you need your radio’s unique "digital fingerprint."