CN109213124B - Data scanning method, data scanning device and vehicle diagnosis equipment - Google Patents

Data scanning method, data scanning device and vehicle diagnosis equipment Download PDF

Info

Publication number
CN109213124B
CN109213124B CN201810993643.9A CN201810993643A CN109213124B CN 109213124 B CN109213124 B CN 109213124B CN 201810993643 A CN201810993643 A CN 201810993643A CN 109213124 B CN109213124 B CN 109213124B
Authority
CN
China
Prior art keywords
protocol
electronic control
vehicle
control unit
protocol set
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.)
Active
Application number
CN201810993643.9A
Other languages
Chinese (zh)
Other versions
CN109213124A (en
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.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch 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 Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201810993643.9A priority Critical patent/CN109213124B/en
Publication of CN109213124A publication Critical patent/CN109213124A/en
Application granted granted Critical
Publication of CN109213124B publication Critical patent/CN109213124B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/0259Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the response to fault detection
    • G05B23/0262Confirmation of fault detection, e.g. extra checks to confirm that a failure has indeed occurred
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Abstract

The application belongs to the technical field of vehicle diagnosis, and particularly discloses a data scanning method, a data scanning device, vehicle diagnosis equipment and a computer readable storage medium, wherein the data scanning method is applied to the vehicle diagnosis equipment and comprises the following steps: acquiring a first protocol set, wherein the first protocol set is a set of all protocols supported by each electronic control unit of a vehicle; acquiring a second protocol set, wherein the second protocol set is a set of protocols currently adopted by each electronic control unit of the vehicle; and taking an intersection of the first protocol set and the second protocol set, and scanning the automobile electric control system of the vehicle based on the protocols contained in the intersection. According to the technical scheme, the technical problem that the speed is low when the automobile electric control system is scanned can be solved, the speed when the fault in the automobile electric control system is scanned is improved to a certain extent, and a user can be helped to quickly know the current fault of the automobile.

Description

Data scanning method, data scanning device and vehicle diagnosis equipment
Technical Field
The present application belongs to the field of vehicle diagnosis technology, and in particular, relates to a data scanning method, a data scanning device, a vehicle diagnosis apparatus, and a computer-readable storage medium.
Background
The vehicle diagnosis equipment is a portable intelligent electronic equipment for detecting automobile faults, and a user can use the vehicle diagnosis equipment to quickly read the faults in an automobile electric control system and display fault information through a liquid crystal display screen, so that the user can find out the positions and reasons of the faults of the automobile in time. In the prior art, passive diagnosis is mainly performed according to vehicle types and configurations of different types of vehicles, specifically, when each Electronic Control Unit (ECU) of a vehicle is scanned, all protocols supported by each ECU are loaded for polling, and since early vehicles have many low-speed physical buses, the speed of scanning an Electronic Control system of the vehicle is slow, and the requirements of users cannot be met.
Disclosure of Invention
In view of this, the present application provides a data scanning method, a data scanning apparatus, a vehicle diagnostic device, and a computer readable storage medium, which improve the speed of scanning a fault in an automotive electrical control system to a certain extent and can help a user to quickly know the current fault of a vehicle.
A first aspect of the present application provides a data scanning method applied to a vehicle diagnostic apparatus, the data scanning method including:
acquiring a first protocol set, wherein the first protocol set is a set of all protocols supported by each electronic control unit of a vehicle;
acquiring a second protocol set, wherein the second protocol set is a set of protocols currently adopted by each electronic control unit of the vehicle;
and taking an intersection of the first protocol set and the second protocol set, and scanning the automobile electric control system of the vehicle based on the protocols contained in the intersection.
Optionally, the acquiring the first protocol set includes:
reading the protocol supported by each electronic control unit from the configuration file saved in the read-only memory of the vehicle diagnosis equipment;
and storing the protocols supported by the electronic control units in a first protocol set at a first preset position of a random access memory of the vehicle diagnosis equipment.
Optionally, the obtaining the second protocol set includes:
monitoring any electronic control unit of the vehicle based on a sequence from a high-speed physical bus protocol to a low-speed physical bus protocol to determine a protocol currently adopted by each electronic control unit;
and saving the monitored currently adopted protocols of the electronic control units in a second protocol set at a second preset position of the random access memory of the vehicle diagnosis equipment.
Optionally, the monitoring, by any electronic control unit of the vehicle, the electronic control units based on a sequence from a high-speed physical bus protocol to a low-speed physical bus protocol to determine a protocol currently adopted by each electronic control unit includes:
and aiming at any electronic control unit of the vehicle, if the protocol adopted by the current monitoring can monitor the electronic control unit, determining that the protocol adopted by the current electronic control is the protocol adopted by the current monitoring, and stopping monitoring the electronic control unit.
Optionally, after the intersection is taken from the first protocol set and the second protocol set and the vehicle electronic control system of the vehicle is scanned based on the protocols included in the intersection, the data scanning method further includes:
detecting whether the vehicle has fault information based on the scanning result;
and if the vehicle has the fault information, outputting a reminding message in a preset mode to prompt a user to check the fault information.
A second aspect of the present application provides a data scanning apparatus applied to a vehicular diagnostic apparatus including:
a first protocol set acquisition unit, configured to acquire a first protocol set, where the first protocol set is a set of all protocols supported by each electronic control unit of a vehicle;
a second protocol set obtaining unit, configured to obtain a second protocol set, where the second protocol set is a set of protocols currently adopted by each electronic control unit of the vehicle;
an intersection acquiring unit, configured to acquire an intersection from the first protocol set and the second protocol set;
and the scanning unit is used for scanning the automobile electric control system of the vehicle based on the protocol contained in the intersection.
Optionally, the first protocol set obtaining unit includes:
a reading subunit, configured to read a protocol supported by each electronic control unit from a configuration file stored in a read-only memory of the vehicle diagnostic apparatus;
and a first saving subunit, configured to save, in a first preset location of the random access memory of the vehicle diagnostic apparatus, the protocols supported by the electronic control units in a first protocol set.
Optionally, the second protocol set obtaining unit includes:
the monitoring subunit is used for monitoring any electronic control unit of the vehicle based on the sequence from the high-speed physical bus protocol to the low-speed physical bus protocol so as to determine the currently adopted protocol of each electronic control unit;
and the second saving subunit is used for saving the monitored currently adopted protocol of each electronic control unit in a second protocol set at a second preset position of the random access memory of the vehicle diagnosis equipment.
Optionally, the monitoring subunit is specifically configured to, for any electronic control unit of the vehicle, determine that a protocol currently used by the electronic control is a protocol currently used by the monitoring if the protocol currently used by the monitoring can monitor the electronic control unit, and stop monitoring the electronic control unit.
Optionally, the data scanning device further includes:
a detection unit for detecting whether the vehicle has fault information based on the scanning result;
and the prompting unit is used for outputting a prompting message in a preset mode if the vehicle has the fault information so as to prompt a user to check the fault information.
A third aspect of the present application provides a vehicle diagnostic apparatus comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method of the first aspect when executing the computer program.
A fourth aspect of the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of the first aspect as described above.
A fifth aspect of the application provides a computer program product comprising a computer program which, when executed by one or more processors, performs the steps of the method as described in the first aspect above.
As can be seen from the above, according to the embodiment of the present application, an intersection is obtained from a first protocol set and a second protocol set, and an automobile electronic control system of a vehicle is scanned based on protocols included in the intersection, where the first protocol set is a set of all protocols supported by each electronic control unit of the vehicle, and the second protocol set is a set of protocols currently adopted by each electronic control unit of the vehicle. According to the scheme, intersection processing is carried out on the protocols currently adopted by the electronic control units which are actively monitored and the protocols supported by the electronic control units which are locally stored, the protocols in the intersection are used for scanning the faults in the automobile electric control system, the fact that a plurality of electronic control units of the automobile scan low-speed physical buses during polling can be avoided, the speed of scanning the faults in the automobile electric control system is improved to a certain extent, and a user can be helped to quickly know the faults existing in the automobile.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic diagram of a prior art vehicle diagnostic device scanning various electronic control units in an automotive electrical control system;
FIG. 2 is a schematic flow chart of an implementation of a data scanning method provided in an embodiment of the present application;
fig. 3 is a schematic flowchart illustrating a specific implementation of step 201 in a data scanning method provided in an embodiment of the present application;
fig. 4 is a schematic flowchart illustrating a specific implementation of step 202 in the data scanning method according to the embodiment of the present application;
FIG. 5 is a schematic flow chart of another implementation of a data scanning method provided in an embodiment of the present application;
FIG. 6 is a schematic structural diagram of a data scanning apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a vehicle diagnostic apparatus provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
First, a process of scanning each electronic control unit in the vehicle electronic control system by the conventional vehicle diagnostic apparatus will be briefly described, referring to fig. 1. When the existing vehicle diagnosis equipment works, a Central Processing Unit (CPU) of the vehicle diagnosis equipment sequentially preloads all protocols supported by each electronic control Unit from a local Read-Only Memory (ROM); generally, more than two protocols are supported by one electronic control unit; then, the vehicle diagnostic apparatus will perform scanning polling scanning on each of the electronic control units, respectively, based on all the loaded protocols supported by each of the electronic control units. Thus, if an electronic control unit supports both the high-speed physical bus protocol and the low-speed physical bus protocol, the electronic control unit will poll the high-speed physical bus protocol and the low-speed physical bus protocol supported by the electronic control unit when scanning the electronic control unit, resulting in slow scanning speed.
In view of the above, the present application provides a data scanning method, a data scanning device, a vehicle diagnostic device, and a computer readable storage medium, and the following description will be made with reference to specific embodiments in order to explain the above-described technical solutions of the present application.
Example one
Referring to fig. 2, a data scanning method provided in an embodiment of the present application is described below, where the data scanning method in the embodiment of the present application includes:
in step 201, a first protocol set is obtained;
in the embodiment of the present application, the first protocol set is specifically a set of all protocols supported by each electronic control unit of the vehicle. Generally, there is a certain difference between the protocols supported by the electronic control units in the vehicle according to the vehicle model, and the number of the protocols supported by one electronic control unit is more than one. The developer usually writes all the protocols supported by each electronic control unit of the vehicle into the local, so that the step 201 can directly obtain all the protocols supported by each electronic control unit from the local and write them into the first protocol set. Optionally, whether the first protocol set already exists may be detected first, and if so, the first protocol set is directly acquired; and if the protocol does not exist, creating a first protocol set, and writing all the protocols supported by each electronic control unit obtained locally into the newly created first protocol set.
In step 202, a second set of protocols is obtained;
in an embodiment of the present application, the second protocol set is a set of protocols currently adopted by each electronic control unit of the vehicle. Although the number of supported protocols for an electronic control unit is more than one, at the same time, an electronic control unit generally only uses one protocol for transmitting data. Thus, the currently adopted protocol of each electronic control unit can be obtained and recorded into the second protocol set. Optionally, whether the second protocol set already exists may be detected first, and if so, the second protocol set is directly acquired; and if the protocol does not exist, creating a second protocol set, and writing the currently adopted protocol of each electronic control unit into the newly created second protocol set.
In step 203, an intersection is taken from the first protocol set and the second protocol set, and the vehicle electronic control system of the vehicle is scanned based on the protocols included in the intersection.
In this embodiment, the number of protocols included in the intersection is not more than the number of protocols included in the first protocol set, and generally, the number of protocols included in the intersection is one or two. Of course, the number may be more than two according to the difference of each electronic control unit in different vehicles, and is not limited herein. Optionally, after the intersecting the first protocol set and the second protocol set, the data scanning method further includes: detecting the number of protocols contained in the intersection; if the number of the protocols contained in the intersection is one, scanning an automobile electric control system of the vehicle based on the protocols in the intersection; and if the number of the protocols contained in the intersection is two, scanning the automobile electric control system of the vehicle in a polling mode based on the protocols in the intersection.
Further, fig. 3 shows a specific implementation flow of the step 201, please refer to fig. 3, where the step 201 includes:
in step 301, reading a protocol supported by each electronic control unit from a configuration file stored in a read-only memory of the vehicle diagnostic apparatus;
in this embodiment, a developer may write a protocol supported by the electronic control unit into a configuration file in advance, and store the configuration file in a local rom of the vehicle. And when the first protocol set is created, reading the protocol supported by each electronic control unit by preloading the configuration file.
In step 302, the protocols supported by the electronic control units are saved in a first protocol set at a first preset position of the ram of the vehicle diagnostic apparatus.
In this embodiment, a developer may preset a location in the Random Access Memory (RAM) as a first preset location, create the first protocol set in the first preset location, and write the protocols supported by the electronic control units into the first protocol set. Optionally, if the electronic control unit of the vehicle is updated, the first protocol set is updated according to the updated protocol supported by the electronic control unit.
Further, fig. 4 shows a specific implementation flow of the step 202, please refer to fig. 4, where the step 202 includes:
in step 401, for any electronic control unit of the vehicle, monitoring the electronic control units based on a sequence from a high-speed physical bus protocol to a low-speed physical bus protocol to determine a protocol currently adopted by each electronic control unit;
in the embodiment of the present application, the high-speed physical bus protocol may be a J1850 protocol or an ISO15765 protocol, and the low-speed physical bus may be an ISO14230 protocol or an ISO9141 protocol. Of course, the high-speed physical bus protocol and the low-speed physical bus protocol are only exemplary, and the embodiments of the present application do not limit the types of the high-speed physical bus protocol and the low-speed physical bus protocol. Specifically, in this embodiment of the present application, the protocols in the first protocol set may be sorted based on the sequence of the transmission speeds from high to low, and then the electronic control unit may be monitored according to the sequence of the protocols in the sorted first protocol set, so as to determine the currently used protocol of each electronic control unit. Specifically, for any electronic control unit of the vehicle, if the protocol currently used for monitoring can monitor the electronic control unit, it is determined that the protocol currently used for the electronic control is the protocol currently used for monitoring, and monitoring of the electronic control unit is stopped. For example, if an ECU1 first listens to the ECU according to J1850 and finds that it can perform effective data transmission with the ECU1, it determines that the currently used protocol of the ECU1 is J1850 and stops listening to the ECU 1; for example, if the other ECU2 first listens to the protocol according to J1850 and finds that effective data transmission with the ECU2 is not possible, then the other ECU2 listens to the protocol according to ISO14230, and if it finds that effective data transmission with the ECU2 is possible, then the current protocol used by the ECU2 is determined to be ISO14230, and the listening to the ECU2 is stopped.
In step 402, at a second preset position of the random access memory of the vehicle diagnostic apparatus, the monitored currently adopted protocols of the electronic control units are saved in a second protocol set.
In this embodiment, a developer may preset another position different from the first preset position in the random access memory as a second preset position, create the second protocol set at the second preset position, and write a protocol currently adopted by each electronic control unit into the second protocol set. Alternatively, if the electronic control unit of the vehicle is updated, step 402 is executed again for the updated electronic control unit, the protocol currently adopted by the updated electronic control unit is determined, and the second protocol set is updated.
As can be seen from the above, in the embodiment of the present application, by performing intersection processing on the currently-used protocol of each electronic control unit that is actively monitored and the locally-stored protocol supported by the electronic control unit, scanning a fault in the automobile electronic control system using the intersection-set protocol, it can be avoided that a plurality of electronic control units of a vehicle scan a low-speed physical bus during polling, the speed of scanning the fault in the automobile electronic control system is increased to a certain extent, and a user can be helped to quickly know the current fault of the vehicle.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Example two
On the basis of the first embodiment, the second embodiment of the present application provides another data scanning method, which is described below with reference to fig. 5, and the data scanning method in the embodiment of the present application includes:
in step 501, a first protocol set is obtained;
in step 502, a second protocol set is obtained;
in step 503, an intersection is taken from the first protocol set and the second protocol set, and the vehicle electronic control system of the vehicle is scanned based on the protocols included in the intersection;
in the embodiment of the present application, the steps 501, 502, and 503 are respectively the same as or similar to the steps 201, 202, and 203, and reference may be specifically made to the related descriptions of the steps 201, 202, and 203, which are not repeated herein.
In step 504, detecting whether the vehicle has fault information based on the scanning result;
in the embodiment of the present application, through the above steps 501 to 503, information interaction with each ECU of the vehicle is possible. Because the scanning time of each ECU is shortened, the working state of each ECU can be more quickly known, possible faults of the vehicle can be detected in time, and fault information of the vehicle can be acquired.
In step 505, if the vehicle has the failure information, a reminding message is output in a preset manner to prompt a user to check the failure information.
In the embodiment of the application, when it is detected that the vehicle has the fault information, a reminding message may be output in a preset manner, generally, the preset manner is a manner of displaying text and/or images, and of course, a voice reminding manner, a ring reminding manner, and the like may also be combined to further prompt the user to check the existing fault information.
As can be seen from the above, in the embodiment of the present application, by performing intersection processing on the currently-used protocol of each electronic control unit that is actively monitored and the protocol supported by the locally-stored electronic control unit, the protocol in the intersection is used to scan a fault in the automotive electronic control system, and a prompt message is timely output to prompt a user of a possible fault of the current vehicle, so that a low-speed physical bus can be prevented from being scanned when a plurality of electronic control units of the vehicle poll, the speed of scanning the fault in the automotive electronic control system is increased to a certain extent, and the user can be helped to quickly know the current fault of the vehicle.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
EXAMPLE III
As shown in fig. 6, a data scanning apparatus 600 in an embodiment of the present invention includes:
a first protocol set obtaining unit 601, configured to obtain a first protocol set, where the first protocol set is a set of all protocols supported by each electronic control unit of a vehicle;
a second protocol set obtaining unit 602, configured to obtain a second protocol set, where the second protocol set is a set of protocols currently adopted by each electronic control unit of the vehicle;
an intersection acquiring unit 603, configured to acquire an intersection from the first protocol set and the second protocol set;
a scanning unit 604, configured to scan the vehicle electronic control system of the vehicle based on the protocol included in the intersection.
Optionally, the first protocol set obtaining unit 601 includes:
a reading subunit, configured to read a protocol supported by each electronic control unit from a configuration file stored in a read-only memory of the vehicle diagnostic apparatus;
and a first saving subunit, configured to save, in a first preset location of the random access memory of the vehicle diagnostic apparatus, the protocols supported by the electronic control units in a first protocol set.
Optionally, the second protocol set obtaining unit 602 includes:
the monitoring subunit is used for monitoring any electronic control unit of the vehicle based on the sequence from the high-speed physical bus protocol to the low-speed physical bus protocol so as to determine the currently adopted protocol of each electronic control unit;
and the second saving subunit is used for saving the monitored currently adopted protocol of each electronic control unit in a second protocol set at a second preset position of the random access memory of the vehicle diagnosis equipment.
Optionally, the monitoring subunit is specifically configured to, for any electronic control unit of the vehicle, determine that a protocol currently used by the electronic control is a protocol currently used by the monitoring if the protocol currently used by the monitoring can monitor the electronic control unit, and stop monitoring the electronic control unit.
Optionally, the data scanning apparatus 600 further includes:
a detection unit for detecting whether the vehicle has fault information based on the scanning result;
and the prompting unit is used for outputting a prompting message in a preset mode if the vehicle has the fault information so as to prompt a user to check the fault information.
As can be seen from the above, in the embodiment of the present application, the data scanning device performs intersection processing on the currently-used protocol of each electronic control unit that is actively monitored and the locally-stored protocol supported by the electronic control unit, and scans the fault in the automobile electronic control system by using the intersection-stored protocol, so that it is possible to avoid that a plurality of electronic control units of a vehicle scan the low-speed physical bus during polling, thereby increasing the speed of scanning the fault in the automobile electronic control system to a certain extent, and helping a user to quickly know the current fault of the vehicle.
Example four
Referring to fig. 7, the vehicle diagnostic apparatus according to an embodiment of the present invention includes: a memory 701, one or more processors 702 (only one shown in fig. 7), and a computer program stored on the memory 701 and executable on the processors. Wherein: the memory 701 is used for storing software programs and modules, and the processor 702 executes various functional applications and data processing by running the software programs and units stored in the memory 701, so as to acquire resources corresponding to the preset events. Specifically, the processor 702 realizes the following steps by running the above-mentioned computer program stored in the memory 701:
acquiring a first protocol set, wherein the first protocol set is a set of all protocols supported by each electronic control unit of a vehicle;
acquiring a second protocol set, wherein the second protocol set is a set of protocols currently adopted by each electronic control unit of the vehicle;
and taking an intersection of the first protocol set and the second protocol set, and scanning the automobile electric control system of the vehicle based on the protocols contained in the intersection.
Assuming that the above is the first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, the acquiring the first protocol set includes:
reading the protocol supported by each electronic control unit from the configuration file saved in the read-only memory of the vehicle diagnosis equipment;
and storing the protocols supported by the electronic control units in a first protocol set at a first preset position of a random access memory of the vehicle diagnosis equipment.
In a third possible implementation manner provided on the basis of the first possible implementation manner, the acquiring the second protocol set includes:
monitoring any electronic control unit of the vehicle based on a sequence from a high-speed physical bus protocol to a low-speed physical bus protocol to determine a protocol currently adopted by each electronic control unit;
and saving the monitored currently adopted protocols of the electronic control units in a second protocol set at a second preset position of the random access memory of the vehicle diagnosis equipment.
In a fourth possible implementation manner provided as a basis for the third possible implementation manner, the monitoring, by any one of the electronic control units of the vehicle, the electronic control unit based on the sequence from the high-speed physical bus protocol to the low-speed physical bus protocol to determine a protocol currently adopted by each electronic control unit includes:
and aiming at any electronic control unit of the vehicle, if the protocol adopted by the current monitoring can monitor the electronic control unit, determining that the protocol adopted by the current electronic control is the protocol adopted by the current monitoring, and stopping monitoring the electronic control unit.
In a fifth possible implementation form based on the first possible implementation form, the second possible implementation form, the third possible implementation form, or the fourth possible implementation form, after the processor 702 takes an intersection of the first protocol set and the second protocol set and scans the vehicle electronic control system of the vehicle based on the protocols included in the intersection, the processor 702 further implements the following steps when executing the computer program stored in the memory 701:
detecting whether the vehicle has fault information based on the scanning result;
and if the vehicle has the fault information, outputting a reminding message in a preset mode to prompt a user to check the fault information.
Further, as shown in fig. 7, the vehicle diagnostic apparatus described above may further include: one or more input devices 703 (only one shown in fig. 7) and one or more output devices 704 (only one shown in fig. 7). The memory 701, processor 702, input device 703 and output device 704 are connected by a bus 705.
It should be understood that in the present embodiment, the Processor 702 may be a Central Processing Unit (CPU), and the Processor may be other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The output device 704 may include a display, etc.
Memory 701 may include both read-only memory and random access memory and provides instructions and data to processor 702. Some or all of memory 701 may also include non-volatile random access memory. For example, memory 701 may also store information of device types.
As can be seen from the above, in the embodiment of the present application, the vehicle diagnostic device performs intersection processing on the currently-used protocol of each electronic control unit that is actively monitored and the locally-stored protocol supported by the electronic control unit, and scans the fault in the automobile electronic control system by using the intersection-stored protocol, so that it is possible to avoid that a plurality of electronic control units of a vehicle scan the low-speed physical bus during polling, thereby increasing the speed of scanning the fault in the automobile electronic control system to a certain extent, and helping a user to quickly know the current fault of the vehicle.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the above-described modules or units is only one logical functional division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium and can implement the steps of the embodiments of the method when the computer program is executed by a processor. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer readable medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier signal, telecommunication signal, software distribution medium, etc. It should be noted that the computer readable medium described above may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media excludes electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A data scanning method applied to a vehicle diagnostic apparatus, the data scanning method comprising:
acquiring a first protocol set, wherein the first protocol set is a set of all protocols supported by each electronic control unit of a vehicle;
acquiring a second protocol set, wherein the second protocol set is a set of protocols currently adopted by each electronic control unit of the vehicle;
and taking an intersection of the first protocol set and the second protocol set, and scanning the automobile electric control system of the vehicle based on the protocols contained in the intersection.
2. The data scanning method of claim 1, wherein said obtaining a first set of protocols comprises:
reading protocols supported by each electronic control unit from a configuration file saved in a read-only memory of the vehicle diagnostic equipment;
and saving the protocols supported by the electronic control units in a first protocol set at a first preset position of a random access memory of the vehicle diagnosis device.
3. The data scanning method of claim 1, wherein said obtaining a second set of protocols comprises:
monitoring any electronic control unit of the vehicle based on a sequence from a high-speed physical bus protocol to a low-speed physical bus protocol to determine a protocol currently adopted by each electronic control unit;
and saving the monitored currently adopted protocols of the electronic control units in a second protocol set at a second preset position of a random access memory of the vehicle diagnosis equipment.
4. The data scanning method of claim 3, wherein the listening, for any electronic control unit of the vehicle, of the electronic control units based on a sequence of a high speed physical bus protocol to a low speed physical bus protocol to determine a protocol currently employed by each electronic control unit comprises:
and aiming at any electronic control unit of the vehicle, if the protocol adopted by the current monitoring can monitor the electronic control unit, determining that the protocol adopted by the current electronic control is the protocol adopted by the current monitoring, and stopping monitoring the electronic control unit.
5. The data scanning method according to any one of claims 1 to 4, wherein, after the intersection is taken for the first protocol set and the second protocol set, and the vehicle electronic control system of the vehicle is scanned based on the protocols contained in the intersection, the data scanning method further comprises:
detecting whether fault information exists in the vehicle based on the scanning result;
and if the vehicle has fault information, outputting a reminding message in a preset mode to prompt a user to check the fault information.
6. A data scanning apparatus, characterized by being applied to a vehicle diagnosis device, the data scanning apparatus comprising:
the system comprises a first protocol set acquisition unit, a first control unit and a second control unit, wherein the first protocol set acquisition unit is used for acquiring a first protocol set, and the first protocol set is a set of all protocols supported by each electronic control unit of a vehicle;
a second protocol set obtaining unit, configured to obtain a second protocol set, where the second protocol set is a set of protocols currently adopted by each electronic control unit of the vehicle;
the intersection acquisition unit is used for acquiring an intersection of the first protocol set and the second protocol set;
and the scanning unit is used for scanning the automobile electric control system of the vehicle based on the protocol contained in the intersection.
7. The data scanning apparatus of claim 6, wherein the first protocol set acquisition unit comprises:
a reading subunit, configured to read a protocol supported by each electronic control unit from a configuration file stored in a read-only memory of the vehicle diagnostic apparatus;
and the first saving subunit is used for saving the protocols supported by the electronic control units in a first protocol set at a first preset position of a random access memory of the vehicle diagnosis device.
8. The data scanning apparatus of claim 6, wherein the second protocol set acquisition unit comprises:
the monitoring subunit is used for monitoring any electronic control unit of the vehicle based on the sequence from the high-speed physical bus protocol to the low-speed physical bus protocol so as to determine the currently adopted protocol of each electronic control unit;
and the second saving subunit is used for saving the monitored currently adopted protocols of the electronic control units in a second protocol set at a second preset position of the random access memory of the vehicle diagnosis equipment.
9. A vehicle diagnostic apparatus comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the steps of the method according to any one of claims 1 to 5 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201810993643.9A 2018-08-29 2018-08-29 Data scanning method, data scanning device and vehicle diagnosis equipment Active CN109213124B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810993643.9A CN109213124B (en) 2018-08-29 2018-08-29 Data scanning method, data scanning device and vehicle diagnosis equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810993643.9A CN109213124B (en) 2018-08-29 2018-08-29 Data scanning method, data scanning device and vehicle diagnosis equipment

Publications (2)

Publication Number Publication Date
CN109213124A CN109213124A (en) 2019-01-15
CN109213124B true CN109213124B (en) 2020-03-31

Family

ID=64985601

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810993643.9A Active CN109213124B (en) 2018-08-29 2018-08-29 Data scanning method, data scanning device and vehicle diagnosis equipment

Country Status (1)

Country Link
CN (1) CN109213124B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032173B (en) * 2019-04-25 2022-04-15 深圳市元征科技股份有限公司 Automatic matching method for automobile diagnosis system and related equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101430557A (en) * 2008-12-05 2009-05-13 中国汽车技术研究中心 Multi-protocol data transducer used for vehicle fault diagnosis and its diagnosis processing method
CN103412561A (en) * 2013-08-08 2013-11-27 奇瑞汽车股份有限公司 Automobile controller refreshing method and device
CN105447035A (en) * 2014-08-29 2016-03-30 华为技术有限公司 Data scanning method and apparatus

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002228551A (en) * 2001-01-31 2002-08-14 Haruo Morita Vehicle diagnostic system
CN102346477A (en) * 2011-08-11 2012-02-08 浙江大学 Analysis method and equipment for fault diagnosis communication protocol on basis of automotive open system architecture (AUTOSAR)
CN103592934B (en) * 2013-11-08 2016-08-24 深圳市道通科技股份有限公司 A kind of methods, devices and systems realizing vehicle diagnosis
CN107450525A (en) * 2017-09-15 2017-12-08 四川驹马企业管理有限公司 Vehicle fault detection apparatus and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101430557A (en) * 2008-12-05 2009-05-13 中国汽车技术研究中心 Multi-protocol data transducer used for vehicle fault diagnosis and its diagnosis processing method
CN103412561A (en) * 2013-08-08 2013-11-27 奇瑞汽车股份有限公司 Automobile controller refreshing method and device
CN105447035A (en) * 2014-08-29 2016-03-30 华为技术有限公司 Data scanning method and apparatus

Also Published As

Publication number Publication date
CN109213124A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
CN108107875B (en) Automobile diagnosis method and device and vehicle communication interface
US20190228212A1 (en) Wakeup method, apparatus and device based on lip reading, and computer readable medium
CN111552267B (en) Vehicle diagnosis method and device and vehicle diagnosis equipment
CN110545220B (en) Automobile diagnosis protocol detection method and related product
CN110958284A (en) Anti-forgetting prompting method, system, electronic terminal, storage medium and vehicle
CN111708584A (en) Vehicle diagnosis method and device, diagnosis equipment and storage medium
CN107423492B (en) Forklift diagnosis test method and system based on template
CN109857085B (en) Method and system for generating driving data in simulation mode, simulation terminal and test system
CN112015489A (en) Management method, device, storage medium and system for vehicle-mounted software
CN113110994A (en) Vehicle diagnosis method and device, electronic equipment and storage medium
CN109213124B (en) Data scanning method, data scanning device and vehicle diagnosis equipment
CN111693294A (en) Vehicle detection method and device, terminal equipment and storage medium
CN113489653A (en) Message sending method and device and computer equipment
CN116455784A (en) Gateway test method, system, computer and readable storage medium
CN115657639A (en) System, method, device and storage medium for monitoring functions of vehicle-mounted chip
US20200117799A1 (en) Graphical user interface tool for configuring a vehicle's intrusion detection system
CN110377272B (en) Method and device for realizing SDK based on TBOX
CN113342430A (en) Fault code processing method and device, terminal equipment and readable storage medium
CN112306040A (en) Vehicle detection method, device, equipment and server
CN103902268A (en) ETL process execution system and method
CN107783771B (en) Diagnostic refreshing method and system
CN109976778B (en) Software updating method and system of vehicle electronic product, upper computer and storage medium
CN112104708B (en) Communication method and device of diagnostic equipment, electronic equipment and storage medium
CN111145386A (en) Method, equipment and medium for managing vehicle computer data based on block chain
CN113126598B (en) Diagnostic method for electronic control unit of automobile, electronic device and storage medium

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
GR01 Patent grant
GR01 Patent grant