Method and device for determining data meaning of in-vehicle data

By obtaining vehicle data from the cloud and adjusting its format to make it consistent with the national standard data format, and then determining the meaning of vehicle data based on the analysis rules in the national standard documents, the problem of slow manual analysis of vehicle data is solved, and the automated data meaning determination is achieved.

CN120020745APending Publication Date: 2025-05-20CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311549456.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-17
Publication Date
2025-05-20

AI Technical Summary

Technical Problem

In the prior art, manual analysis of vehicle and machine data is slow, and it is necessary to compare the national standard data in national standard documents one by one.

Method used

By calling the preset interface to obtain vehicle computer data from the cloud, adjust the data format to be consistent with the format of the national standard data, and determine the data meaning of the vehicle computer data according to the data analysis rules in the national standard documents.

Benefits of technology

The data meaning of vehicle and machine data is realized automatically, which improves the efficiency of data meaning determination and reduces the need for manual comparison.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120020745A_ABST
    Figure CN120020745A_ABST
Patent Text Reader

Abstract

The invention relates to a method and device for determining the data meaning of vehicle data, and the method comprises the steps: calling a preset interface to obtain the vehicle data from a cloud end, adjusting a data format, so as to enable the data format of the vehicle data to be consistent with the format of a national standard data identifier of national standard data; and determining the data meaning of the in-vehicle data. According to the invention, the data meaning determination efficiency of the in-vehicle data 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 vehicles, and particularly to a method and device for determining the data meaning of in-vehicle computer data. Background Art

[0002] At present, with the development of intelligence and big data, great changes have taken place in all walks of life. For traditional automobiles, informatization, intelligence, and digitization are a direction for the continuous development of automobiles in the future. In the development process of electric vehicles, the full business process digitization has become an industry-wide trend in the automotive industry, and the digitalization ability of automobile enterprises has become the key to their systematic competitiveness. Electric vehicles generate a huge amount of data at all times, and the utilization of vehicle-end data is a problem that every automobile enterprise needs to consider. At present, in-vehicle computer data is transmitted to the cloud, and the cloud can extract key information, perform secondary processing, re-encode, etc. on the in-vehicle computer data, and then analyze and utilize the data, such as: operation and maintenance display, targeted push flow, user preference analysis, vehicle-end fault location & alarm.

[0003] Among all these in-vehicle computer data, a type of data is particularly important, that is, the data that conforms to the provisions of the national standard file. Currently, in the in-vehicle computer data downloaded from the cloud, it is necessary to manually analyze its specific data meaning, which requires one-by-one comparison with the national standard data in the national standard file, and manual analysis has the problem of low efficiency. Summary of the Invention

[0004] The purpose of the present invention is to provide a method and device for determining the data meaning of in-vehicle computer data to solve the problem of low efficiency of manually analyzing in-vehicle computer data in the prior art.

[0005] In order to achieve the above purpose, the technical solution adopted by the present invention is as follows:

[0006] A method for determining the data meaning of in-vehicle computer data, the method comprising:

[0007] Invoking a preset interface to obtain in-vehicle computer data from the cloud:

[0008] Adjusting the data format to make the data format of the in-vehicle computer data consistent with the format of the national standard data identifier of the national standard data, wherein the national standard data is the data in the national standard file:

[0009] Determining the data meaning of the in-vehicle computer data according to the data parsing rule in the national standard file.

[0010] Optionally, determining the data meaning of the in-vehicle computer data according to the data parsing rule in the national standard file includes:

[0011] Traverse each byte in the data packet of the in-vehicle data according to the data packet structure definition table in the national standard file, and determine the first byte with clear meaning and the second byte with unclear meaning, where the data packet structure definition table includes the meaning of each fixed byte, and the second byte includes the encoding of the command identifier, the encoding of the response flag, and the encoding of the data unit:

[0012] Determine the clear meaning of the second byte according to the command identifier definition table, response flag definition table, and data unit definition table in the national standard file:

[0013] Determine the data meaning of the in-vehicle data according to the clear meaning of the first byte and the clear meaning of the second byte.

[0014] Optionally, determining the clear meaning of the second byte according to the command identifier definition table, response flag definition table, and data unit definition table in the national standard file includes:

[0015] Determine the meaning of the command identifier corresponding to the encoding of the command identifier in the data packet according to the command identifier definition table in the national standard file:

[0016] Determine the meaning of the response flag corresponding to the encoding of the response flag in the data packet according to the response flag definition table in the national standard file:

[0017] Search for the target data unit definition table corresponding to the meaning of the command identifier from multiple data unit definition tables in the national standard file:

[0018] Traverse the data representation content in the target data unit definition table, determine the meaning of each data representation content, and obtain the data unit meaning corresponding to the encoding of the data unit.

[0019] Optionally, traversing the data representation content in the target data unit definition table and determining the meaning of each data representation content includes:

[0020] Determine the first data representation content with clear meaning and the second data representation content with unclear meaning according to the target data unit definition table:

[0021] Determine the data representation content definition table corresponding to the type of the second data representation content, where the data representation content definition table is a single table or adopts a table nesting mode:

[0022] Determine the clear meaning of the second data representation content by querying the data representation content definition table.

[0023] Optionally, adjusting the data format to make the data format of the in-vehicle data consistent with the format of the national standard data identifier includes:

[0024] Determine that the data format of the in-vehicle unit data is a string in a preset encoding format:

[0025] Decode the string to obtain a byte array:

[0026] Perform a number system conversion on the byte array to obtain in-vehicle unit data with the same number system as the national standard data identifier.

[0027] Optionally, after determining the data meaning of the in-vehicle unit data, the method further includes:

[0028] Verify the in-vehicle unit data, where the verification content includes at least one of the integrity rate and the consistency rate:

[0029] If the integrity rate exceeds the preset integrity rate threshold or the consistency rate exceeds the preset consistency rate threshold, output the data meaning of the in-vehicle unit data.

[0030] Optionally, verifying the in-vehicle unit data includes:

[0031] Determine the integrity rate of the in-vehicle unit data according to the quotient of the actual number of in-vehicle unit data items and the preset number of national standard data items, where the actual number of in-vehicle unit data items is the number of data identifiers of the in-vehicle unit data, and the preset number of national standard data items is the preset number of national standard data identifiers:

[0032] Determine the consistency rate of the in-vehicle unit data according to the ratio of the number of items of the in-vehicle unit data that match the national standard data to the actual number of in-vehicle unit data items.

[0033] An apparatus for determining the data meaning of in-vehicle unit data, the apparatus includes:

[0034] A calling module, configured to call a preset interface to obtain in-vehicle unit data from the cloud:

[0035] An adjustment module, configured to adjust the data format so that the data format of the in-vehicle unit data is consistent with the format of the national standard data identifier of the national standard data, where the national standard data is the data in the national standard file:

[0036] A determination module, configured to determine the data meaning of the in-vehicle unit data according to the data parsing rules in the national standard file. An electronic device includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus:

[0037] The memory is used to store a computer program:

[0038] The processor, when executing the program stored on the memory, implements the method described in any one of the above.

[0039] A computer-readable storage medium stores a computer program therein, and when the computer program is executed by a processor, the method described above is implemented.

[0040] Advantages of the present invention:

[0041] After downloading the in-vehicle unit data from the cloud, first standardize the formats of the in-vehicle unit data and the national standard data identifiers to facilitate subsequent comparison of the data identifiers, and then determine the data meaning of the in-vehicle unit data according to the data parsing rules in the national standard file. This application does not require manual comparison of the national standard file to determine the data meaning of the in-vehicle unit data, realizes automatic determination of the data meaning, and improves the efficiency of determining the data meaning of the in-vehicle unit data. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a flowchart of the method for determining the data meaning of the in-vehicle unit data in the present invention:

[0043] Figure 2 It is a schematic diagram of the process of uploading the in-vehicle unit data to the cloud in the present invention:

[0044] Figure 3 It is a schematic diagram of the process of verifying the in-vehicle unit data in the present invention:

[0045] Figure 4 It is a schematic diagram of the process for determining the data meaning of the in-vehicle unit data in the present invention:

[0046] Figure 5 It is a schematic diagram of the structure of the test tool in the present invention:

[0047] Figure 6 It is a schematic diagram of the device for determining the data meaning of the in-vehicle unit data in the present invention:

[0048] Figure 7 It is a schematic diagram of the structure of an electronic device in the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0049] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for explaining the present invention, rather than for limiting the protection scope of the present invention.

[0050] A method for determining the data meaning of in-vehicle unit data in an embodiment of the present application can be executed by a test tool. The following will describe in detail a method for determining the data meaning of in-vehicle unit data provided by the present invention in combination with specific embodiments, such asFigure 1 As shown in the figure, the specific steps are as follows:

[0051] Step 101: Call a preset interface to obtain in-vehicle unit data from the cloud.

[0052] This application includes a data cloud system, which includes a sensing module VIU (Vehicle Information Unit), a data convergence module EDC (Electric Diesel Control), a data cloud module tbox, and a cloud receiving module. The sensing module includes multiple sensing units, such as VIU1, VIU2, and VIU3. The sensing units are used to collect in-vehicle unit data. The data convergence module is used to converge the data collected by VIU1, VIU2, and VIU3 together, and then forward the data to the data cloud module tbox. The tbox encodes the data to obtain a string, and then uploads the string to the cloud. The cloud receiving module is used to receive and save the in-vehicle unit data. Figure 2 It is a flowchart for in-vehicle unit data to go to the cloud.

[0053] When it is necessary to download in-vehicle unit data from the cloud, the test tool calls a preset interface to obtain in-vehicle unit data from the cloud. The test tool in this application is the GB-TESTING tool, which is designed and completed by technical personnel.

[0054] Step 102: Adjust the data format so that the data format of the in-vehicle unit data is consistent with the format of the national standard data identifier in the national standard data, where the national standard data is the data in the national standard file.

[0055] The national standard file refers to "Technical Specification for Electric Vehicle Remote Service and Management System, Part 3 Communication Protocol and Data Format". The national standard data in the national standard file includes a national standard data identifier and a national standard data meaning. The number system of the national standard data identifier is hexadecimal, and the data of the in-vehicle unit data is an encoded string, such as a string in base64 format. Then, it is necessary to adjust the data formats of the two to be consistent before subsequent data comparison and analysis.

[0056] Among them, keeping the data format of the in-vehicle unit data consistent with the format of the national standard data identifier can be to adjust the data format of the in-vehicle unit data or to adjust the data format of the national standard data identifier.

[0057] If the data format of in-vehicle unit data is adjusted, the test tool determines that the data format of the in-vehicle unit data is a string in a preset encoding format, then performs corresponding decoding on the string to obtain a byte array, and finally performs a number system conversion on the byte array to obtain in-vehicle unit data with the same number system as that of the national standard data identifier. For example, perform base64 decoding on the in-vehicle unit data to obtain a byte array, and then perform a hexadecimal conversion on the byte array to obtain in-vehicle unit data with the same data format as that of the national standard data identifier.

[0058] If the data format of the national standard data identifier is adjusted, the test tool first performs a number system conversion on the national standard data identifier to obtain a byte array, and then converts the byte array into a string form.

[0059] The national standard file includes multiple definition tables, and each definition table contains the correspondence between the national standard data identifier and the meaning of the national standard data. Only by converting the data format of the in-vehicle unit data and the format of the national standard data identifier into the same format can the meaning of the in-vehicle unit data be determined by referring to the definition table.

[0060] Step 103: Determine the meaning of the in-vehicle unit data according to the data parsing rules in the national standard file.

[0061] The data parsing rules include a single definition table or a nested definition table. The test tool compares the in-vehicle unit data with the national standard data identifier in the definition table to determine the meaning of the in-vehicle unit data.

[0062] In this application, after downloading the in-vehicle unit data from the cloud, first unify the formats of the in-vehicle unit data and the national standard data identifier to facilitate subsequent comparison of data identifiers, and then determine the meaning of the in-vehicle unit data according to the data parsing rules in the national standard file. This application does not require manual comparison with the national standard file to determine the meaning of the in-vehicle unit data, realizes automatic determination of the data meaning, and improves the efficiency of determining the meaning of the in-vehicle unit data.

[0063] As an optional implementation manner, determining the meaning of the in-vehicle unit data according to the data parsing rules in the national standard file includes: according to the data packet structure definition table in the national standard file, traverse each byte in the data packet of the in-vehicle unit data to determine the first byte with a clear meaning and the second byte with an unclear meaning, where the data packet structure definition table includes the meaning of each fixed byte, and the second byte includes the encoding of the command identifier, the encoding of the response flag, and the encoding of the data unit: according to the command identifier definition table, the response flag definition table, and the data unit definition table in the national standard file, determine the clear meaning of the second byte: according to the clear meaning of the first byte and the clear meaning of the second byte, determine the meaning of the in-vehicle unit data.

[0064] The national standard file has a data packet structure definition table, which includes the meaning of each fixed byte. The fixed byte can be one byte, two bytes, or other numbers of bytes. Table 1 is the data packet structure definition table. It can be seen that the first two bytes represent the start symbol, the third byte represents the command identifier, and the fourth byte represents the response identifier.

[0065]

[0066] Table 1

[0067] The test tool parses the data packet of the in-vehicle unit data to obtain each byte in the data packet, and then refers to the data packet structure definition table to obtain the meaning of each fixed byte in each in-vehicle unit data. However, only referring to this data packet structure definition table, the meaning of each fixed byte is not clear. For example, the meaning of the vehicle identification number is clear, while the command identifier needs to refer to other content to determine the specific meaning. Therefore, in this application, the fixed byte with a clear meaning is used as the first byte, such as the start symbol, vehicle identification number, data unit encryption method, and data unit length in Table 1 with clear meanings, and the fixed byte with an unclear meaning is used as the second byte, such as the command identifier, response identifier, and data unit in Table 1 with unclear meanings.

[0068] The national standard file also includes a command identifier definition table corresponding to the encoding of the command identifier, a response identifier definition table corresponding to the encoding of the response identifier, and a data unit definition table corresponding to the encoding of the data unit. The test tool determines the specific meanings of the encoding of the command identifier, the encoding of the response identifier, and the encoding of the data unit according to the above three tables, and then obtains the clear meaning of the second byte. The test tool summarizes the clear meaning of the first byte and the clear meaning of the second byte to obtain the data meaning of the in-vehicle unit data.

[0069] This application conducts a structural analysis of the data packet of the in-vehicle unit data, refers to the data packet structure definition table in the national standard file to determine the first byte with a clear meaning and the second byte with an unclear meaning, and then refers to the command identifier definition table, response flag definition table, and data unit definition table in the national standard file to obtain the clear meaning of the second byte. Finally, it summarizes the meanings of the first byte and the second byte to obtain the data meaning of the in-vehicle unit data. There is a nested relationship in the definition tables in the national standard file, and this application needs to clarify the data meaning of the in-vehicle unit data according to this nested relationship.

[0070] As an alternative implementation, according to the command identifier definition table, response flag definition table, and data unit definition table in the national standard file, determining the specific meaning of the second byte includes: according to the command identifier definition table in the national standard file, determining the meaning of the command identifier corresponding to the encoding of the command identifier in the data packet; according to the response flag definition table in the national standard file, determining the meaning of the response flag corresponding to the encoding of the response flag in the data packet; from multiple data unit definition tables in the national standard file, searching for the target data unit definition table corresponding to the meaning of the command identifier; traversing the data representation content in the target data unit definition table to determine the meaning of each data representation content, and obtaining the data unit meaning corresponding to the encoding of the data unit.

[0071] Table 2 is the command identifier definition table. It can be seen that the encoding of each command identifier corresponds to a specific meaning of the command identifier. For example, 0x01 represents vehicle login, and 0x01 also represents real-time information reporting.

[0072]

[0073] Table 2

[0074] Table 3 is the response flag definition table. It can be seen that the encoding of each response flag corresponds to a specific meaning of the response flag. For example, 0x01 represents success, and 0x02 represents modification error.

[0075]

[0076]

[0077] Table 3

[0078] The meaning of each command identifier in Table 2 corresponds to a data unit. For example, vehicle login in Table 2 corresponds to the data unit of vehicle login, and real-time information reporting in Table 2 corresponds to the data unit of real-time information reporting. Moreover, the data unit also has a corresponding data unit definition table. After the test tool determines the meaning of the command identifier in the data packet, it can find the target data unit definition table corresponding to the meaning of the command identifier. There can only be one meaning of the command identifier in each data packet. For example, if the meaning of the command identifier in the data packet is real-time information reporting, then the test tool searches for the target data unit definition table of real-time information reporting, as shown in Table 4.

[0079]

[0080] Table 4

[0081] It can be seen that each row in Table 4 is a data representation content, and each data representation content corresponds to a meaning. This application needs to use the meanings of all the data representation contents in Table 4 as the meanings of the real-time information reported. Then, it is necessary to traverse each data representation content in the real-time information reporting definition table, and then determine the meaning of each data representation content, so as to obtain the meaning of the real-time information reported.

[0082] In this application, the meanings of the command identifier and the response flag can be directly obtained according to the command identifier definition table and the response flag definition table. According to a command identifier definition in the command identifier definition table hit by the data packet, the target data unit definition table can be determined, and then according to all the data representation contents in the target data unit definition table, the data unit meaning can be determined.

[0083] For example, the data unit definition table in the national standard file includes: vehicle login definition table, real-time information reporting definition table, vehicle logout definition table and other data unit definition tables. Each data unit definition table corresponds to the meaning of a command identifier in Table 2. If the meaning of the command identifier in the data packet corresponds to real-time information reporting, then the test data traverses each data representation content in the real-time information reporting definition table to determine the meaning of the real-time information reported.

[0084] As an optional implementation manner, traversing the data representation contents in the target data unit definition table to determine the meaning of each data representation content includes: determining, according to the target data unit definition table, the first data representation content with a clear meaning and the second data representation content with an unclear meaning; determining the data representation content definition table corresponding to the type of the second data representation content, where the data representation content definition table is a single table or adopts a table nesting mode; and determining the clear meaning of the second data representation content by querying the data representation content definition table.

[0085] The target data unit definition table includes the meaning of each data representation content. It can be seen from Table 4 that the meanings of the data acquisition time, the information body, and the information type flag cannot be directly obtained from Table 4. Then, this application takes the data representation content with an unclear meaning as the second data representation content, and takes the data representation content with a clear meaning as the first data representation content (the first data representation content does not exist in Table 4, and there are data unit definition tables with the first data representation content).

[0086] The second data representation content also has a corresponding data representation content definition table. For example, the data collection time in Table 4 corresponds to Table 5, and the specific data collection time can be directly obtained from Table 5. The information type flag in Table 4 needs to query Table 6 in this application (Table 8 written in the table is determined according to the content in the national standard file), and the information body in Table 4 needs to query other definition tables according to Table 6. It can be seen that the data representation content definition table can be a single table. For example, the specific data collection time can be directly obtained by querying Table 5, or the meaning of the information type flag can be determined by querying Table 6, and then the meaning of the information body can be obtained by querying Table 7 according to the information type flag.

[0087] Table 5 is the data collection time definition table, as shown in the following table.

[0088] Data representation content Length (bytes) Data type Valid value range Year 1 BYTE 0~99 Month 1 BYTE 1~12 Day 1 BYTE 1~31 Hour 1 BYTE 0~23 Minute 1 BYTE 0~59 Second 1 BYTE 0~59

[0089] Table 5

[0090] Table 6 is the information type flag definition table. According to the real-time information reported in the data packet, the meaning of the specific information type flag can be determined. For example, it can be power battery electrical data, or power battery pack temperature data, or other data in Table 6.

[0091]

[0092]

[0093] Table 6

[0094] If it is power battery electrical data, Table 7 needs to be queried. Table 7 is the power battery electrical data definition table, and all the content in Table 7 is used as the power battery electrical data.

[0095]

[0096] Table 7

[0097] As an optional implementation manner, after determining the data meaning of the in-vehicle computer data, the method further includes: verifying the in-vehicle computer data, where the verification content includes at least one of the completeness rate and the consistency rate: if the completeness rate exceeds the preset completeness rate threshold or the consistency rate exceeds the preset consistency rate threshold, the data meaning of the in-vehicle computer data is output.

[0098] After the test tool determines the data meaning of the in-vehicle computer data, it can further determine whether its completeness rate and consistency rate meet the requirements. If they meet the requirements, then its data meaning can be output. Through the verification of the in-vehicle computer data in this application, it can be ensured that the output in-vehicle computer data is more accurate. Among them, the verification of the in-vehicle computer data can be completeness rate verification, or consistency rate verification, or both completeness rate and consistency rate verification.

[0099] If it is the verification of the completeness rate, and the completeness rate is greater than the preset completeness rate threshold, then it is determined that the completeness rate verification passes. Among them, the verification formula for the completeness rate is: Completeness rate = the number of actual in-vehicle infotainment system data items / the number of preset national standard data items. Among them, the number of actual in-vehicle infotainment system data items is the number of data identifiers of the in-vehicle infotainment system data, and the number of preset national standard data items is the number of preset national standard data identifiers.

[0100] If it is the verification of the consistency rate, and the consistency rate is greater than the preset consistency rate threshold, then it is determined that the consistency rate verification passes. Among them, the verification formula for the consistency rate is: Consistency rate = the number of items of in-vehicle infotainment system data that match the national standard data / the number of actual in-vehicle infotainment system data items, where the in-vehicle infotainment system data that matches the national standard data means that the data value of the in-vehicle infotainment system data is within the data range of the corresponding national standard data.

[0101] If it is the verification of the completeness rate and the consistency rate, then it is considered that the verification passes when the completeness rate is greater than the preset completeness rate threshold and the consistency rate is greater than the preset consistency rate threshold.

[0102] The flow chart of the in-vehicle infotainment system data verification is as Figure 3 shown. It can be seen that the test tool selects the verification mode, and can select at least one of the completeness rate and the consistency rate. If the verification passes, the data meaning is output.

[0103] This application also provides a schematic diagram of the process for determining the data meaning of in-vehicle infotainment system data, as Figure 4 shown. The test tool first performs pre-preparation, that is, adjusts the data formats of the in-vehicle infotainment system data and the national standard data to be the same, then analyzes the data meaning of the in-vehicle infotainment system data, then performs data verification, and finally outputs the data meaning.

[0104] Figure 5 is a schematic diagram of the structure of the test tool. Among them, datacontroller is the data parsing and processing program: datastruct is the formatting of national standard data: dataoutput is the content of the final test result output: controller in datacontroller is the data parsing and processing program, and mod is the test mode selection (such as testing completeness or testing consistency).

[0105] Based on the same technical concept, the present invention also provides a device for determining the data meaning of in-vehicle infotainment system data, as Figure 6 shown. The device includes:

[0106] A calling module 601, configured to call a preset interface to obtain in-vehicle infotainment system data from the cloud:

[0107] An adjustment module 602, configured to adjust the data format so that the data format of the in-vehicle infotainment system data is the same as the format of the national standard data identifier of the national standard data, where the national standard data is the data in the national standard file:

[0108] A determination module 603, configured to determine the data meaning of in-vehicle unit data according to the data parsing rules in the national standard file.

[0109] Optionally, the determination module 603 is configured to:

[0110] Traverse each byte in the data packet of the in-vehicle unit data according to the data packet structure definition table in the national standard file, and determine a first byte with clear meaning and a second byte with unclear meaning, where the data packet structure definition table includes the meaning of each fixed byte, and the second byte includes the encoding of the command identifier, the encoding of the response flag, and the encoding of the data unit:

[0111] Determine the clear meaning of the second byte according to the command identifier definition table, response flag definition table, and data unit definition table in the national standard file:

[0112] Determine the data meaning of the in-vehicle unit data according to the clear meaning of the first byte and the clear meaning of the second byte.

[0113] Optionally, the determination module 603 is configured to:

[0114] Determine the meaning of the command identifier corresponding to the encoding of the command identifier in the data packet according to the command identifier definition table in the national standard file:

[0115] Determine the meaning of the response flag corresponding to the encoding of the response flag in the data packet according to the response flag definition table in the national standard file:

[0116] Search for the target data unit definition table corresponding to the meaning of the command identifier from multiple data unit definition tables in the national standard file:

[0117] Traverse the data representation content in the target data unit definition table, determine the meaning of each data representation content, and obtain the data unit meaning corresponding to the encoding of the data unit.

[0118] Optionally, the determination module 603 is configured to:

[0119] Determine a first data representation content with clear meaning and a second data representation content with unclear meaning according to the target data unit definition table:

[0120] Determine the data representation content definition table corresponding to the type of the second data representation content, where the data representation content definition table is a single table or in a table nesting mode:

[0121] Determine the clear meaning of the second data representation content by querying the data representation content definition table.

[0122] Optionally, the adjustment module 602 is configured to:

[0123] Determine that the data format of the in-vehicle unit data is a string in a preset encoding format:

[0124] Decode the string to obtain a byte array:

[0125] Perform a number system conversion on the byte array to obtain in-vehicle unit data with the same number system as the national standard data identifier.

[0126] Optionally, the device is further configured to:

[0127] Verify the in-vehicle unit data, where the verification content includes at least one of the integrity rate and the consistency rate:

[0128] If the integrity rate exceeds the preset integrity rate threshold or the consistency rate exceeds the preset consistency rate threshold, output the data meaning of the in-vehicle unit data.

[0129] Optionally, the device is further configured to:

[0130] Determine the integrity rate of the in-vehicle unit data according to the quotient of the actual number of in-vehicle unit data items and the preset number of national standard data items, where the actual number of in-vehicle unit data items is the number of data identifiers of the in-vehicle unit data, and the preset number of national standard data items refers to the preset number of national standard data identifiers:

[0131] Determine the consistency rate of the in-vehicle unit data according to the ratio of the number of items of the in-vehicle unit data that matches the national standard data to the actual number of in-vehicle unit data items.

[0132] According to another aspect of the embodiments of the present application, the present application provides an electronic device, as Figure 7 shown, including a memory 703, a processor 701, a communication interface 702, and a communication bus 704. A computer program that can run on the processor 701 is stored in the memory 703. The memory 703 and the processor 701 communicate through the communication interface 702 and the communication bus 704. When the processor 701 executes the computer program, the steps of the above method are implemented.

[0133] The memory and the processor in the above electronic device communicate through the communication bus and the communication interface. The communication bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc.

[0134] The memory may include a Random Access Memory (RAM), or may also include a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0135] The aforementioned processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0136] According to another aspect of the embodiments of the present application, there is also provided a computer-readable medium having non-volatile program code executable by a processor.

[0137] Optionally, in the embodiments of the present application, the computer-readable medium is configured to store program code for the processor to execute the above method.

[0138] Optionally, specific examples in this embodiment may refer to the examples described in the above embodiments, and will not be elaborated herein.

[0139] When the embodiments of the present application are specifically implemented, reference may be made to the above respective embodiments, and they have corresponding technical effects.

[0140] It can be understood that the embodiments described herein can be implemented using hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions of this application, or any combination thereof.

[0141] For a software implementation, the techniques herein can be implemented by units that execute the functions herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented within the processor or external to the processor.

[0142] Those of ordinary skill in the art will realize that the units and algorithm steps of the examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.

[0143] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.

[0144] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of modules is only a logical function division, and there can be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings, direct couplings, or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of devices or units can be in electrical, mechanical, or other forms.

[0145] The unit described as a separation component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place or distributed across multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0146] In addition, in each embodiment of this application, each functional unit can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.

[0147] If the function 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 storage medium. Based on such an understanding, the technical solution of the embodiments of this application, in essence, or the part that contributes to the prior art or part of this technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical discs that can store program codes. It should be noted that in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without more limitations, the element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article or device including the element.

[0148] The above embodiments are only preferred embodiments given to fully illustrate the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or transformations made by those skilled in the art on the basis of the present invention are all within the protection scope of the present invention.

Claims

1. A method for determining the meaning of vehicle data, characterized in that: The method comprises: Call the preset interface to obtain vehicle data from the cloud: The data format is adjusted so that the data format of the vehicle computer data is consistent with the format of the national standard data identifier of the national standard data, wherein the national standard data is the data in the national standard file: The data meaning of the vehicle computer data is determined according to the data parsing rules in the national standard file.

2. The method according to claim 1, characterized in that According to the data parsing rules in the national standard file, determining the data meaning of the vehicle computer data includes: According to the data packet structure definition table in the national standard file, each byte in the data packet of the vehicle computer data is traversed to determine the first byte with a clear meaning and the second byte with an unclear meaning, wherein the data packet structure definition table includes the meaning of each fixed byte, and the second byte includes the encoding of the command identifier, the encoding of the response flag, and the encoding of the data unit: According to the command identification definition table, the response flag definition table and the data unit definition table in the national standard file, the clear meaning of the second byte is determined: The data meaning of the vehicle computer data is determined according to the clear meaning of the first byte and the clear meaning of the second byte.

3. The method according to claim 2, characterized in that Determining the clear meaning of the second byte according to the command identification definition table, the response flag definition table, and the data unit definition table in the national standard file includes: According to the command identifier definition table in the national standard file, determine the command identifier meaning corresponding to the encoding of the command identifier in the data packet: According to the answer flag definition table in the national standard file, determine the answer flag meaning corresponding to the code of the answer flag in the data packet: From the multiple data unit definition tables in the national standard file, find the target data unit definition table corresponding to the command identifier meaning: The data representation contents in the target data unit definition table are traversed to determine the meaning of each data representation content, and the data unit meaning corresponding to the encoding of the data unit is obtained.

4. The method according to claim 3, characterized in that Traversing the data representation contents in the target data unit definition table and determining the meaning of each data representation content includes: According to the target data unit definition table, determine the first data representation content with clear meaning and the second data representation content with unclear meaning: Determine a data representation content definition table corresponding to the type of the second data representation content, wherein the data representation content definition table is a single table or adopts a table nesting mode: The explicit meaning of the second data representation content is determined by querying the data representation content definition table.

5. The method according to claim 1, characterized in that Adjusting the data format so that the data format of the vehicle computer data is consistent with the format of the national standard data identifier includes: Determine that the data format of the vehicle computer data is a character string in a preset encoding format: Decode the string to get a byte array: The byte array is converted into a base number to obtain vehicle computer data having the same base number system as the national standard data identifier.

6. The method according to claim 1, characterized in that After determining the data meaning of the vehicle computer data, the method further includes: Verify the vehicle data, wherein the verification content includes at least one of the completeness rate and the consistency rate: If the completeness rate exceeds a preset completeness rate threshold or the consistency rate exceeds a preset consistency rate threshold, the data meaning of the vehicle computer data is output.

7. The method according to claim 1, characterized in that Verifying the vehicle computer data includes: The completeness rate of the vehicle data is determined according to the quotient of the actual number of vehicle data items and the preset number of national standard data items, wherein the actual number of vehicle data items is the number of data identifiers of the vehicle data, and the preset number of national standard data items refers to the preset number of national standard data identifiers: The consistency rate of the vehicle computer data is determined according to the ratio of the number of vehicle computer data items matching the national standard data to the number of actual vehicle computer data items.

8. A device for determining the meaning of vehicle data, characterized in that: The device comprises: The calling module is used to call the preset interface to obtain vehicle data from the cloud: The adjustment module is used to adjust the data format so that the data format of the vehicle computer data is consistent with the format of the national standard data identifier of the national standard data, wherein the national standard data is the data in the national standard file: The determination module is used to determine the data meaning of the vehicle computer data according to the data parsing rules in the national standard file.

9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus: Memory, used to store computer programs: A processor, for implementing any of the methods described in claims 1-7 when executing a program stored in a memory.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.