Vehicle diagnostic data reading method and related device

By distinguishing static and dynamic data flows in the vehicle diagnostic system, and using a single read static data method, the resource waste and inefficiency caused by real-time circular reading of static data flows is solved, and diagnostic efficiency and user experience are improved.

CN120578686APending Publication Date: 2025-09-02LAUNCH TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510610845.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-13
Publication Date
2025-09-02

AI Technical Summary

Technical Problem

In the prior art, real-time cyclic reading of static data streams during vehicle diagnosis results in waste of resources and low diagnostic efficiency, affecting user experience.

Method used

Reduce resource and time waste by building static and dynamic storage areas, distinguishing data flow types and performing single reads for static data flows.

Benefits of technology

It improves vehicle diagnostic efficiency, improves user experience, and reduces resource consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120578686A_ABST
    Figure CN120578686A_ABST
Patent Text Reader

Abstract

The invention provides a vehicle diagnosis data reading method and a related device, and the method comprises the steps: operation equipment of a vehicle diagnosis system constructs communication connection with an electronic control unit and carries out initialization operation, the initialization operation comprises updating data in a storage database, and the data comprises a static storage area and a dynamic storage area; receiving a first data reading instruction input by a user; determining a data stream type based on the first data reading instruction and a storage database, wherein the data stream type comprises a static data stream type and a dynamic data stream type; and if the data stream type is the static data stream type, executing a first data reading operation based on the first data reading instruction, and determining first target vehicle data. Therefore, the static data and the dynamic data are distinguished, and the static data are read at a time, so that resource and time waste during data reading is reduced, the vehicle diagnosis efficiency is improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle diagnosis, and in particular to a vehicle diagnostic data reading method and related devices. Background Art

[0002] During vehicle diagnostics, data streaming plays a crucial role in troubleshooting. Repair technicians can use data streams to locate and verify the normal status of each electronic control unit (ECU), thereby assisting with vehicle repairs. A common method for reading data streams involves the user selecting the data streams to be read. The diagnostic software then retrieves the data identifiers (DIDs) for these streams and loops through them, sending commands to the ECU one by one to retrieve the values ​​for each data stream and display them on the client interface. However, not all data streams require continuous, real-time communication with the ECU. Some data rarely changes throughout the diagnostic process and only needs to be read once. Traditional methods for reading data streams require these single, static data streams to be sent in a real-time loop. In some cases, when some data streams fail to respond, each read cycle requires timeouts and multiple attempts. This wastes resources and time, reduces diagnostic efficiency, and negatively impacts the user experience. Summary of the Invention

[0003] The embodiments of the present application provide a vehicle diagnostic data reading method and related devices, which are conducive to reducing resource and time waste, improving diagnostic efficiency, and enhancing user experience.

[0004] In a first aspect, an embodiment of the present application provides a method for reading vehicle diagnostic data, which is applied to an operating device of a vehicle diagnostic system, wherein the vehicle diagnostic system further includes an electronic control unit, and the electronic control unit is disposed in a target vehicle. The method includes:

[0005] Establishing a communication connection with the electronic control unit and performing an initialization operation, the initialization operation including updating data in a storage database, including a static storage area and a dynamic storage area;

[0006] Receive a first data reading instruction input by a user, where the first data reading instruction is used to indicate a name of a data stream to be obtained;

[0007] Determine a data stream type based on the first data read instruction and the storage database, where the data stream type includes a static data stream type and a dynamic data stream type;

[0008] If the data stream type is the static data stream type, a first data read operation is performed based on the first data read instruction to determine the first target vehicle data. The first data read operation is used to read the static data of the electronic control unit and / or read historical static data at a single time.

[0009] In a possible embodiment, establishing a communication connection with the electronic control unit and performing an initialization operation includes:

[0010] establishing a communication connection with the electronic control unit based on the vehicle identification code;

[0011] receiving a data flow information set from an electronic control unit, the data flow information set including a plurality of data flow names, a plurality of data identifiers, and corresponding data flow types, each of the data flow names corresponding to a data flow type, and the data identifiers being a unique identification code corresponding to each data flow name;

[0012] The initialization operation is performed on the storage database based on a preset data partitioning rule, the data identifier and the data stream type.

[0013] In a possible embodiment, determining the data stream type based on the first data reading instruction and the storage database includes:

[0014] Performing data mapping based on the first data read instruction to determine a target data identifier corresponding to the data stream name;

[0015] Based on the target data identifier, data traversal is performed in the static storage area and the dynamic storage area to determine the data flow type corresponding to the target data identifier, wherein if the target data identifier is found in the static storage area, the data flow type is the static data flow type; if the target data identifier is found in the dynamic storage area, the data flow type is the dynamic data flow type.

[0016] In a possible embodiment, if the first data read operation is used to read static data of the electronic control unit once, performing the first data read operation based on the first data read instruction includes:

[0017] Sending a second data read instruction to the electronic control unit, where the second data read instruction includes the target data identifier, and the second data read instruction is used to instruct the electronic control unit to transmit a target data value corresponding to the target data identifier in a single transmission;

[0018] The target data value is acquired from the electronic control unit as the static data.

[0019] In a possible embodiment, the operating device is further provided with a history database, the history database being used to store at least one vehicle data of historically detected vehicles, the at least one vehicle data including at least one historical static data, and performing the first data reading operation based on the first data reading instruction includes:

[0020] Performing a historical data search based on the vehicle identification code and the historical database to determine historical static data and a data change rate of the target vehicle, wherein the data change rate is used to indicate whether the static data of the target vehicle has changed, and the data change rate includes whether the static data of the target vehicle has changed and whether the static data of the target vehicle has not changed;

[0021] If the data change rate is that no change has occurred, determining first target vehicle data based on the historical static data and the first data reading instruction;

[0022] If the data change rate is the change, a second data read instruction is sent to the electronic control unit, the second data read instruction including the target data identifier, and the second data read instruction is used to instruct the electronic control unit to transmit the target data value corresponding to the target data identifier once; and obtain the target data value from the electronic control unit as the static data.

[0023] In a possible embodiment, the method further includes: if the data stream type is the dynamic data stream type, performing a second data reading operation based on the first data reading instruction to determine second target vehicle data, and the second data reading operation is used to periodically read the dynamic data of the electronic control unit.

[0024] In a possible embodiment, performing the second data read operation based on the first data read instruction includes:

[0025] Sending a third data read instruction to the electronic control unit, wherein the third data read instruction includes the target data identifier, and the third data read instruction is used to instruct the electronic control unit to periodically transmit a target data value corresponding to the target data identifier;

[0026] The target data value is acquired as the dynamic data.

[0027] In a possible embodiment, performing the second data read operation based on the first data read instruction includes:

[0028] Determine a data update characteristic parameter based on the target data identifier and a preset period mapping rule, wherein the data update characteristic parameter is used to characterize the frequency speed of data changes;

[0029] Determining an acquisition frequency parameter based on the data update characteristic parameter and a preset acquisition frequency mapping rule;

[0030] sending a third data read instruction to the electronic control unit, the third data read instruction including the target data identifier and the acquisition frequency parameter, the third data read instruction being used to instruct the electronic control unit to periodically transmit a target data value corresponding to the target data identifier according to the acquisition frequency parameter;

[0031] The target data value is acquired as the dynamic data.

[0032] In a second aspect, an embodiment of the present application provides a vehicle diagnostic data reading device, which is applied to an operating device of a vehicle diagnostic system, wherein the vehicle diagnostic system further includes an electronic control unit, which is disposed in a target vehicle, and the device includes:

[0033] an initialization module, configured to establish a communication connection with the electronic control unit and perform an initialization operation, wherein the initialization operation includes updating data in a storage database, including a static storage area and a dynamic storage area;

[0034] A data receiving module, configured to receive a first data reading instruction input by a user, wherein the first data reading instruction is used to indicate a name of a data stream to be obtained;

[0035] a type determination module, configured to determine a data stream type based on the first data read instruction and the storage database, wherein the data stream type includes a static data stream type and a dynamic data stream type;

[0036] A data reading module is used to perform a first data reading operation based on the first data reading instruction to determine first target vehicle data if the data stream type is the static data stream type, and the first data reading operation is used to read the static data of the electronic control unit and / or read historical static data at a single time.

[0037] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing some or all of the steps described in the first aspect of the embodiment of the present application.

[0038] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes some or all of the steps described in the first aspect.

[0039] In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, wherein the computer program is operable to cause a computer to perform some or all of the steps described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.

[0040] By implementing the embodiment of the present application, the operating device of the vehicle diagnostic system establishes a communication connection with the electronic control unit and performs an initialization operation, wherein the initialization operation includes updating the data in the storage database, including a static storage area and a dynamic storage area; receiving a first data read instruction input by the user, wherein the first data read instruction is used to indicate the name of the data stream to be obtained; determining the data stream type based on the first data read instruction and the storage database, wherein the data stream type includes a static data stream type and a dynamic data stream type; if the data stream type is the static data stream type, performing a first data read operation based on the first data read instruction to determine the first target vehicle data, wherein the first data read operation is used to read the static data of the electronic control unit and / or read historical static data in a single time. In this way, static data is distinguished from dynamic data, and a single read is performed on static data, thereby reducing the waste of resources and time when reading data, improving vehicle diagnostic efficiency, and improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the background technology, the drawings required for use in the embodiments of the present invention or the background technology will be described below.

[0042] Figure 1a This is a system architecture diagram of a vehicle diagnostic system provided by an embodiment of the present application;

[0043] Figure 1b is a system architecture diagram of another vehicle diagnostic system provided by an embodiment of the present application;

[0044] Figure 1c This is a schematic diagram of the structure of an operating device provided in an embodiment of the present application;

[0045] Figure 1d is a structural diagram of another operating device provided in an embodiment of the present application;

[0046] Figure 2 This is a flow chart of a method for reading vehicle diagnostic data provided by an embodiment of the present application;

[0047] Figure 3a is a schematic diagram of a storage structure provided in an embodiment of the present application;

[0048] Figure 3bis a schematic diagram of another storage structure provided in an embodiment of the present application;

[0049] Figure 4a-4c This is a schematic diagram of an interactive display of a display interface provided in an embodiment of the present application;

[0050] Figure 5 This is a flow chart of another method for reading vehicle diagnostic data proposed in an embodiment of the present application;

[0051] Figure 6 This is a schematic structural diagram of a vehicle diagnostic data reading device provided by an embodiment of the present application;

[0052] Figure 7 It is a structural diagram of another vehicle diagnostic data reading device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0054] The terms "first," "second," and the like in the specification and claims of this application and the accompanying drawings are used to distinguish between different objects, not to describe a specific order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or electronic device comprising a series of steps or units is not limited to the listed steps or units, but may, in an optional example, also include steps or units not listed, or may, in an optional example, include other steps or units inherent to the process, method, product, or electronic device.

[0055] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0056] During automotive diagnostics, data streaming plays a crucial role in troubleshooting. Repair technicians can use data streams to determine the correct status of each electronic control unit (ECU), thereby assisting with vehicle repairs. A common approach to reading data streams involves the user selecting the desired data streams. The diagnostic software then retrieves the data identifiers (DIDs) for each stream and loops through them, sending commands to the ECU one by one to retrieve the values ​​for each stream and display them on the client interface. However, not all data streams require continuous, real-time communication with the ECU. Some data rarely changes throughout the diagnostic process and only requires a single read. Traditional data stream reading methods require these single, static data streams to be sent in a real-time loop. In some cases, if some data streams fail to respond, each read cycle will require timeouts and multiple attempts. This wastes resources and time, reduces diagnostic efficiency, and negatively impacts the user experience.

[0057] In view of the above problems, the embodiments of the present application provide a vehicle diagnostic data reading method and related devices. The vehicle diagnostic data reading method and related devices provided by the embodiments of the present application can be applied to Figure 1a-Figure 1b In the vehicle diagnostic system shown, refer to Figure 1a , Figure 1a This is a system architecture diagram of a vehicle diagnostic system provided by an embodiment of the present application, such as Figure 1a As shown, the vehicle diagnostic system 100 includes an electronic control unit 120 and an operating device 110 .

[0058] The operating device 110 can communicate with the electronic control unit 120 via a communication protocol. The operating device 110 is a mobile terminal used by users to perform vehicle diagnostics. The operating device 110 is installed with diagnostic software, which users use to perform vehicle diagnostics. The diagnostic device's functionality relies on the software, which provides a user interface that allows users to operate the device and perform various diagnostic operations, such as reading fault codes, viewing data streams, and performing component tests.

[0059] In this solution, the operating device 110 features a user interface, primarily responsible for interaction, enabling users to conveniently perform vehicle diagnostic operations, including viewing data streams. Multiple databases can be deployed on the operating device 110, which stores and retrieves data. The electronic control unit 120, or ECU, is located in the vehicle and controls one or more electrical systems. The ECU 120 defines data streams. When designing vehicle diagnostic data, automakers categorize data streams based on their refresh rate. Data streams that require no refresh and remain unchanged are defined as "static data streams," such as the vehicle frame number (VIN) and ECU software version number. Data streams that have a high refresh rate and change in real time with vehicle operating conditions are defined as "dynamic data streams," such as engine speed and vehicle speed. Both types of data streams (DIDs) are written into the ECU, and a new DID is provided for external queries. For example, DID 0XAA01 represents the DID for querying static data streams, while DID 0XAA02 represents the DID for querying dynamic data streams.

[0060] See also Figure 1b , Figure 1b This is a system architecture diagram of another vehicle diagnostic system provided by an embodiment of the present application. Figure 1b As shown, the vehicle diagnostic system includes an operating device 110 , an electronic control unit 120 and a server 130 .

[0061] The operating device 110 can communicate with the server 130 via a network. The operating device 110 is a mobile terminal, such as a smartphone, tablet, or computer, used by a user to perform vehicle diagnostics. The operating device 110 is installed with diagnostic software, which the user uses to perform vehicle diagnostics. The diagnostic device's functionality relies on the software, which provides a user interface that allows the user to operate the device and perform various diagnostic operations, such as reading fault codes, viewing data streams, and performing component tests.

[0062] In this solution, operating device 110 is equipped with a user interface, primarily responsible for interacting with server 130. Server 130 is a remote computer used to process large amounts of computing tasks and store data. In this solution, server 130 can host multiple databases, which are used to store and retrieve data. Server 130 can also be used to collect data during model usage to facilitate subsequent optimization.

[0063] See also Figure 1c , Figure 1c1 is a schematic diagram of the structure of an operating device provided in an embodiment of the present application. The operating device 110 includes a processor 111, a memory 112, a communication interface 113, a display device 114, and one or more programs 1121, wherein the one or more programs 1121 are stored in the above-mentioned memory 112 and are configured to be executed by the above-mentioned processor 111. The one or more programs 1121 include instructions for executing any step in the following method embodiment. In a specific implementation, the processor 111 is used to execute any step performed by the infusion device in the following method embodiment, and when performing data transmission such as sending, the communication interface 113 can be optionally called to complete the corresponding operation. When performing operations operated by the user such as obtaining the first data reading instruction, it is completed by the display device 114.

[0064] See also Figure 1d , Figure 1d 1 is a schematic diagram of the structure of another operating device provided in an embodiment of the present application. The operating device 110 includes a processor 111, a memory 112, a communication interface 113, and one or more programs 1121. The one or more programs 1121 are stored in the memory 112 and are configured to be executed by the processor 111. The one or more programs 1121 include instructions for executing any step in the following method embodiment. In a specific implementation, the processor 111 is used to execute any step performed by the operating device in the following method embodiment, and when performing data transmission such as sending, the communication interface 113 can be optionally called to complete the corresponding operation.

[0065] See also Figure 2 , Figure 2 This is a flow chart of a vehicle diagnostic data reading method provided by an embodiment of the present application, which is applied to an operating device of a vehicle diagnostic system, wherein the vehicle diagnostic system further comprises an electronic control unit, which is arranged in a target vehicle, such as Figure 2 As shown, the method includes the following steps:

[0066] S210: Establishing a communication connection with the electronic control unit and performing an initialization operation, wherein the initialization operation includes updating data in a storage database, including a static storage area and a dynamic storage area.

[0067] The operating device is a user-operated device used for vehicle diagnostics. It establishes a physical connection with the vehicle through the vehicle's On-Board Diagnostic System (OBD) interface. This connection is based on standard OBD communication protocols, such as the CAN bus (Controller Area Network). In some cases, remote diagnosis can also be achieved wirelessly. UDS communication is then established between the ECU and the operating device.

[0068] After the operating device establishes a communication connection with the vehicle's ECU, it initializes the database. Prior to this, the OEM categorizes data streams based on refresh rates when designing vehicle diagnostic data and stores the resulting data streams in the vehicle's ECU. vctor_dynamicDatas_select stores dynamic data streams, while vctor_staticDatas_select stores static data streams. Specifically, data streams that require no refresh and remain unchanged, such as the vehicle chassis number and ECU software version number, are defined as "static data streams." Data streams with a high refresh rate and that change in real time with vehicle operating conditions, such as engine speed, vehicle speed, and oil temperature sensor temperature, are defined as "dynamic data streams." The DIDs for both data streams are written to the ECU, and a new DID is provided for external queries. For example, DID 0XAA01 represents the DID for querying static data streams, while DID 0XAA02 represents the DID for querying dynamic data streams. After the operating device and ECU establish a communication connection, the device performs data initialization, which includes updating the data in the stored database.

[0069] The storage database is one of the storage spaces provided in the operating device. Its storage structure is divided into a static storage area and a dynamic storage area. The static storage area is used to store data identifiers for static data, while the dynamic storage area is used to store data identifiers for dynamic data streams. Data identifiers are used to distinguish different types of data. For example, the data identifier for a vehicle frame number is 0XF190, and the data identifier for engine speed is 0X3A01.

[0070] In a possible embodiment, the establishing of a communication connection with the electronic control unit and performing an initialization operation includes: establishing a communication connection with the electronic control unit based on a vehicle identification code; receiving a data stream information set from the electronic control unit, the data stream information set including a plurality of data stream names, a plurality of data identifiers and corresponding data stream types, each data stream name corresponding to a data stream type, the data identifier being a unique identification code corresponding to each data stream name; and performing the initialization operation on the storage database based on a preset data partitioning rule, the data identifier and the data stream type.

[0071] The vehicle identification code can be a unique identification code for the vehicle, specifically a VIN code. When establishing a communication connection between the target vehicle and the operating device, the identification and authentication of the vehicle identification code can also be incorporated to ensure the correctness and uniqueness of the vehicle. After authenticating the vehicle's VIN code, the specific communication method between the target vehicle and the operating device is determined, providing a double safeguard. The method for establishing the communication connection is described above and will not be further elaborated here.

[0072] When designing vehicle diagnostic data, automobile manufacturers categorize data streams based on their refresh rates. When accessing data, operating devices can directly obtain a categorized data stream information set. This data stream information set can include multiple data stream names and the data stream type corresponding to each data stream name. The data stream name is the name of the specific data that can be obtained, such as the ECU software version number, engine speed, vehicle speed, oil temperature sensor temperature, etc. The data stream type can include a DID representing a query for a static data stream: DID 0XAA01, and a DID representing a query for a dynamic data stream: DID 0XAA02. Specifically, the ECU software version number can correspond to 0XAA01, and the engine speed, vehicle speed, and oil temperature sensor temperature can correspond to 0XAA02. The ECU's response data, i.e., the data stream information set, is obtained and parsed.

[0073] Because the data stream information set is transmitted using the UDI standard, each 2 bytes identifies a data stream DID, which is stored in the data structures vctor_staticDatas and vctor_dynamicDatas. vctor_staticDatas stores the DIDs of static data streams, while vctor_dynamicDatas stores the DIDs of dynamic data streams. Based on this and the preset data partitioning rules, the storage database is initialized.

[0074] Specifically, the storage database is divided into a static storage area and a dynamic storage area, and the multiple data identifiers obtained by parsing are divided into different storage areas based on data division rules. The data division rules can be based on the data stream type corresponding to the data identifier and divided into a dynamic storage area or a static storage area.

[0075] For example, see Figure 3a , Figure 3a This is a schematic diagram of a storage structure provided by an embodiment of the present application. Figure 3a As shown, the data storage areas of 0XAA01 and 0XAA02 are pre-set in the ECU. 0XAA01 corresponds to data identifiers such as 0XF190, 0XF100, and 0XF101, and 0XAA02 corresponds to data identifiers such as 0X3A01, 0X3A02, and 0X3A03. After initialization, 0XF190, 0XF100, and 0XF101 are stored in the static storage area vctor_staticDatas in the storage database of the operating device, and 0X3A01, 0X3A02, and 0X3A03 are stored in the dynamic storage area vctor_dynamicDatas.

[0076] It can be seen that in this embodiment, the attributes of the data stream are defined within the ECU, and the diagnostic software queries which data streams are included in the corresponding attributes through DID commands; and initializes these data into the static storage area and dynamic storage area divided in advance by the operating device. This can adapt to different vehicle models and configurations, reduce initial setup time, and improve diagnostic efficiency.

[0077] S220: Receive a first data reading instruction input by a user, where the first data reading instruction is used to indicate a name of a data stream to be obtained.

[0078] The user inputs the data stream to be read by operating the device, specifically, the input method can be to select and click input through the display device. When it is detected that the user clicks on any control for displaying the data stream name, a first data reading instruction corresponding to the control is generated.

[0079] S230: Determine a data stream type based on the first data read instruction and the storage database, where the data stream type includes a static data stream type and a dynamic data stream type.

[0080] Among them, the first data reading instruction is used to indicate the specific data stream name. The storage database stores the DIDs corresponding to multiple classified data streams after database initialization. The data stream types include static data stream types and dynamic data stream types, which correspond to static storage areas and dynamic storage areas respectively.

[0081] Among them, after obtaining the first data reading instruction, the data stream name obtained based on the first data reading instruction is converted into a DID code with the same structure as the storage database, and then the stored data is traversed based on the selected DID obtained after the conversion to obtain the data stream type corresponding to the DID, that is, to determine whether the DID is a static data stream or a dynamic data stream.

[0082] In a possible embodiment, determining the data stream type based on the first data read instruction and the storage database includes: performing data mapping based on the first data read instruction to determine the target data identifier corresponding to the data stream name; performing data traversal in the static storage area and the dynamic storage area based on the target data identifier to determine the data stream type corresponding to the target data identifier, wherein if the target data identifier is found in the static storage area, the data stream type is the static data stream type, and if the target data identifier is found in the dynamic storage area, the data stream type is the dynamic data stream type.

[0083] The target data identifier can be the aforementioned DID, and data mapping can be understood as an operation that associates a data stream name with a specific data identifier, i.e., a DID. When the system receives the first data read instruction, it performs a search and match operation in a pre-defined data structure or database. This pre-defined data structure or database stores the correspondence between data stream names and data identifiers. Using the data stream name found in the first data read instruction, the matching target data identifier can be found within this correspondence.

[0084] For example, if the data stream name in the first data read instruction is "engine speed data", the system will find the unique data identifier corresponding to "engine speed data" in the corresponding data structure, such as "0X3A01". After obtaining the target data identifier, the system will perform data traversal operations in the static storage area and the dynamic storage area respectively. If the target data identifier is found in the static storage area, it means that the data stream corresponding to the data identifier is of the static data stream type. If the target data identifier is found in the dynamic storage area, the data stream corresponding to the data identifier is of the dynamic data stream type.

[0085] It can be seen that in this embodiment, data traversal is performed in the static storage area and the dynamic storage area to determine the data flow type, so that the system can accurately identify the characteristics of the data, flexibly respond to different data requirements, and can only process data related to the current task, avoiding the interference of a large amount of irrelevant data, which is conducive to reducing the workload of data processing and improving the processing speed and efficiency of the system.

[0086] S240, if the data stream type is the static data stream type, a first data reading operation is performed based on the first data reading instruction to determine the first target vehicle data, where the first data reading operation is used to read the static data of the electronic control unit and / or read historical static data at a single time.

[0087] Among them, if the data stream type is detected to be a static data stream type, it means that the data stream is data that is unlikely to change. Based on this, a first data reading operation is performed to determine the first target vehicle data, which is the data of the data stream that the user wants to read.

[0088] The first data reading operation is a single read of the electronic control unit's data, i.e., obtaining the data on the electronic control unit's data stream only once. Alternatively, the first data reading operation is a read of historical static data, which is data stored in a historical database and corresponds to historical data of the vehicle being tested.

[0089] In a possible embodiment, if the first data read operation is used to read the static data of the electronic control unit once, executing the first data read operation based on the first data read instruction includes: sending a second data read instruction to the electronic control unit, the second data read instruction including the target data identifier, the second data read instruction being used to instruct the electronic control unit to transmit the target data value corresponding to the target data identifier once; and obtaining the target data value from the electronic control unit as the static data.

[0090] Among them, after obtaining the DID, the operating device will construct the corresponding instruction according to the requirements of the UDS protocol. This instruction will include the DID read previously, and in some cases, it will also include other necessary information, such as the requested data length and data format. After constructing the instruction, the operating device will send the instruction to the ECU. In some possible cases, the data may be transmitted through the vehicle's diagnostic interface (such as the OBD interface). After receiving the UDS instruction sent by the diagnostic software, the ECU will parse and verify it. If the instruction is legal and the ECU supports the operation requested by the instruction, the ECU will find the corresponding data stream based on the DID and read its current value. Then, the ECU will encapsulate the value of the data stream in a response message according to the format specified by the UDS protocol and return it to the operating device through the diagnostic interface.

[0091] The second data reading instruction further includes a sending times instruction information that only needs to be sent once, and is used to instruct the ECU to send a target data value of the data stream in a single time.

[0092] It can be seen that in this embodiment, by judging that the target data identifier is a static data stream type, and then obtaining the data corresponding to the data stream once and instructing the ECU to send it once, the waste of resources and time when reading data is reduced, the vehicle diagnosis efficiency is improved, and the user experience is improved.

[0093] In a possible embodiment, the operating device is further provided with a historical database, which is used to store at least one vehicle data of a historically detected vehicle, and the at least one vehicle data includes at least one historical static data. The execution of the first data reading operation based on the first data reading instruction includes: performing historical data search based on the vehicle identification code and the historical database, determining the historical static data and data change rate of the target vehicle, the data change rate is used to indicate whether the static data of the target vehicle has changed, and the data change rate includes change and no change; if the data change rate is no change, determining the first target vehicle data based on the historical static data and the first data reading instruction; if the data change rate is change, sending a second data reading instruction to the electronic control unit, the second data reading instruction includes the target data identifier, and the second data reading instruction is used to instruct the electronic control unit to transmit the target data value corresponding to the target data identifier once; obtaining the target data value from the electronic control unit as the static data.

[0094] The historical database stores a large collection of historical vehicle data, including various static data and data change records for each vehicle at different points in time. When a query is needed for a specific vehicle's historical information, the system searches the historical database based on the vehicle identification code (VIN) to find the relevant historical data set for that vehicle. First, a query is initiated in the historical database using the VIN as a keyword. The historical database quickly locates records matching the VIN within its various storage areas. If matching historical static data and data change rates are found, the target vehicle's historical static data and associated data change records, including the data change rate, are extracted. If the data change rate is determined to be "unchanged," this means that the target vehicle's static data has not changed since leaving the factory. In this case, the diagnostic software can directly determine the first target vehicle data based on the historical static data and the first data read instruction. Specifically, according to pre-defined rules, the data associated with the first data read instruction is selected from the historical static data as the first target vehicle data. For example, if the first data read instruction requests the vehicle's engine model and transmission type, the diagnostic software directly extracts these two pieces of information from the historical static data as the first target vehicle data. If the data change rate is "changed," this indicates that the static data of the target vehicle has changed in some way. To obtain the latest and most accurate data, the operating device needs to send a second data read instruction to the ECU. The steps in the above embodiment are then executed, which will not be repeated here.

[0095] In some cases, executing the first data read operation based on the first data read instruction includes: obtaining a data acquisition amount, where the data acquisition amount is the number of first data read instructions acquired within a preset time period; if the data acquisition amount is less than a data acquisition amount threshold, sending a second data read instruction to the electronic control unit to acquire the target data value from the electronic control unit as the static data; if the data acquisition amount is not less than the data acquisition amount threshold, performing a historical data search based on the vehicle identification code and the historical database to determine historical static data and a data change rate of the target vehicle, where the data change rate is used to indicate whether the static data of the target vehicle has changed, and the data change rate includes changes and no changes; if the data change rate is no changes, determining first target vehicle data based on the historical static data and the first data read instruction; if the data change rate is changed, sending a second data read instruction to the electronic control unit, where the second data read instruction includes the target data identifier, and the second data read instruction is used to instruct the electronic control unit to transmit the target data value corresponding to the target data identifier in a single transmission; and acquiring the target data value from the electronic control unit as the static data.

[0096] It should be noted that if the data acquisition amount in the current time period is not less than the data acquisition amount threshold, priority is given to obtaining information from the historical database. In the subsequent time period, the data acquisition amount can continue to be acquired and judged. When the data acquisition amount is less than the data acquisition amount threshold, a second data reading instruction is sent to the electronic control unit to obtain the target data value from the electronic control unit as the static data; and based on the static data and the static data in the historical database, a comparison is made. If there is inconsistency, the first target vehicle data is updated, so that the static data acquired from the electronic control unit is used as the first target vehicle data, and the data change rate and the corresponding static data in the historical database are updated; if there is consistency, the first target vehicle data is not changed, and the data change rate and the corresponding static data in the historical database are updated. In practice, the static data in the historical database should remain unchanged at this time.

[0097] It can be seen that in this embodiment, by setting up a historical database and first considering the static data in the historical database, communication congestion can be reduced to a certain extent, the consumption of diagnostic resources can be minimized, the reading efficiency of the data stream can be improved, and the user experience can be greatly improved.

[0098] In a possible embodiment, the method further includes: if the data stream type is the dynamic data stream type, performing a second data reading operation based on the first data reading instruction to determine second target vehicle data, and the second data reading operation is used to periodically read the dynamic data of the electronic control unit.

[0099] Among them, the data update frequency of the dynamic data stream type is higher, and generally needs to be continuously acquired at a specific frequency. The second data reading operation is to continuously and periodically read the data on the data stream of the electronic control unit, that is, dynamic data.

[0100] Specifically, executing the second data reading operation based on the first data reading instruction includes: sending a third data reading instruction to the electronic control unit, the third data reading instruction including the target data identifier, and the third data reading instruction is used to instruct the electronic control unit to periodically transmit the target data value corresponding to the target data identifier; obtaining the target data value as the dynamic data.

[0101] After obtaining the DID, the operating device constructs a corresponding instruction according to the requirements of the UDS protocol. This instruction includes the previously read DID and, in some cases, other necessary information such as the requested data length and format. After constructing the instruction, the operating device sends it to the ECU. In some cases, data transmission may be carried out through the vehicle's diagnostic interface (such as the OBD interface). After receiving the UDS instruction sent by the diagnostic software, the ECU parses and verifies it. If the instruction is valid and the ECU supports the operation requested by the instruction, the ECU locates the corresponding data stream based on the DID and periodically reads its current value at a preset frequency. Then, each time the data stream value is read, the ECU encapsulates the data stream value in a response message according to the format specified by the UDS protocol and returns it to the operating device through the diagnostic interface.

[0102] The third data reading instruction further includes instruction information of the number of times the data needs to be continuously sent at a preset frequency, which is used to instruct the ECU to continuously send the target data value of the data stream.

[0103] For examples, see Figure 3b , Figure 3b is a schematic diagram of another storage structure provided by an embodiment of the present application, such as Figure 3bAs shown, the first data read instruction input by the user indicates the data stream selected by the user, that is, the data stream name, which is engine speed, ECU software version number, vehicle speed, oil temperature sensor temperature, etc. After conversion, the corresponding data identifier, that is, the data stream DID selected by the user, is determined. Then, the static storage area vctor_staticDatas and the dynamic storage area vctor_dynamicDatas of the storage database are queried respectively to determine the data stream type corresponding to each data identifier. Based on this, the first data read instruction is generated and sent to the electronic control unit. The electronic control unit then reads the corresponding data stream data in vctor_staticDatas_select and vctor_dynamicDatas_select, and transmits the data to the operating device once or multiple times.

[0104] It can be seen that in this embodiment, in the case where a dynamic data stream type is detected, the data of the corresponding data stream is acquired in real time, so that the current actual operation status of the vehicle can be understood in a timely and accurate manner.

[0105] In a possible embodiment, executing the second data reading operation based on the first data reading instruction includes: determining a data update characteristic parameter based on the target data identifier and a preset periodic mapping rule, the data update characteristic parameter being used to characterize the frequency speed characteristics of data changes; determining an acquisition frequency parameter based on the data update characteristic parameter and a preset acquisition frequency mapping rule; sending a third data reading instruction to the electronic control unit, the third data reading instruction including the target data identifier and the acquisition frequency parameter, the third data reading instruction being used to instruct the electronic control unit to periodically transmit the target data value corresponding to the target data identifier according to the acquisition frequency parameter; and acquiring the target data value as the dynamic data.

[0106] The preset period mapping rule is a predefined logical relationship that links the changing characteristics of different data with corresponding period values. For example, engine speed data may fluctuate within a certain range with a relatively short period; whereas, the oil temperature sensor temperature may vary over a longer period. Based on this, the data corresponding to the target data identifier is analyzed for changes in the data to determine a data update characteristic parameter, which characterizes the frequency of data changes. If the data update characteristic parameter indicates rapid data changes, the rule may set the acquisition frequency parameter to a higher value, such as 1 time per second. If the data changes slowly, the acquisition frequency parameter may be set to a lower value, such as 1 time per 5 seconds. Based on this frequency parameter, a third data read instruction is generated, instructing the ECU to acquire data from the corresponding data stream according to this frequency parameter. The third data read instruction includes the previously read DID and frequency parameter, and in some cases, other necessary information, such as the requested data length and format. After constructing the instruction, the operating device sends the instruction to the ECU, possibly transmitting data through the vehicle's diagnostic interface (such as the OBD interface). After receiving the UDS command from the diagnostic software, the ECU parses and validates it. If the command is valid and the ECU supports the requested operation, it locates the corresponding data stream based on the DID and periodically reads its current value at a preset frequency based on the frequency parameter. Each time the data stream value is read, the ECU encapsulates the data stream value in a response message according to the format specified by the UDS protocol and returns it to the operating device through the diagnostic interface.

[0107] In a specific implementation, the frequency mapping rule may be a pre-set fixed rule or a model algorithm, and may be optimized as it is used, which is not limited here.

[0108] It can be seen that in this embodiment, by determining the data update characteristic parameters based on the target data identifier and the periodic mapping rules, the acquisition frequency can be customized according to the changing characteristics of different data themselves, so as to further reduce resource waste within the same time period, avoid unnecessary data transmission and processing, and improve the overall efficiency of the system. By adjusting the acquisition frequency according to actual conditions, the system resources and data requirements can be better balanced to ensure the rational use of resources.

[0109] In a possible embodiment, after the first target vehicle data and / or the second target vehicle data are acquired, the first target vehicle data and / or the second target vehicle data are displayed on a display interface of the operating device.

[0110] The operating device includes a display device that can display a display interface having controls for user click selection and text boxes and data boxes for displaying acquired data. When the first target vehicle data and the second target vehicle data are acquired, the display interface is displayed.

[0111] For examples, see Figure 4a 、 Figure 4b 、 Figure 4c , Figures 4a to 4c This is an interactive display diagram of a display interface provided by an embodiment of the present application. A read data stream display interface for selecting a data stream is displayed on a display device. The interface includes at least a plurality of data stream name controls and a plurality of data display boxes corresponding to the plurality of data stream name controls. The data display box may include at least one of a numerical box, a unit box, and a standard value. A data stream name is displayed on each data stream name control, which may specifically be: ECU software version number, engine speed, vehicle speed, oil temperature sensor temperature and other data stream name controls. In some cases, there may also be a vehicle frame number VIN. When it is detected that the user clicks on the ECU software version number and the oil temperature sensor temperature, at least one of the numerical value, unit, and standard value is displayed in the data display boxes corresponding to the ECU software version number and the oil temperature sensor temperature. For example, if the data display box includes a numerical value, a unit, and a standard value; please refer to Figure 4b , when it is detected that the user clicks the ECU software version number and the oil temperature sensor temperature, the value box of the data display box corresponding to the ECU software version number will display "1.0000.23", the value box of the data display box corresponding to the oil temperature sensor temperature will display "53", and the corresponding unit box will display "℃"; please refer to Figure 4c When the user clicks on engine speed and vehicle speed, the numerical value box for the engine speed data display box displays "30," the corresponding unit box displays "km / h," and the standard value box displays "50-80." The numerical value box for the vehicle speed data display box displays "19," the corresponding unit box displays "%," and the standard value box displays "0-99." In some cases, the data stream display interface also displays multiple functional controls, including multiple other functional controls as well as settings controls, return controls, and exit controls, which are not limited here.

[0112] It should be noted that the user can click a single data stream name control or click multiple data stream name controls at the same time to view the data stream, and the data stream name controls can be different data stream types. For example, the user selects the oil temperature sensor temperature and ECU software version number for viewing at one time.

[0113] Specifically, further, different display areas are divided based on the data stream type. In some possible cases, the data of the static data stream type is set to be displayed above or below the page, and the data of the dynamic data stream type is set to be displayed at a position that does not overlap with the data of the static data stream type.

[0114] For examples, see Figure 4a 、 Figure 4b 、 Figure 4c , assuming that the static data stream type includes the ECU software version number and the vehicle frame number VIN, and the dynamic data stream type includes the engine speed, vehicle speed, and oil temperature sensor temperature; the content displaying the ECU software version number and the vehicle frame number VIN is set to the first place, and from top to bottom, the content corresponding to the engine speed, vehicle speed, and oil temperature sensor temperature is displayed next.

[0115] For example, in some cases, the content of the dynamic data stream type and the content of the static data stream type can also be distinguished by changes in appearance, for example, setting different background colors, setting the content of the static data stream type to a gray background color, and setting the content of the dynamic data stream type to a transparent background color.

[0116] It can be seen that in this embodiment, by distinguishing and displaying different scenes, the reading efficiency of the data stream is improved, and the user experience is greatly improved.

[0117] It can be seen that by implementing the embodiment of the present application, the operating device of the vehicle diagnostic system establishes a communication connection with the electronic control unit and performs an initialization operation, the initialization operation including updating the data in the storage database, including a static storage area and a dynamic storage area; receiving a first data read instruction input by the user, the first data read instruction is used to indicate the name of the data stream to be obtained; based on the first data read instruction and the storage database, determining the data stream type, the data stream type includes a static data stream type and a dynamic data stream type; if the data stream type is the static data stream type, then performing a first data read operation based on the first data read instruction to determine the first target vehicle data, the first data read operation is used to read the static data of the electronic control unit and / or read historical static data in a single time. In this way, static data is distinguished from dynamic data, and a single read is performed on static data, thereby reducing the waste of resources and time when reading data, improving vehicle diagnostic efficiency, and improving user experience.

[0118] See also Figure 5 , Figure 5This is a flow chart of another vehicle diagnostic data reading method provided by an embodiment of the present application. The method can also be applied to a server of a vehicle diagnostic system, wherein the vehicle diagnostic system also includes an electronic control unit and an operating device, and the electronic control unit is arranged in a target vehicle. The method includes: S510, establishing a communication connection with the electronic control unit and performing an initialization operation, wherein the initialization operation includes updating data in a storage database, including a static storage area and a dynamic storage area; S520, receiving a first data reading instruction input by a user from the operating device, wherein the first data reading instruction is used to indicate a name of a data stream to be obtained; S530, determining a data stream type based on the first data reading instruction and the storage database, wherein the data stream type includes a static data stream type. type and dynamic data stream type; S541, if the data stream type is the static data stream type, then based on the first data read instruction, a first data read operation is performed to determine the first target vehicle data, and the first data read operation is used to read the static data of the electronic control unit once and / or read the historical static data; S542, if the data stream type is the dynamic data stream type, then based on the first data read instruction, a second data read operation is performed to determine the second target vehicle data, and the second data read operation is used to periodically read the dynamic data of the electronic control unit; S550, the first target vehicle data and / or the second target vehicle data are sent to the operating device, so that the operating device displays the first target vehicle data and / or the second target vehicle data.

[0119] It should be noted that when the vehicle and operating equipment are remotely connected, data analysis and decision-making as well as data transmission and reception can be performed through the server.

[0120] In a possible embodiment, a storage database may be provided in a server; the establishing of a communication connection with the electronic control unit and the performing of an initialization operation include: establishing a communication connection with the electronic control unit based on a vehicle identification code; receiving a data stream information set from the electronic control unit, the data stream information set including a plurality of data stream names, a plurality of data identifiers and corresponding data stream types, each data stream name corresponding to a data stream type, the data identifier being a unique identification code corresponding to each data stream name; and performing the initialization operation on the storage database based on a preset data partitioning rule, the data identifier and the data stream type.

[0121] In a possible embodiment, determining the data stream type based on the first data read instruction and the storage database includes: performing data mapping based on the first data read instruction to determine the target data identifier corresponding to the data stream name; performing data traversal in the static storage area and the dynamic storage area based on the target data identifier to determine the data stream type corresponding to the target data identifier, wherein, if the target data identifier is found in the static storage area, the data stream type is the static data stream type, and if the target data identifier is found in the dynamic storage area, the data stream type is the dynamic data stream type.

[0122] In a possible embodiment, if the first data read operation is used to read the static data of the electronic control unit once, executing the first data read operation based on the first data read instruction includes: sending a second data read instruction to the electronic control unit, the second data read instruction including the target data identifier, the second data read instruction being used to instruct the electronic control unit to transmit the target data value corresponding to the target data identifier once; and obtaining the target data value from the electronic control unit as the static data.

[0123] In a possible embodiment, the operating device is further provided with a historical database, which is used to store at least one vehicle data of a historically detected vehicle, and the at least one vehicle data includes at least one historical static data. The execution of the first data reading operation based on the first data reading instruction includes: performing historical data search based on the vehicle identification code and the historical database, determining the historical static data and data change rate of the target vehicle, the data change rate is used to indicate whether the static data of the target vehicle has changed, and the data change rate includes change and no change; if the data change rate is no change, determining the first target vehicle data based on the historical static data and the first data reading instruction; if the data change rate is change, sending a second data reading instruction to the electronic control unit, the second data reading instruction includes the target data identifier, and the second data reading instruction is used to instruct the electronic control unit to transmit the target data value corresponding to the target data identifier once; obtaining the target data value from the electronic control unit as the static data.

[0124] In a possible embodiment, executing the second data read operation based on the first data read instruction includes: sending a third data read instruction to the electronic control unit, the third data read instruction including the target data identifier, the third data read instruction being used to instruct the electronic control unit to periodically transmit the target data value corresponding to the target data identifier; and obtaining the target data value as the dynamic data.

[0125] In a possible embodiment, executing the second data read operation based on the first data read instruction includes: sending a third data read instruction to the electronic control unit, the third data read instruction including the target data identifier, the third data read instruction being used to instruct the electronic control unit to periodically transmit the target data value corresponding to the target data identifier; and obtaining the target data value as the dynamic data.

[0126] In a possible embodiment, executing the second data reading operation based on the first data reading instruction includes: determining a data update characteristic parameter based on the target data identifier and a preset periodic mapping rule, the data update characteristic parameter being used to characterize the frequency speed characteristics of data changes; determining an acquisition frequency parameter based on the data update characteristic parameter and a preset acquisition frequency mapping rule; sending a third data reading instruction to the electronic control unit, the third data reading instruction including the target data identifier and the acquisition frequency parameter, the third data reading instruction being used to instruct the electronic control unit to periodically transmit the target data value corresponding to the target data identifier according to the acquisition frequency parameter; and acquiring the target data value as the dynamic data.

[0127] As can be seen, in this embodiment, when remotely connected, the server of the vehicle diagnostic system establishes a communication connection with the electronic control unit and performs initialization operations. The initialization operations include updating data in a storage database, including a static storage area and a dynamic storage area; receiving a first data read instruction input by a user, the first data read instruction being used to indicate the name of the data stream to be acquired; determining the data stream type based on the first data read instruction and the storage database, the data stream type including a static data stream type and a dynamic data stream type; if the data stream type is the static data stream type, performing a first data read operation based on the first data read instruction to determine first target vehicle data, the first data read operation being used to read the static data and / or read historical static data of the electronic control unit in a single pass; if the data stream type is the dynamic data stream type, performing a second data read operation based on the first data read instruction to determine second target vehicle data, the second data read operation being used to periodically read the dynamic data of the electronic control unit. In this way, static data is distinguished from dynamic data, and a single read is performed on static data, reducing resource and time waste during data reading, improving vehicle diagnostic efficiency, and enhancing user experience.

[0128] See Figure 6 , Figure 6 6 is a schematic diagram of the structure of a vehicle diagnostic data reading device proposed in an embodiment of the present application. The device is applied to an operating device of a vehicle diagnostic system. The vehicle diagnostic system also includes an electronic control unit (ECU), which is disposed in a target vehicle. The vehicle diagnostic data reading device 600 includes: an initialization module 610, a data receiving module 620, a type determination module 630, and a data reading module 640. The initialization module 610 is configured to establish a communication connection with the ECU and perform an initialization operation, which includes updating data in a storage database, including a static storage area and a dynamic storage area. The data receiving module 620 is configured to receive a first data read instruction input by a user, the first data read instruction indicating the name of a data stream to be acquired. The type determination module 630 is configured to determine a data stream type based on the first data read instruction and the storage database, the data stream type including a static data stream type and a dynamic data stream type. The data reading module 640 is configured to, if the data stream type is the static data stream type, execute a first data read operation based on the first data read instruction to determine first target vehicle data. The first data read operation is configured to read static data and / or read historical static data of the ECU in a single operation.

[0129] In a possible embodiment, the initialization module 610 is specifically used to establish a communication connection with the electronic control unit and perform initialization operations, specifically to: establish a communication connection with the electronic control unit based on a vehicle identification code; receive a data stream information set from the electronic control unit, the data stream information set including multiple data stream names, multiple data identifiers and corresponding data stream types, each data stream name corresponds to one data stream type, and the data identifier is a unique identification code corresponding to each data stream name; perform the initialization operation on the storage database based on a preset data partitioning rule, the data identifier and the data stream type.

[0130] In a possible embodiment, the type determination module 630 is specifically used to determine the data stream type based on the first data read instruction and the storage database: perform data mapping based on the first data read instruction to determine the target data identifier corresponding to the data stream name; perform data traversal in the static storage area and the dynamic storage area based on the target data identifier to determine the data stream type corresponding to the target data identifier, wherein if the target data identifier is found in the static storage area, the data stream type is the static data stream type, and if the target data identifier is found in the dynamic storage area, the data stream type is the dynamic data stream type.

[0131] In a possible embodiment, if the first data read operation is used to read the static data of the electronic control unit once, the data read module 640, in executing the first data read operation based on the first data read instruction, is specifically used to: send a second data read instruction to the electronic control unit, the second data read instruction including the target data identifier, the second data read instruction being used to instruct the electronic control unit to transmit the target data value corresponding to the target data identifier once; and obtain the target data value from the electronic control unit as the static data.

[0132] In a possible embodiment, the operating device is further provided with a historical database, which is used to store at least one vehicle data of historically detected vehicles, and the at least one vehicle data includes at least one historical static data. If the first data reading operation is used to read the static data of the electronic control unit once, the data reading module 640 is specifically used to perform the first data reading operation based on the first data reading instruction: perform historical data search based on the vehicle identification code and the historical database, determine the historical static data and data change rate of the target vehicle, and the data change rate is used to indicate whether the static data of the target vehicle has changed, and the data change rate includes change and no change; if the data change rate is no change, determine the first target vehicle data based on the historical static data and the first data reading instruction; if the data change rate is change, send a second data reading instruction to the electronic control unit, the second data reading instruction including the target data identifier, and the second data reading instruction is used to instruct the electronic control unit to transmit the target data value corresponding to the target data identifier once; obtain the target data value from the electronic control unit as the static data.

[0133] In a possible embodiment, the data reading module 640 is further specifically used to: if the data stream type is the dynamic data stream type, perform a second data reading operation based on the first data reading instruction to determine the second target vehicle data, and the second data reading operation is used to periodically read the dynamic data of the electronic control unit.

[0134] In a possible embodiment, the data reading module 640 is specifically used to perform the second data reading operation based on the first data reading instruction: the execution of the second data reading operation based on the first data reading instruction includes: sending a third data reading instruction to the electronic control unit, the third data reading instruction including the target data identifier, and the third data reading instruction is used to instruct the electronic control unit to periodically transmit the target data value corresponding to the target data identifier; and obtain the target data value as the dynamic data.

[0135] In a possible embodiment, the data reading module 640, in terms of executing the second data reading operation based on the first data reading instruction, is specifically used to: determine a data update characteristic parameter based on the target data identifier and a preset periodic mapping rule, the data update characteristic parameter being used to characterize the frequency characteristics of data changes; determine an acquisition frequency parameter based on the data update characteristic parameter and a preset acquisition frequency mapping rule; send a third data reading instruction to the electronic control unit, the third data reading instruction including the target data identifier and the acquisition frequency parameter, the third data reading instruction being used to instruct the electronic control unit to periodically transmit the target data value corresponding to the target data identifier according to the acquisition frequency parameter; and acquire the target data value as the dynamic data.

[0136] It is worth noting that the specific functional implementation of the vehicle diagnostic data reading device 600 is shown in the above Figure 2 The description of the vehicle diagnostic data reading method shown in FIG. 1 is for example a description of the initialization module 610 for implementing the relevant content of executing S210. The various units or modules in the vehicle diagnostic data reading device 600 can be individually or completely combined into one or more other units or modules, or one (or more) of the units or modules can be further divided into multiple functionally smaller units or modules to form a similar operation, which can achieve the same operation without affecting the technical effects of the embodiments of the present invention. The above-mentioned units or modules are divided based on logical functions. In actual applications, the functions of one unit (or module) are implemented by multiple units (or modules), or the functions of multiple units (or modules) are implemented by one unit (or module).

[0137] It can be seen that the vehicle diagnostic data reading device described in the embodiment of the present application, the operating device establishes a communication connection with the electronic control unit and performs an initialization operation, the initialization operation includes updating the data in the storage database, including a static storage area and a dynamic storage area; receiving a first data reading instruction input by the user, the first data reading instruction is used to indicate the name of the data stream to be obtained; based on the first data reading instruction and the storage database, the data stream type is determined, the data stream type includes a static data stream type and a dynamic data stream type; if the data stream type is the static data stream type, then based on the first data reading instruction, a first data reading operation is performed to determine the first target vehicle data, the first data reading operation is used to read the static data of the electronic control unit and / or read historical static data in a single time. In this way, static data is distinguished from dynamic data, and a single reading is performed on static data, which reduces the waste of resources and time when reading data, improves vehicle diagnostic efficiency, and improves user experience.

[0138] In the case of integrated units, see Figure 7 , Figure 7 This is a schematic diagram of the structure of another vehicle diagnostic data reading device provided in an embodiment of the present application. Figure 7 As shown, the vehicle diagnostic data reading device 600 includes: a processing module 602 and a communication module 601. The processing module 602 is used to control and manage the actions of the vehicle diagnostic data reading device 600, for example, executing the steps of the initialization module 610, the data receiving module 620, the type determination module 630, the data reading module 640, and / or other processes for performing the technology described herein. The communication module 601 is used for interaction between the vehicle diagnostic data reading device 600 and other devices. Figure 7 As shown, the vehicle diagnostic data reading device 600 may further include a storage module 603 , and the storage module 603 is used to store program codes and data of the vehicle diagnostic data reading device 600 .

[0139] Among them, the processing module 602 can be a processor or controller, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute the various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, for example, a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module 601 can be a transceiver, an RF circuit or a communication interface, etc. The storage module 603 can be a memory.

[0140] Among them, all relevant contents of each scenario involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here. The above vehicle diagnostic data reading device 600 can execute the above Figure 2 The method for reading vehicle diagnostic data is shown.

[0141] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any method described in the above method embodiments, and the above computer includes an electronic device.

[0142] The present application also provides a computer program product comprising a non-transitory computer-readable storage medium storing a computer program, wherein the computer program is operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. The computer program product may be a software installation package, and the computer may comprise an electronic device.

[0143] It should be noted that for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.

[0144] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0145] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the above-mentioned units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0146] The units described above as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0147] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0148] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions for enabling a computer electronic device (which can be a personal computer, electronic device or network electronic device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0149] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program. The program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0150] The above is a detailed introduction to the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for those skilled in the art, according to the idea of ​​the present application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for reading vehicle diagnostic data, characterized in that: An operating device applied to a vehicle diagnostic system, wherein the vehicle diagnostic system further comprises an electronic control unit, wherein the electronic control unit is provided in a target vehicle, and the method comprises: Establishing a communication connection with the electronic control unit and performing an initialization operation, the initialization operation including updating data in a storage database, including a static storage area and a dynamic storage area; Receive a first data reading instruction input by a user, where the first data reading instruction is used to indicate a name of a data stream to be obtained; Determine a data stream type based on the first data read instruction and the storage database, where the data stream type includes a static data stream type and a dynamic data stream type; If the data stream type is the static data stream type, a first data read operation is performed based on the first data read instruction to determine the first target vehicle data. The first data read operation is used to read the static data of the electronic control unit and / or read historical static data at a single time.

2. The method according to claim 1, characterized in that The establishing of a communication connection with the electronic control unit and performing an initialization operation includes: establishing a communication connection with the electronic control unit based on the vehicle identification code; receiving a data flow information set from an electronic control unit, the data flow information set including a plurality of data flow names, a plurality of data identifiers, and corresponding data flow types, each of the data flow names corresponding to a data flow type, and the data identifiers being a unique identification code corresponding to each data flow name; The initialization operation is performed on the storage database based on a preset data partitioning rule, the data identifier and the data stream type.

3. The method according to claim 2, characterized in that The determining of the data stream type based on the first data reading instruction and the storage database includes: Performing data mapping based on the first data read instruction to determine a target data identifier corresponding to the data stream name; Based on the target data identifier, data traversal is performed in the static storage area and the dynamic storage area to determine the data flow type corresponding to the target data identifier, wherein if the target data identifier is found in the static storage area, the data flow type is the static data flow type; if the target data identifier is found in the dynamic storage area, the data flow type is the dynamic data flow type.

4. The method according to claim 3, characterized in that If the first data read operation is used to read static data of the electronic control unit once, performing the first data read operation based on the first data read instruction includes: Sending a second data read instruction to the electronic control unit, where the second data read instruction includes the target data identifier, and the second data read instruction is used to instruct the electronic control unit to transmit a target data value corresponding to the target data identifier in a single transmission; The target data value is acquired from the electronic control unit as the static data.

5. The method according to claim 3, characterized in that The operating device is further provided with a history database, the history database being used to store at least one vehicle data of historically detected vehicles, the at least one vehicle data including at least one historical static data, and the performing of the first data reading operation based on the first data reading instruction includes: Performing a historical data search based on the vehicle identification code and the historical database to determine historical static data and a data change rate of the target vehicle, wherein the data change rate is used to indicate whether the static data of the target vehicle has changed, and the data change rate includes whether the static data of the target vehicle has changed and whether the static data of the target vehicle has not changed; If the data change rate is that no change has occurred, determining first target vehicle data based on the historical static data and the first data reading instruction; If the data change rate is the change, a second data read instruction is sent to the electronic control unit, the second data read instruction including the target data identifier, and the second data read instruction is used to instruct the electronic control unit to transmit the target data value corresponding to the target data identifier once; and obtain the target data value from the electronic control unit as the static data.

6. The method according to claim 3, characterized in that The method further includes: if the data stream type is the dynamic data stream type, performing a second data reading operation based on the first data reading instruction to determine second target vehicle data, wherein the second data reading operation is used to periodically read dynamic data of the electronic control unit.

7. The method according to claim 6, characterized in that The performing a second data read operation based on the first data read instruction includes: Sending a third data read instruction to the electronic control unit, wherein the third data read instruction includes the target data identifier, and the third data read instruction is used to instruct the electronic control unit to periodically transmit a target data value corresponding to the target data identifier; The target data value is acquired as the dynamic data.

8. The method according to claim 6, characterized in that The performing a second data read operation based on the first data read instruction includes: Determine a data update characteristic parameter based on the target data identifier and a preset period mapping rule, wherein the data update characteristic parameter is used to characterize the frequency speed of data changes; Determining an acquisition frequency parameter based on the data update characteristic parameter and a preset acquisition frequency mapping rule; sending a third data read instruction to the electronic control unit, the third data read instruction including the target data identifier and the acquisition frequency parameter, the third data read instruction being used to instruct the electronic control unit to periodically transmit a target data value corresponding to the target data identifier according to the acquisition frequency parameter; The target data value is acquired as the dynamic data.

9. A vehicle diagnostic data reading device, characterized in that: An operating device for a vehicle diagnostic system, wherein the vehicle diagnostic system further comprises an electronic control unit, the electronic control unit being disposed in a target vehicle, the device comprising: an initialization module, configured to establish a communication connection with the electronic control unit and perform an initialization operation, wherein the initialization operation includes updating data in a storage database, including a static storage area and a dynamic storage area; A data receiving module, configured to receive a first data reading instruction input by a user, wherein the first data reading instruction is used to indicate a name of a data stream to be obtained; a type determination module, configured to determine a data stream type based on the first data read instruction and the storage database, wherein the data stream type includes a static data stream type and a dynamic data stream type; A data reading module is used to perform a first data reading operation based on the first data reading instruction to determine first target vehicle data if the data stream type is the static data stream type, and the first data reading operation is used to read the static data of the electronic control unit and / or read historical static data at a single time.

10. An electronic device, characterized in that: The method comprises a processor and a memory storing execution instructions, wherein the memory stores one or more programs; when the processor executes the execution instructions stored in the memory, the processor executes the method according to any one of claims 1 to 8.