load_config = True create_raw_config_file = False config_file_path = os.path.join(os.path.dirname(__file__), "data/can_ids.ini") #=========================================================================== # ECU Security #=========================================================================== CAN_ECU_AUTH_ADVERTISE = 0x0001 # Highest Priority CAN_ECU_AUTH_REG_MSG = 0x0002 CAN_ECU_AUTH_CONF_MSG = 0x0003 CAN_STR_AUTH_INIT_MSG_STR = 0x0005 CAN_STR_AUTH_GRANT_MSG = 0x0006 CAN_STR_AUTH_DENY_MSG = 0x0007 reg.reg_can_ids('LW_Authentication', 'CAN_ECU_AUTH_ADVERTISE', 'DEFAULT', 0x0001) reg.reg_can_ids('LW_Authentication', 'CAN_ECU_AUTH_REG_MSG', 'DEFAULT', 0x0002) reg.reg_can_ids('LW_Authentication', 'CAN_ECU_AUTH_CONF_MSG', 'DEFAULT', 0x0003) reg.reg_can_ids('LW_Authentication', 'CAN_STR_AUTH_INIT_MSG_STR', 'DEFAULT', 0x0005) reg.reg_can_ids('LW_Authentication', 'CAN_STR_AUTH_GRANT_MSG', 'DEFAULT', 0x0006) reg.reg_can_ids('LW_Authentication', 'CAN_STR_AUTH_DENY_MSG', 'DEFAULT', 0x0007) #=============================================================================== # TESLA #=============================================================================== CAN_TESLA_TIME_SYNC = 1 CAN_TESLA_TIME_SYNC_RESPONSE = 2
load_config = True create_raw_config_file = False config_file_path = os.path.join(os.path.dirname(__file__), "data/can_ids.ini") #=========================================================================== # ECU Security #=========================================================================== CAN_ECU_AUTH_ADVERTISE = 0x0001 # Highest Priority CAN_ECU_AUTH_REG_MSG = 0x0002 CAN_ECU_AUTH_CONF_MSG = 0x0003 CAN_STR_AUTH_INIT_MSG_STR = 0x0005 CAN_STR_AUTH_GRANT_MSG = 0x0006 CAN_STR_AUTH_DENY_MSG = 0x0007 reg.reg_can_ids('LW_Authentication', 'CAN_ECU_AUTH_ADVERTISE', 'DEFAULT', 0x0001) reg.reg_can_ids('LW_Authentication', 'CAN_ECU_AUTH_REG_MSG', 'DEFAULT', 0x0002) reg.reg_can_ids('LW_Authentication', 'CAN_ECU_AUTH_CONF_MSG', 'DEFAULT', 0x0003) reg.reg_can_ids('LW_Authentication', 'CAN_STR_AUTH_INIT_MSG_STR', 'DEFAULT', 0x0005) reg.reg_can_ids('LW_Authentication', 'CAN_STR_AUTH_GRANT_MSG', 'DEFAULT', 0x0006) reg.reg_can_ids('LW_Authentication', 'CAN_STR_AUTH_DENY_MSG', 'DEFAULT', 0x0007) #=============================================================================== # TESLA #=============================================================================== CAN_TESLA_TIME_SYNC = 1 CAN_TESLA_TIME_SYNC_RESPONSE = 2 CAN_TESLA_KEY_EXCHANGE = 3 TESLA_MESSAGES = [CAN_TESLA_TIME_SYNC, CAN_TESLA_TIME_SYNC_RESPONSE, CAN_TESLA_KEY_EXCHANGE]