CN114137938A - Method for automatically extracting flash data information and lower computer applying same - Google Patents

Method for automatically extracting flash data information and lower computer applying same Download PDF

Info

Publication number
CN114137938A
CN114137938A CN202111418501.8A CN202111418501A CN114137938A CN 114137938 A CN114137938 A CN 114137938A CN 202111418501 A CN202111418501 A CN 202111418501A CN 114137938 A CN114137938 A CN 114137938A
Authority
CN
China
Prior art keywords
data
flash
file
format
extracting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111418501.8A
Other languages
Chinese (zh)
Inventor
刘义雷
于龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Xingrong Automotive Technology Co ltd
Original Assignee
Shanghai Xingrong Automotive Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Xingrong Automotive Technology Co ltd filed Critical Shanghai Xingrong Automotive Technology Co ltd
Priority to CN202111418501.8A priority Critical patent/CN114137938A/en
Publication of CN114137938A publication Critical patent/CN114137938A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method for automatically extracting flash data information and a lower computer applying the method, and belongs to the technical field of data flash. The method comprises the steps of obtaining a flash file; extracting the flash data in the flash file; and acquiring the vehicle ECU matched with the flash file according to the result of extracting the flash data in the flash file. Wherein, extracting the flash data in the flash file comprises: converting the data format of the flash data in the flash file into a standard data format, and extracting the flash data in the standard data format after format conversion; or through fuzzy matching, extracting the flash data according to the result of the fuzzy matching; or extracting the flash data in the flash file through the related file uploaded by the user. The method and the device realize the automatic extraction of the brushing data information, avoid causing the ECU to brush dead and empty, and improve the diagnosis efficiency.

Description

Method for automatically extracting flash data information and lower computer applying same
Technical Field
The invention belongs to the technical field of data flashing, and particularly relates to a method for automatically extracting flashing data information and a lower computer applying the method.
Background
Around the three subjects of safety, energy conservation and environmental protection, under the condition that the automobile electronic equipment is widely applied, each system of the current automobile tends to be controlled by a computer. Therefore, the diagnosis and analysis of faults in the electronic control of automobiles become a major problem facing the industry. This requires industry to convert from past empirical repair methods to electronic high-tech diagnostic test methods, which has prompted a great demand for high-performance electronic diagnostic test instruments capable of reading various operating data of automobiles.
The automobile diagnostic device is a non-disassembly test mechanical device which can quickly and accurately test the technical conditions of automobiles, assemblies and mechanisms and obtain reliable conclusions. ECU data is brushed and is called ECU data filling, and the basic principle is as follows: the external data flash tool sends data information to the ECU through an ECU communication network (mostly a CAN bus) to realize the management and the update of ECU data. The diagnostic instrument consists of an upper computer and a lower computer, under normal conditions, because the hardware resource of the lower computer is limited, the flashing logic is defined by the program of the upper computer (the automobile diagnostic instrument), and the lower computer is responsible for transferring the data of the interaction between the upper computer and the ECU.
Aiming at the function of ECU flashing, the ECU is frequently dead and empty, the reason for the problem is that the flashing data are not matched, and aiming at the current disordered flashing data in the market, the flashing data information and the formats are all thousands of years, the method for automatically extracting the flashing data information is provided at present to enable a user to find the flashing data matched with the ECU.
Through retrieval, the Chinese patent application No. CN202110031507.3, published as 2021, 05 and 28, discloses a fault diagnosis system, a fault diagnosis method and a vehicle, and the invention enables a lower computer to execute the logic of a one-time flashing process through a flashing script, controls the flashing data of the one-time flashing process, ensures the communication with an ECU, simultaneously ensures the time sequence of the data in the one-time flashing process, meets the requirement of the vehicle ECU on the data time sequence, avoids causing the ECU to be flashed to be dead and empty, and improves the diagnosis efficiency. However, the invention focuses more on solving the problem of the ECU brushing empty from the time sequence perspective, and the design requirement cannot be completely met.
Disclosure of Invention
1. Problems to be solved
Aiming at the problem that the ECU is frequently erased and emptied during ECU flashing in the prior art, the invention provides a method and a system for automatically extracting flashing data information, wherein the method for format conversion of a flashing file by a data conversion tool, the method for fuzzy matching and the method for matching relevant information filled after a user uploads a file are integrated, so that the automatic extraction of the flashing data information is comprehensively realized, the ECU is prevented from being erased and emptied, and the diagnosis efficiency is improved.
2. Technical scheme
In order to solve the above problems, the present invention adopts the following technical solutions.
The method for automatically extracting the flash data information is applied to a lower computer of a vehicle diagnostic apparatus and comprises the following steps:
s100, acquiring a flash file;
s200, extracting the flash data in the flash file;
s300, obtaining the vehicle ECU matched with the flash file according to the result of extracting the flash data in the flash file.
The preferable technical scheme is as follows:
in the method for automatically extracting the flash data information, in step S200, extracting the flash data in the flash file includes:
converting the data format of the flash data in the flash file into a standard data format, and extracting the flash data in the standard data format after format conversion; or
Converting the data format of the flash data in the flash file into a standard data format, performing fuzzy matching on the flash data in the standard data format after format conversion, and extracting the flash data according to the result of the fuzzy matching; or
And extracting the flash data in the flash file through the related file uploaded by the user.
The method for automatically extracting the brushing data information as described above, converting the data format of the brushing data in the brushing file into the standard data format, includes:
and converting the data format of the flash data in the flash file into a standard data format based on a data conversion rule table, wherein the data conversion rule table is preset with a mapping relation between the flash data in different data formats and the flash data in the standard data format.
In the method for automatically extracting the information of the flash data, in the data conversion rule table, the mapping relationships between the flash data in different data formats and the flash data in the standard data format at least include two or more, the two or more mapping relationships are not associated with each other, and the two or more non-associated mapping relationships are preset and stored in the data conversion rule table according to a certain logic sequence.
After converting the data format of the written data in the written file into the standard data format, the method for automatically extracting the written data information further comprises: and converting the system number of each line of the flash data in the standard data format into an ASCII code, and extracting information of the converted ASCII code data.
The method for automatically extracting the brushing data information comprises the following steps of:
and extracting information of the flash data in the standard data format after format conversion by a regular expression method.
According to the method for automatically extracting the brushing data information, the extraction of the brushing data in the brushing file through the related file uploaded by the user comprises the following steps:
waiting for the user to upload the name of the brushing data file of the brushing file;
comparing the brushing data file name of the brushing file uploaded by the user with the brushing data file name in the brushing file;
and if the comparison is consistent, extracting the flash data in the flash file.
The invention also provides a lower computer of the vehicle diagnostic instrument, which comprises a first communication module, a second communication module, a CAN module and an OBD interface, a storage module and a control module, wherein the first communication module is used for being connected with an upper computer of the vehicle diagnostic instrument;
the control module is configured to execute the method for automatically extracting the flash data information according to any one of the above items through the first communication module, the second communication module, the CAN module, the OBD interface and the storage module.
3. Advantageous effects
Compared with the prior art, the invention has the beneficial effects that:
(1) according to the method, the format conversion mode and the fuzzy matching method of the flash file through the data conversion tool are integrated, and the matching method of the relevant information filled after the user uploads the file is integrated, so that the automatic extraction of the flash data information is comprehensively realized, the phenomenon that an ECU is flashed to be dead and empty is avoided, and the diagnosis efficiency is improved;
(2) when the format conversion is carried out on the flash file through the data conversion tool, particularly, the mapping relation between the flash data in different data formats and the flash data in the standard data format is preset in the data conversion rule table, and the corresponding mapping relation is directly called when needed, so that the whole program code is not required to be changed even if the method is suitable for the format of a new flash system, and the universality and the reliability of data flash are improved; and simultaneously, the mapping relation between the brushing data in different data formats and the brushing data in the standard data format in the data conversion rule table at least comprises two or more than two types, thereby avoiding the situations of brushing data loss, data distortion and the like which can occur when a single mapping relation is adopted, and further ensuring the reliability of data brushing before and after data format conversion.
Drawings
FIG. 1 is a flowchart of a method for automatically extracting the flash data information in this embodiment
Fig. 2 is a block diagram of a system for automatically extracting the flash data information in the present embodiment.
Detailed Description
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Some terms in this application will first be explained so as to be understood by those skilled in the art:
1: the vehicle Diagnostic equipment vci (vehicle Communications interface) is configured to monitor whether a working state of each system in the vehicle is abnormal, determine a specific fault in the corresponding system if the working state is abnormal, and store the specific fault in the form of a Diagnostic fault code (DTC). The system can carry out self-diagnosis according to the DTC so as to repair or maintain the vehicle in time, and the OBD can also be provided with an OBD interface which can be in communication connection with external vehicle diagnosis equipment, so that maintenance personnel can read the DTC in time by using the equipment, repair and maintain the vehicle, and the time for manual diagnosis is reduced;
2: vehicle ecu (electronic Control unit) disposed in various systems of the vehicle, such as an engine system, an emission Control system, a fuel system, etc.; which may communicate with the diagnostic device via an OBD interface. The OBD interface may include a plurality of pins, and the ECU in each system may be connected to at least one pin of the OBD interface through a bus. The bus protocol used for connecting corresponding pins of each system may be the same or different, and is not limited herein.
Example 1
As shown in fig. 1, the present embodiment provides a method for automatically extracting the flash data information, which is applied to a lower computer of a vehicle diagnostic device VCI. As shown in fig. 2, the vehicle diagnostic apparatus VCI is composed of an upper computer and a lower computer, the flashing logic is defined by an upper computer program, and the upper computer and the lower computer can communicate with each other in a WIFI manner. In this embodiment, the lower computer includes a first communication module for connecting with the upper computer, a second communication module for connecting with the server through a network, a CAN module and an OBD interface for connecting with the vehicle ECU, a storage module for storing the flash file, and a control module, where the CAN module is connected with the OBD interface, and the control module is connected with the first communication module, the second communication module, the CAN module, and the storage module;
the control module is configured to execute the method for automatically extracting the flash data information according to any one of the above items through the first communication module, the second communication module, the CAN module, the OBD interface and the storage module. The method specifically comprises the following steps:
the method for automatically extracting the flash data information is applied to a lower computer of a vehicle diagnostic apparatus and comprises the following steps:
s100, acquiring a flash file;
s200, extracting the flash data in the flash file;
s300, obtaining the vehicle ECU matched with the flash file according to the result of extracting the flash data in the flash file.
In step S200, extracting the flash data in the flash file includes:
converting the data format of the flash data in the flash file into a standard data format, and extracting the flash data in the standard data format after format conversion; or
Converting the data format of the flash data in the flash file into a standard data format, performing fuzzy matching on the flash data in the standard data format after format conversion, and extracting the flash data according to the result of the fuzzy matching; or
And extracting the flash data in the flash file through the related file uploaded by the user.
In the above embodiment, the data format of the flash data in the flash file is converted into the standard data format, where the standard data format at least includes one of the HEX format, the S19 format, and the BIN format, and the extraction of the flash data in the standard data format after format conversion can be further explained as that the flash file is format-converted by a data conversion tool and converted into a file in the BIN format, and the hexadecimal number of each line is automatically converted into the ascii code by UltraEdit software, so as to extract the information with universality, thereby obtaining the applicable ECU of the flash file.
Here, the ECU of BOSCH performs batch processing as an example:
ECUID, a field beginning with 1037 or 10SW, typically fixed in position from 0000001 ah to 00000023 h of the bin file;
ECU software version number: namely P number and V number of ECU, address follows ECUID, start address is 00000024 h, end address is different according to V number of different length, taking EDC17C63_ P1257 as an example, V number is 1257JA42, occupying 7 bytes length, end address is 0000002 bh.
For the process of data flash development, when data is different, the processing mode in the process of flash development is also inconsistent, which can significantly increase the flash workload in the stage of data flash. In the embodiment, after the to-be-flashed data in different formats are converted into the same standard common format, the universal flashing data is sent to the upper computer. Therefore, the JAVA code does not need to be written in the decoder in advance, and the service development logic and the development amount are remarkably reduced through the conversion of the format.
And converting the data format of the flash data in the flash file into a standard data format, such as a bin format file, performing fuzzy matching on the flash data in the standard data format after format conversion, and extracting the flash data according to the result of the fuzzy matching. The data matching is mainly carried out on the bin file by a regular expression method. For example, extracting field information beginning with the EDC to obtain the ECU model applicable to the flash file; matching 0281 initial data information through a regular expression to obtain an ECU serial number matched with the flash file; matching {4,6} { A-Z } { A-Z } matches the model of the engine, such as four-cylinder engine 4DA1-2C, via the field.
For the information in the file which cannot be brushed through matching, such as the applicable information of the vehicle brand, emission standard, power, horsepower and the like, a third mode is adopted, namely brushing data in the brushing file is extracted through the related file uploaded by the user. The method for extracting the flash data in the flash file through the related file uploaded by the user comprises the following steps:
waiting for the user to upload the name of the brushing data file of the brushing file;
comparing the brushing data file name of the brushing file uploaded by the user with the brushing data file name in the brushing file;
and if the comparison is consistent, extracting the flash data in the flash file.
After the ECU data backup and uploading are carried out by a user, the diagnostic equipment provides a related page filled with information, the information filled by the user is automatically filled into the file name of the written file, but the method needs to be verified and confirmed by the user, so that the user who works together for a long time can be found, and the accuracy of the data is met.
In the embodiment, the method for format conversion of the flash file through the data conversion tool, the fuzzy matching method and the method for matching the relevant information filled after the user uploads the file are integrated, so that automatic extraction of the flash data information is comprehensively realized, the problem of death and empty flashing of the ECU is avoided, and the diagnosis efficiency is improved.
Example 2
A method for automatically extracting the flash data information, which is basically the same as the embodiment 1. The difference is that converting the data format of the flash data in the flash file into the standard data format further comprises:
and converting the data format of the flash data in the flash file into a standard data format based on a data conversion rule table, wherein the data conversion rule table is preset with a mapping relation between the flash data in different data formats and the flash data in the standard data format.
In the above step, the mapping relationship between the flash data in different data formats and the flash data in the standard data format may be a bidirectional mapping relationship, and based on the bidirectional mapping relationship, the flash data in different data formats and the flash data in the standard data format may be converted to each other. It can be understood that the mapping relationship between the flash data in different data formats and the flash data in the standard data format can be generated and stored in advance, and the corresponding mapping relationship is directly called when conversion is needed.
On the basis, in the data conversion rule table, the mapping relations between the flash data in different data formats and the flash data in the standard data format at least comprise two or more than two, the two or more than two mapping relations are not associated with each other, and the two or more than two non-associated mapping relations are preset and stored in the data conversion rule table according to a certain logic sequence.
When the format conversion is performed on the flash file through the data conversion tool, specifically, the mapping relationship between the flash data in different data formats and the flash data in the standard data format is preset in the data conversion rule table, and the corresponding mapping relationship is directly called when needed, so that even if the method is suitable for the format of a new flash system, the whole program code does not need to be changed, and the universality and the reliability of data flash are improved; and simultaneously, the mapping relation between the brushing data in different data formats and the brushing data in the standard data format in the data conversion rule table at least comprises two or more than two types, thereby avoiding the situations of brushing data loss, data distortion and the like which possibly occur when a single mapping relation is adopted, and further ensuring the reliability of data brushing before and after data format conversion.
The examples described herein are merely illustrative of the preferred embodiments of the present invention and do not limit the spirit and scope of the present invention, and various modifications and improvements made to the technical solutions of the present invention by those skilled in the art without departing from the design concept of the present invention shall fall within the protection scope of the present invention.

Claims (8)

1. The method for automatically extracting the brushing data information is applied to a lower computer of a vehicle diagnostic instrument, and is characterized by comprising the following steps of:
s100, acquiring a flash file;
s200, extracting the flash data in the flash file;
s300, obtaining the vehicle ECU matched with the flash file according to the result of extracting the flash data in the flash file.
2. The method for automatically extracting flash data information according to claim 1, wherein: in step S200, extracting the flash data in the flash file includes:
converting the data format of the flash data in the flash file into a standard data format, and extracting the flash data in the standard data format after format conversion; or
Converting the data format of the flash data in the flash file into a standard data format, performing fuzzy matching on the flash data in the standard data format after format conversion, and extracting the flash data according to the result of the fuzzy matching; or
And extracting the flash data in the flash file through the related file uploaded by the user.
3. The method for automatically extracting the flash data information according to claim 2, wherein converting the data format of the flash data in the flash file into a standard data format comprises:
and converting the data format of the flash data in the flash file into a standard data format based on a data conversion rule table, wherein the data conversion rule table is preset with a mapping relation between the flash data in different data formats and the flash data in the standard data format.
4. A method for automatically extracting flash data information according to claim 3, wherein: in the data conversion rule table, the mapping relations between the flash data in different data formats and the flash data in the standard data format at least comprise two or more than two types, the two or more than two types of mapping relations are not associated with each other, and the two or more than two types of mapping relations which are not associated with each other are preset and stored in the data conversion rule table according to a certain logic sequence.
5. A method for automatically extracting flash data information according to claim 3, wherein: after converting the data format of the flash data in the flash file into the standard data format, the method further comprises the following steps: and converting the system number of each line of the flash data in the standard data format into an ASCII code, and extracting information of the converted ASCII code data.
6. The method for automatically extracting flash data information according to claim 2, wherein: the fuzzy matching of the flash data in the standard data format after format conversion comprises the following steps:
and extracting information of the flash data in the standard data format after format conversion by a regular expression method.
7. The method for automatically extracting flash data information according to claim 2, wherein: through the relevant file uploaded by the user, the extraction of the flash data in the flash file comprises the following steps:
waiting for the user to upload the name of the brushing data file of the brushing file;
comparing the brushing data file name of the brushing file uploaded by the user with the brushing data file name in the brushing file;
and if the comparison is consistent, extracting the flash data in the flash file.
8. A lower computer of a vehicle diagnostic instrument is characterized by comprising a first communication module, a second communication module, a CAN module and an OBD interface, a storage module and a control module, wherein the first communication module is used for being connected with an upper computer of the vehicle diagnostic instrument;
the control module is configured to execute the method for automatically extracting the flash data information according to any one of claims 1 to 7 through the first communication module, the second communication module, the CAN module, the OBD interface and the storage module.
CN202111418501.8A 2021-11-26 2021-11-26 Method for automatically extracting flash data information and lower computer applying same Pending CN114137938A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111418501.8A CN114137938A (en) 2021-11-26 2021-11-26 Method for automatically extracting flash data information and lower computer applying same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111418501.8A CN114137938A (en) 2021-11-26 2021-11-26 Method for automatically extracting flash data information and lower computer applying same

Publications (1)

Publication Number Publication Date
CN114137938A true CN114137938A (en) 2022-03-04

Family

ID=80388727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111418501.8A Pending CN114137938A (en) 2021-11-26 2021-11-26 Method for automatically extracting flash data information and lower computer applying same

Country Status (1)

Country Link
CN (1) CN114137938A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515643A (en) * 2019-09-05 2019-11-29 南京协和电子科技有限公司 A kind of host computer tool for writing with a brush dipped in Chinese ink BIN file
CN113112641A (en) * 2021-04-21 2021-07-13 上海星融汽车科技有限公司 Vehicle ECU (electronic control Unit) flashing method and lower computer of vehicle diagnostic instrument
CN113377046A (en) * 2021-06-08 2021-09-10 深圳市轩宇车鼎科技有限公司 Method for quickly flashing diesel ECU

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515643A (en) * 2019-09-05 2019-11-29 南京协和电子科技有限公司 A kind of host computer tool for writing with a brush dipped in Chinese ink BIN file
CN113112641A (en) * 2021-04-21 2021-07-13 上海星融汽车科技有限公司 Vehicle ECU (electronic control Unit) flashing method and lower computer of vehicle diagnostic instrument
CN113377046A (en) * 2021-06-08 2021-09-10 深圳市轩宇车鼎科技有限公司 Method for quickly flashing diesel ECU

Similar Documents

Publication Publication Date Title
CN111024405B (en) Automobile diagnosis method, related device and system
CN108563214B (en) Vehicle diagnosis method, device and equipment
CN102736615B (en) Vehicle failure diagnosis method
EP2168355B1 (en) System and method for transferring vehicle service data
CN101217474A (en) Vehicular system and its data processing method
CN108227674A (en) For the method and system of diagnosis or the configuration of vehicle
CN104408050A (en) Online automatic interpretation system and method of test data
CN112055096A (en) Method and device for automatically setting communication address of equipment
CN111835799A (en) Automatic acquisition system and method for vehicle log
CN113591422B (en) System for generating test case flow information in chip verification and application
CN114137938A (en) Method for automatically extracting flash data information and lower computer applying same
CN113722340A (en) Processing method and system for remote automatic point table updating based on power distribution device
CN115543755B (en) Performance supervision method, device, system, equipment and medium
CN102158462B (en) A kind of method that 2G or 3G module remote diagnosis is repaired
CN116155720A (en) CAN data acquisition remote configuration method in T-BOX
CN213517997U (en) Debugging analyzer for automobile electric control unit
CN113147487B (en) Charging adaptation method for electric vehicle
CN114879647A (en) ECU fault code test system, electronic controller and car
CN115686543A (en) Automatic configuration method for AI (Artificial Intelligence) calculation module of embedded edge intelligent gateway
CN108804079A (en) A kind of EOL systems and its development approach
CN212572587U (en) CAN bus data collector and CAN bus analysis system
CN114488997A (en) ECU (electronic control Unit) flashing method and device, electronic equipment and storage medium
CN113787977A (en) Vehicle maintenance method, communication device, and storage medium
US8850083B2 (en) Data management method and system
CN211855849U (en) Vehicle failure detection device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination