CN118363365A - Vehicle diagnosis method, device, terminal equipment and storage medium - Google Patents

Vehicle diagnosis method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN118363365A
CN118363365A CN202410405140.0A CN202410405140A CN118363365A CN 118363365 A CN118363365 A CN 118363365A CN 202410405140 A CN202410405140 A CN 202410405140A CN 118363365 A CN118363365 A CN 118363365A
Authority
CN
China
Prior art keywords
diagnosis
vehicle
electronic control
channel
vehicle electronic
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
CN202410405140.0A
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.)
Shenzhen Yixin Yiyi Software Development Co ltd
Original Assignee
Shenzhen Yixin Yiyi Software Development 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 Yixin Yiyi Software Development Co ltd filed Critical Shenzhen Yixin Yiyi Software Development Co ltd
Priority to CN202410405140.0A priority Critical patent/CN118363365A/en
Publication of CN118363365A publication Critical patent/CN118363365A/en
Pending legal-status Critical Current

Links

Landscapes

  • Vehicle Cleaning, Maintenance, Repair, Refitting, And Outriggers (AREA)

Abstract

The application discloses a vehicle diagnosis method, a vehicle diagnosis device, terminal equipment and a storage medium, and belongs to the technical field of vehicles. The method comprises the following steps: receiving a diagnosis instruction; distributing a plurality of communication channels for a plurality of vehicle electronic control units corresponding to the diagnosis instructions based on a preset channel distribution strategy; and executing diagnosis operation on a plurality of vehicle electronic control units according to the diagnosis instructions through a plurality of communication channels to obtain vehicle diagnosis results. By distributing communication channels for a plurality of vehicle electronic control units, simultaneous diagnosis of a plurality of vehicle electronic control units is realized, and the technical problem that diagnosis of a single vehicle electronic control unit can only be sequentially carried out in the prior art is solved. Compared with the prior art, the method has the advantages of saving maintenance time and improving diagnosis efficiency.

Description

Vehicle diagnosis method, device, terminal equipment and storage medium
Technical Field
The present application relates to the field of vehicle technologies, and in particular, to a vehicle diagnosis method, a device, a terminal device, and a storage medium.
Background
The conventional diagnostic apparatus is equivalent to a single channel mode only, and cannot realize simultaneous operation of a plurality of ECUs (vehicle electronic control units), and is laborious when the plurality of ECUs need to be checked or maintained, for example, 10 minutes are required for programming an engine ECU, 15 minutes are required for programming a body ECU, 8 minutes are required for programming a wave box ECU, and 10+15+8 (33) minutes are required for the conventional diagnostic apparatus, which is time-consuming and inefficient.
Disclosure of Invention
The application mainly aims to provide a vehicle diagnosis method, a vehicle diagnosis device, a terminal device and a storage medium, and aims to solve the problem that only a single vehicle electronic control unit can be diagnosed sequentially.
In order to achieve the above object, the present application provides a vehicle diagnostic method, which is applied to a vehicle diagnostic apparatus, comprising the steps of:
Receiving a diagnosis instruction;
distributing a plurality of communication channels for a plurality of vehicle electronic control units corresponding to the diagnosis instructions based on a preset channel distribution strategy;
And executing diagnosis operation on a plurality of vehicle electronic control units according to the diagnosis instructions through a plurality of communication channels to obtain vehicle diagnosis results.
Optionally, before the step of allocating a plurality of communication channels to a plurality of vehicle electronic control units corresponding to the diagnostic instruction based on the preset channel allocation policy, the method further includes:
analyzing the diagnosis instruction to obtain diagnosis requirement data;
And determining the vehicle electronic control unit corresponding to the diagnosis instruction according to the diagnosis requirement data.
Optionally, the step of allocating a plurality of communication channels to a plurality of vehicle electronic control units corresponding to the diagnostic instruction based on a preset channel allocation policy includes:
calling a pre-constructed channel pool according to the diagnosis instruction, and acquiring information of a vehicle electronic control unit;
Screening the communication channels in the channel pool according to the information of the vehicle electronic control unit to obtain channels to be distributed;
And distributing the channel to be distributed to a vehicle electronic control unit corresponding to the diagnosis instruction based on the channel distribution strategy.
Optionally, before the step of calling the pre-constructed channel pool and acquiring the information of the vehicle electronic control unit according to the diagnosis instruction, the method further comprises:
Acquiring communication protocol parameters;
establishing the communication channel according to the communication protocol parameters;
And constructing the channel pool according to the communication channel.
Optionally, the step of performing a diagnostic operation on the plurality of vehicle electronic control units according to the diagnostic instruction through the plurality of communication channels to obtain a vehicle diagnostic result includes:
sending the diagnosis instruction to a corresponding vehicle electronic control unit through the communication channel;
and executing corresponding diagnosis operation according to the diagnosis instruction by the vehicle electronic control unit to obtain the vehicle diagnosis result.
Optionally, the step of performing a diagnostic operation on the plurality of vehicle electronic control units according to the diagnostic instruction through the plurality of communication channels, and obtaining the vehicle diagnostic result further includes:
monitoring the communication state of the communication channel through a preset monitoring module to obtain a channel monitoring result;
And when the channel monitoring result is that the communication state is communication failure, selecting a corresponding communication channel to connect through a preset channel pool.
Optionally, the step of performing a diagnostic operation on the plurality of vehicle electronic control units according to the diagnostic instruction through the plurality of communication channels, and obtaining the vehicle diagnostic result further includes:
receiving a diagnosis completion request sent by the vehicle electronic control unit through the communication channel;
And disconnecting the vehicle electronic control unit from the corresponding communication channel through a preset channel release function according to the diagnosis completion request.
In addition, in order to achieve the above object, the present application also provides a vehicle diagnostic apparatus including:
The instruction receiving module is used for receiving the diagnosis instruction;
the channel allocation module is used for allocating a plurality of communication channels for a plurality of vehicle electronic control units corresponding to the diagnosis instructions based on a preset channel allocation strategy;
And the vehicle diagnosis module is used for executing diagnosis operation on the plurality of vehicle electronic control units through the plurality of communication channels according to the diagnosis instructions to obtain vehicle diagnosis results.
The embodiment of the application also provides a terminal device, which comprises a memory, a processor and a vehicle diagnosis program stored in the memory and capable of running on the processor, wherein the vehicle diagnosis program realizes the steps of the vehicle diagnosis method when being executed by the processor.
The embodiment of the application also proposes a computer-readable storage medium, on which a vehicle diagnostic program is stored, which, when executed by a processor, implements the steps of the vehicle diagnostic method as described above.
The embodiment of the application provides a vehicle diagnosis method, a device, a terminal device and a storage medium, which are used for receiving diagnosis instructions; distributing a plurality of communication channels for a plurality of vehicle electronic control units corresponding to the diagnosis instructions based on a preset channel distribution strategy; and executing diagnosis operation on a plurality of vehicle electronic control units according to the diagnosis instructions through a plurality of communication channels to obtain vehicle diagnosis results. By distributing communication channels for a plurality of vehicle electronic control units, simultaneous diagnosis of a plurality of vehicle electronic control units is realized, and the technical problem that diagnosis of a single vehicle electronic control unit can only be sequentially carried out in the prior art is solved. Compared with the prior art, the method has the advantages of saving maintenance time and improving diagnosis efficiency.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.
Drawings
FIG. 1 is a schematic diagram of functional modules of a terminal device to which a vehicle diagnostic apparatus of the present application belongs;
FIG. 2 is a flow chart of a first exemplary embodiment of a vehicle diagnostic method of the present application;
FIG. 3 is a flow chart of a second exemplary embodiment of a vehicle diagnostic method of the present application;
FIG. 4 is a flow chart of a third exemplary embodiment of a vehicle diagnostic method of the present application;
Fig. 5 is a flowchart illustrating a fourth exemplary embodiment of a vehicle diagnostic method according to the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The main solutions of the embodiments of the present application are: receiving a diagnosis instruction; distributing a plurality of communication channels for a plurality of vehicle electronic control units corresponding to the diagnosis instructions based on a preset channel distribution strategy; and executing diagnosis operation on a plurality of vehicle electronic control units according to the diagnosis instructions through a plurality of communication channels to obtain vehicle diagnosis results. By distributing communication channels for a plurality of vehicle electronic control units, simultaneous diagnosis of a plurality of vehicle electronic control units is realized, and the technical problem that diagnosis of a single vehicle electronic control unit can only be sequentially carried out in the prior art is solved. Compared with the prior art, the method has the advantages of saving maintenance time and improving diagnosis efficiency.
The embodiment of the application considers that the related technical scheme only supports the diagnosis of a single ECU, and has the following defects:
1) When a plurality of ECU data need to be checked, only each ECU data can be recorded and then compared;
2) When multiple ECUs need to be programmed, single ECU programming can only be performed sequentially;
3) When operation tests and data flows of a plurality of ECUs are required, the operation tests and the data flows can be performed only singly.
Based on the above, the embodiment of the application provides a solution, which can realize simultaneous diagnosis of a plurality of vehicle electronic control units, solves the technical problem that only a single vehicle electronic control unit can be diagnosed sequentially, and makes the vehicle diagnosis more convenient and efficient.
Specifically, referring to fig. 1, fig. 1 is a schematic diagram of functional blocks of a terminal device to which the vehicle diagnostic apparatus of the present application belongs. The vehicle diagnostic device may be independent of the terminal device, and may be a device capable of vehicle diagnosis, which may be carried on the terminal device in the form of hardware or software. The terminal equipment can be intelligent mobile equipment with a data processing function such as a mobile phone and a tablet personal computer, and can also be fixed terminal equipment or a server with a data processing function.
In this embodiment, the terminal device to which the vehicle diagnosis device belongs includes at least an output module 110, a processor 120, a memory 130, and a communication module 140.
The memory 130 stores therein an operating system and a vehicle diagnostic program, and the vehicle diagnostic apparatus can receive a diagnostic instruction; distributing a plurality of communication channels for a plurality of vehicle electronic control units corresponding to the diagnosis instructions based on a preset channel distribution strategy; and executing diagnosis operation on a plurality of vehicle electronic control units according to the diagnosis instructions through a plurality of communication channels to obtain vehicle diagnosis results. The communication channel allocation is performed by the vehicle diagnosis program, and information such as vehicle diagnosis is stored in the memory 130; the output module 110 may be a display screen or the like. The communication module 140 may include a WIFI module, a mobile communication module, a bluetooth module, and the like, and communicates with an external device or a server through the communication module 140.
Wherein the vehicle diagnostic routines in memory 130 when executed by the processor perform the steps of:
Receiving a diagnosis instruction;
distributing a plurality of communication channels for a plurality of vehicle electronic control units corresponding to the diagnosis instructions based on a preset channel distribution strategy;
And executing diagnosis operation on a plurality of vehicle electronic control units according to the diagnosis instructions through a plurality of communication channels to obtain vehicle diagnosis results.
Further, the vehicle diagnostic program in the memory 130 when executed by the processor also performs the steps of:
analyzing the diagnosis instruction to obtain diagnosis requirement data;
And determining the vehicle electronic control unit corresponding to the diagnosis instruction according to the diagnosis requirement data.
Further, the vehicle diagnostic program in the memory 130 when executed by the processor also performs the steps of:
calling a pre-constructed channel pool according to the diagnosis instruction, and acquiring information of a vehicle electronic control unit;
Screening the communication channels in the channel pool according to the information of the vehicle electronic control unit to obtain channels to be distributed;
And distributing the channel to be distributed to a vehicle electronic control unit corresponding to the diagnosis instruction based on the channel distribution strategy.
Further, the vehicle diagnostic program in the memory 130 when executed by the processor also performs the steps of:
Acquiring communication protocol parameters;
establishing the communication channel according to the communication protocol parameters;
And constructing the channel pool according to the communication channel.
Further, the vehicle diagnostic program in the memory 130 when executed by the processor also performs the steps of:
sending the diagnosis instruction to a corresponding vehicle electronic control unit through the communication channel;
and executing corresponding diagnosis operation according to the diagnosis instruction by the vehicle electronic control unit to obtain the vehicle diagnosis result.
Further, the vehicle diagnostic program in the memory 130 when executed by the processor also performs the steps of:
monitoring the communication state of the communication channel through a preset monitoring module to obtain a channel monitoring result;
And when the channel monitoring result is that the communication state is communication failure, selecting a corresponding communication channel to connect through a preset channel pool.
Further, the vehicle diagnostic program in the memory 130 when executed by the processor also performs the steps of:
receiving a diagnosis completion request sent by the vehicle electronic control unit through the communication channel;
And disconnecting the vehicle electronic control unit from the corresponding communication channel through a preset channel release function according to the diagnosis completion request.
The embodiment receives the diagnosis instruction through the scheme; distributing a plurality of communication channels for a plurality of vehicle electronic control units corresponding to the diagnosis instructions based on a preset channel distribution strategy; and executing diagnosis operation on a plurality of vehicle electronic control units according to the diagnosis instructions through a plurality of communication channels to obtain vehicle diagnosis results. By distributing communication channels for a plurality of vehicle electronic control units, simultaneous diagnosis of a plurality of vehicle electronic control units is realized, and the technical problem that diagnosis of a single vehicle electronic control unit can only be sequentially carried out in the prior art is solved. Compared with the prior art, the method has the advantages of saving maintenance time and improving diagnosis efficiency.
The method embodiment of the application is proposed based on the above-mentioned terminal equipment architecture but not limited to the above-mentioned architecture.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first exemplary embodiment of a vehicle diagnostic method according to the present application. The vehicle diagnostic method includes:
Step S101, receiving a diagnosis instruction;
The main execution subject of the method of the present embodiment is a vehicle diagnosis service system, a vehicle diagnosis device, or a vehicle diagnosis apparatus, and the present embodiment is exemplified by a vehicle diagnosis device that can be integrated into an apparatus having a data processing function.
In order to solve the problem that only a single vehicle electronic control unit can be diagnosed sequentially, it is important to diagnose a plurality of vehicle electronic control units simultaneously, and in order to diagnose a plurality of vehicle electronic control units simultaneously, the following steps are adopted:
firstly, a special vehicle diagnosis device is arranged and integrated on equipment with a data processing function, and a plurality of vehicle electronic control units can be diagnosed simultaneously through the vehicle diagnosis device;
finally, a diagnostic command is received by the vehicle diagnostic device.
Step S102, distributing a plurality of communication channels for a plurality of vehicle electronic control units corresponding to the diagnosis instructions based on a preset channel distribution strategy;
The vehicle diagnosis device allocates a plurality of communication channels for a plurality of vehicle electronic control units corresponding to diagnosis instructions based on a preset channel allocation strategy, and the vehicle diagnosis device is realized by adopting the following steps:
firstly, a vehicle diagnosis device determines how to allocate communication channels to vehicle electronic control units corresponding to each diagnosis instruction according to a preset channel allocation strategy, wherein the channel allocation strategy can be formulated according to factors such as diagnosis requirements, communication resource availability, priority and the like;
finally, the vehicle diagnostic device allocates a communication channel to the vehicle electronic control unit corresponding to each diagnostic instruction according to the channel allocation strategy, wherein the communication channel can be a physical interface, network connection or other communication means for data exchange and communication with the vehicle electronic control unit.
Further, as an implementation manner, before the allocating a plurality of communication channels to the plurality of vehicle electronic control units corresponding to the diagnostic instruction based on the preset channel allocation policy, the method further includes:
step S1041, analyzing the diagnosis instruction to obtain diagnosis requirement data;
Step S1042, determining a vehicle electronic control unit corresponding to the diagnostic command according to the diagnostic requirement data.
Specifically, the following steps are adopted:
Firstly, a vehicle diagnosis device analyzes a received diagnosis instruction to acquire diagnosis requirement data, wherein the diagnosis requirement data possibly comprises a control unit, a diagnosis mode, a parameter range and the like which need diagnosis;
Finally, the vehicle diagnostic device matches the on-demand vehicle electronic control unit according to the diagnostic demand data, and the matching process may involve comparison of control unit types, supported diagnostic modes, available parameters, and the like.
Step S103, performing diagnosis operation on a plurality of vehicle electronic control units through a plurality of communication channels according to the diagnosis instruction to obtain a vehicle diagnosis result.
The vehicle diagnosis device executes diagnosis operation to a plurality of vehicle electronic control units through a plurality of communication channels according to diagnosis instructions, and is realized by adopting the following steps:
First, the vehicle diagnostic device establishes a communication connection with each vehicle electronic control unit using a pre-assigned communication channel, which may involve communication with the vehicle network or direct connection to the corresponding control unit interface;
Finally, the vehicle diagnostic device sends appropriate diagnostic instructions to each vehicle electronic control unit, which may include requesting to read specific sensor data, executing a self-test procedure, acquiring a fault code, etc.
Further, as an implementation manner, the method further includes performing a diagnostic operation on the plurality of vehicle electronic control units according to the diagnostic instruction through the plurality of communication channels, and after obtaining the vehicle diagnostic result, further includes:
Step S1051, monitoring the communication state of the communication channel through a preset monitoring module to obtain a channel monitoring result;
Step S1052, when the channel monitoring result indicates that the communication status is communication failure, selecting a corresponding communication channel for connection through a preset channel pool.
Specifically, the following steps are adopted:
firstly, a vehicle diagnosis device monitors the communication state of a communication channel through a preset monitoring module to obtain a channel monitoring result;
And finally, when the channel monitoring result is that the communication state is communication failure, the vehicle diagnosis device selects a standby channel from the channel pool for reestablishing the communication connection with the vehicle electronic control unit, the basis of the selection of the standby channel can be availability, priority or other preset strategies of the channel, and then the selected standby channel is used for attempting to reconnect to the vehicle electronic control unit with the communication failure and continuously executing subsequent diagnosis operation.
According to the embodiment, by receiving the diagnosis instruction; distributing a plurality of communication channels for a plurality of vehicle electronic control units corresponding to the diagnosis instructions based on a preset channel distribution strategy; and executing diagnosis operation on a plurality of vehicle electronic control units according to the diagnosis instructions through a plurality of communication channels to obtain vehicle diagnosis results. By distributing communication channels for a plurality of vehicle electronic control units, simultaneous diagnosis of a plurality of vehicle electronic control units is realized, and the technical problem that diagnosis of a single vehicle electronic control unit can only be sequentially carried out in the prior art is solved. Compared with the prior art, the method has the advantages of saving maintenance time and improving diagnosis efficiency.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second exemplary embodiment of a vehicle diagnostic method according to the present application.
Based on the first exemplary embodiment, the step S102, based on a preset channel allocation policy, allocating a plurality of communication channels to a plurality of vehicle electronic control units corresponding to the diagnostic instruction may include:
Step S1021, calling a pre-constructed channel pool according to the diagnosis instruction, and acquiring information of a vehicle electronic control unit;
Step S1022, screening the communication channels in the channel pool according to the information of the vehicle electronic control unit to obtain channels to be distributed;
Step S1023, distributing the channel to be distributed to the vehicle electronic control unit corresponding to the diagnosis instruction based on the channel distribution strategy.
Specifically, the vehicle diagnosis device allocates a plurality of communication channels for a plurality of vehicle electronic control units corresponding to the diagnosis instructions based on a preset channel allocation strategy, and the vehicle diagnosis device is realized by adopting the following steps:
Firstly, a vehicle diagnosis device calls a pre-constructed channel pool according to a diagnosis instruction, wherein the channel pool possibly comprises all available communication channels and related information thereof, such as the number, the type, the state and the like of the channels, and then acquires information of a vehicle electronic control unit corresponding to the diagnosis instruction from the channel pool, wherein the information of the vehicle electronic control unit possibly comprises the number, the type, the position and the like of the unit;
Then, the vehicle diagnosis device screens the communication channels in the channel pool according to the information of the vehicle electronic control unit, the screening basis can be availability, compatibility or other preset strategies of the channels, and the channels to be distributed which meet the screening conditions are acquired from the channel pool and are used for establishing communication connection with the vehicle electronic control unit;
Finally, the vehicle diagnostic device distributes the channels to be distributed to the vehicle electronic control units corresponding to the diagnostic instructions according to the channel distribution strategy, so that each vehicle electronic control unit is distributed with a communication channel for performing diagnostic operations.
Further, as an implementation manner, before the calling the pre-constructed channel pool according to the diagnosis instruction and acquiring the information of the vehicle electronic control unit, the method further includes:
step S1061, obtaining communication protocol parameters;
Step S1062, establishing the communication channel according to the communication protocol parameters;
Step S1063, constructing the channel pool according to the communication channel.
Specifically, the following steps are adopted:
Firstly, a vehicle diagnostic device acquires communication protocol parameters, wherein the communication protocol parameters may comprise information such as the type, version, encryption mode, data format and the like of a communication protocol, and the parameters are critical to establishing communication connection and exchanging data;
then, the vehicle diagnostic device performs a communication channel establishment task based on the acquired communication protocol parameters, which may involve a task of selecting a proper communication protocol, configuring communication parameters, establishing a network connection, etc., so as to ensure the reliability and stability of the communication channel;
finally, the vehicle diagnostic device adds the communication channel to the channel pool after establishing the communication channel, and builds a complete channel pool, wherein the channel pool contains all established communication channels, so that the following channel allocation work can have enough selectable channels for selection.
According to the scheme, the method specifically calls a pre-constructed channel pool according to the diagnosis instruction, and obtains information of the vehicle electronic control unit; screening the communication channels in the channel pool according to the information of the vehicle electronic control unit to obtain channels to be distributed; and distributing the channel to be distributed to a vehicle electronic control unit corresponding to the diagnosis instruction based on the channel distribution strategy. Based on the channel allocation strategy, a plurality of communication channels are allocated to corresponding vehicle electronic control units, and support is provided for vehicle diagnosis.
Referring to fig. 4, fig. 4 is a flowchart illustrating a third exemplary embodiment of a vehicle diagnostic method according to the present application.
Based on the first exemplary embodiment, the step S103, performing, by the plurality of communication channels, a diagnostic operation on the plurality of vehicle electronic control units according to the diagnostic instruction, may include:
step S1031, sending the diagnostic instruction to a corresponding vehicle electronic control unit through the communication channel;
Step S1032, executing, by the vehicle electronic control unit, a corresponding diagnostic operation according to the diagnostic instruction, and obtaining the vehicle diagnostic result.
Specifically, the vehicle diagnosis device executes diagnosis operation on a plurality of vehicle electronic control units through a plurality of communication channels according to diagnosis instructions, and the vehicle diagnosis device is realized by adopting the following steps:
Firstly, the vehicle diagnostic device sends specific diagnostic instructions to the corresponding vehicle electronic control unit through the previously established communication channel, which may involve selecting an appropriate channel object and sending the instructions using the corresponding communication protocol;
Finally, after receiving the diagnosis command, the vehicle electronic control unit executes corresponding diagnosis operations, such as reading specific sensor data, executing a self-checking program, sending a diagnosis request, and the like, and the vehicle diagnosis device needs to wait for and receive a response from the vehicle electronic control unit to acquire a diagnosis result or execute subsequent operations to obtain the vehicle diagnosis result.
According to the embodiment, the diagnosis instruction is sent to the corresponding vehicle electronic control unit through the communication channel; and executing corresponding diagnosis operation according to the diagnosis instruction by the vehicle electronic control unit to obtain the vehicle diagnosis result. And a diagnosis instruction is sent to the corresponding vehicle electronic control unit through the communication channel, so that the diagnosis of the vehicle is completed. Thereby, a diagnosis of the vehicle electronic control unit is achieved.
Referring to fig. 5, fig. 5 is a flowchart illustrating a fourth exemplary embodiment of a vehicle diagnostic method according to the present application.
Based on the above-mentioned first exemplary embodiment, the step S103, through a plurality of communication channels, may further include, after performing a diagnostic operation on a plurality of vehicle electronic control units according to the diagnostic instruction, obtaining a vehicle diagnostic result:
step S1071, receiving a diagnosis completion request sent by the vehicle electronic control unit through the communication channel;
step S1072, disconnecting the vehicle electronic control unit from the corresponding communication channel according to the diagnosis completion request through a preset channel release function.
Specifically, the following steps are adopted:
firstly, a vehicle diagnosis device receives a diagnosis completion request sent by a vehicle electronic control unit through a communication channel;
finally, the vehicle diagnosis device disconnects the vehicle electronic control unit from the corresponding communication channel through a preset channel release function according to the diagnosis completion request.
According to the scheme, the diagnosis completion request sent by the vehicle electronic control unit is received through the communication channel; and disconnecting the vehicle electronic control unit from the corresponding communication channel through a preset channel release function according to the diagnosis completion request. And releasing the communication channel after diagnosis is finished through a preset channel release function. Therefore, the memory utilization efficiency of the vehicle diagnosis device is improved, and meanwhile, the vehicle diagnosis efficiency is improved.
In addition, the present application also provides a vehicle diagnostic apparatus including:
The instruction receiving module is used for receiving the diagnosis instruction;
the channel allocation module is used for allocating a plurality of communication channels for a plurality of vehicle electronic control units corresponding to the diagnosis instructions based on a preset channel allocation strategy;
And the vehicle diagnosis module is used for executing diagnosis operation on the plurality of vehicle electronic control units through the plurality of communication channels according to the diagnosis instructions to obtain vehicle diagnosis results.
The principle of the present embodiment for implementing vehicle diagnosis is referred to the above embodiments, and will not be described herein.
In addition, the embodiment of the application also provides a terminal device, which comprises a memory, a processor and a vehicle diagnosis program stored in the memory and capable of running on the processor, wherein the vehicle diagnosis program realizes the steps of the vehicle diagnosis method when being executed by the processor.
Because the vehicle diagnostic program is executed by the processor, all the technical solutions of all the embodiments are adopted, at least all the beneficial effects brought by all the technical solutions of all the embodiments are provided, and will not be described in detail herein.
The embodiment of the application also proposes a computer-readable storage medium, on which a vehicle diagnostic program is stored, which, when executed by a processor, implements the steps of the vehicle diagnostic method as described above.
Because all the technical solutions of all the embodiments are adopted when the vehicle diagnosis program is executed by the processor, the vehicle diagnosis program at least has all the beneficial effects brought by all the technical solutions of all the embodiments, and the description is omitted herein.
Compared with the prior art, the vehicle diagnosis scheme provided by the embodiment of the application receives the diagnosis instruction; distributing a plurality of communication channels for a plurality of vehicle electronic control units corresponding to the diagnosis instructions based on a preset channel distribution strategy; and executing diagnosis operation on a plurality of vehicle electronic control units according to the diagnosis instructions through a plurality of communication channels to obtain vehicle diagnosis results. Thus solving the problem that only a single vehicle electronic control unit can be diagnosed sequentially. Based on the scheme of the application, a vehicle diagnosis scheme is designed based on the problem that only a single vehicle electronic control unit can be diagnosed sequentially in the real world, the effectiveness of the vehicle diagnosis method is verified in the diagnosis of the vehicle electronic control unit, and finally the efficiency of vehicle diagnosis by the method is obviously improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to perform the method of each embodiment of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A vehicle diagnostic method, characterized in that the method is applied to a vehicle diagnostic apparatus, the vehicle diagnostic method comprising the steps of:
Receiving a diagnosis instruction;
distributing a plurality of communication channels for a plurality of vehicle electronic control units corresponding to the diagnosis instructions based on a preset channel distribution strategy;
And executing diagnosis operation on a plurality of vehicle electronic control units according to the diagnosis instructions through a plurality of communication channels to obtain vehicle diagnosis results.
2. The vehicle diagnosis method according to claim 1, wherein before the step of allocating a plurality of communication channels to a plurality of vehicle electronic control units corresponding to the diagnosis instruction based on a preset channel allocation policy, further comprises:
analyzing the diagnosis instruction to obtain diagnosis requirement data;
And determining the vehicle electronic control unit corresponding to the diagnosis instruction according to the diagnosis requirement data.
3. The vehicle diagnosis method according to claim 1, wherein the step of allocating a plurality of communication channels to a plurality of vehicle electronic control units corresponding to the diagnosis instruction based on a preset channel allocation policy comprises:
calling a pre-constructed channel pool according to the diagnosis instruction, and acquiring information of a vehicle electronic control unit;
Screening the communication channels in the channel pool according to the information of the vehicle electronic control unit to obtain channels to be distributed;
And distributing the channel to be distributed to a vehicle electronic control unit corresponding to the diagnosis instruction based on the channel distribution strategy.
4. The vehicle diagnosis method according to claim 3, wherein before the step of calling a pre-constructed channel pool and acquiring information of the vehicle electronic control unit according to the diagnosis instruction, further comprising:
Acquiring communication protocol parameters;
establishing the communication channel according to the communication protocol parameters;
And constructing the channel pool according to the communication channel.
5. The vehicle diagnosis method according to claim 1, wherein the step of performing a diagnosis operation on the plurality of vehicle electronic control units according to the diagnosis instruction through the plurality of communication channels, to obtain a vehicle diagnosis result comprises:
sending the diagnosis instruction to a corresponding vehicle electronic control unit through the communication channel;
and executing corresponding diagnosis operation according to the diagnosis instruction by the vehicle electronic control unit to obtain the vehicle diagnosis result.
6. The vehicle diagnosis method according to claim 1, wherein the step of obtaining the vehicle diagnosis result further comprises, after performing a diagnosis operation on the plurality of vehicle electronic control units according to the diagnosis instruction through the plurality of communication channels:
monitoring the communication state of the communication channel through a preset monitoring module to obtain a channel monitoring result;
And when the channel monitoring result is that the communication state is communication failure, selecting a corresponding communication channel to connect through a preset channel pool.
7. The vehicle diagnosis method according to claim 1, wherein the step of obtaining the vehicle diagnosis result further comprises, after performing a diagnosis operation on the plurality of vehicle electronic control units according to the diagnosis instruction through the plurality of communication channels:
receiving a diagnosis completion request sent by the vehicle electronic control unit through the communication channel;
And disconnecting the vehicle electronic control unit from the corresponding communication channel through a preset channel release function according to the diagnosis completion request.
8. A vehicle diagnostic apparatus, characterized by comprising:
The instruction receiving module is used for receiving the diagnosis instruction;
the channel allocation module is used for allocating a plurality of communication channels for a plurality of vehicle electronic control units corresponding to the diagnosis instructions based on a preset channel allocation strategy;
And the vehicle diagnosis module is used for executing diagnosis operation on the plurality of vehicle electronic control units through the plurality of communication channels according to the diagnosis instructions to obtain vehicle diagnosis results.
9. A terminal device, characterized in that it comprises a memory, a processor and a vehicle diagnostic program stored on the memory and executable on the processor, which vehicle diagnostic program, when executed by the processor, implements the steps of the vehicle diagnostic method according to any one of claims 1-7.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a vehicle diagnostic program which, when executed by a processor, implements the steps of the vehicle diagnostic method according to any one of claims 1-7.
CN202410405140.0A 2024-04-03 2024-04-03 Vehicle diagnosis method, device, terminal equipment and storage medium Pending CN118363365A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410405140.0A CN118363365A (en) 2024-04-03 2024-04-03 Vehicle diagnosis method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410405140.0A CN118363365A (en) 2024-04-03 2024-04-03 Vehicle diagnosis method, device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN118363365A true CN118363365A (en) 2024-07-19

Family

ID=91881249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410405140.0A Pending CN118363365A (en) 2024-04-03 2024-04-03 Vehicle diagnosis method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN118363365A (en)

Similar Documents

Publication Publication Date Title
US11240317B2 (en) Diagnostic method and system for vehicle, and related device thereof
CN105373428B (en) Task scheduling method and system
CN111190810B (en) Method, device, server and storage medium for executing test task
CN104468638A (en) Distributed data processing method and system
CN112463375A (en) Data processing method and device
CN110377409A (en) A kind of task processing method, device, equipment and medium
CN110519144A (en) A kind of automotive diagnostic installation establishes the method, apparatus communicated and auto communication interface equipment with vehicle
CN111338779A (en) Resource allocation method, device, computer equipment and storage medium
CN116028290A (en) Solid state disk testing method, device, equipment and medium
AU2023200878B2 (en) Method, apparatus and device for software testing, and compute-readable storage medium
CN118363365A (en) Vehicle diagnosis method, device, terminal equipment and storage medium
CN107025126B (en) Resource scheduling method, NFVO and system
CN107968718A (en) A kind of method, apparatus and equipment for confirming standby usage state
WO2014109487A1 (en) Apparatus for managing application program and method therefor
CN111008124B (en) Task scheduling method and device for database test
CN114968508A (en) Task processing method, device, equipment and storage medium
CN109062702B (en) Computing resource allocation method, related device and readable storage medium
CN111309467A (en) Task distribution method and device, electronic equipment and storage medium
CN114503041B (en) Vehicle diagnosis method, diagnosis connector and diagnosis device
CN110908952B (en) Data processing method and device, CPU and computer
CN110211705A (en) Distribute the method, device and equipment of account resource
CN117215958B (en) Vehicle-mounted application separation design software and test method thereof
CN115811549B (en) Cloud edge resource management scheduling method and system supporting hybrid heterogeneous operation
CN113612514B (en) Media resource processing system, method and equipment
CN109831330B (en) Stack configuration method and 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