Automobile diagnosis communication method and device, automobile diagnosis equipment and storage medium
By reading parameter information and historical data from ODX files, combined with user feedback, dynamic priority sorting communication protocol, the problem of handheld car diagnostic instruments selecting the appropriate protocol in a multi-protocol environment is solved, and diagnostic efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202410975431.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-11-12
Smart Images

Figure CN118945002A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile diagnosis technology, and in particular to an automobile diagnosis communication method, apparatus, automobile diagnosis equipment and storage medium. Background Art
[0002] With the rapid development of the automobile industry, the complexity and diversity of vehicle electronic control systems (ECU) are increasing, which puts higher requirements on automobile fault diagnosis technology. Especially in the field of embedded handheld products, such as handheld automobile OBD diagnostic instruments and handheld electrical testers, how to communicate with vehicle ECU efficiently and accurately has become one of the key factors restricting product performance.
[0003] Modern cars generally support multiple communication protocols, such as UDS (Unified Diagnostic Services), KWP2000 (Keyword Protocol 2000), TP20CAN, KWP1281, etc. Each model may use different protocol combinations according to its configuration. In handheld diagnostic instruments, due to cost considerations, the technical solution of main control MCU chip + external FLASH memory is often used. However, when faced with multiple protocols, this solution usually needs to try one by one until an effective communication protocol is found. This process is not only time-consuming but also inefficient. Although the method of connecting according to the recommended communication protocol provided by the vehicle manufacturer or the method of manually selecting the communication protocol by the technician can solve the communication problem to a certain extent, it cannot ensure whether the recommended or selected communication protocol is appropriate, and thus cannot improve the efficiency and accuracy of the diagnostic process. Summary of the invention
[0004] In view of the above, the present application provides an automobile diagnostic communication method, apparatus, automobile diagnostic equipment and storage medium, aiming to solve the technical problem of how to quickly and accurately select the most appropriate communication protocol for diagnostic communication.
[0005] A first aspect of the present application provides an automobile diagnostic communication method, the method comprising: Read multiple parameter information from the ODX file, and obtain the communication protocol corresponding to each parameter information in the multiple parameter information; Prioritize multiple communication protocols based on historical diagnostic data and user feedback data to obtain a priority ranking sequence; Using the communication protocol corresponding to the highest priority in the priority sorting sequence as the first target communication protocol; A first communication connection is established between the vehicle diagnostic instrument and the vehicle ECU based on the first target communication protocol.
[0006] Optionally, the prioritizing multiple communication protocols based on the historical diagnostic data and the user feedback data to obtain a priority ranking sequence includes: Extracting the communication protocol, connection success rate, and diagnosis time used in each diagnosis process from the historical diagnosis data; calculating an average connection success rate when using each communication protocol for diagnostic communication based on the connection success rate; calculating a diagnostic efficiency when performing diagnostic communication using each communication protocol based on the diagnostic time; Extracting user feedback on each communication protocol from the user feedback data, and calculating user satisfaction when using each communication protocol for diagnostic communication based on the feedback; assigning initial weights to the average connection success rate, the diagnosis efficiency, and the user satisfaction respectively; Performing attenuation calculation on the initial weight according to a preset attenuation rate to obtain an attenuated weight; Calculating a priority score for each communication protocol according to the decay weight; The plurality of communication protocols are prioritized according to the priority scores to obtain a priority ranking sequence.
[0007] Optionally, performing attenuation calculation on the initial weight according to a preset attenuation rate to obtain the attenuated weight includes: Determining the data age of each piece of historical diagnosis sub-data according to the time difference between the acquisition time of each piece of historical diagnosis sub-data in the historical diagnosis data and the system time; The decay calculation is performed according to the initial weight, the decay rate and the data age to obtain the decay weight, wherein the decay weight Wdecayed=W×(1−r) A , W is the initial weight, A is the data age, and r is the decay rate.
[0008] Optionally, the method further includes: Determining whether the first communication connection is successfully connected; When the first communication connection fails, using the communication protocol corresponding to the second highest priority in the priority sorting sequence as the second target communication protocol; A second communication connection between the vehicle diagnostic instrument and the vehicle ECU is established based on the second target communication protocol.
[0009] Optionally, the reading of multiple parameter information from the ODX file and obtaining the communication protocol corresponding to each parameter information in the multiple parameter information includes: Read communication parameter information, ECU configuration information, and vehicle model information from ODX files; Obtain the communication protocol corresponding to the communication parameter information, obtain the communication protocol corresponding to the ECU configuration information, and obtain the communication protocol corresponding to the vehicle model information.
[0010] Optionally, establishing a first communication connection between the vehicle diagnostic instrument and the vehicle ECU based on the first target communication protocol includes: Obtain link information under the Type=1171 identifier in the first target communication protocol type; The link information data is used to establish a first communication connection between the automobile diagnostic instrument and the vehicle ECU.
[0011] A second aspect of the present application provides an automobile diagnostic communication device, the device comprising: An acquisition module, used for reading a plurality of parameter information from the ODX file, and acquiring a communication protocol corresponding to each of the plurality of parameter information; A sorting module, used to prioritize multiple communication protocols; A confirmation module, configured to use the communication protocol corresponding to the highest priority in the priority sorting sequence as the first target communication protocol; The connection module is used to establish a first communication connection between the vehicle diagnostic instrument and the vehicle ECU based on the first target communication protocol.
[0012] A third aspect of the present application provides an automobile diagnostic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the automobile diagnostic communication method when executing the computer program.
[0013] A fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, and the computer program, when executed by a processor, implements the steps of the vehicle diagnostic communication method.
[0014] To summarize, the automobile diagnostic communication method, apparatus, automobile diagnostic equipment and storage medium provided by the present application read multiple parameter information from the ODX file, and obtain the communication protocol corresponding to each parameter information. After prioritizing the communication protocols, the communication protocol with the highest priority is selected for diagnostic communication, thereby reducing the protocol attempt time during the diagnostic process, reducing manual intervention, and improving the efficiency of communication connections, thereby improving the efficiency of vehicle diagnosis. At the same time, combined with historical diagnostic data and user feedback data, the priority of the communication protocol is dynamically adjusted, thereby selecting the most appropriate communication protocol based on the priority, making the diagnostic process more intelligent and personalized, and ensuring the efficiency and accuracy of the diagnostic process. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1is a flow chart of an automobile diagnostic communication method shown in an embodiment of the present application; Figure 2 is a functional module diagram of an automobile diagnostic communication device shown in an embodiment of the present application; Figure 3 It is a schematic diagram of the structure of the automobile diagnostic equipment shown in the embodiment of the present application. DETAILED DESCRIPTION
[0016] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more of the listed items.
[0017] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0018] Reference Figure 1 As shown, it is a flow chart of the automobile diagnostic communication method provided in the implementation example of the present application, and the automobile diagnostic communication method includes the following steps.
[0019] S11, reading multiple parameter information from the ODX file, and obtaining the communication protocol corresponding to each parameter information in the multiple parameter information.
[0020] ODX (Open Diagnosis eXchange or Open Data eXchange) file is an open diagnostic exchange protocol file based on XML (Extensible Markup Language) and is used to obtain and diagnose vehicle fault data from automotive electronic control units (ECUs). ODX files define standard data formats and communication methods so that diagnostic tools from different manufacturers can communicate using the same protocol. ODX files include multiple parameter information, which refers to various data elements related to vehicle diagnosis, such as fault codes (DTCs), data identifiers (DIDs), request identifiers (RIDs), etc. These parameter information describe the status of the vehicle ECU, sensor data, or diagnostic test results.
[0021] When you need to diagnose or repair a car fault, you can install a library that can parse ODX files in advance, such as odxparse. After the installation is complete, use the parsing function in the library to read the ODX file and extract the required multiple parameter information and its corresponding communication protocol from the ODX file.
[0022] The ODX file is a standardized diagnostic data exchange format that contains detailed diagnostic information of the vehicle ECU. By reading multiple parameter information and its corresponding communication protocol from the ODX file, it can ensure that the diagnostic tool is compatible with vehicle ECUs of different manufacturers and models, and realize cross-platform and cross-model diagnosis, thereby more accurately obtaining the status and fault information of the vehicle ECU, providing more comprehensive and accurate support for vehicle diagnosis.
[0023] In an optional implementation, the plurality of parameter information read from the ODX file may include: communication parameter information, ECU configuration information, and vehicle model information.
[0024] Communication parameter information refers to parameters related to vehicle ECU communication, such as the type of communication interface (such as CAN, LIN, etc.), communication speed, communication protocol, etc. After obtaining the communication parameter information, the communication protocol corresponding to the ECU can be found at a specific node location. The communication protocol corresponding to the obtained communication parameter information is used as the first communication protocol.
[0025] ECU configuration information includes the hardware configuration, software version, default communication protocol, etc. of the ECU. ECU configuration information generally includes the communication protocols it supports. Even if the communication protocols supported by the ECU are not included, the communication protocols commonly used by the ECU can be obtained from other parameter information in the ECU configuration information. The communication protocol corresponding to the obtained ECU configuration information is used as the second communication protocol.
[0026] The vehicle model information includes basic information such as the vehicle model, manufacturer, and production year. This information may be related to the communication protocol used by the vehicle, and the commonly used communication protocol of the ECU of this model can be obtained from this information. The communication protocol corresponding to the obtained vehicle model information is used as the third communication protocol.
[0027] Since communication parameter information, ECU configuration information and vehicle model information are key data elements in the diagnostic process and can directly affect the accuracy and reliability of the diagnostic results, by obtaining communication parameter information, ECU configuration information and vehicle model information and their corresponding communication protocols from the ODX file, it can be ensured that the diagnostic tool can correctly interpret the status and fault information of the vehicle ECU, thereby improving the accuracy of the diagnosis. In addition, directly reading communication parameter information, ECU configuration information, vehicle model information and its communication protocol from the ODX file can avoid trying different communication protocols one by one, thereby reducing the trial time and quickly establishing an effective communication connection with the vehicle ECU.
[0028] S12, prioritizing multiple communication protocols based on historical diagnostic data and user feedback data to obtain a priority ranking sequence.
[0029] Collecting a large amount of historical diagnostic data refers to the detailed record of the ECU using different communication protocols to perform vehicle diagnosis during the historical diagnostic communication connection process. Historical diagnostic data includes but is not limited to: the communication protocol used, connection success rate, diagnostic time and performance indicators, etc.
[0030] Collect user feedback data after each historical diagnosis. The user feedback data reflects the user's satisfaction when using different communication protocols for diagnosis.
[0031] The collected historical diagnostic data and user feedback data are cleaned to remove invalid, duplicate or erroneous records, and features related to communication protocol performance are extracted from the cleaned historical diagnostic data, such as connection speed, connection success rate, diagnosis time, stability, data transmission rate, etc. Features related to user experience are extracted from the cleaned user feedback data, such as ease of use, diagnostic accuracy, fault resolution speed, satisfaction score, etc.
[0032] The principle of this process is to evaluate the performance and user experience of different communication protocols based on historical data and user feedback to determine their priorities. By analyzing and modeling a large amount of data through machine learning algorithms, relatively accurate and reliable priority sorting results can be obtained. This helps to optimize the selection of communication protocols in practical applications and improve the efficiency and accuracy of vehicle diagnosis.
[0033] In an optional implementation, the prioritizing of multiple communication protocols based on historical diagnostic data and user feedback data to obtain a priority ranking sequence includes: Extracting the communication protocol, connection success rate, and diagnosis time used in each diagnosis process from the historical diagnosis data; calculating an average connection success rate when using each communication protocol for diagnostic communication based on the connection success rate; calculating a diagnostic efficiency when performing diagnostic communication using each communication protocol based on the diagnostic time; Extracting user feedback on each communication protocol from the user feedback data, and calculating user satisfaction when using each communication protocol for diagnostic communication based on the feedback; assigning initial weights to the average connection success rate, the diagnosis efficiency, and the user satisfaction respectively; Performing attenuation calculation on the initial weight according to a preset attenuation rate to obtain an attenuated weight; Calculating a priority score for each communication protocol according to the decay weight; The plurality of communication protocols are prioritized according to the priority scores to obtain a priority ranking sequence.
[0034] Among them, the average connection success rate refers to the proportion of successfully established connections when a certain communication protocol is used for diagnostic communication. The size of the average connection success rate reflects the success probability of diagnostic communication using the communication protocol. Diagnostic efficiency refers to the reciprocal of the time required to complete the diagnosis or a certain efficiency measure when a certain communication protocol is used for diagnostic communication. The shorter the diagnostic time, the higher the diagnostic efficiency. User satisfaction refers to the user's satisfaction with the use of a certain communication protocol for diagnostic communication. The user satisfaction indirectly reflects the connection success rate and diagnostic efficiency when the communication protocol is used for diagnostic communication.
[0035] The first connection success rate and the first diagnostic time of all the first communication protocol used for the diagnostic communication connection are extracted from the historical diagnostic data. The average value is calculated based on all the first connection success rates to obtain the average connection success rate when the first communication protocol is used for the diagnostic communication. The average value is calculated based on all the diagnostic times to obtain the diagnostic efficiency when the first communication protocol is used for the diagnostic communication. The user satisfaction when the first communication protocol is used for the diagnostic communication is calculated based on the user feedback data.
[0036] Initial weights were assigned to the average connection success rate, diagnosis efficiency, and user satisfaction, respectively, to reflect their importance in the priority ranking.
[0037] The preset decay rate is a coefficient used to adjust the initial weight to reflect the time value, which is a positive number less than 1. The initial weight is decayed according to the preset decay rate to obtain the decayed weight. The time value of historical data is taken into account, so that newer data has a greater influence in the priority sorting.
[0038] The priority score of each communication protocol is determined according to the attenuation weight. The priority score reflects the comprehensive performance of the communication protocol in terms of connection success rate, diagnostic efficiency and user satisfaction. The larger the priority score, the higher the priority of the corresponding communication protocol, and the smaller the priority score, the lower the priority of the corresponding communication protocol.
[0039] The plurality of communication protocols are sorted from large to small or from small to large according to the priority scores to obtain a priority sorting sequence. The priority sorting sequence is used to determine the selection order of the communication protocols when attempting to establish a communication connection with the vehicle ECU.
[0040] For example, assuming that the initial weight assigned to the average connection success rate is 0.5, the weight assigned to the diagnostic efficiency is 0.3, and the weight assigned to the user satisfaction is 0.2, the communication protocols that can be used by the Volkswagen engine control unit (ECU) in the historical data are KWP1281 protocol and KWP2000 protocol. Among them, the average connection success rate of the KWP1281 protocol is 0.8, the diagnostic efficiency is 0.6, and the user satisfaction is 0.8; the average connection success rate of the KWP2000 protocol is 0.7, the diagnostic efficiency is 0.7, and the user satisfaction is 0.6; according to the initial weight calculation of the average connection success rate, diagnostic efficiency, and user satisfaction, it can be obtained that the priority score of the KWP1281 protocol is 0.74, and the priority score of the KWP2000 protocol is 0.68, so in the communication protocol priority sorting sequence of the Volkswagen engine control unit (ECU), the KWP1281 protocol has a higher priority than the KWP2000 protocol.
[0041] The above optional implementation method realizes dynamic priority sorting of communication protocols by considering historical diagnostic data and user feedback data, so that the system can adapt to different diagnostic environments and user needs. Giving priority to communication protocols with high connection success rate, high diagnostic efficiency and high user satisfaction can significantly improve the overall efficiency of automobile diagnosis. By considering user satisfaction feedback, the system can select communication protocols that are more in line with user expectations, thereby improving user experience. Attenuation calculation enables the system to better adapt to changes in automobile technology and user needs, while reducing the undue impact of outdated data on priority sorting and enhancing the robustness of the system.
[0042] In an optional implementation, performing attenuation calculation on the initial weight according to a preset attenuation rate to obtain the attenuated weight includes: Determining the data age of each piece of historical diagnosis sub-data according to the time difference between the acquisition time of each piece of historical diagnosis sub-data in the historical diagnosis data and the system time; A decay calculation is performed according to the initial weight, the decay rate and the data age to obtain a decay weight.
[0043] Wherein, the decay weight Wdecayed=W×(1−r) A , W is the initial weight, A is the data age, and r is the decay rate.
[0044] Because the value of historical diagnostic data and user feedback data decreases over time. Older data may no longer reflect the current diagnostic environment and user needs. If historical data is not decayed, outdated data may have an inappropriate impact on new prioritization. In addition, automotive technology and user needs are constantly evolving, and decay calculations help ensure that prioritization can adapt to these changes.
[0045] The data age is determined by calculating the time difference between the acquisition time of each historical diagnostic sub-data and the current system time. The time difference can be in days, weeks, months or years, depending on the actual needs and the characteristics of the data. The older the data age is, the farther the data is from the current time, and the more outdated the information it reflects may be.
[0046] For example, assuming that the priority score of the KWP2000 protocol used by the Volkswagen engine control unit (ECU) in the historical data three years ago is 0.8, the original weight W1=1, the data age A=3, and r is 0.15; the latest priority score can be obtained as 0.4913.
[0047] The above optional implementation method can dynamically adjust the priority ranking of the communication protocol through attenuation calculation, so that it is more in line with the current diagnostic environment and user needs, and enhances adaptability. The latest priority score calculated according to the attenuation rate reduces the current reference value of historical data in the technical update and iteration of the automotive-related field, so as to improve the accuracy of the priority score data, ensure the rationality of the communication protocol priority ranking sequence, and ensure that the automotive diagnostic equipment always uses the latest communication protocol information.
[0048] S13, taking the communication protocol corresponding to the highest priority in the priority sorting sequence as the first target communication protocol.
[0049] After obtaining the priority sorting sequence, the highest priority in the priority sorting sequence can be identified. If the priorities in the priority sorting sequence are arranged in order from large to small, the highest priority is the first priority in the priority sorting sequence. If the priorities in the priority sorting sequence are arranged in order from small to large, the highest priority is the last priority in the priority sorting sequence.
[0050] S14, establishing a first communication connection between the vehicle diagnostic instrument and the vehicle ECU based on the first target communication protocol.
[0051] The communication protocol with the highest priority is selected as the first target communication protocol. Then, in the actual vehicle diagnosis process, the first target communication protocol will be used preferentially to communicate with the ECU.
[0052] In an optional implementation, the automobile diagnostic communication method further includes: Determining whether the first communication connection is successfully connected; When the first communication connection fails, using the communication protocol corresponding to the second highest priority in the priority sorting sequence as the second target communication protocol; A second communication connection between the vehicle diagnostic instrument and the vehicle ECU is established based on the second target communication protocol.
[0053] After the automotive diagnostic device attempts to establish a first communication connection with the vehicle ECU, it checks whether the first communication connection is successfully established. If the first communication connection is successful, it indicates that the first target communication protocol used by the automotive diagnostic device is fully compatible with the vehicle ECU and the two parties can communicate normally. The software of the automotive diagnostic device and the vehicle ECU are both running normally and are configured correctly to support the successful establishment of a communication connection. If the first communication connection fails, it indicates that the first target communication protocol that the automotive diagnostic device attempts to use may be incompatible with or unsupported by the vehicle ECU. The software of the automotive diagnostic device or the vehicle ECU may have errors or be improperly configured, resulting in the failure to successfully establish a communication connection.
[0054] The priority is obtained by sorting the communication protocols based on historical diagnostic data and user feedback data. The priority reflects the performance and stability of the protocol. The second-highest priority communication protocol is usually second only to the highest priority communication protocol in terms of performance and stability. Therefore, when the first communication connection fails, the communication protocol corresponding to the second-highest priority is selected from the priority sorting sequence as the second target communication protocol. Based on the selected second target communication protocol, the automotive diagnostic instrument will try to establish a second communication connection with the vehicle ECU.
[0055] When the second communication connection fails, a communication protocol corresponding to the third highest priority is selected from the priority sorting sequence as the third target communication protocol. Based on the selected third target communication protocol, the vehicle diagnostic instrument attempts to establish a third communication connection with the vehicle ECU.
[0056] And so on, until a communication connection is successfully established, or until all communication protocols in the priority sorting sequence are tried. If a connection cannot be established after trying all communication protocols, it may indicate that there is incompatibility or hardware failure between the automotive diagnostic equipment and the vehicle ECU, which requires further inspection and resolution.
[0057] In the above optional implementation, the communication protocol with the second highest priority is selected as an alternative, and another communication method that may succeed can be quickly tried when the first communication connection fails, thereby improving the overall communication efficiency. By trying communication protocols with different priorities in an orderly manner, it is possible to avoid trying all available communication protocols unnecessarily, thereby reducing resource consumption and potential diagnostic delays.
[0058] In an optional embodiment, establishing a first target communication protocol to establish a first communication connection between the vehicle diagnostic instrument and the vehicle ECU includes: Obtain link information under the Type=1171 identifier in the first target communication protocol type; The link information data is used to establish a first communication connection between the automobile diagnostic instrument and the vehicle ECU.
[0059] The Type=1171 identifier is a specific identifier in the ODX file, which is used to identify the link information used by the communication type with the ECU. In the field of vehicle diagnosis, different communication protocols contain different link information. Link information data refers to the parameters and settings required for communication between the ECU and the external diagnostic tool, which defines how to communicate with the ECU. Each communication protocol contains a link information.
[0060] The above optional implementation method can ensure that the diagnosis process follows a unified standard and improve the compatibility and versatility of the diagnosis tool by obtaining the link information of the communication protocol under the Type=1171 identifier.
[0061] Reference Figure 2 , which is a functional module diagram of an automobile diagnostic communication device shown in an embodiment of the present application.
[0062] In some embodiments, the vehicle diagnostic communication device 20 may include a plurality of functional modules composed of computer program segments. The computer programs of the various program segments of the vehicle diagnostic communication device 20 may be stored in a memory of a vehicle diagnostic device and executed by at least one processor to perform (see Figure 1 Description) Functionality of automotive diagnostic communications.
[0063] In this embodiment, the automobile diagnostic communication device 20 can be divided into multiple functional modules according to the functions it performs. The functional modules may include: an acquisition module 201, a sorting module 202, a confirmation module 203, a connection module 204 and a judgment module 205. The module referred to in this application refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.
[0064] The acquisition module 201 is used to read multiple parameter information from the ODX file and acquire the communication protocol corresponding to each parameter information in the multiple parameter information.
[0065] The sorting module 202 is used to sort the priorities of multiple communication protocols.
[0066] The confirmation module 203 is used to use the communication protocol corresponding to the highest priority in the priority sorting sequence as the first target communication protocol.
[0067] The connection module 204 is used to establish a first communication connection between the vehicle diagnostic instrument and the vehicle ECU based on the first target communication protocol.
[0068] The determining module 205 is configured to determine whether the first communication connection is successfully connected.
[0069] The confirmation module 203 is further configured to use the communication protocol corresponding to the second highest priority in the priority sorting sequence as the second target communication protocol when the first communication connection fails.
[0070] The connection module 204 is further configured to establish a second communication connection between the vehicle diagnostic instrument and the vehicle ECU based on the second target communication protocol.
[0071] The confirmation module 203 is further configured to use the communication protocol corresponding to the second highest priority in the priority sorting sequence as the second target communication protocol when the first communication connection fails.
[0072] The connection module 204 is further configured to establish a communication connection between the diagnostic tool and the vehicle ECU based on the communication protocols with the next highest priority obtained in sequence until the connection is successful.
[0073] It should be understood that the various variations and specific embodiments of the automobile diagnostic communication method provided in the above embodiment are also applicable to the automobile diagnostic communication device in this embodiment. Through the detailed description of the aforementioned automobile diagnostic communication method, those skilled in the art can clearly understand the implementation process of the automobile diagnostic communication device in this embodiment. For the sake of brevity of the specification, it will not be described in detail here.
[0074] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, all or part of the steps of the automobile diagnostic communication method are implemented.
[0075] Reference Figure 3 , which is a schematic diagram of the structure of an automobile diagnostic device shown in an embodiment of the present application.
[0076] In a preferred embodiment of the present application, the automobile diagnostic device 3 includes a memory 31 , at least one processor 32 and at least one communication bus 33 .
[0077] Those skilled in the art should understand that Figure 3The structure of the automobile diagnostic device shown does not constitute a limitation of the embodiments of the present application, and can be either a bus structure or a star structure. The automobile diagnostic device 3 can also include more or less other hardware or software than shown in the figure, or a different component arrangement.
[0078] In some embodiments, the automobile diagnostic device 3 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits, programmable gate arrays, digital processors, and embedded devices. The automobile diagnostic device 3 may also include user equipment, which includes but is not limited to any electronic product that can interact with a user through a keyboard, mouse, remote control, touchpad, or voice control device, such as a personal computer, tablet computer, smart phone, digital camera, etc.
[0079] It should be noted that the automobile diagnostic device 3 is only an example, and other existing or future electronic products that are suitable for the present application should also be included in the protection scope of the present application and included here by reference.
[0080] In some embodiments, the memory 31 stores a computer program, and when the computer program is executed by the at least one processor 32, all or part of the steps in the above-mentioned method are implemented. The memory 31 includes a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data. Further, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc. The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0081] In some embodiments, the at least one processor 32 is the control core (Control Unit) of the automobile diagnostic device 3, and uses various interfaces and lines to connect various components of the entire automobile diagnostic device 3, and executes various functions and processes data of the automobile diagnostic device 3 by running or executing the program or module stored in the memory 31, and calling the data stored in the memory 31. For example, when the at least one processor 32 executes the computer program stored in the memory, it implements all or part of the steps of the above-mentioned ... method in the embodiment of the present application; or implements all or part of the functions of the ... device. The at least one processor 32 can be composed of an integrated circuit, for example, it can be composed of a single packaged integrated circuit, or it can be composed of multiple integrated circuits with the same function or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips.
[0082] In some embodiments, the at least one communication bus 33 is configured to realize connection and communication between the memory 31 and the at least one processor 32, etc. Although not shown, the automobile diagnostic device 3 may also include a power supply (such as a battery) for powering each component. Preferably, the power supply may be logically connected to the at least one processor 32 through a power management device, so that the power management device can realize functions such as management of charging, discharging, and power consumption management. The power supply may also include any components such as one or more DC or AC power supplies, recharging devices, power fault detection circuits, power converters or inverters, power status indicators, etc. The automobile diagnostic device 3 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0083] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, and includes a number of instructions for enabling an automobile diagnostic device (which can be a personal computer, automobile diagnostic device, or network device, etc.) or a processor to execute part of the method described in each embodiment of the present application.
[0084] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0085] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0086] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.
Claims
1. A vehicle diagnostic communication method, characterized in that: The method comprises: Read multiple parameter information from the ODX file, and obtain the communication protocol corresponding to each parameter information in the multiple parameter information; Prioritize multiple communication protocols based on historical diagnostic data and user feedback data to obtain a priority ranking sequence; Using the communication protocol corresponding to the highest priority in the priority sorting sequence as the first target communication protocol; A first communication connection is established between the vehicle diagnostic instrument and the vehicle ECU based on the first target communication protocol.
2. The vehicle diagnostic communication method according to claim 1, characterized in that: The prioritization of multiple communication protocols based on historical diagnostic data and user feedback data to obtain a priority ranking sequence includes: Extracting the communication protocol, connection success rate, and diagnosis time used in each diagnosis process from the historical diagnosis data; calculating an average connection success rate when using each communication protocol for diagnostic communication based on the connection success rate; calculating a diagnostic efficiency when performing diagnostic communication using each communication protocol based on the diagnostic time; Extracting user feedback on each communication protocol from the user feedback data, and calculating user satisfaction when using each communication protocol for diagnostic communication based on the feedback; assigning initial weights to the average connection success rate, the diagnosis efficiency, and the user satisfaction respectively; Performing attenuation calculation on the initial weight according to a preset attenuation rate to obtain an attenuated weight; Calculating a priority score for each communication protocol according to the decay weight; The plurality of communication protocols are prioritized according to the priority scores to obtain a priority ranking sequence.
3. The automobile diagnostic communication method according to claim 2, characterized in that: The attenuation calculation of the initial weight according to the preset attenuation rate to obtain the attenuated weight includes: Determining the data age of each piece of historical diagnosis sub-data according to the time difference between the acquisition time of each piece of historical diagnosis sub-data in the historical diagnosis data and the system time; The decay calculation is performed according to the initial weight, the decay rate and the data age to obtain the decay weight, wherein the decay weight Wdecayed=W×(1−r) A , W is the initial weight, A is the data age, and r is the decay rate.
4. The automobile diagnostic communication method according to any one of claims 1 to 3, characterized in that: The method further comprises: Determining whether the first communication connection is successfully connected; When the first communication connection fails, using the communication protocol corresponding to the second highest priority in the priority sorting sequence as the second target communication protocol; A second communication connection between the vehicle diagnostic instrument and the vehicle ECU is established based on the second target communication protocol.
5. The automobile diagnostic communication method according to any one of claims 1 to 3, characterized in that: The step of reading multiple parameter information from the ODX file and obtaining the communication protocol corresponding to each parameter information in the multiple parameter information includes: Read communication parameter information, ECU configuration information, and vehicle model information from ODX files; Obtain the communication protocol corresponding to the communication parameter information, obtain the communication protocol corresponding to the ECU configuration information, and obtain the communication protocol corresponding to the vehicle model information.
6. The automobile diagnostic communication method according to claim 1, characterized in that: The establishing of a first communication connection between the vehicle diagnostic instrument and the vehicle ECU based on the first target communication protocol includes: Obtain link information under the Type=1171 identifier in the first target communication protocol type; The link information data is used to establish a first communication connection between the automobile diagnostic instrument and the vehicle ECU.
7. An automobile diagnostic communication device, characterized in that: The device comprises: An acquisition module, used for reading a plurality of parameter information from the ODX file, and acquiring a communication protocol corresponding to each of the plurality of parameter information; A sorting module, used to prioritize multiple communication protocols; A confirmation module, configured to use the communication protocol corresponding to the highest priority in the priority sorting sequence as the first target communication protocol; The connection module is used to establish a first communication connection between the vehicle diagnostic instrument and the vehicle ECU based on the first target communication protocol.
8. An automobile diagnostic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the automobile diagnostic communication method according to any one of claims 1 to 7 when executing the computer program.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the vehicle diagnostic communication method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Vehicle machine diagnosis method and device based on multi-channel communication, computer equipment and medium
CN119645013A
Bus communication protocol optimization method based on time division multiplexing technology
CN120200869A
Multi-protocol adaptive serial port communication method, meter reading equipment and meter reading system
CN121000803A
