A vehicle diagnostic node optimization method, apparatus, device, and medium
By processing and recording time information in a specific order in the node combination between vehicle diagnostic equipment and electronic control unit, and optimizing the delay nodes, the interruption problem caused by delay in vehicle diagnosis is solved, and the success rate and efficiency of diagnosis are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- LAUNCH TECH CO LTD
- Filing Date
- 2024-03-27
- Publication Date
- 2026-07-10
Smart Images

Figure CN118280013B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle diagnostic technology, and in particular to a method, apparatus, equipment and medium for optimizing vehicle diagnostic nodes. Background Technology
[0002] Currently, during vehicle diagnostics, the diagnostic equipment sends a diagnostic request message to the electronic control unit (ECU), and the ECU then replies with a diagnostic response message based on the diagnostic request message. Both the process of sending the diagnostic response message to the diagnostic equipment and the process of sending the diagnostic request message to the ECU take time and may result in delays. This can cause the actual diagnostic time to exceed the maximum waiting time of the diagnostic equipment, further leading to diagnostic interruptions and reducing the success rate and efficiency of the diagnostic process.
[0003] In summary, how to prevent diagnostic interruptions and improve diagnostic success rate and efficiency is an urgent problem to be solved. Summary of the Invention
[0004] In view of this, the purpose of this invention is to provide a method, apparatus, device, and medium for optimizing vehicle diagnostic nodes, which can prevent diagnostic interruptions and improve diagnostic success rate and efficiency. The specific solution is as follows:
[0005] In a first aspect, this application discloses a vehicle diagnostic node optimization method, applied to a node combination containing at least one diagnostic node between a vehicle diagnostic device and the vehicle's electronic control unit, wherein each diagnostic node has the same time axis; wherein the method includes:
[0006] The system acquires delayed diagnostic requests sent by vehicle diagnostic equipment, processes each diagnostic node sequentially according to the forward node order, and appends first node information to the delayed diagnostic request after processing, until all diagnostic nodes have completed processing and appending to obtain a new request; the first node information includes the request acquisition time and the request processing completion time.
[0007] The new request is sent to the electronic control unit, which then generates a delayed diagnostic response based on the new request and sends it to the node assembly; the delayed diagnostic response includes the first node information;
[0008] The diagnostic nodes are controlled in reverse node order to process the delayed diagnostic response sequentially and append the second node information to the delayed diagnostic response after processing, until all diagnostic nodes have completed processing and appending to obtain a new response; the second node information includes the response acquisition time and the response processing completion time;
[0009] The new response is sent to the vehicle diagnostic device so that the vehicle diagnostic device can determine the processing time period of each diagnostic node based on all node information, and determine the diagnostic nodes with processing delays to be optimized based on the processing time period, so as to optimize the diagnostic nodes to be optimized.
[0010] Optionally, before obtaining the delayed diagnostic request sent by the vehicle diagnostic device, the method further includes:
[0011] Obtain the timeline reset command sent by the vehicle diagnostic equipment;
[0012] The time axis reset command is processed by controlling each diagnostic node in the forward node sequence to reset the time axis count corresponding to each diagnostic node to zero.
[0013] Optionally, the time axis reset command has a higher priority than the delay diagnosis request and the delay diagnosis response.
[0014] Optionally, sending the new response to the vehicle diagnostic device, so that the vehicle diagnostic device determines the processing time period for each diagnostic node based on all node information, and determines the diagnostic nodes with processing delays to be optimized based on the processing time periods, and optimizes the diagnostic nodes to be optimized, includes:
[0015] The new response is sent to the vehicle diagnostic device so that the vehicle diagnostic device can determine the processing time period of each diagnostic node and the transmission time period between two adjacent diagnostic nodes based on all node information, determine the diagnostic nodes with processing delays to be optimized based on the processing time periods, optimize the diagnostic nodes to be optimized, and determine two diagnostic nodes with transmission delays based on the transmission time periods, optimize the line between the two diagnostic nodes.
[0016] Optionally, sending the new response to the vehicle diagnostic device, so that the vehicle diagnostic device determines the processing time period for each diagnostic node based on all node information, and determines the diagnostic nodes with processing delays to be optimized based on the processing time periods, and optimizes the diagnostic nodes to be optimized, includes:
[0017] The new response is sent to the vehicle diagnostic device so that the vehicle diagnostic device can determine the processing time period of each diagnostic node based on all node information, and determine the diagnostic nodes with processing delays to be optimized based on the processing time period, and optimize the nodes to be optimized by means of processing process optimization and / or message transmission mode change to transparent transmission mode and / or skipping nodes.
[0018] Optionally, the step of determining the diagnostic nodes to be optimized based on the processing time period includes:
[0019] Determine the preset processing time;
[0020] The diagnostic nodes whose processing time exceeds the preset processing time are identified as diagnostic nodes to be optimized.
[0021] Secondly, this application discloses a vehicle diagnostic node optimization device, applied to a node combination including at least one diagnostic node between a vehicle diagnostic device and the vehicle's electronic control unit, wherein each diagnostic node has the same time axis; wherein the device includes:
[0022] The delayed diagnostic request processing module is used to acquire delayed diagnostic requests sent by the vehicle diagnostic equipment, control each diagnostic node to process the delayed diagnostic request in sequence according to the forward node order, and append the first node information to the delayed diagnostic request after processing, until all diagnostic nodes have completed processing and appending to obtain a new request; the first node information includes the request acquisition time and the request processing completion time;
[0023] A new request sending module is configured to send the new request to the electronic control unit, so that the electronic control unit generates a delayed diagnostic response based on the new request and sends it to the node combination; the delayed diagnostic response includes the first node information;
[0024] The delayed diagnostic response processing module is used to control each diagnostic node to process the delayed diagnostic response sequentially according to the reverse node order, and append the second node information to the delayed diagnostic response after processing, until all diagnostic nodes have completed processing and appending to obtain a new response; the second node information includes the response acquisition time and the response processing completion time.
[0025] The new response sending module is used to send new responses to the vehicle diagnostic equipment, so that the vehicle diagnostic equipment can determine the processing time period of each diagnostic node based on all node information, and determine the diagnostic nodes with processing delays to be optimized based on the processing time period, so as to optimize the diagnostic nodes to be optimized.
[0026] Optionally, the vehicle diagnostic node optimization device further includes:
[0027] The command acquisition module is used to acquire the time axis reset command sent by the vehicle diagnostic equipment;
[0028] The time axis processing module is used to control each of the diagnostic nodes to process the time axis reset command in the order of the forward nodes, so as to reset the time axis count corresponding to each diagnostic node to zero.
[0029] Thirdly, this application discloses an electronic device, including:
[0030] Memory, used to store computer programs;
[0031] A processor is used to execute the computer program to implement the aforementioned vehicle diagnostic node optimization method.
[0032] Fourthly, this application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned vehicle diagnostic node optimization method.
[0033] As can be seen, this application obtains delayed diagnostic requests sent by vehicle diagnostic equipment, controls each diagnostic node to process the delayed diagnostic requests sequentially according to the forward node sequence, and appends first node information to the delayed diagnostic requests after processing, until all diagnostic nodes have processed and appended the requests to obtain a new request; the first node information includes the request acquisition time and the request processing completion time; the new request is sent to the electronic control unit, so that the electronic control unit generates a delayed diagnostic response based on the new request and sends it to the node combination; the delayed diagnostic response includes the first node information; controls each diagnostic node to process the delayed diagnostic response sequentially according to the reverse node sequence, and appends second node information to the delayed diagnostic response after processing, until all diagnostic nodes have processed and appended the responses to obtain a new response; the second node information includes the response acquisition time and the response processing completion time; the new response is sent to the vehicle diagnostic equipment, so that the vehicle diagnostic equipment determines the processing time period of each diagnostic node based on all node information, and determines the diagnostic nodes with processing delays to be optimized based on the processing time period, so as to optimize the diagnostic nodes to be optimized. Therefore, this application records the request acquisition time, request processing completion time, response acquisition time, and response processing completion time of each diagnostic node. This facilitates the subsequent calculation of node processing time periods, specifically identifying delayed nodes, i.e., nodes to be optimized. This allows for direct optimization of delayed nodes, reducing latency, preventing diagnostic interruptions caused by latency, and improving the success rate and efficiency of vehicle diagnostics. Attached Figure Description
[0034] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0035] Figure 1 This is a flowchart of a vehicle diagnostic node optimization method disclosed in this application;
[0036] Figure 2 This is a flowchart of a time axis reset method disclosed in this application;
[0037] Figure 3 This application discloses a specific vehicle diagnostic node optimization method flowchart;
[0038] Figure 4 This is a schematic diagram of the structure of a vehicle diagnostic node optimization device disclosed in this application;
[0039] Figure 5 This is a structural diagram of an electronic device disclosed in this application. Detailed Implementation
[0040] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0041] Currently, during vehicle diagnostics, the diagnostic equipment sends a diagnostic request message to the electronic control unit (ECU), and the ECU then replies with a diagnostic response message based on the diagnostic request message. Both the process of sending the diagnostic response message to the diagnostic equipment and the process of sending the diagnostic request message to the ECU take time and may result in delays. This can cause the actual diagnostic time to exceed the maximum waiting time of the diagnostic equipment, further leading to diagnostic interruptions and reducing the success rate and efficiency of the diagnostic process.
[0042] Therefore, this application proposes a vehicle diagnostic node optimization scheme to prevent diagnostic interruptions and improve diagnostic success rate and efficiency.
[0043] This application discloses a vehicle diagnostic node optimization method, applied to a node combination containing at least one diagnostic node between a vehicle diagnostic device and the vehicle's electronic control unit, wherein each diagnostic node has the same time axis; see also Figure 1 As shown, the method includes:
[0044] Step S11: Obtain the delayed diagnostic request sent by the vehicle diagnostic device, control each diagnostic node to process the delayed diagnostic request in the forward node order, and append the first node information to the delayed diagnostic request after processing, until all diagnostic nodes have processed and appended the request to obtain a new request; the first node information includes the request acquisition time and the request processing completion time.
[0045] In this embodiment, each diagnostic node must have the same timeline; otherwise, the recorded times will not be comparable. Therefore, obtaining the delayed diagnostic request sent by the vehicle diagnostic device requires unifying the timelines of each diagnostic node.
[0046] In this embodiment, each diagnostic node acquires a delayed diagnostic request sent by the vehicle diagnostic device or the previous diagnostic node, and appends first node information to the delayed diagnostic request after processing it. It should be noted that the first node information also includes a node identifier to distinguish information from different nodes. It should also be noted that the previous and next diagnostic nodes are set in a forward node order.
[0047] It should be noted that processing the aforementioned delay diagnostic requests includes, but is not limited to, protocol format replacement and routing subnet lookup based on the electronic control unit's representation. It should also be noted that the forward node order is determined by each diagnostic node based on its routing subnet lookup. Each diagnostic node can either directly query all node paths leading to the electronic control unit or simply query the node path leading to the next node.
[0048] Step S12: Send the new request to the electronic control unit so that the electronic control unit generates a delayed diagnostic response based on the new request and sends it to the node combination; the delayed diagnostic response includes the first node information.
[0049] In this embodiment, the delayed diagnostic response also includes electronic control unit information; the electronic control unit information includes the request acquisition time, the request processing completion time, and the electronic control unit identifier.
[0050] Step S13: Control each diagnostic node to process the delayed diagnostic response sequentially according to the reverse node order, and append the second node information to the delayed diagnostic response after processing, until all diagnostic nodes have completed processing and appending to obtain a new response; the second node information includes the response acquisition time and response processing completion time.
[0051] In this embodiment, the forward node order and the reverse node order are the reverse order. The reverse node order can be directly determined by the forward node order. Specifically, each node will send back a delay diagnosis response based on the previously obtained delay diagnosis request. Alternatively, each diagnosis node can determine the order based on a routing subnet query. Each diagnosis node can either directly query all node paths leading to the diagnosis device or only query the node path leading to the previous node.
[0052] In this embodiment, each diagnostic node obtains the delayed diagnostic response fed back by the next diagnostic node or the electronic control unit, and after processing the delayed diagnostic response, appends the second node information to the delayed diagnostic response. It should be noted that the second node information also includes a node identifier to distinguish the information of different nodes.
[0053] Step S14: Send the new response to the vehicle diagnostic device so that the vehicle diagnostic device can determine the processing time period of each diagnostic node based on all node information, and determine the diagnostic nodes with processing delays to be optimized based on the processing time period, so as to optimize the diagnostic nodes to be optimized.
[0054] In this embodiment, determining the diagnostic nodes to be optimized based on the processing time period includes: determining a preset processing time; and identifying the diagnostic nodes whose processing time period exceeds the preset processing time (indicating a delay) as diagnostic nodes to be optimized.
[0055] It should be noted that if the processing time is too long and a delay occurs, the processing time should be shortened as much as possible to avoid the situation where the diagnostic device does not receive a response within the diagnostic time, resulting in an error and diagnostic interruption. It should also be noted that if the diagnostic device will respond that it has received the signal after the electronic control unit sends a diagnostic response to the diagnostic device, the electronic control unit will still report an error and the diagnostic will be interrupted if the response is not received within the specified time.
[0056] In this embodiment, there are many ways to optimize nodes, as described below: Sending the new response to the vehicle diagnostic device so that the vehicle diagnostic device determines the processing time period for each diagnostic node based on all node information, and determines the diagnostic nodes with processing delays to be optimized based on the processing time period, and then optimizing the diagnostic nodes to be optimized, includes: sending the new response to the vehicle diagnostic device so that the vehicle diagnostic device determines the processing time period for each diagnostic node based on all node information, and determines the diagnostic nodes with processing delays to be optimized based on the processing time period, and then optimizing the nodes to be optimized based on methods such as processing process optimization and / or changing the message transmission mode to transparent transmission mode and / or skipping nodes.
[0057] It should be noted that if the node to be optimized is an important node, it can only be optimized based on the processing optimization method; it should also be noted that the important node is generally a node with format conversion function, and no specific limitation is made here.
[0058] It should be noted that the optimization process includes eliminating unnecessary processing steps and changing the processing algorithm to improve speed.
[0059] It should be noted that the operation of the optimization node can be performed manually or automatically by the electronic control unit or diagnostic equipment.
[0060] In this embodiment, the processing time period includes a first processing time period determined based on the first node information and a second processing time period determined based on the second node information. If both the first and second processing time periods of the same diagnostic node are delayed, the diagnostic request process and diagnostic response process for that diagnostic node are optimized. If only one processing time period is delayed, the process corresponding to that processing time period can be optimized separately, or both processes can be optimized.
[0061] It should be noted that the first processing time period is obtained by subtracting the request retrieval time from the request processing completion time of the same diagnostic node; the second processing time period is obtained by subtracting the response retrieval time from the response processing completion time of the same diagnostic node.
[0062] It should be noted that both the delay diagnostic request and the delay diagnostic response are sent in the form of messages.
[0063] In summary, this application first synchronizes the timelines of each diagnostic node, and then sends latency test diagnostic messages. When processing and transmitting the test messages, each node appends the timeline points of each node it passes through to the test messages. The final returned test messages contain the time points of each node it passes through. The processing time period of each node can then be calculated. If the latency is too high, optimization can be performed on specific nodes, such as process optimization, transmission mode changes, or node skipping, to reduce the impact of latency.
[0064] As can be seen, this application records the request acquisition time, request processing completion time, response acquisition time, and response processing completion time of each diagnostic node. This facilitates subsequent calculation of node processing time periods, specifically identifying delayed nodes, i.e., nodes to be optimized. This allows for direct optimization of delayed nodes, reducing latency, preventing diagnostic interruptions due to latency, and improving the success rate and efficiency of vehicle diagnostics. Furthermore, by calculating both the first processing time period for the request process and the second processing time period for the response process of each diagnostic node, when a delay occurs in any processing time period, the corresponding processing process at that processing time can be addressed specifically, improving optimization accuracy.
[0065] This application discloses a timeline reset method. Compared to the previous embodiment, this embodiment further explains and optimizes the technical solution. See also... Figure 2 As shown, it specifically includes:
[0066] Step S21: Obtain the time axis reset command sent by the vehicle diagnostic equipment.
[0067] Step S22: Control each diagnostic node to process the time axis reset command according to the forward node sequence, so as to reset the time axis count corresponding to each diagnostic node to zero.
[0068] In this embodiment, before obtaining the delayed diagnostic request sent by the vehicle diagnostic device, it is also necessary to obtain the time axis reset command sent by the vehicle diagnostic device so as to reset the time axis count corresponding to each diagnostic node to zero, which facilitates the calculation of the diagnostic time of each diagnostic node and also facilitates the viewing of the total time required for the overall diagnostic process.
[0069] In this embodiment, the time axis reset command has a higher priority than the delay diagnosis request and the delay diagnosis response, to prevent the delay diagnosis request and the delay diagnosis response from being processed before the time axis is reset. It should be noted that commands transmitted on the bus have different priorities; higher priority commands are sent first, and lower priority commands are sent later.
[0070] It should be noted that the delayed diagnostic request and the delayed diagnostic response need to be sent with normal diagnostic priority to reflect the actual time delay. The diagnostic message content can be functions such as reading fault code data streams from a certain electronic control unit of the vehicle, and is not specifically limited here.
[0071] As can be seen, by resetting the time axis count corresponding to each diagnostic node to zero, this application facilitates the calculation of the diagnostic time of each diagnostic node and also facilitates the viewing of the total time required for the overall diagnostic process.
[0072] This application discloses a specific vehicle diagnostic node optimization method, applied to a node combination containing at least one diagnostic node between a vehicle diagnostic device and the vehicle's electronic control unit, wherein each diagnostic node has the same time axis; compared to the previous embodiment, this embodiment further explains and optimizes the technical solution. See also Figure 3 As shown, it specifically includes:
[0073] Step S31: Obtain the delayed diagnostic request sent by the vehicle diagnostic device, control each diagnostic node to process the delayed diagnostic request in the forward node order, and append the first node information to the delayed diagnostic request after processing, until all diagnostic nodes have processed and appended the request to obtain a new request; the first node information includes the request acquisition time and the request processing completion time.
[0074] Step S32: Send the new request to the electronic control unit so that the electronic control unit generates a delayed diagnostic response based on the new request and sends it to the node combination; the delayed diagnostic response includes the first node information.
[0075] Step S33: Control each diagnostic node to process the delayed diagnostic response sequentially according to the reverse node order, and append the second node information to the delayed diagnostic response after processing, until all diagnostic nodes have completed processing and appending to obtain a new response; the second node information includes the response acquisition time and response processing completion time.
[0076] Step S34: Send the new response to the vehicle diagnostic device so that the vehicle diagnostic device can determine the processing time period of each diagnostic node and the transmission time period between two adjacent diagnostic nodes based on all node information, determine the diagnostic node with processing delay to be optimized based on the processing time period, optimize the diagnostic node to be optimized, and determine two diagnostic nodes with transmission delay based on the transmission time period, optimize the line between the two diagnostic nodes.
[0077] In this embodiment, in addition to calculating the processing time period, the transmission time period also needs to be calculated. If the transmission time period exceeds the preset transmission time period, a delay occurs, indicating a problem with the line between the two diagnostic nodes. In this case, the line needs to be optimized. The specific optimization methods will not be described in detail here.
[0078] It should be noted that the transmission time period includes a first transmission time period determined based on the first node information and a second transmission time period determined based on the second node information.
[0079] It should be noted that the first transmission time period is obtained by calculating the difference between the request acquisition time of the adjacent next diagnostic node and the request processing completion time of the previous diagnostic node; the second transmission time period is obtained by calculating the difference between the request acquisition time of the adjacent previous diagnostic node and the request processing completion time of the next diagnostic node.
[0080] It should be noted that, under normal circumstances, both transmission time periods between two diagnostic nodes will experience delays simultaneously. Even if only one transmission time period experiences a delay, the line between the two diagnostic nodes still needs to be optimized.
[0081] As can be seen, this application calculates the transmission time period in addition to the processing time period to identify two adjacent diagnostic nodes where delay occurs, so as to optimize the line between the two adjacent diagnostic nodes, reduce delay, prevent diagnostic interruption caused by delay, and improve the success rate and efficiency of vehicle diagnosis.
[0082] Accordingly, this application also discloses a vehicle diagnostic node optimization device, applied to a node combination containing at least one diagnostic node between a vehicle diagnostic device and the vehicle's electronic control unit, wherein each diagnostic node has the same time axis. See [link to relevant documentation]. Figure 4 As shown, the device includes:
[0083] The delayed diagnostic request processing module 11 is used to acquire delayed diagnostic requests sent by the vehicle diagnostic equipment, control each diagnostic node to process the delayed diagnostic request in sequence according to the forward node order, and append the first node information to the delayed diagnostic request after processing, until all diagnostic nodes have completed processing and appending to obtain a new request; the first node information includes the request acquisition time and the request processing completion time.
[0084] The new request sending module 12 is used to send the new request to the electronic control unit, so that the electronic control unit generates a delayed diagnostic response based on the new request and sends it to the node combination; the delayed diagnostic response includes the first node information;
[0085] The delayed diagnostic response processing module 13 is used to control each diagnostic node to process the delayed diagnostic response sequentially according to the reverse node order, and append the second node information to the delayed diagnostic response after processing, until all diagnostic nodes have completed processing and appending to obtain a new response; the second node information includes the response acquisition time and the response processing completion time.
[0086] The new response sending module 14 is used to send a new response to the vehicle diagnostic device, so that the vehicle diagnostic device can determine the processing time period of each diagnostic node based on all node information, and determine the diagnostic nodes with processing delays to be optimized based on the processing time period, so as to optimize the diagnostic nodes to be optimized.
[0087] The more specific working process of each of the above modules can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.
[0088] As can be seen, this application records the request acquisition time, request processing completion time, response acquisition time, and response processing completion time of each diagnostic node, which facilitates the subsequent calculation of node processing time periods. This allows for the specific identification of delayed nodes, i.e., nodes to be optimized, enabling direct optimization of delayed nodes, reducing latency, preventing diagnostic interruptions caused by latency, and improving the success rate and efficiency of vehicle diagnostics.
[0089] In one embodiment, the vehicle diagnostic node optimization device further includes:
[0090] The command acquisition module is used to acquire the time axis reset command sent by the vehicle diagnostic equipment;
[0091] The time axis processing module is used to control each of the diagnostic nodes to process the time axis reset command in the order of the forward nodes, so as to reset the time axis count corresponding to each diagnostic node to zero.
[0092] In one embodiment, the new reply sending module includes:
[0093] The duration determination unit is used to determine the preset processing duration;
[0094] A node determination unit is used to determine diagnostic nodes whose processing time exceeds the preset processing time as diagnostic nodes to be optimized.
[0095] Furthermore, embodiments of this application also provide an electronic device. Figure 5 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application.
[0096] Figure 5 This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of this application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a display screen 23, an input / output interface 24, a communication interface 25, a power supply 26, and a communication bus 27. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the vehicle diagnostic node optimization method disclosed in any of the foregoing embodiments. Furthermore, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0097] In this embodiment, the power supply 26 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 25 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 24 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.
[0098] Furthermore, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk, or optical disk, etc. The resources stored thereon may include computer programs 221, and the storage method may be temporary storage or permanent storage. The computer programs 221 may include, in addition to computer programs capable of performing the vehicle diagnostic node optimization method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, computer programs capable of performing other specific tasks.
[0099] Furthermore, embodiments of this application also disclose a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned vehicle diagnostic node optimization method.
[0100] The specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.
[0101] The various embodiments in this application are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. For the same or similar parts between the various embodiments, refer to each other. As for the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and relevant parts can be referred to in the method section.
[0102] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0103] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0104] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0105] The above provides a detailed description of a vehicle diagnostic node optimization method, apparatus, device, and storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for optimizing vehicle diagnostic nodes, characterized in that, A node combination comprising at least two diagnostic nodes, applied between a vehicle diagnostic device and the vehicle's electronic control unit, wherein each diagnostic node has the same time axis; wherein the method includes: The system acquires delayed diagnostic requests sent by vehicle diagnostic equipment, processes each diagnostic node sequentially according to the forward node order, and appends first node information to the delayed diagnostic request after processing, until all diagnostic nodes have completed processing and appending to obtain a new request; the first node information includes the request acquisition time and the request processing completion time. The new request is sent to the electronic control unit, which then generates a delayed diagnostic response based on the new request and sends it to the node assembly; the delayed diagnostic response includes the first node information; The diagnostic nodes are controlled in reverse node order to process the delayed diagnostic response sequentially and append the second node information to the delayed diagnostic response after processing, until all diagnostic nodes have completed processing and appending to obtain a new response; the second node information includes the response acquisition time and the response processing completion time; The new response is sent to the vehicle diagnostic device so that the vehicle diagnostic device can determine the processing time period of each diagnostic node based on all node information, and determine the diagnostic nodes with processing delays to be optimized based on the processing time period, so as to optimize the diagnostic nodes to be optimized.
2. The vehicle diagnostic node optimization method according to claim 1, characterized in that, Before obtaining the delayed diagnostic request sent by the vehicle diagnostic device, the method further includes: Obtain the timeline reset command sent by the vehicle diagnostic equipment; The time axis reset command is processed by controlling each diagnostic node in the forward node sequence to reset the time axis count corresponding to each diagnostic node to zero.
3. The vehicle diagnostic node optimization method according to claim 2, characterized in that, The time axis reset command has a higher priority than the delay diagnosis request and the delay diagnosis response.
4. The vehicle diagnostic node optimization method according to claim 1, characterized in that, The step of sending the new response to the vehicle diagnostic device, so that the vehicle diagnostic device can determine the processing time period for each diagnostic node based on all node information, and determine the diagnostic nodes with processing delays to be optimized based on the processing time periods, and optimize the diagnostic nodes to be optimized, includes: The new response is sent to the vehicle diagnostic device so that the vehicle diagnostic device can determine the processing time period of each diagnostic node and the transmission time period between two adjacent diagnostic nodes based on all node information, determine the diagnostic nodes with processing delays to be optimized based on the processing time periods, optimize the diagnostic nodes to be optimized, and determine two diagnostic nodes with transmission delays based on the transmission time periods, optimize the line between the two diagnostic nodes.
5. The vehicle diagnostic node optimization method according to claim 1, characterized in that, The step of sending the new response to the vehicle diagnostic device, so that the vehicle diagnostic device can determine the processing time period for each diagnostic node based on all node information, and determine the diagnostic nodes with processing delays to be optimized based on the processing time periods, and optimize the diagnostic nodes to be optimized, includes: The new response is sent to the vehicle diagnostic device so that the vehicle diagnostic device can determine the processing time period of each diagnostic node based on all node information, and determine the diagnostic nodes with processing delays to be optimized based on the processing time period, and optimize the diagnostic nodes to be optimized by means of processing process optimization and / or message transmission mode change to transparent transmission mode and / or skipping nodes.
6. The vehicle diagnostic node optimization method according to claim 1, characterized in that, The diagnostic nodes to be optimized based on the processing time period include: Determine the preset processing time; The diagnostic nodes whose processing time exceeds the preset processing time are identified as diagnostic nodes to be optimized.
7. A vehicle diagnostic node optimization device, characterized in that, A node combination comprising at least two diagnostic nodes, each having the same time axis, applied between vehicle diagnostic equipment and the vehicle's electronic control unit; wherein the device includes: The delayed diagnostic request processing module is used to acquire delayed diagnostic requests sent by the vehicle diagnostic equipment, control each diagnostic node to process the delayed diagnostic request in sequence according to the forward node order, and append the first node information to the delayed diagnostic request after processing, until all diagnostic nodes have completed processing and appending to obtain a new request; the first node information includes the request acquisition time and the request processing completion time; A new request sending module is configured to send the new request to the electronic control unit, so that the electronic control unit generates a delayed diagnostic response based on the new request and sends it to the node combination; the delayed diagnostic response includes the first node information; The delayed diagnostic response processing module is used to control each diagnostic node to process the delayed diagnostic response sequentially according to the reverse node order, and append the second node information to the delayed diagnostic response after processing, until all diagnostic nodes have completed processing and appending to obtain a new response; the second node information includes the response acquisition time and the response processing completion time. The new response sending module is used to send new responses to the vehicle diagnostic equipment, so that the vehicle diagnostic equipment can determine the processing time period of each diagnostic node based on all node information, and determine the diagnostic nodes with processing delays to be optimized based on the processing time period, so as to optimize the diagnostic nodes to be optimized.
8. The vehicle diagnostic node optimization device according to claim 7, characterized in that, Also includes: The command acquisition module is used to acquire the time axis reset command sent by the vehicle diagnostic equipment; The time axis processing module is used to control each of the diagnostic nodes to process the time axis reset command in the order of the forward nodes, so as to reset the time axis count corresponding to each diagnostic node to zero.
9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the vehicle diagnostic node optimization method as described in any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that, Used to store a computer program; wherein, when the computer program is executed by a processor, it implements the vehicle diagnostic node optimization method as described in any one of claims 1 to 6.