The present invention relates to the technical field of vehicle embedded system, in particular to a method of automatic output of a vehicle fault diagnosis log, including the following steps: creating a system thread to monitor peripheral memory; the system thread detects whether the peripheral memory is stored in a key configuration file with a troubleshooting log; The peripheral memory is stored in the key configuration file, the vehicle embedded system checks and reads the key configuration content of the diagnostic log; the diagnostic log that matches the key configuration content with the key configuration file is output to the peripheral memory. The invention aims to provide a method for automatic output of the vehicle fault diagnosis log, and to solve the technical problem that the diagnosis log of the existing vehicle embedded system needs to be read through the PC serial port or the diagnostic instrument by the technical scheme provided by the invention.
【技术实现步骤摘要】
一种车载故障诊断日志自动输出的方法
本专利技术涉及车载嵌入系统
,尤其涉及一种车载故障诊断日志自动输出的方法。
技术介绍
在车载嵌入式系统中,系统出现故障时,目前办法是需要通过PC电脑的串口或者特定的诊断仪才能读取系统故障的诊断日志,导致在售后服务很麻烦,同时成本很高。
技术实现思路
本专利技术的专利技术目的在于提供一种车载故障诊断日志自动输出的方法,采用本专利技术提供的技术方案解决了现有车载嵌入式系统的诊断日志需要通过PC串口或诊断仪才能读取的技术问题。为了解决上述技术问题,本专利技术提供一种车载故障诊断日志自动输出的方法,其特征在于:包括以下步骤:1)、创建一个用于监听外设存储器的系统线程2)、所述系统线程检测所述外设存储器是否存储有故障诊断日志的key配置文件;3)、检测到所述外设存储器存储有key配置文件,车载嵌入式系统校验和读取诊断日志的key配置内容;4)、将所述key配置内容与所述key配置文件相匹配的诊断日志输出到外设存储器。优选的,在步骤2中,所述外设存储器为U盘或SD卡。优选的,在步骤1与2之间存在500ms的延时时间。由上可知,应用本专利技术可以得到以下有益效果:本专利技术检测到车载多媒体的外设存储器存在故障诊断日志的key配置文件时,把车载系统故障诊断的日志自动输出到外部存储设备上,解决了车载传统故障诊断日志输出的问题,通过简易的外设存储器即可将系统故障诊断日志读取出来,便于分析车载的故障信息。附图说明为了更清楚地说明本专利技术实施例或现有技术中的技术方案,下面将对本专利技术实施例或现有技术的描述中所需要使用的附图作简单地介绍。显 ...
【技术保护点】
1.一种车载故障诊断日志自动输出的方法,其特征在于:包括以下步骤:1)、创建一个用于监听外设存储器的系统线程2)、所述系统线程检测所述外设存储器是否存储有故障诊断日志的key配置文件;3)、检测到所述外设存储器存储有key配置文件,车载嵌入式系统校验和读取诊断日志的key配置内容;4)、将所述key配置内容与所述key配置文件相匹配的诊断日志输出到外设存储器。
【技术特征摘要】
1.一种车载故障诊断日志自动输出的方法,其特征在于:包括以下步骤:1)、创建一个用于监听外设存储器的系统线程2)、所述系统线程检测所述外设存储器是否存储有故障诊断日志的key配置文件;3)、检测到所述外设存储器存储有key配置文件,车载嵌入式系统校验和读取诊断日志的key配置内容;4)、将所述...
【专利技术属性】
技术研发人员:唐日坤,
申请(专利权)人:惠州市德赛西威汽车电子股份有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。