Vehicle diagnostic data acquisition method and related device

By concurrently transmitting diagnostic data between the diagnostic equipment and the communication equipment, the problem of inefficient acquisition of diagnostic data by automotive diagnostic equipment in the prior art is solved, and more efficient data acquisition and better user experience are achieved.

CN119596898APending Publication Date: 2025-03-11AUTEL INTELLIGENT TECHNOLOGY CORP LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411550668.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-01
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

When obtaining vehicle diagnostic data, existing automotive diagnostic equipment needs to traverse multiple sets of pin pairs in sequence, resulting in low communication efficiency, reduced diagnostic efficiency and poor user experience.

Method used

By establishing at least two types of communication modules between the diagnostic device and the communication device, transmitting diagnostic data concurrently, and then obtaining diagnostic data of at least two sets of target pin pairs by using the communication device, concurrently obtaining vehicle diagnostic data.

Benefits of technology

Improves the efficiency of diagnostic data acquisition, reduces waiting time, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119596898A_ABST
    Figure CN119596898A_ABST
Patent Text Reader

Abstract

The invention relates to a vehicle diagnostic data acquisition method, the method is applied to diagnostic equipment, the diagnostic equipment is connected with communication equipment, the communication equipment comprises a communication interface and at least two types of first communication modules, and the diagnostic equipment comprises at least two types of second communication modules. The communication equipment is connected with an electronic control unit of a vehicle through a communication interface, the communication interface is provided with a plurality of groups of pin pairs, and the electronic control unit sends diagnosis data to the pin pairs of the communication interface; the method comprises the following steps: sending pin communication parameters to communication equipment, wherein the pin communication parameters comprise a first identification code of a target pin pair and a first communication mode parameter corresponding to the first identification code; and receiving diagnosis data of the target pin pair through a second communication module corresponding to the first communication mode parameter. According to the method, the diagnosis data is transmitted and acquired concurrently through the diagnosis equipment and the at least two types of communication modules of the communication equipment, the data acquisition efficiency is improved, and the waiting time is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of automobile diagnosis technology, and in particular to a vehicle diagnostic data acquisition method, diagnostic equipment, communication equipment, vehicle diagnostic data acquisition system and storage medium. Background Art

[0002] With the development of society and the advancement of science and technology, the design and production of automobiles have increasingly adopted Electronic Control Units (ECU). On the one hand, this has made the degree of automation of automobiles higher and higher, the performance has become more superior, and the operation has become more convenient and flexible. On the other hand, it has also put forward higher requirements for automobile maintenance.

[0003] In automobile diagnosis, maintenance personnel or users can operate automobile diagnostic equipment, connect VCI (Vehicle Communication Interface, VCI) communication equipment, and obtain bus data through OBD (On-Board Diagnostics) interface to realize automobile diagnosis in certain scenarios (such as battery pack diagnosis of new energy vehicles). Due to the differences in design of automobiles of different brands and models, automobile ECU uses different pin pairs of OBD interface to send diagnostic data to the communication bus, resulting in diagnostic data distributed on one or more groups of pin pairs. Since the OBD interface has multiple groups of pin pairs, and diagnostic data may exist on each group of pin pairs, if it is not clear in advance which group of pin pairs is used to send diagnostic data, when obtaining diagnostic data on the communication bus through the diagnostic equipment, it is necessary to traverse all pin pairs in turn to obtain diagnostic data that may exist on all pin pairs. However, this communication process (i.e., obtaining data on each group of pin pairs in turn) has low communication efficiency. Maintenance personnel or users need to wait for each group of pin pairs to obtain possible data before the diagnostic equipment can perform subsequent processing. The data acquisition efficiency is low, which leads to reduced diagnostic efficiency and poor user experience. Summary of the invention

[0004] In view of this, one of the purposes of an embodiment of the present invention is to provide a vehicle diagnostic data acquisition method, a diagnostic device, a communication device, a vehicle diagnostic data acquisition system and a storage medium. After the communication device acquires the diagnostic data of at least two groups of target pin pairs, the method concurrently transmits the diagnostic data through at least two types of communication modules of the diagnostic device and the communication device, so that the diagnostic device can concurrently acquire the vehicle's diagnostic data, thereby improving data acquisition efficiency, reducing waiting time and improving user experience.

[0005] To solve the above technical problems, the embodiments of the present invention provide the following technical solutions:

[0006] In a first aspect, an embodiment of the present invention provides a vehicle diagnostic data acquisition method, which is applied to a diagnostic device, wherein the diagnostic device is connected to a communication device, wherein the communication device includes a communication interface and at least two types of first communication modules, wherein the diagnostic device includes at least two types of second communication modules, wherein each type of first communication module corresponds to one type of second communication module, wherein the communication device is connected to an electronic control unit of a vehicle via the communication interface, wherein the communication interface has multiple groups of pin pairs, and the electronic control unit sends diagnostic data to the pin pairs of the communication interface;

[0007] The method comprises:

[0008] Sending pin communication parameters to the communication device, the pin communication parameters including a first identification code of a target pin pair and a first communication mode parameter corresponding to the first identification code, the number of the target pin pairs including at least two groups;

[0009] The diagnostic data of the target pin pair is received through the second communication module corresponding to the first communication mode parameter, wherein after the communication device obtains the diagnostic data on the target pin pair, the diagnostic data of the target pin pair is sent to the diagnostic device through the first communication module corresponding to the first communication mode parameter.

[0010] In some embodiments, the diagnostic device further includes: a cache module, and the method further includes:

[0011] The diagnostic data of the target pin pair is stored in the cache module, and a first identification code corresponding to the diagnostic data is recorded.

[0012] In some embodiments, the method further comprises:

[0013] If the amount of diagnostic data corresponding to the first identification code is greater than or equal to a preset amount threshold, outputting the diagnostic data corresponding to the first identification code in the cache module to a diagnostic application of the diagnostic device;

[0014] If the amount of diagnostic data corresponding to the first identification code is less than the preset number threshold, and the duration for the target pin pair corresponding to the first identification code to obtain diagnostic data is greater than or equal to the preset time threshold, the diagnostic data corresponding to the first identification code in the cache module is output to the diagnostic application of the diagnostic device.

[0015] In some embodiments, before sending the pin communication parameter to the communication device, the method further includes:

[0016] Determine the target pin pair;

[0017] Based on the number of types of the first communication module or the second communication module and the number of the target pin pairs, determining a first communication mode parameter corresponding to the first identification code of the target pin pair, wherein the first communication mode parameter includes second identification codes of the first communication module and the second communication module;

[0018] The first identification code of the target pin pair and the first communication mode parameter corresponding to the first identification code are combined to obtain the pin communication parameter.

[0019] In some embodiments, determining the first communication mode parameter corresponding to the first identification code of the target pin pair based on the number of types of the first communication module or the second communication module and the number of the target pin pairs includes:

[0020] If the number of types of the first communication module or the second communication module is greater than or equal to the number of the target pin pairs, a first communication module and a second communication module of a type are respectively assigned to each group of the target pin pairs, and the second identification code of the first communication module and the second communication module assigned to each of the target pin pairs is used as the first communication mode parameter corresponding to the first identification code of each group of the target pin pairs, wherein each group of the target pin pairs corresponds to a first communication module and a second communication module of a type;

[0021] or,

[0022] If the number of types of the first communication module or the second communication module is less than the number of target pin pairs, at least two types of first communication modules and second communication modules are respectively assigned to a first number of target pin pairs, and the target pin pairs to which the first communication modules and the second communication modules are not assigned are counted, where the first number is the number of types of the first communication module or the second communication module;

[0023] Among the first communication modules and the second communication modules of various types, one or more types of reference communication modules having a data transmission rate greater than or equal to a rate threshold are screened out, and the reference communication modules are allocated to the target pin pairs to which the first communication modules and the second communication modules are not allocated, wherein each type of the first communication modules and the second communication modules corresponds to one or more groups of target pin pairs;

[0024] The second identification codes of the first communication module and the second communication module allocated to each of the target pin pairs are used as the first communication mode parameters corresponding to the first identification codes of each group of the target pin pairs to obtain the first communication mode parameters.

[0025] In some embodiments, the first communication module is any one of a Wi-Fi module, a USB module, a Bluetooth module and an Ethernet module, and the second communication module is any one of a Wi-Fi module, a USB module, a Bluetooth module and an Ethernet module.

[0026] In a second aspect, an embodiment of the present invention provides a vehicle diagnostic data acquisition method, which is applied to a communication device, wherein the communication device is connected to a diagnostic device, wherein the communication device includes a communication interface and at least two types of first communication modules, wherein the diagnostic device includes at least two types of second communication modules, wherein each type of first communication module corresponds to one type of second communication module, wherein the communication device is connected to an electronic control unit of a vehicle via the communication interface, wherein the communication interface has multiple groups of pin pairs, and wherein the electronic control unit sends diagnostic data to the pin pairs of the communication interface;

[0027] The method comprises:

[0028] Receiving pin communication parameters sent by the diagnostic device, wherein the pin communication parameters include a first identification code of a target pin pair and a first communication mode parameter corresponding to the first identification code, and the number of the target pin pairs includes at least two groups;

[0029] acquiring diagnostic data from the target pin pair;

[0030] After acquiring the diagnostic data on the target pin pair, the diagnostic data of the target pin pair is sent to the diagnostic device through the first communication module corresponding to the first communication mode parameter, wherein the diagnostic device receives the diagnostic data of the target pin pair through the second communication module corresponding to the first communication mode parameter.

[0031] In some embodiments, before sending the diagnostic data of the target pin pair to the diagnostic device through the first communication module corresponding to the first communication mode parameter, the method further includes:

[0032] After obtaining the diagnostic data of the target pin pair, the first identification code of the target pin pair is added to the diagnostic data of the target pin pair, wherein each group of target pin pairs corresponds to a unique first identification code, and the first identification code represents the target pin pair in the communication interface of the communication device for obtaining diagnostic data.

[0033] In a third aspect, an embodiment of the present invention provides a diagnostic device, including:

[0034] A first processor, a first memory and at least two types of second communication modules communicatively connected to the first processor;

[0035] The first memory stores computer program instructions executable by the first processor. When the computer program instructions are called by the first processor, the first processor executes any one of the vehicle diagnostic data acquisition methods proposed in the first aspect.

[0036] In a fourth aspect, an embodiment of the present invention provides a communication device, including:

[0037] A second processor, and a second memory, a communication interface, and at least two types of first communication modules that are communicatively connected to the second processor;

[0038] The second memory stores computer program instructions executable by the second processor. When the computer program instructions are called by the second processor, the second processor executes any one of the vehicle diagnostic data acquisition methods proposed in the second aspect.

[0039] In a fifth aspect, an embodiment of the present invention provides a vehicle diagnostic data acquisition system, comprising:

[0040] The diagnostic device proposed in the third aspect and the communication device proposed in the fourth aspect.

[0041] In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which is stored computer program instructions executable by a processor, and when the computer program instructions are called by the processor, the processor executes any one of the vehicle diagnostic data acquisition methods proposed in the first aspect or the second aspect.

[0042] Beneficial effects of the embodiments of the present invention: Different from the prior art, the vehicle diagnostic data acquisition method provided by the embodiments of the present invention is applied to a diagnostic device, the diagnostic device is connected to a communication device, the communication device includes a communication interface and at least two types of first communication modules, the diagnostic device includes at least two types of second communication modules, each type of first communication module corresponds to one type of second communication module, the communication device is connected to the electronic control unit of the vehicle through the communication interface, the communication interface has multiple groups of pin pairs, and the electronic control unit sends diagnostic data to the pin pairs of the communication interface; the method includes: sending pin communication parameters to the communication device, the pin communication parameters include a first identification code of the target pin pair and a first communication mode parameter corresponding to the first identification code, and the number of target pin pairs includes at least two groups; receiving the diagnostic data of the target pin pair through the second communication module corresponding to the first communication mode parameter, wherein, after obtaining the diagnostic data on the target pin pair, the communication device sends the diagnostic data of the target pin pair to the diagnostic device through the first communication module corresponding to the first communication mode parameter.

[0043] The vehicle diagnostic data acquisition method provided in the embodiment of the present invention concurrently transmits the diagnostic data through at least two types of communication modules of the diagnostic device and the communication device after the communication device acquires the diagnostic data of at least two groups of target pin pairs, so that the diagnostic device can concurrently acquire the vehicle's diagnostic data, thereby improving data acquisition efficiency, reducing waiting time, and improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following is a brief introduction to the drawings required for the description of the prior art or the embodiments. Obviously, the drawings described below only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope of protection. For those of ordinary skill in the art, other related drawings can also be obtained based on these drawings without creative work.

[0045] Figure 1 is a schematic diagram of the structure of a vehicle diagnostic data acquisition system provided by some embodiments of the present invention;

[0046] Figure 2 is a schematic diagram of the structure of a diagnostic device provided by some embodiments of the present invention;

[0047] Figure 3 is a schematic diagram of the structure of a communication device provided by some embodiments of the present invention;

[0048] Figure 4 is a schematic diagram of the interaction of various devices in a vehicle diagnostic data acquisition system provided by some embodiments of the present invention;

[0049] Figure 5 is a flow chart of a vehicle diagnostic data acquisition method (applied to a diagnostic device) provided in some embodiments of the present invention;

[0050] Figure 6 It is a flowchart of a vehicle diagnostic data acquisition method (applied to a communication device) provided in some embodiments of the present invention. DETAILED DESCRIPTION

[0051] In order to make the purpose and advantages of the embodiments of the present invention easier to understand, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The detailed description of the embodiments of the present invention in the drawings below does not limit the scope of protection claimed by the present invention, but only represents the selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0052] It should be noted that, if no conflict is constituted, the various technical features involved in the embodiments of the present invention described below can be combined with each other, and are all within the scope of protection of the present invention. In addition, although the functional modules are divided in the device or structural schematic diagram, and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order than the module division in the device, or in a different order than in the flow chart. In addition, the "first", "second", "third" and other similar expressions used herein do not limit the data and execution order, but are only for the purpose of convenience of explanation and to distinguish between the same or similar items with basically the same functions and effects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features.

[0053] Unless otherwise defined, the technical terms and scientific terms used in this specification have the same meanings as those generally understood by those of ordinary skill in the art of the present invention. The terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. It should be understood that the term "and / or" used in this specification includes any and all combinations of one or more of the related listed items.

[0054] See also Figure 1 , Figure 1 The structure diagram of the vehicle diagnostic data acquisition system 100 provided in some embodiments of the present invention is schematically shown.

[0055] like Figure 1 As shown, the vehicle diagnostic data acquisition system 100 includes a diagnostic device 10 and a communication device 20 that are communicatively connected. The diagnostic device 10 and the communication device 20 are communicatively connected via a network, and examples of the aforementioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. For example, in some embodiments, the diagnostic device 10 and the communication device 20 establish a communication connection via technologies such as Wi-Fi, Bluetooth, and NFC, and the diagnostic device 10 and the communication device 20 communicate via a predetermined communication protocol, wherein the aforementioned communication protocol may be a protocol such as TCP / IP and UDP.

[0056] The communication device 20 is also connected to the vehicle 30 for communication, so that the diagnostic device 10 obtains the diagnostic data of the vehicle 30 through the communication device 20 , and the diagnostic device 10 diagnoses the fault or abnormality of the vehicle 30 according to the diagnostic data analysis, thereby realizing the diagnosis of the vehicle 30 .

[0057] In some embodiments, the communication device 20 may be a VCI device, which is an electronic device with computing and processing capabilities, and is integrated with a communication interface, such as an OBD interface. The communication device 20 may be connected to the OBD interface of the vehicle 30 through the OBD interface, and the communication device 20 may convert the data on the bus of the vehicle 30 into data that can be recognized by the diagnostic device 10, and may also convert the data sent by the diagnostic device 10 into data that can be recognized by the bus of the vehicle 30. In addition, the communication device 20 may have a wireless communication function, and may be connected to the diagnostic device 10 through a network such as Wi-Fi, Bluetooth, etc., or may be connected to the diagnostic device 10 through a wired connection to make the communication more reliable. In some embodiments, the communication device 20 also includes a touch display screen, so that it can receive the operator's operation or display operation instructions, diagnostic conditions, and related data.

[0058] In some feasible implementations, the communication device 20 includes a communication device and a mobile terminal that are independent of each other. Here, the communication device can be a VCI device, and the mobile terminal can be a tablet computer, a smart phone, or various forms of handheld smart devices. In this embodiment, the communication device is wired to the OBD interface of the vehicle 30, and is also wired to the mobile terminal, such as a USB wired connection to the mobile terminal. The mobile terminal is connected to the diagnostic device 10 through a network such as WIFI, Bluetooth, etc., and the mobile terminal can also be connected to the diagnostic device 10 through a wired connection to make the communication more reliable. It can be understood that the mobile terminal includes a touch display screen, so that it can receive the operator's operation or display operation instructions, diagnostic conditions and related data.

[0059] Specifically, the diagnostic device 10 is a portable intelligent vehicle fault self-test instrument for detecting vehicle faults. The user can use the diagnostic device 10 to quickly read the faults occurring in the vehicle's electronic control system, and display the fault information through the liquid crystal display screen to quickly find out the location and cause of the fault. It should be understood that the diagnostic device 10 can use the existing vehicle diagnostic instrument on the market, which includes a host computer and a slave computer, and the two can be connected by wired or wireless connection, such as by USB cable, Bluetooth, WIFI, etc. The host computer can be a tablet, computer or other device for human-computer interaction. The slave computer can be a VCI device for communication connection between the host computer and the communication device 20. The structure and working principle of the diagnostic device 10 are well known to those skilled in the art and will not be described in detail here.

[0060] The above is only an example of the vehicle diagnostic data acquisition system 100, and the vehicle diagnostic data acquisition system 100 can also be implemented by other hardware plus software methods. For example, the function of the communication device 20 can be implemented by software, and a network communication interface can be added to the software of the diagnostic device 10 to transmit data with the communication device 20 through the network communication interface.

[0061] It should be understood that Figure 1 The vehicle diagnostic data acquisition system 100 shown is only for illustration and does not impose any limitation on the structure and type of other vehicle diagnostic data acquisition systems. For example, in some other embodiments, the vehicle diagnostic data acquisition system may further include a server, and after the communication device acquires the diagnostic data from the vehicle, the communication device transmits the diagnostic data to the server, and the server then forwards the diagnostic data to the diagnostic device, thereby realizing remote diagnosis of the fault of the relevant vehicle.

[0062] To facilitate understanding of the vehicle diagnostic data acquisition method provided by the embodiment of the present invention, the diagnostic device and the communication device provided by the embodiment of the present invention are first introduced in detail.

[0063] See also Figure 2 , Figure 2 The structural diagram of the diagnostic device 10 provided in some embodiments of the present invention is schematically shown.

[0064] Specifically, Figure 2 As shown, the diagnostic device 10 includes a first processor 11, a first memory 12, a cache module 14 and at least two types of second communication modules 13 that are communicatively connected. Figure 2 Take the bus system 15 connected to a first processor as an example. The second communication module 13 is used to communicate with the communication device 20, so that the diagnostic device 10 completes communication control and data transmission with the communication device 20 through the second communication module 13. The cache module 14 is used to cache received diagnostic data.

[0065] The various components of the diagnostic device 10 are coupled together via a bus system 15, which is used to realize the connection and communication between these components. It is easy to understand that the bus system 15 may include a power bus, a control bus, and a status signal bus in addition to a data bus. However, for the sake of clarity and brevity, Figure 2 In the figure, various buses are labeled as bus system 15. It can be understood that Figure 2 The structure of the diagnostic device 10 shown in the embodiment is only illustrative, and does not impose any limitation on the structure of the above-mentioned diagnostic device 10. In some embodiments, the above-mentioned diagnostic device 10 may also include Figure 2 More or fewer components as shown, or with Figure 2 Different configurations are shown.

[0066] The first processor 11 is used to provide computing and control capabilities to control the diagnostic device 10 to perform corresponding tasks. For example, the diagnostic device 10 is controlled to perform any one of the vehicle diagnostic data acquisition methods provided in the first aspect of the embodiment of the present invention, or to perform any one of the steps in any possible implementation of any one of the vehicle diagnostic data acquisition methods provided in the second aspect of the embodiment of the present invention. It should be understood that the first processor 11 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0067] The first memory 12, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs, instructions and modules, such as programs, instructions and modules corresponding to the vehicle diagnostic data acquisition method provided in the first aspect of the embodiment of the present invention. In some embodiments, the first memory 12 may include a program storage area and a data storage area, and the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the first processor 11, etc. The first processor 11 executes various functional applications and data processing of the diagnostic device 10 by running the non-transitory software programs, instructions and modules stored in the first memory 12, so as to implement any vehicle diagnostic data acquisition method provided in the first aspect of the embodiment of the present invention, or execute any possible implementation of any vehicle diagnostic data acquisition method provided in the first aspect of the embodiment of the present invention. Among them, the first memory 12 may include a high-speed random access memory, and may also include a non-transitory memory. For example, at least one disk storage device, a flash memory device or other non-transitory solid-state storage device. In some embodiments, the first memory 12 may also include a memory remotely arranged relative to the first processor 11, and these remotely arranged memories may be connected to the first processor 11 through a communication network. It should be understood that examples of the above-mentioned communication networks include but are not limited to the Internet, corporate intranets, local area networks, mobile communication networks and combinations thereof.

[0068] See also Figure 3 , Figure 3 The structure diagram of the communication device 20 provided in some embodiments of the present invention is schematically shown.

[0069] Specifically, Figure 3 As shown, the communication device 20 includes a second processor 21, a second memory 22, a communication interface 24 and at least two types of first communication modules 23 connected in communication. Figure 3 Take the bus system 25 connection and a second processor as an example. The first communication module 23 is used to communicate with the diagnostic device 10, so that the communication device 20 completes the communication control and data transmission with the diagnostic device 10 through the first communication module 23. The communication interface 24 has multiple groups of pin pairs, and the communication interface 24 is used to communicate with the vehicle 30. Specifically, the communication interface 24 is connected to the electronic control unit of the vehicle 30 so that the electronic control unit of the vehicle 30 sends the diagnostic data to the pin pair of the communication interface 24. In an embodiment of the present invention, each type of first communication module 23 in the communication device 20 corresponds to a type of second communication module 13 in the diagnostic device 10. For example, when the first communication module 23 is a Bluetooth module, the second communication module 13 is also a Bluetooth module; if the first communication module 23 is a Wi-Fi module, the second communication module 13 is also a Wi-Fi module.

[0070] The components of the communication device 20 are coupled together via a bus system 25, which is used to realize the connection and communication between these components. It is easy to understand that the bus system 25 may include a power bus, a control bus, and a status signal bus in addition to a data bus. However, for the sake of clarity and brevity, Figure 3 In the figure, various buses are labeled as bus system 25. It can be understood that Figure 3 The structure of the communication device 20 shown in the embodiment is only exemplary, and does not impose any limitation on the structure of the communication device 20. In some embodiments, the communication device 20 may also include Figure 3 More or fewer components as shown, or with Figure 3 Different configurations are shown.

[0071] The second processor 21 is used to provide computing and control capabilities to control the communication device 20 to perform corresponding tasks. For example, the communication device 20 is controlled to perform any one of the vehicle diagnostic data acquisition methods provided in the second aspect of the embodiment of the present invention, or to perform any one of the steps in any possible implementation of any one of the vehicle diagnostic data acquisition methods provided in the second aspect of the embodiment of the present invention. It should be understood that the second processor 21 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0072] The second memory 22, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs, instructions and modules, such as programs, instructions and modules corresponding to the vehicle diagnostic data acquisition method provided in the second aspect of the embodiment of the present invention. In some embodiments, the second memory 22 may include a program storage area and a data storage area, and the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the second processor 21, etc. The second processor 21 executes various functional applications and data processing of the communication device 20 by running the non-transitory software programs, instructions and modules stored in the second memory 22, so as to implement any vehicle diagnostic data acquisition method provided in the second aspect of the embodiment of the present invention, or execute any possible implementation of any vehicle diagnostic data acquisition method provided in the second aspect of the embodiment of the present invention. Among them, the second memory 22 may include a high-speed random access memory, and may also include a non-transitory memory. For example, at least one disk storage device, a flash memory device or other non-transitory solid-state storage device. In some embodiments, the second memory 22 may also include a memory remotely arranged relative to the second processor 21, and these remotely arranged memories may be connected to the second processor 21 through a communication network. It should be understood that examples of the above-mentioned communication networks include but are not limited to the Internet, corporate intranets, local area networks, mobile communication networks and combinations thereof.

[0073] See also Figure 4 , Figure 4The diagram schematically shows the interaction between the diagnostic device and the communication device in the vehicle diagnostic data acquisition system provided by some embodiments of the present invention. Figure 4 In the embodiment, the diagnostic device 10 is connected to the communication device 20 for communication, and the communication device 20 is connected to the vehicle 30 for communication.

[0074] Specifically, the electronic control unit of the vehicle 30 sends its own diagnostic data to the communication device 20 through a communication connection. Specifically, the diagnostic data is sent to a pin pair of the communication interface of the communication device 20 .

[0075] Specifically, after establishing a communication connection with the communication device 20, the diagnostic device 10 sends pin communication parameters to the communication device 20. The pin communication parameters include a first identification code of the target pin pair and a first communication mode parameter corresponding to the first identification code, the first communication mode parameter includes a second identification code of the first communication module and the second communication module, and the diagnostic data and communication device can transmit diagnostic data on the target pin pair through the first communication module and the second communication module according to the first communication mode parameter. The number of target pin pairs includes at least two groups.

[0076] After receiving the pin communication parameters, the communication device 20 obtains the diagnostic data of the vehicle 30 from its corresponding target pin pair, and then transmits the obtained diagnostic data of the target pin pair (i.e., the diagnostic data of the vehicle 30) to the diagnostic device 10 through the first communication module corresponding to the first communication mode parameters according to the pin communication parameters.

[0077] The diagnostic device 20 receives the diagnostic data of the target pin pair (i.e., the diagnostic data of the vehicle 30) through the second communication module corresponding to the first communication mode parameter according to the pin communication parameter, and then analyzes and processes the diagnostic data to obtain the diagnostic result of the vehicle 30. Obviously, the diagnostic result includes information such as faults, abnormalities or other situations.

[0078] It can be understood from the above that the implementation and execution subject of any vehicle diagnostic data acquisition method provided in the first aspect of the embodiment of the present invention can be any suitable type of diagnostic device with certain computing and control capabilities, for example, it can be implemented and executed by the above-mentioned diagnostic device 10. The implementation and execution subject of any vehicle diagnostic data acquisition method provided in the second aspect of the embodiment of the present invention can be any suitable type of communication device with certain computing and control capabilities, for example, it can be implemented and executed by the above-mentioned communication device 20. In some implementations, any vehicle diagnostic data acquisition method provided in the embodiment of the present invention can be implemented by a processor calling computer program instructions stored in a memory. The vehicle diagnostic data acquisition method provided in the embodiment of the present invention will be described in detail below in conjunction with the exemplary applications and implementations of the diagnostic device and communication device provided in the embodiment of the present invention.

[0079] First, a vehicle diagnostic data acquisition method provided by the first aspect of an embodiment of the present invention is described in detail.

[0080] See also Figure 5 , Figure 5 The flowchart of the vehicle diagnostic data acquisition method provided by some embodiments of the present invention is schematically shown.

[0081] Those skilled in the art will appreciate that the vehicle diagnostic data acquisition method provided in the embodiment of the present invention can be applied to the above diagnostic device (eg, diagnostic device 10). Specifically, the vehicle diagnostic data acquisition method is executed by one or at least two first processors of the diagnostic device.

[0082] like Figure 5 As shown, the vehicle diagnostic data acquisition method includes but is not limited to the following steps S100-S200:

[0083] S100: Sending pin communication parameters to a communication device, the pin communication parameters including a first identification code of a target pin pair and a first communication mode parameter corresponding to the first identification code, the number of the target pin pairs including at least two groups.

[0084] In an embodiment of the present invention, the pin communication parameter includes a first identification code of a target pin pair and a first communication mode parameter corresponding to the first identification code, the first communication mode parameter includes a second identification code of a first communication module and a second identification code of a second communication module, and the diagnostic data and the communication device can transmit the diagnostic data of the target pin pair through the first communication module and the second communication module according to the first communication mode parameter. The number of target pin pairs includes at least two groups. Among them, the target pin pair is the pin pair of the communication interface in the communication device that the communication device needs to read.

[0085] Specifically, the diagnostic device selects a suitable communication protocol (e.g., CAN, LIN, etc.) to send pin communication parameters to the communication device based on the established communication connection (e.g., Bluetooth connection, Wi-Fi connection, or other connection, etc.), so that after receiving the pin communication parameters, the communication device obtains the diagnostic data on the target pin pair and sends the diagnostic data to the diagnostic device.

[0086] In some embodiments, before sending pin communication parameters to the communication device, the diagnostic device needs to first determine the target pin pair (i.e., which pin pairs in the communication interface of the communication device to obtain diagnostic data on), so as to match the corresponding type of communication module in the diagnostic device and the communication device according to the target pin pair to obtain the pin communication parameters.

[0087] Exemplarily, in some embodiments, before sending the pin communication parameters to the communication device, the vehicle diagnostic data acquisition method further includes but is not limited to the following steps S101-S103:

[0088] S101: Determine a target pin pair.

[0089] Specifically, the diagnostic device identifies the type of vehicle system and electronic control unit (ECU) through the vehicle model and technical documents provided by the manufacturer, and queries an internal or external database based on the identified vehicle system, and performs pin pair mapping based on the pin pair information in the database to determine the pin pair used for the diagnostic task and the corresponding pin pair configuration information (for example, information such as the function of the pin pair and the first identification code of the pin pair).

[0090] In some embodiments, the target pin pair can be selected and determined according to a preset rule. For example, the electronic control unit (ECU) of a certain vehicle type usually sends diagnostic data to the communication device's pin pairs 3 and 13, 4 and 12, and 5 and 11. Therefore, the model of the vehicle type and the pin pairs 3-13, 4-12, and 5-11 can be used to form a preset rule. When the diagnostic device identifies and detects that the vehicle is of this model, it can determine that the target pin pairs are pin pairs 3-13, 4-12, and 5-11 according to the preset rule.

[0091] Of course, there may be other suitable ways to determine the target pin pair, and those skilled in the art may determine the target pin pair in any suitable way, which is not limited in any way in the embodiment of the present invention.

[0092] S102: Determine a first communication mode parameter corresponding to a first identification code of a target pin pair based on the number of types of the first communication module or the second communication module and the number of target pin pairs, wherein the first communication mode parameter includes a second identification code of the first communication module and a second communication module.

[0093] Specifically, after determining the target pin pair of the communication device, the diagnostic device identifies the number of types of the second communication module currently configured by itself, that is, how many types of second communication modules are configured by itself. Or it identifies the number of types of the first communication module currently configured by the communication device, that is, how many types of first communication modules are configured by the communication device. It can be understood that since each type of first communication module corresponds to one type of second communication module, the number of types of the first communication module configured in the communication device is equal to the number of types of the second communication module configured in the diagnostic device.

[0094] The diagnostic device allocates a corresponding type of first communication module and second communication module to each target pin pair according to the number of types of first communication modules or second communication modules and the number of target pin pairs based on a predefined mapping rule, and uses the second identification code of the first communication module and the second identification code of the second communication module as the first communication mode parameters, thereby obtaining the first communication mode parameters corresponding to the first identification code of each target pin pair.

[0095] In some embodiments, the corresponding first communication module and second communication module can be allocated to the target pin pair according to the relationship between the number of types of first communication modules or second communication modules and the number of target pin pairs to obtain the first communication mode parameter corresponding to the first identification code of the target pin pair.

[0096] In some embodiments, based on the number of types of the first communication module or the second communication module and the number of target pin pairs, determining the first communication mode parameter corresponding to the first identification code of the target pin pair specifically includes but is not limited to the following steps S1021:

[0097] S1021: If the number of types of the first communication module or the second communication module is greater than or equal to the number of target pin pairs, a type of first communication module and a second communication module are respectively assigned to each group of target pin pairs, and the second identification code of the first communication module and the second communication module assigned to each target pin pair is used as the first communication mode parameter corresponding to the first identification code of each group of target pin pairs, wherein each group of target pin pairs corresponds to a type of first communication module and a second communication module.

[0098] Specifically, the number of types of the first communication module or the second communication module is compared with the number of target pin pairs. If the number of types of the first communication module or the second communication module is greater than or equal to the number of target pin pairs, it means that different types of first communication modules and second communication modules can be assigned to each group of target pin pairs. Then, a type of first communication module and second communication module is assigned to each group of target pin pairs, and the second identification code of the first communication module and the second identification code of the second communication module assigned to each group of target pin pairs are used as the first communication mode parameter corresponding to the first identification code of the group of target pin pairs. In this embodiment, each group of target pin pairs uniquely corresponds to a type of first communication module and second communication module, that is, the types of the first communication module and the second communication module corresponding to each group of target pin pairs are different.

[0099] For example, the target pin pairs include three groups, namely target pin pairs 1, 2 and 3, the first identification code of target pin pair 1 is A211, the first identification code of target pin pair 2 is B233, and the first identification code of target pin pair 3 is C257. The first communication module and the second communication module include four types, namely Wi-Fi module, Bluetooth module, NFC module and Zigbee module.

[0100] Among the four types of first communication modules and second communication modules, different types of first communication modules and second communication modules are respectively allocated to three groups of target pin pairs. For example, the first communication module and the second communication module of the type of Wi-Fi module are allocated to the target pin pair 1, and the second identification code of the first communication module (i.e., Wi-Fi module) and the second identification code of the second communication module (i.e., Wi-Fi module) are used as the first communication mode parameter corresponding to the first identification code of the group of target pin pairs. The first communication module and the second communication module of the type of NFC module are allocated to the target pin pair 2, and the second identification code of the first communication module (i.e., NFC module) and the second identification code of the second communication module (i.e., NFC module) are used as the first communication mode parameter corresponding to the first identification code of the group of target pin pairs. The first communication module and the second communication module of the type of Bluetooth module are allocated to the target pin pair 3, and the second identification code of the first communication module (i.e., Bluetooth module) and the second identification code of the second communication module (i.e., Bluetooth module) are used as the first communication mode parameter corresponding to the first identification code of the group of target pin pairs.

[0101] Exemplarily, in some other embodiments, based on the number of types of the first communication module or the second communication module and the number of target pin pairs, determining the first communication mode parameter corresponding to the first identification code of the target pin pair specifically includes but is not limited to the following steps S1022-S1024:

[0102] S1022: If the number of types of the first communication module or the second communication module is less than the number of target pin pairs, at least two types of first communication modules and second communication modules are respectively assigned to a first number of target pin pairs, and the target pin pairs to which the first communication modules and the second communication modules are not assigned are counted, where the first number is the number of types of the first communication module or the second communication module.

[0103] Specifically, when comparing the number of types of the first communication module or the second communication module and the number of target pin pairs, if the number of types of the first communication module or the second communication module is less than the number of target pin pairs, it means that different types of first communication modules and second communication modules cannot be assigned to each group of target pin pairs, that is, different target pin pairs need to be assigned the same type of first communication modules and second communication modules, then at least two types of first communication modules and second communication modules are respectively assigned to a first number of target pin pairs, the first number being the number of types of the first communication module or the second communication module, so as to ensure that each type of first communication module and second communication module is assigned to the corresponding target pin pair. Then, the target pin pairs to which the first communication module and the second communication module have not yet been assigned are counted.

[0104] S1023: Filter out one or more types of reference communication modules whose data transmission rates are greater than or equal to a rate threshold from among the first communication modules and the second communication modules of various types, and assign reference communication modules to target pin pairs to which the first communication modules and the second communication modules are not assigned, wherein each type of the first communication modules and the second communication modules corresponds to one or more groups of target pin pairs.

[0105] Specifically, among at least two types of first communication modules and second communication modules, one or more types of first communication modules and second communication modules whose data transmission rates are greater than or equal to a rate threshold are screened out according to the data transmission rates of the first communication modules and the second communication modules, and the first communication modules and second communication modules whose data transmission rates are greater than or equal to the rate threshold are marked as reference communication modules.

[0106] Then, a reference communication module is allocated to the target pin pairs that have not yet been allocated the first communication module and the second communication module according to the types and availability of the first communication module and the second communication module. In this embodiment, each type of the first communication module and the second communication module corresponds to one or more groups of target pin pairs, that is, each type of the first communication module and the second communication module is used to transmit diagnostic data of one or more groups of target pin pairs, and the types of the first communication modules and the second communication modules corresponding to different target pin pairs may be the same or different.

[0107] S1024: Using the second identification code of the first communication module and the second communication module assigned to each target pin pair as the first communication mode parameter corresponding to the first identification code of each group of target pin pairs to obtain the first communication mode parameter.

[0108] After assigning the corresponding first communication module and second communication module to each group of target pin pairs, the second identification code of the first communication module and the second identification code of the second communication module assigned to each group of target pin pairs are used as the first communication mode parameters corresponding to the first identification code of the group of target pin pairs, thereby obtaining the first communication mode parameters corresponding to the first identification code of each group of target pin pairs.

[0109] For example, the target pin pairs include three groups, namely, target pin pairs 4, 5 and 6, the first identification code of target pin pair 4 is A121, the first identification code of target pin pair 5 is B143, and the first identification code of target pin pair 6 is C177. The first communication module and the second communication module include two types, namely, a Wi-Fi module and a Bluetooth module, wherein the data transmission rate of the first communication module of the Wi-Fi module type and the second communication module is greater than the rate threshold.

[0110] In this embodiment, if the number of target pin pairs is greater than the number of types of the first communication module or the second communication module, the first communication module and the second communication module of the type of Wi-Fi module are assigned to target pin pair 4, and the first communication module and the second communication module of the type of Bluetooth module are assigned to target pin pair 5, and the target pin pair 6 remains without the first communication module and the second communication module.

[0111] Among the two types of first communication modules and second communication modules, a reference communication module whose data transmission rate is greater than or equal to the rate threshold is screened out, that is, the first communication module and the second communication module of the type of Wi-Fi module, and the first communication module and the second communication module of the type of Wi-Fi module are assigned to the target pin pair 6.

[0112] Then, the second identification code of the first communication module and the second communication module of the type of Wi-Fi module assigned to the target pin pair 4 is used as the first communication mode parameter corresponding to the first identification code of the target pin pair 4. The second identification code of the first communication module and the second communication module of the type of Bluetooth module assigned to the target pin pair 5 is used as the first communication mode parameter corresponding to the first identification code of the target pin pair 5. The second identification code of the first communication module and the second communication module of the type of Wi-Fi module assigned to the target pin pair 6 is used as the first communication mode parameter corresponding to the first identification code of the target pin pair 6, thereby obtaining the first communication mode parameter corresponding to the first identification code of each group of target pin pairs.

[0113] In some embodiments, the first communication module of the communication device is any one of a Wi-Fi module, a USB module, a Bluetooth module and an Ethernet module, and correspondingly, the second communication module of the diagnostic device is any one of a Wi-Fi module, a USB module, a Bluetooth module and an Ethernet module.

[0114] S103: Combine the first identification code of the target pin pair and the first communication mode parameter corresponding to the first identification code to obtain a pin communication parameter.

[0115] Specifically, after determining the first communication mode parameter corresponding to the first identification code of the target pin pair, the diagnostic device combines the first identification code of the target pin pair and the first communication mode parameter corresponding to the first identification code of the target pin pair, that is, combines the first identification code of the target pin pair and the second identification code of the first communication module and the second identification code of the second communication module corresponding to the first identification code of the target pin pair to obtain the pin communication parameters.

[0116] For example, the target pin pairs include three groups, namely target pin pairs A, B and C, the first identification code of target pin pair A is A206, the first identification code of target pin pair B is B204, and the first identification code of target pin pair C is C207. Among them, the types of the first communication module and the second communication module assigned to the target pin pair A are Wi-Fi modules, the second identification code of the first communication module is Wi-Fi-11, and the second identification code of the second communication module is Wi-Fi-21, then the first communication mode parameter corresponding to the first identification code A206 of the target pin pair A includes the second identification code Wi-Fi-11 of the first communication module and the second identification code Wi-Fi-21 of the second communication module.

[0117] The types of the first communication module and the second communication module assigned to the target pin pair B are Bluetooth modules, the second identification code of the first communication module is Bluetooth-101, and the second identification code of the second communication module is Bluetooth-201. The first communication mode parameters corresponding to the first identification code B204 of the target pin pair B include the second identification code Bluetooth-101 of the first communication module and the second identification code Bluetooth-201 of the second communication module.

[0118] The types of the first communication module and the second communication module assigned to the target pin pair C are NFC modules, the second identification code of the first communication module is NFC-11, and the second identification code of the second communication module is NFC-21. The first communication mode parameters corresponding to the first identification code C207 of the target pin pair C include the second identification code NFC-11 of the first communication module and the second identification code NFC-21 of the second communication module.

[0119] Then, the first identification codes of the target pin pairs A, B and C and the second identification codes of the first communication module and the second identification codes of the second communication module corresponding to the first identification codes of the target pin pairs A, B and C are combined together to obtain pin communication parameters. In this embodiment, the pin communication parameters include three groups of parameters, namely [A206, Wi-Fi-11, Wi-Fi-21], [B204, Bluetooth-101, Bluetooth-201] and [C207, NFC-11, NFC-21].

[0120] S200: receiving diagnostic data of the target pin pair through the second communication module corresponding to the first communication mode parameter, wherein after acquiring the diagnostic data on the target pin pair, the communication device sends the diagnostic data of the target pin pair to the diagnostic device through the first communication module corresponding to the first communication mode parameter.

[0121] Specifically, the diagnostic device configures the corresponding second communication module according to the first communication mode parameter to ensure that the diagnostic data sent by the communication device can be received. The second communication module starts the monitoring process under the specified communication protocol and prepares to receive the diagnostic data. It can be understood that after receiving the pin communication parameters sent by the diagnostic device and obtaining the diagnostic data on the target pin pair according to the pin communication parameters, the communication device sends the diagnostic data to the diagnostic device through the first communication module corresponding to the first communication mode parameter, so that the diagnostic device receives the diagnostic data of the target pin pair.

[0122] In some embodiments, after receiving the diagnostic data through the second communication module, the diagnostic device parses the diagnostic data, extracts the diagnostic data and the first identification code, and then further processes, analyzes or displays the diagnostic data to obtain subsequent fault diagnosis results.

[0123] In some embodiments, the diagnostic device further includes a cache module, and after receiving the diagnostic data, the diagnostic device stores the diagnostic data in the cache module.

[0124] Specifically, in some embodiments, the vehicle diagnostic data acquisition method further includes but is not limited to the following steps S201:

[0125] S201: Storing diagnostic data of a target pin pair into a cache module, and recording a first identification code corresponding to the diagnostic data.

[0126] Specifically, after receiving the diagnostic data through the second communication module corresponding to the first communication mode parameter, the diagnostic device stores the received diagnostic data in the cache module of the diagnostic device, parses the received diagnostic data, extracts the first identification code corresponding to the diagnostic data (that is, the first identification code unique to the target pin pair, used to indicate that the diagnostic data originates from the group of target pin pairs), and records the first identification code corresponding to the extracted diagnostic data.

[0127] In some embodiments, in the cache module, the diagnostic data and the first identification code corresponding to the diagnostic data are associated and stored, so that the diagnostic data related to the specific pin pair can be quickly retrieved during subsequent query and processing.

[0128] In some embodiments, the diagnostic device monitors the amount of diagnostic data in the cache module in real time to determine whether a required amount of diagnostic data has been received.

[0129] Specifically, in some embodiments, the vehicle diagnostic data acquisition method further includes but is not limited to the following steps S202-S203:

[0130] S202: If the amount of diagnostic data corresponding to the first identification code is greater than or equal to a preset amount threshold, output the diagnostic data corresponding to the first identification code in the cache module to a diagnostic application of the diagnostic device.

[0131] Specifically, in the process of receiving diagnostic data, the diagnostic device monitors the number of diagnostic data corresponding to the first identification code in the cache module in real time. When the number of diagnostic data corresponding to the first identification code reaches or exceeds the preset number threshold (i.e., greater than or equal to the preset number threshold), it means that a sufficient number of diagnostic data has been received, triggering the diagnostic data output condition. The diagnostic data corresponding to the first identification code is retrieved in the cache module, and the diagnostic data corresponding to the first identification code is packaged or organized into a suitable data format, and then the packaged or organized diagnostic data is sent to the diagnostic application of the diagnostic device through a suitable communication channel (e.g., TCP / IP, Bluetooth, CAN bus, etc.), so that the diagnostic application processes and analyzes the diagnostic data, troubleshoots the fault, or displays it to the user after receiving the diagnostic data.

[0132] In some embodiments, after the diagnostic data corresponding to the first identification code is sent to the diagnostic application, the diagnostic data corresponding to the first identification code in the cache module may be deleted to release the storage space of the cache module.

[0133] S203: If the amount of diagnostic data corresponding to the first identification code is less than a preset amount threshold, and the duration of the target pin pair corresponding to the first identification code obtaining diagnostic data is greater than or equal to a preset time threshold, then the diagnostic data corresponding to the first identification code in the cache module is output to the diagnostic application of the diagnostic device.

[0134] Specifically, if the number of diagnostic data corresponding to the first identification code does not reach a preset number threshold (i.e., less than a preset number threshold), and the duration of the target pin pair corresponding to the first identification code obtaining diagnostic data is greater than or equal to a preset time threshold, it also indicates that a sufficient amount of diagnostic data has been received, triggering the diagnostic data output condition. The diagnostic data corresponding to the first identification code is retrieved in the cache module, the diagnostic data corresponding to the first identification code is packaged or organized into a suitable data format, and then the packaged or organized diagnostic data is sent to the diagnostic application of the diagnostic device through a suitable communication channel (e.g., TCP / IP, Bluetooth, and CAN bus, etc.), so that the diagnostic application processes and analyzes the diagnostic data, troubleshoots, or displays it to the user after receiving the diagnostic data.

[0135] It is easy to understand that for the preset quantity threshold and the preset time threshold, those skilled in the art can set and determine them according to actual application scenarios and historical experience data. For example, the preset quantity threshold can be 10, and the preset time threshold can be 30 seconds. The embodiments of the present invention do not impose any limitations on this.

[0136] In summary, the vehicle diagnostic data acquisition method provided in the embodiment of the present invention is applied to a diagnostic device, the diagnostic device is connected to a communication device, the communication device includes a communication interface and at least two types of first communication modules, the diagnostic device includes at least two types of second communication modules, each type of first communication module corresponds to one type of second communication module, the communication device is connected to the electronic control unit of the vehicle through the communication interface, the communication interface has multiple groups of pin pairs, and the electronic control unit sends diagnostic data to the pin pairs of the communication interface; the method includes: sending pin communication parameters to the communication device, the pin communication parameters include a first identification code of the target pin pair and a first communication mode parameter corresponding to the first identification code, and the number of target pin pairs includes at least two groups; receiving the diagnostic data of the target pin pair through the second communication module corresponding to the first communication mode parameter, wherein, after obtaining the diagnostic data on the target pin pair, the communication device sends the diagnostic data of the target pin pair to the diagnostic device through the first communication module corresponding to the first communication mode parameter.

[0137] The vehicle diagnostic data acquisition method provided in the embodiment of the present invention concurrently transmits the diagnostic data through at least two types of communication modules of the diagnostic device and the communication device after the communication device acquires the diagnostic data of at least two groups of target pin pairs, so that the diagnostic device can concurrently acquire the vehicle's diagnostic data, thereby improving data acquisition efficiency, reducing waiting time, and improving user experience.

[0138] Next, the vehicle diagnostic data acquisition method provided by the second aspect of the embodiment of the present invention is explained in detail.

[0139] See also Figure 6 , Figure 6 The flowchart of the vehicle diagnostic data acquisition method provided by some embodiments of the present invention is schematically shown.

[0140] Those skilled in the art will appreciate that the vehicle diagnostic data acquisition method provided in the embodiment of the present invention can be applied to the above communication device (eg, communication device 20). Specifically, the vehicle diagnostic data acquisition method is executed by one or at least two second processors of the communication device.

[0141] like Figure 6 As shown, the vehicle diagnostic data acquisition method includes but is not limited to the following steps S300-S500:

[0142] S300: receiving pin communication parameters sent by a diagnostic device, wherein the pin communication parameters include a first identification code of a target pin pair and a first communication mode parameter corresponding to the first identification code, and the number of the target pin pairs includes at least two groups.

[0143] In an embodiment of the present invention, the pin communication parameter includes a first identification code of a target pin pair and a first communication mode parameter corresponding to the first identification code, the first communication mode parameter includes a second identification code of a first communication module and a second identification code of a second communication module, and the diagnostic data and the communication device can transmit the diagnostic data of the target pin pair through the first communication module and the second communication module according to the first communication mode parameter. The number of target pin pairs includes at least two groups. Among them, the target pin pair is the pin pair of the communication interface in the communication device that the communication device needs to read.

[0144] Specifically, the communication device receives the pin communication parameters sent by the diagnostic device through the communication protocol (eg, CAN, LIN, etc.) selected by the diagnostic device based on the established communication connection (eg, Bluetooth connection, Wi-Fi connection, or other connection, etc.).

[0145] S400: Acquire diagnostic data from the target pin pair.

[0146] Specifically, after receiving the pin communication parameters, the communication device parses the received pin communication parameters and extracts the contents of the pin communication parameters, namely, obtains the first identification code of the target pin pair and the first communication mode parameter corresponding to the first identification code of the target pin pair.

[0147] The communication device obtains the diagnostic data sent by the vehicle to the target pin pair from the target pin pair in its own communication interface according to the first identification code of the target pin pair in the pin communication parameter. It is understandable that the electronic control unit of the vehicle can actively or passively send diagnostic data to the pin pair in the communication interface of the communication device. In some embodiments, after receiving the diagnostic data, the communication device parses the received diagnostic data, extracts useful data information, and performs necessary processing or format conversion so as to subsequently send it to the diagnostic device.

[0148] S500: After acquiring the diagnostic data on the target pin pair, sending the diagnostic data of the target pin pair to the diagnostic device through the first communication module corresponding to the first communication mode parameter, wherein the diagnostic device receives the diagnostic data of the target pin pair through the second communication module corresponding to the first communication mode parameter.

[0149] Specifically, after obtaining the diagnostic data on the target pin pair, the communication device determines to use the first communication module that sends the diagnostic data according to the first communication mode parameter. The communication device sends the diagnostic data of the target pin pair to the diagnostic device through the selected first communication module. Since each type of second communication module in the diagnostic device corresponds to a type of first communication module in the communication device (i.e., the second identification code of the first communication module in the first communication mode parameter corresponds one to one with the second identification code of the second communication module), after the communication device sends the diagnostic data of the target pin pair, the diagnostic device receives the diagnostic data of the target pin pair through the second communication module corresponding to the first communication mode parameter.

[0150] In some embodiments, after obtaining the diagnostic data of the target pin pair, the first identification code of the target pin pair is added to the diagnostic data of the target pin pair so that the diagnostic device can record the amount of received diagnostic data according to the first identification code of the target pin pair.

[0151] Specifically, in some embodiments, before sending the diagnostic data of the target pin pair to the diagnostic device through the first communication module corresponding to the first communication mode parameter, the vehicle diagnostic data acquisition method further includes but is not limited to the following steps S501:

[0152] S501: After obtaining the diagnostic data of the target pin pair, add the first identification code of the target pin pair to the diagnostic data of the target pin pair, wherein each group of target pin pairs corresponds to a unique first identification code, and the first identification code represents the target pin pair used to obtain the diagnostic data in the communication interface of the communication device.

[0153] Among them, each group of target pin pairs in the pin communication parameters corresponds to a unique first identification code, and the first identification code represents the target pin pair used to obtain diagnostic data in the communication interface of the communication device. The target pin pair is the pin pair for the vehicle's electronic control unit to send diagnostic data.

[0154] Specifically, after obtaining the diagnostic data of the target pin pair and before sending the diagnostic data of the target pin pair to the diagnostic device, the communication device adds the first identification code of the target pin pair to the diagnostic data of the corresponding target pin pair as auxiliary information of the diagnostic data (for example, the first identification code can be used as meta-information of the diagnostic data) to indicate which specific pin pair the group of diagnostic data comes from. Then, the complete data packet containing the diagnostic data and the first identification code is packaged into a suitable data format so as to be sent to the diagnostic device through the corresponding first communication module.

[0155] Through the above method, it is ensured that the diagnostic data has a clear source identification during the transmission process, which is conducive to the diagnostic device to correctly parse and process the diagnostic data when it is received.

[0156] In summary, the vehicle diagnostic data acquisition method provided by the embodiment of the present invention is applied to a communication device, the communication device is connected to the diagnostic device, the communication device includes a communication interface and at least two types of first communication modules, the diagnostic device includes at least two types of second communication modules, each type of first communication module corresponds to one type of second communication module, the communication device is connected to the electronic control unit of the vehicle through the communication interface, the communication interface has multiple groups of pin pairs, and the electronic control unit sends diagnostic data to the pin pairs of the communication interface; the method includes: receiving pin communication parameters sent by the diagnostic device, the pin communication parameters include a first identification code of the target pin pair and a first communication mode parameter corresponding to the first identification code; acquiring diagnostic data from the target pin pair; after acquiring the diagnostic data on the target pin pair, sending the diagnostic data of the target pin pair to the diagnostic device through the first communication module corresponding to the first communication mode parameter, and the diagnostic device receives the diagnostic data of the target pin pair through the second communication module corresponding to the first communication mode parameter.

[0157] The vehicle diagnostic data acquisition method provided in the embodiment of the present invention concurrently transmits the diagnostic data through at least two types of communication modules of the communication device and the diagnostic device after the communication device acquires the diagnostic data of at least two groups of target pin pairs, so that the diagnostic device can concurrently acquire the vehicle's diagnostic data, thereby improving data acquisition efficiency, reducing waiting time, and improving user experience.

[0158] An embodiment of the present invention provides a computer-readable storage medium, on which computer program instructions executable by a processor are stored. When the computer program instructions are called by the processor, the processor executes any one of the vehicle diagnostic data acquisition methods provided by the embodiments of the present invention, or executes the steps in any one of the implementation methods of any one of the vehicle diagnostic data acquisition methods provided by the embodiments of the present invention.

[0159] In some embodiments, the storage medium may be a flash memory, a hard disk, an optical disk, a register, a magnetic surface storage, a removable disk, a CD-ROM, a random access memory (RAM), a read-only memory (ROM), an electrically programmable ROM, and an electrically erasable programmable ROM, or any other form of storage medium known in the technical field, or various devices including one or any combination of the above storage media.

[0160] In some embodiments, computer program instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0161] As an example, computer program instructions may, but do not necessarily, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, for example, in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0162] As an example, the computer program instructions may be deployed to be executed on a computing device (including devices such as smart terminals and servers), or on multiple computing devices located at one location, or on multiple computing devices distributed at multiple locations and interconnected by a communication network. It is easy to understand that all or part of the steps of the method described in the embodiments of the present invention may be directly implemented using electronic hardware or processor executable computer program instructions, or a combination of the two.

[0163] Those skilled in the art will appreciate that the embodiments provided by the present invention are only illustrative, and the order of writing the steps in the method of the embodiment does not mean a strict execution order and does not constitute any limitation on the implementation process. The order can be adjusted, merged and deleted according to actual needs, and the modules or sub-modules, units or sub-units in the device or system of the embodiment can be merged, divided and deleted according to actual needs. For example, the division of units is only a logical function division, and there can be other division methods in actual implementation. For another example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.

[0164] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, and of course can also be implemented by hardware. Those skilled in the art can understand that all or part of the processes in the above embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0165] It should be noted that the above embodiments are intended to illustrate the technical concept and features of the present invention, and their purpose is to enable people familiar with this technology to understand the content of the present invention and implement it accordingly, and cannot be used to limit the scope of protection of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiments can be implemented according to the technical solutions recorded in the embodiments of the present invention, or some of the technical features can be equivalently replaced. It can be understood that these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and should be regarded as equal changes and modifications based on the embodiments of the present invention, and should all fall within the scope of the claims of the present invention.

Claims

1. A vehicle diagnostic data acquisition method, applied to a diagnostic device, characterized in that: The diagnostic device is connected to a communication device, the communication device includes a communication interface and at least two types of first communication modules, the diagnostic device includes at least two types of second communication modules, each type of first communication module corresponds to one type of second communication module, the communication device is connected to an electronic control unit of a vehicle through the communication interface, the communication interface has multiple groups of pin pairs, and the electronic control unit sends diagnostic data to the pin pairs of the communication interface; The method comprises: Sending pin communication parameters to the communication device, the pin communication parameters including a first identification code of a target pin pair and a first communication mode parameter corresponding to the first identification code, the number of the target pin pairs including at least two groups; The diagnostic data of the target pin pair is received through the second communication module corresponding to the first communication mode parameter, wherein after the communication device obtains the diagnostic data on the target pin pair, the diagnostic data of the target pin pair is sent to the diagnostic device through the first communication module corresponding to the first communication mode parameter.

2. The method according to claim 1, characterized in that The diagnostic device further includes: a cache module, and the method further includes: The diagnostic data of the target pin pair is stored in the cache module, and a first identification code corresponding to the diagnostic data is recorded.

3. The method according to claim 2, characterized in that The method further comprises: If the amount of diagnostic data corresponding to the first identification code is greater than or equal to a preset amount threshold, outputting the diagnostic data corresponding to the first identification code in the cache module to a diagnostic application of the diagnostic device; If the amount of diagnostic data corresponding to the first identification code is less than the preset number threshold, and the duration for the target pin pair corresponding to the first identification code to obtain diagnostic data is greater than or equal to the preset time threshold, the diagnostic data corresponding to the first identification code in the cache module is output to the diagnostic application of the diagnostic device.

4. The method according to any one of claims 1 to 3, characterized in that: Before sending the pin communication parameter to the communication device, the method further includes: Determine the target pin pair; Based on the number of types of the first communication module or the second communication module and the number of the target pin pairs, determining a first communication mode parameter corresponding to the first identification code of the target pin pair, wherein the first communication mode parameter includes second identification codes of the first communication module and the second communication module; The first identification code of the target pin pair and the first communication mode parameter corresponding to the first identification code are combined to obtain the pin communication parameter.

5. The method according to claim 4, characterized in that The determining, based on the number of types of the first communication module or the second communication module and the number of the target pin pairs, a first communication mode parameter corresponding to the first identification code of the target pin pair includes: If the number of types of the first communication module or the second communication module is greater than or equal to the number of the target pin pairs, a first communication module and a second communication module of a type are respectively assigned to each group of the target pin pairs, and the second identification code of the first communication module and the second communication module assigned to each of the target pin pairs is used as the first communication mode parameter corresponding to the first identification code of each group of the target pin pairs, wherein each group of the target pin pairs corresponds to a first communication module and a second communication module of a type; or, If the number of types of the first communication module or the second communication module is less than the number of target pin pairs, at least two types of first communication modules and second communication modules are respectively assigned to a first number of target pin pairs, and the target pin pairs to which the first communication modules and the second communication modules are not assigned are counted, where the first number is the number of types of the first communication module or the second communication module; Among the first communication modules and the second communication modules of various types, one or more types of reference communication modules having a data transmission rate greater than or equal to a rate threshold are screened out, and the reference communication modules are allocated to the target pin pairs to which the first communication modules and the second communication modules are not allocated, wherein each type of the first communication modules and the second communication modules corresponds to one or more groups of target pin pairs; The second identification codes of the first communication module and the second communication module allocated to each of the target pin pairs are used as the first communication mode parameters corresponding to the first identification codes of each group of the target pin pairs to obtain the first communication mode parameters.

6. The method according to claim 4, characterized in that The first communication module is any one of a Wi-Fi module, a USB module, a Bluetooth module and an Ethernet module, and the second communication module is any one of a Wi-Fi module, a USB module, a Bluetooth module and an Ethernet module.

7. A vehicle diagnostic data acquisition method, applied to a communication device, characterized in that: The communication device is connected to the diagnostic device, the communication device includes a communication interface and at least two types of first communication modules, the diagnostic device includes at least two types of second communication modules, each type of first communication module corresponds to one type of second communication module, the communication device is connected to the electronic control unit of the vehicle through the communication interface, the communication interface has multiple groups of pin pairs, and the electronic control unit sends diagnostic data to the pin pairs of the communication interface; The method comprises: Receiving pin communication parameters sent by the diagnostic device, wherein the pin communication parameters include a first identification code of a target pin pair and a first communication mode parameter corresponding to the first identification code, and the number of the target pin pairs includes at least two groups; acquiring diagnostic data from the target pin pair; After acquiring the diagnostic data on the target pin pair, the diagnostic data of the target pin pair is sent to the diagnostic device through the first communication module corresponding to the first communication mode parameter, wherein the diagnostic device receives the diagnostic data of the target pin pair through the second communication module corresponding to the first communication mode parameter.

8. The method according to claim 7, characterized in that Before sending the diagnostic data of the target pin pair to the diagnostic device through the first communication module corresponding to the first communication mode parameter, the method further includes: After obtaining the diagnostic data of the target pin pair, the first identification code of the target pin pair is added to the diagnostic data of the target pin pair, wherein each group of target pin pairs corresponds to a unique first identification code, and the first identification code represents the target pin pair in the communication interface of the communication device for obtaining diagnostic data.

9. A diagnostic device, characterized in that: include: A first processor, a first memory and at least two types of second communication modules communicatively connected to the first processor; The first memory stores computer program instructions executable by the first processor. When the computer program instructions are called by the first processor, the first processor executes the vehicle diagnostic data acquisition method as described in any one of claims 1-6.

10. A communication device, characterized in that: include: A second processor, and a second memory, a communication interface, and at least two types of first communication modules that are communicatively connected to the second processor; The second memory stores computer program instructions executable by the second processor. When the computer program instructions are called by the second processor, the second processor executes the vehicle diagnostic data acquisition method as claimed in claim 7 or 8.

11. A vehicle diagnostic data acquisition system, characterized in that: include: A diagnostic device as claimed in claim 9 and a communication device as claimed in claim 10.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions executable by a processor, and when the computer program instructions are called by the processor, the processor executes the vehicle diagnostic data acquisition method as described in any one of claims 1-8.

Citation Information

Cited By

  • Vehicle diagnostic data acquisition method and related apparatus

    WO2026092331A1