Vehicle diagnosis method and device based on diagnosis priority
By implementing a vehicle diagnostic method based on diagnostic priority in the vehicle intelligent gateway or central control unit, diagnostic conflicts and error problems caused by simultaneous diagnosis of multi-source diagnostic mode are solved, and the accuracy and efficiency of diagnosis are achieved.
Patent Information
- Application Number
- CN202510074939.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-17
- Publication Date
- 2025-05-30
AI Technical Summary
In the prior art, when multiple sources of diagnosis modes are diagnosed simultaneously, diagnostic conflicts are prone to occur, resulting in diagnostic errors.
By implementing a vehicle diagnostic method based on diagnostic priority in the intelligent gateway or central control unit of the vehicle, the corresponding diagnostic mode is determined when a diagnosis request is obtained, and whether there are other diagnostic modes with priority higher than the current mode. If present, execute the high priority mode and feedback the prompt message; if not, disconnect the other modes and use the current mode for diagnosis.
By prioritizing different types of diagnostic modes, avoiding diagnostic conflicts and ensuring the accuracy and efficiency of diagnosis, the diagnosis error problem caused by simultaneous diagnosis of multi-source diagnostic mode is solved.
Smart Images

Figure CN120065976A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicles, and particularly relates to a vehicle diagnosis method and device based on diagnosis priority. Background Art
[0002] With the development of the new four modernizations of automobiles, people's requirements for the safety and comfort of the whole vehicle are getting higher and higher. The number of electronic control unit modules on the vehicle has also increased accordingly, and the network architecture of the vehicle has become more and more complex. More attention is paid to the safety of the whole vehicle, and there are also various diagnosis methods for the whole vehicle. Currently, the available diagnosis methods include diagnostic instrument diagnosis, remote diagnosis, OTA, and in-vehicle infotainment system diagnosis. When diagnosing from multiple sources simultaneously, there will be diagnostic conflicts, resulting in diagnostic errors. Summary of the Invention
[0003] In view of this, the purpose of the present invention is to provide a vehicle diagnosis method and device based on diagnosis priority, aiming to solve the problem in the prior art that when diagnosing from multiple sources simultaneously, there will be diagnostic conflicts, resulting in diagnostic errors.
[0004] The embodiments of the present invention are implemented as follows: A vehicle diagnosis method based on diagnosis priority, which is applied to an intelligent gateway or a central control unit of a vehicle. The method includes: When a diagnosis request is obtained, determine the diagnosis mode corresponding to the current diagnosis request; Judge whether there is any other diagnosis mode in the vehicle whose diagnosis priority is higher than the diagnosis mode; When it is judged that there is no other diagnosis mode in the vehicle whose diagnosis priority is higher than the diagnosis mode, disconnect the other diagnosis mode and use the diagnosis mode to diagnose the vehicle.
[0005] Further, in the above vehicle diagnosis method based on diagnosis priority, after the step of judging whether there is any other diagnosis mode in the vehicle whose diagnosis priority is higher than the diagnosis mode, the method further includes: When it is judged that there is any other diagnosis mode in the vehicle whose diagnosis priority is higher than the diagnosis mode, execute the other diagnosis mode and feedback a prompt message, where the prompt message is used to prompt that the vehicle is currently diagnosing using the other diagnosis mode.
[0006] Further, in the above vehicle diagnosis method based on diagnosis priority, before the step of judging whether there is any other diagnosis mode in the vehicle whose diagnosis priority is higher than the diagnosis mode, the method further includes: Judge whether the vehicle is in a flashing mode; If so, after the flashing task with the flashing mode is completed, execute the step of judging whether there is any other diagnosis mode in the vehicle whose diagnosis priority is higher than the diagnosis mode.
[0007] Further, in the above vehicle diagnosis method based on diagnosis priority, before the step of determining the diagnosis mode corresponding to the current diagnosis request when a diagnosis request is obtained, the following steps are further included: Obtain different types of diagnosis modes, and determine the priorities of different types of diagnosis modes according to preset rules; Store the priority order of different types of diagnosis modes, where the diagnosis modes include external diagnosis, in-vehicle diagnosis, and remote diagnosis.
[0008] Further, in the above vehicle diagnosis method based on diagnosis priority, the step of determining the priorities of different types of diagnosis modes according to preset rules includes: Obtain the performance scores of different types of diagnosis modes in terms of fault severity, timeliness, accuracy, convenience, and recovery ability respectively; Determine the corresponding priority scores according to the performance scores and the corresponding weight coefficients, and sort the different types of diagnosis modes according to the priority scores.
[0009] Further, in the above vehicle diagnosis method based on diagnosis priority, the so-called fault severity refers to whether the fault has a significant impact on safety, performance, or driving experience; The so-called timeliness refers to the speed of solving the fault; The so-called accuracy refers to the accuracy of diagnosis; The so-called convenience refers to the convenience of using the diagnosis method; The so-called recovery ability refers to whether the fault can be directly repaired or restored after diagnosis.
[0010] Further, in the above vehicle diagnosis method based on diagnosis priority, after the step of disconnecting the other diagnosis modes and using the diagnosis mode to diagnose the vehicle, the following steps are further included; After entering the corresponding diagnosis mode, send the corresponding heartbeat message to maintain the current diagnosis mode, and exit the current diagnosis mode when the heartbeat message is not received within the preset time.
[0011] Another object of the present invention is to provide a vehicle diagnosis device based on diagnosis priority, which is applied to the intelligent gateway or the central control unit of the vehicle. The device includes: An acquisition module, configured to determine the diagnosis mode corresponding to the current diagnosis request when a diagnosis request is obtained; A judgment module, configured to judge whether there are other diagnosis modes with a diagnosis priority higher than the diagnosis mode in the vehicle currently; A diagnostic module, configured to, when it is determined that there is no other diagnostic mode with a diagnostic priority higher than the diagnostic mode in the vehicle currently, disconnect the other diagnostic mode and use the diagnostic mode to diagnose the vehicle.
[0012] Another object of the present invention is to provide a readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of the method described in any one of the above are implemented.
[0013] Another object of the present invention is to provide an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the program, the steps of the above method are implemented.
[0014] In the present invention, when a diagnostic request is obtained, the diagnostic mode corresponding to the current diagnostic request is determined; it is judged whether there is any other diagnostic mode with a diagnostic priority higher than the diagnostic mode in the vehicle currently; when it is determined that there is no other diagnostic mode with a diagnostic priority higher than the diagnostic mode in the vehicle currently, the other diagnostic mode is disconnected and the vehicle is diagnosed using the diagnostic mode. The corresponding diagnoses are performed in sequence according to the priority level. The problem in the prior art that there will be diagnostic conflicts and diagnostic errors when multiple-source diagnostic modes diagnose simultaneously is solved. Description of the Drawings
[0015] Figure 1 It is a flowchart of the vehicle diagnostic method based on diagnostic priority in the first embodiment of the present invention; Figure 2 It is a structural block diagram of the vehicle diagnostic device based on diagnostic priority in the third embodiment of the present invention.
[0016] The following specific embodiments will further illustrate the present invention in conjunction with the above drawings. Specific Embodiments
[0017] For the convenience of understanding the present invention, the present invention will be described more comprehensively below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, these embodiments are provided to make the disclosure of the present invention more thorough and comprehensive.
[0018] It should be noted that when an element is referred to as being "fixedly provided on" another element, it can be directly on the other element or there can also be an intermediate element. When an element is considered to be "connected" to another element, it can be directly connected to the other element or there may be an intermediate element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are only for the purpose of illustration.
[0019] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this invention belongs. The terms used in the description of the present invention herein are for the purpose of describing specific embodiments only and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0020] Embodiment 1 Please refer to Figure 1 , which shows a vehicle diagnosis method based on diagnosis priority in the first embodiment of the present invention, applied to an intelligent gateway or a central control unit of a vehicle. The method includes steps S10 to S12.
[0021] Step S10, when a diagnosis request is obtained, determine the diagnosis mode corresponding to the current diagnosis request.
[0022] Specifically, the diagnosis access end will send a corresponding diagnosis request, and different diagnosis access ends correspond to different diagnosis modes, including external diagnosis, in-vehicle diagnosis, and remote diagnosis.
[0023] Step S11, determine whether there are other diagnosis modes with a higher diagnosis priority than the current diagnosis mode in the vehicle.
[0024] Among them, corresponding priorities are set for each different type of diagnosis mode, so that it is possible to determine which diagnosis mode to start first according to the order of priorities, avoiding diagnosis conflicts caused by simultaneous diagnosis when multiple diagnosis modes exist simultaneously, resulting in diagnostic errors.
[0025] Specifically, obtain different types of diagnosis modes, and determine the priorities of different types of diagnosis modes according to a preset rule; Store the priority order of different types of diagnosis modes, where the diagnosis modes include external diagnosis, in-vehicle diagnosis, and remote diagnosis.
[0026] Among them, different types of diagnostic modes are first sorted by priority, and then the priority order is stored in the vehicle. When performing diagnostics, the diagnostics can be sorted in sequence according to the pre-stored priority. Exemplarily, the performance scores of different types of diagnostic modes in terms of fault severity, timeliness, accuracy, convenience, and recovery ability can be obtained respectively; the corresponding priority scores are determined according to the performance scores and the corresponding weight coefficients, and different types of diagnostic modes are sorted by priority scores. Among them, fault severity determines whether a fault has a significant impact on safety, performance, or driving experience. Timeliness refers to the speed of resolving a fault. The stronger the timeliness, the higher the priority. Accuracy refers to the accuracy of diagnosis, that is, the ability to diagnose detailed problems. Convenience refers to the convenience of using the diagnostic method, whether special equipment or operators are required. Recovery ability refers to whether a fault can be directly repaired or restored after diagnosis.
[0027] Step S12, when it is determined that there is no other diagnostic mode in the vehicle whose diagnostic priority is higher than that of the diagnostic mode, disconnect the other diagnostic mode and use the diagnostic mode to diagnose the vehicle. Among them, when the current diagnostic mode has the highest priority, disconnect the diagnostic mode currently being performed on the vehicle and start diagnosing the current diagnostic mode. In addition, in some optional embodiments of the present invention, when it is determined that there is another diagnostic mode in the vehicle whose diagnostic priority is higher than the diagnostic mode, execute the other diagnostic mode and feedback a prompt message, and the prompt message is used to prompt that the vehicle is currently diagnosing using the other diagnostic mode.
[0028] In summary, in the vehicle diagnostic method based on diagnostic priority in the above embodiments of the present invention, when a diagnostic request is obtained, the diagnostic mode corresponding to the current diagnostic request is determined; it is judged whether there is another diagnostic mode in the vehicle whose diagnostic priority is higher than the diagnostic mode; when it is determined that there is no other diagnostic mode in the vehicle whose diagnostic priority is higher than the diagnostic mode, disconnect the other diagnostic mode and use the diagnostic mode to diagnose the vehicle. Corresponding diagnostics are performed in sequence according to the priority level. It solves the problem in the prior art that when multiple-source diagnostic modes diagnose simultaneously, there will be diagnostic conflicts, resulting in diagnostic errors.
[0029] Embodiment 2 This embodiment also proposes a vehicle diagnostic method based on diagnostic priority. The difference between the vehicle diagnostic method based on diagnostic priority in this embodiment and the vehicle diagnostic method based on diagnostic priority in Embodiment 1 is as follows: Before the step of judging whether there is another diagnostic mode in the vehicle whose diagnostic priority is higher than the diagnostic mode, it further includes: Judging whether the vehicle is in a flashing mode; If so, after the flashing task with the flashing mode is completed, execute the step of determining whether there is currently another diagnostic mode in the vehicle whose diagnostic priority is higher than that of the diagnostic mode.
[0030] Among them, when the whole vehicle is in the flashing mode, the current priority is invalid, and the diagnostic right needs to be preempted after the current flashing task is executed.
[0031] After the step of disconnecting the other diagnostic mode and diagnosing the vehicle using the diagnostic mode, the following is further included; After entering the corresponding diagnostic mode, send a corresponding heartbeat message to maintain the current diagnostic mode, and exit the current diagnostic mode when no heartbeat message is received within a preset time.
[0032] Among them, real-time monitoring is performed during the diagnosis process, and the current diagnostic mode is exited in a timely manner after the diagnosis is completed.
[0033] In summary, in the vehicle diagnosis method based on diagnostic priority in the above embodiments of the present invention, when a diagnostic request is obtained, the diagnostic mode corresponding to the current diagnostic request is determined; it is judged whether there is currently another diagnostic mode in the vehicle whose diagnostic priority is higher than that of the diagnostic mode; when it is judged that there is no other diagnostic mode in the vehicle whose diagnostic priority is higher than that of the diagnostic mode, the other diagnostic mode is disconnected and the vehicle is diagnosed using the diagnostic mode. Corresponding diagnoses are performed in order according to the priority level. This solves the problem in the prior art that when multiple sources of diagnostic modes diagnose simultaneously, there will be diagnostic conflicts, resulting in diagnostic errors.
[0034] Embodiment III Please refer to Figure 2 , which shows a vehicle diagnosis device based on diagnostic priority proposed in the third embodiment of the present invention, applied to the intelligent gateway or central control unit of a vehicle. The device includes: An acquisition module 100, configured to determine the diagnostic mode corresponding to the current diagnostic request when a diagnostic request is obtained; A judgment module 200, configured to judge whether there is currently another diagnostic mode in the vehicle whose diagnostic priority is higher than that of the diagnostic mode; A diagnosis module 300, configured to, when it is judged that there is no other diagnostic mode in the vehicle whose diagnostic priority is higher than that of the diagnostic mode, disconnect the other diagnostic mode and diagnose the vehicle using the diagnostic mode.
[0035] Further, in the above vehicle diagnosis device based on diagnostic priority, after the step of judging whether there is currently another diagnostic mode in the vehicle whose diagnostic priority is higher than that of the diagnostic mode, the following is further included: When it is determined that there are other diagnostic modes in the vehicle whose diagnostic priorities are higher than the diagnostic mode, execute the other diagnostic mode and feedback a prompt message, where the prompt message is used to prompt that the vehicle is currently diagnosing using the other diagnostic mode.
[0036] Further, for the above vehicle diagnostic device based on diagnostic priority, before the step of determining whether there are other diagnostic modes in the vehicle whose diagnostic priorities are higher than the diagnostic mode, it further includes: Determine whether the vehicle is in the flashing mode; If so, after the flashing task with the flashing mode is completed, execute the step of determining whether there are other diagnostic modes in the vehicle whose diagnostic priorities are higher than the diagnostic mode.
[0037] Further, for the above vehicle diagnostic device based on diagnostic priority, before the step of determining the diagnostic mode corresponding to the current diagnostic request when a diagnostic request is obtained, it further includes: Obtain different types of diagnostic modes, and determine the priorities of different types of diagnostic modes according to a preset rule; Store the priority order of different types of diagnostic modes, where the diagnostic modes include external diagnosis, in-vehicle diagnosis, and remote diagnosis.
[0038] Further, for the above vehicle diagnostic device based on diagnostic priority, the step of determining the priorities of different types of diagnostic modes according to a preset rule includes: Respectively obtain the performance scores of different types of diagnostic modes in terms of fault severity, timeliness, accuracy, convenience, and recovery ability; Determine the corresponding priority scores according to the performance scores and the corresponding weight coefficients, and sort different types of diagnostic modes according to the priority scores.
[0039] Further, for the above vehicle diagnostic device based on diagnostic priority, the fault severity refers to whether the fault has a significant impact on safety, performance, or driving experience; The timeliness refers to the speed of resolving the fault; The accuracy refers to the accuracy of the diagnosis; The convenience refers to the convenience of using the diagnostic method; The recovery ability refers to whether the fault can be directly repaired or restored after diagnosis.
[0040] Further, for the above vehicle diagnostic device based on diagnostic priority, after the step of disconnecting the other diagnostic mode and diagnosing the vehicle using the diagnostic mode, it further includes; After entering the corresponding diagnostic mode, send the corresponding heartbeat message to maintain the current diagnostic mode, and exit the current diagnostic mode when no heartbeat message is received within the preset time.
[0041] The functions or operation steps implemented when the above modules are executed are generally the same as those in the above method embodiments, and will not be described in detail here.
[0042] Embodiment 4 On the other hand, the present invention also provides a readable storage medium, on which a computer program is stored. When the program is executed by a processor, the steps of the method described in any one of the above Embodiments 1 to 2 are implemented.
[0043] Embodiment 5 On the other hand, the present invention also provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the steps of the method described in any one of the above Embodiments 1 to 2 are implemented.
[0044] The technical features of the above various embodiments can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0045] Those skilled in the art can understand that the logic and / or steps represented in the flowchart or described in other ways herein, for example, can be considered as a definite sequence list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable storage medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device), or in combination with these instruction execution systems, apparatus, or devices. For the purposes of this specification, a "computer-readable storage medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
[0046] More specific examples (nonexhaustive list) of computer-readable storage media include the following: electrical connection parts (electronic devices) with one or more wirings, portable computer disk cartridges (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber devices, and portable compact disc read-only memory (CDROM). Additionally, the computer-readable storage media can even be paper or other suitable media on which the program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpretation, or other suitable processing as necessary, and then stored in a computer memory.
[0047] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits with logic gate circuits for implementing logical functions on data signals, application-specific integrated circuits with suitable combinational logic gate circuits, programmable gate arrays (PGA), field-programmable gate arrays (FPGA), etc.
[0048] In the description of this specification, the description referring to terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0049] The above-described embodiments merely represent several implementation manners of the present invention, and their descriptions are relatively specific and detailed, but should not be construed as limiting the scope of the patent of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can still be made, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the appended claims.
Claims
1. A vehicle diagnosis method based on diagnosis priority, characterized in that: Applied to a smart gateway or a central control unit of a vehicle, the method comprises: When a diagnostic request is obtained, determining a diagnostic mode corresponding to the current diagnostic request; Determine whether the vehicle currently has other diagnostic modes with a higher diagnostic priority than the diagnostic mode; When it is determined that no other diagnostic mode having a higher diagnostic priority than the diagnostic mode currently exists for the vehicle, the other diagnostic mode is disconnected and the vehicle is diagnosed using the diagnostic mode.
2. The vehicle diagnosis method based on diagnosis priority according to claim 1, characterized in that: After the step of determining whether the vehicle currently has other diagnostic modes with a higher diagnostic priority than the diagnostic mode, the following step is further performed: When it is determined that the vehicle currently has other diagnostic modes with a higher diagnostic priority than the diagnostic mode, the other diagnostic modes are executed and prompt information is fed back, where the prompt information is used to prompt that the vehicle is currently using the other diagnostic modes for diagnosis.
3. The vehicle diagnosis method based on diagnosis priority according to claim 2, characterized in that: Before the step of determining whether the vehicle currently has other diagnostic modes with a higher diagnostic priority than the diagnostic mode, the step further includes: Determining whether the vehicle is in a flashing mode; If so, after the flashing task with the flashing mode is completed, the step of determining whether the vehicle currently has other diagnostic modes with a higher diagnostic priority than the diagnostic mode is performed.
4. The vehicle diagnosis method based on diagnosis priority according to claim 3, characterized in that: When a diagnostic request is obtained, the step of determining the diagnostic mode corresponding to the current diagnostic request also includes: Obtain different types of diagnostic modes, and determine the priorities of different types of diagnostic modes according to preset rules; The priority order of different types of diagnostic modes is stored, wherein the diagnostic modes include external diagnosis, vehicle computer diagnosis and remote diagnosis.
5. The vehicle diagnosis method based on diagnosis priority according to claim 1, characterized in that: The step of determining the priorities of different types of diagnostic modes according to preset rules includes: Obtain the performance scores of different types of diagnostic modes in terms of fault severity, timeliness, accuracy, convenience, and recovery capability; The corresponding priority score is determined according to the performance score and the corresponding weight coefficient, and different types of diagnostic modes are prioritized according to the priority score.
6. The vehicle diagnosis method based on diagnosis priority according to claim 5, characterized in that: The severity of the fault refers to whether the fault has a significant impact on safety, performance or driving experience; The timeliness refers to the speed of resolving the fault; The precision mentioned refers to the accuracy of the diagnosis; The convenience refers to the ease of using the diagnostic method; The recovery capability refers to whether fault repair or recovery operations can be performed directly after diagnosis.
7. The vehicle diagnosis method based on diagnosis priority according to claim 1, characterized in that: After the step of disconnecting the other diagnostic modes and diagnosing the vehicle using the diagnostic mode, the step further includes: After entering the corresponding diagnostic mode, the corresponding heartbeat message is sent to maintain the current diagnostic mode, and the current diagnostic mode is exited when no heartbeat message is received within a preset time.
8. A vehicle diagnostic device based on diagnostic priority, characterized in that: An intelligent gateway or central control unit applied to a vehicle, the device comprising: An acquisition module, used for determining a diagnostic mode corresponding to a current diagnostic request when a diagnostic request is acquired; A determination module, used for determining whether the vehicle currently has other diagnostic modes with a higher diagnostic priority than the diagnostic mode; The diagnostic module is used to disconnect the other diagnostic modes and use the diagnostic mode to diagnose the vehicle when it is determined that there is no other diagnostic mode with a higher diagnostic priority than the diagnostic mode.
9. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A vehicle, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the methods of claims 1 to 7 when executing the program.