A data verification method, apparatus, electronic device, and storage medium

By performing data analysis and scoring in the cloud, the problem of time-consuming and labor-intensive manual verification in vehicle-to-cloud data transmission has been solved, achieving efficient and accurate data verification and saving labor costs.

CN117640406BActive Publication Date: 2026-11-17CHINA AUTOMOTIVE INNOVATION CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311608364.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-28
Publication Date
2026-11-17
Estimated Expiration
2043-11-28

AI Technical Summary

Technical Problem

During the vehicle-to-cloud data transmission process, the accuracy of the parsing template, data packaging, and data parsing cannot be guaranteed, resulting in time-consuming and labor-intensive manual verification.

Method used

The data packets, templates for parsing the data packets, and configurable scoring criteria are uploaded to the cloud. The data is then parsed in the cloud and scored according to the scoring criteria, replacing manual verification.

Benefits of technology

This significantly reduces labor costs and provides a systematic understanding of the final data analysis results, improving the efficiency and accuracy of data verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117640406B_ABST
    Figure CN117640406B_ABST
Patent Text Reader

Abstract

This application discloses a data verification method, apparatus, electronic device, and storage medium. The method includes: receiving a data packet sent by a vehicle and a parsing template sent by an electronic and electrical architecture group; parsing the data packet into multiple signals to be verified according to the parsing template; obtaining a scoring standard and standard data sent by the electronic and electrical architecture group; preprocessing the multiple signals to be verified to obtain multiple data to be verified; scoring the deviation between the data to be verified and the standard data according to the scoring standard to determine the verification result; and sending the verification result to the vehicle. This application uploads the data packet, the template for parsing the data packet, and the configurable scoring standard to the cloud, performs data parsing in the cloud, scores according to the scoring standard, and outputs the signal verification result to the vehicle, replacing manual verification. It also features a configurable scoring standard, greatly saving labor costs and providing a systematic view of the final data parsing results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a data verification method, apparatus, electronic device and storage medium. Background Technology

[0002] Vehicle-to-cloud (V2X) data transmission has numerous applications in the modern automotive and transportation industries, improving vehicle management, driving safety, vehicle performance monitoring, and user experience. V2X data transmission typically involves three parties: the electrical and electronic architecture team, the vehicle itself, and the cloud. The transmission of V2X data signals collected by the vehicle is generally handled by the electrical and electronic architecture team, which defines the data transmission protocol and data parsing templates. The vehicle then packages the data into a hexadecimal compressed file. The cloud then parses the data, usually converting it into JSON format.

[0003] Because this involves collaboration among three departments, the accuracy of the parsing template, data packaging, and data parsing cannot be guaranteed, necessitating manual verification. Furthermore, since the signal data typically exceeds 1000 signals, manual verification is time-consuming and labor-intensive. Summary of the Invention

[0004] To address the technical problem of errors easily occurring during the packaging and parsing of vehicle cloud data across multiple terminals, this invention provides a data verification method, device, electronic device, and storage medium. The method uploads data packets, templates for parsing data packets, and configurable scoring standards to the cloud, where data is parsed and scored according to the scoring standards. The result of signal verification is then output to the vehicle, replacing manual verification. Furthermore, the method features configurable scoring standards, significantly reducing labor costs and providing a systematic view of the final data parsing results.

[0005] In a first aspect, embodiments of this application provide a data verification method applied to a cloud server, the method comprising:

[0006] Receive data packets sent by the vehicle and parsing templates sent by the electrical and electronic architecture group;

[0007] Based on the parsing template, the data packet is parsed into multiple signals to be verified;

[0008] Obtain the scoring criteria and standard data sent by the Electrical and Electronic Architecture Group;

[0009] Multiple signals to be verified are preprocessed to obtain multiple data to be verified.

[0010] The deviation between the data to be verified and the standard data is scored according to the scoring criteria to determine the verification result.

[0011] Send the verification result to the vehicle.

[0012] In one optional embodiment, multiple signals to be verified are preprocessed to obtain multiple data to be verified, including:

[0013] Obtain the start position, length, and type information of the signal to be verified;

[0014] Based on the starting position and length information, obtain the position information of the signal to be verified in the data packet;

[0015] Based on preset calculation rules, type information, and location information, the signal to be verified is converted into data to be verified.

[0016] Retrieve multiple data to be verified.

[0017] In one optional embodiment, the deviation between the data to be verified and the standard data is scored according to a scoring standard to determine the verification result, including:

[0018] Obtain the integer bits of the data to be verified and the integer bits of the standard data;

[0019] Obtain the decimal places of the data to be verified (preset number of decimal places) and the decimal places of the standard data;

[0020] Compare the integer part of the data to be verified with the integer part of the standard data, and compare the decimal part of the data to be verified with the decimal part of the standard data to obtain the comparison result;

[0021] The comparison results are scored according to the scoring criteria to determine the verification result.

[0022] In one optional embodiment, the scoring criteria include accuracy calculation rules and accuracy tolerance; the verification results include meeting the accuracy tolerance and not meeting the accuracy tolerance.

[0023] The comparison results are scored according to the scoring criteria to obtain the verification results, including:

[0024] If the comparison result indicates that the integer data and the integer data of the standard data do not meet the first preset relationship, the verification result of the data to be verified is determined to be that it does not meet the accuracy tolerance; or; if the comparison result indicates that the integer data and the integer data of the standard data meet the first preset relationship, the accuracy data of the data to be verified is obtained according to the accuracy calculation rules.

[0025] If the accuracy data is greater than or equal to the accuracy tolerance, the verification result of the data to be verified is determined to meet the accuracy tolerance; or, if the accuracy data is less than the accuracy tolerance, the verification result of the data to be verified is determined to not meet the accuracy tolerance.

[0026] In one optional embodiment, the scoring criteria further includes digit weight data; the digit weight data represents the weight data corresponding to each decimal place of the data to be verified;

[0027] The accuracy data of the data to be verified is obtained according to the accuracy calculation rules, including:

[0028] Compare each decimal place of the data to be verified with each decimal place of the standard data;

[0029] The weighted data corresponding to the decimal data of the data to be verified that satisfy the second preset relationship with the decimal data of the standard data are summed, and the accuracy data of the data to be verified is determined based on the sum of the weighted data.

[0030] In one optional embodiment, the verification result includes a single data verification result and an overall verification result;

[0031] The method also includes:

[0032] Receive verification pass information sent by the vehicle terminal; the verification pass information is generated on the vehicle terminal when the single data verification result is greater than or equal to the first preset threshold and the overall verification result is greater than or equal to the second preset threshold.

[0033] In one optional embodiment, the verification result includes a single data verification result and an overall verification result;

[0034] The method also includes:

[0035] If a verification failure message is received from the vehicle, the verification error message is obtained. The verification failure message is generated on the vehicle when the single data verification result is less than the first preset threshold or the overall verification result is less than the second preset threshold. The verification error message indicates that there is an error in the data of the electronic and electrical architecture group, the vehicle, or the cloud.

[0036] Secondly, embodiments of this application provide a data verification device applied to a cloud server, the device comprising:

[0037] The receiving module is used to receive data packets sent by the vehicle and parsing templates sent by the electrical and electronic architecture group;

[0038] The parsing module is used to parse data packets into multiple signals to be verified based on the parsing template.

[0039] The first acquisition module is used to acquire the scoring criteria and standard data sent by the Electrical and Electronic Architecture Group.

[0040] The second acquisition module is used to preprocess multiple signals to be verified and acquire multiple data to be verified.

[0041] The third acquisition module is used to score the deviation between the data to be verified and the standard data according to the scoring criteria, and to determine the verification result.

[0042] The sending module is used to send the verification result to the vehicle.

[0043] Thirdly, embodiments of this application provide an electronic device, which includes a processor and a memory. The memory stores at least one instruction, at least one program, code set, or instruction set. The at least one instruction, at least one program, code set, or instruction set is loaded and executed by the processor to implement the data verification method of the first aspect.

[0044] Fourthly, embodiments of this application provide a computer-readable storage medium storing at least one instruction or at least one program, wherein the at least one instruction or at least one program is loaded and executed by a processor to implement the data verification method of the first aspect.

[0045] Fifthly, embodiments of this application provide a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the data verification method of the first aspect.

[0046] The data verification method, apparatus, electronic device, and storage medium provided in this application have the following technical effects:

[0047] The system receives data packets from the vehicle and parsing templates from the electrical and electronic architecture group; based on the parsing templates, it parses the data packets into multiple signals to be verified; it obtains scoring standards and standard data sent by the electrical and electronic architecture group; it preprocesses the multiple signals to be verified to obtain multiple data to be verified; it scores the deviation between the data to be verified and the standard data according to the scoring standards, determines the verification result, and sends the verification result to the vehicle. This system uploads data packets, parsing templates, and configurable scoring standards to the cloud, performs data parsing in the cloud, scores according to the scoring standards, and outputs the signal verification result to the vehicle, replacing manual verification. It also features configurable scoring standards, significantly reducing labor costs and providing a systematic view of the final data parsing results. Attached Figure Description

[0048] To more clearly illustrate the technical solutions and advantages in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0049] Figure 1 This is a schematic diagram of an application environment provided in an embodiment of this application;

[0050] Figure 2 This is a flowchart illustrating a data verification method provided in an embodiment of this application;

[0051] Figure 3 This is a flowchart illustrating a data verification method provided in an embodiment of this application;

[0052] Figure 4 This is a flowchart illustrating a data verification method provided in an embodiment of this application;

[0053] Figure 5 This is a schematic diagram of the structure of a data verification device provided in an embodiment of this application;

[0054] Figure 6 This is a hardware structure block diagram of a server for a data verification method provided in an embodiment of this application. Detailed Implementation

[0055] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0056] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.

[0057] Please see Figure 1 , Figure 1 This is a schematic diagram of an application environment provided in an embodiment of this application, including an electronic and electrical architecture group 101, a vehicle terminal 102, and a cloud terminal 103.

[0058] In one possible embodiment, the electrical and electronic architecture group typically refers to a team or department working in the field of automotive manufacturing or vehicle electronic systems, responsible for designing, developing, and maintaining the vehicle's electronic systems, including vehicle communications, sensors, control units, etc., and responsible for developing data transmission protocols, defining data formats, and ensuring that the electronic systems within the vehicle work together properly.

[0059] In this application embodiment, the electrical and electronic architecture group formulates a data transmission protocol and a template for parsing data. The data transmission protocol includes data format, transmission speed, error detection and correction methods, and communication protocol rules. In the vehicle field of this application, the data transmission protocol may include communication protocols (such as CAN), data frame formats, data transmission frequencies, etc., which can ensure that various electronic devices in the vehicle can correctly send and receive data for collaborative operation.

[0060] The data parsing template describes the structure of the vehicle-to-cloud data, the meaning of the data fields, and the data encoding method. This template is sent to the cloud, which then uses it to correctly parse the standard data from the vehicle and convert it into a understandable and analyzable format, typically XML or JSON.

[0061] In one possible embodiment, "vehicle-side" refers to the hardware and software components on the vehicle, including sensors, control units, and communication modules inside the vehicle, used to collect and package vehicle data.

[0062] In one possible embodiment, the data collected and packaged by the vehicle may include various information and parameters related to the vehicle and driving, such as basic vehicle information, vehicle location and trajectory information, vehicle status and performance information, etc.

[0063] In one possible embodiment, the cloud refers to cloud computing infrastructure, typically provided and managed by a cloud service provider. The cloud is responsible for receiving, storing, and processing data transmitted from the vehicle, including parsing the data and converting data formats (e.g., from XML to JSON).

[0064] The following describes a specific embodiment of a data verification method according to this application. Figure 2This is a flowchart illustrating a data verification method provided in an embodiment of this application. This specification provides method operation steps as shown in the embodiments or flowcharts, but based on conventional or non-inventive methods, more or fewer operation steps may be included. The order of steps listed in the embodiments is merely one possible execution order among many and does not represent the only possible execution order. In actual system or server product execution, the method can be executed sequentially according to the embodiments or drawings, or in parallel (e.g., in a parallel processor or multi-threaded processing environment). Specifically, as shown... Figure 2 As shown, this method, applied to a cloud-based server, can include:

[0065] S201: Receive data packets sent by the vehicle and parsing templates sent by the electrical and electronic architecture group.

[0066] S202: Based on the parsing template, the data packet is parsed into multiple signals to be verified.

[0067] S203: Obtain scoring criteria and standard data sent by the Electrical and Electronic Architecture Group.

[0068] S204: Preprocess multiple signals to be verified to obtain multiple data to be verified.

[0069] S205: Score the deviation between the data to be verified and the standard data according to the scoring criteria, and determine the verification result.

[0070] S206: Send the verification result to the vehicle.

[0071] Figure 3 This is a flowchart illustrating a data verification method provided in an embodiment of this application, applied to a cloud server. The method may include:

[0072] S301: Receives data packets sent by the vehicle and parsing templates sent by the electrical and electronic architecture group.

[0073] In one possible embodiment, the data packet is a hexadecimal compressed file. The vehicle-mounted signal is represented in decimal, floating-point, binary, or other suitable numerical formats, such as the vehicle's current speed signal, expressed as a decimal value in kilometers per hour (km / h) or miles per hour (mph). During data transmission, to ensure data integrity, accuracy, and identifiability, the decimal data signal is converted to hexadecimal for easier data packaging and unpacking.

[0074] In this embodiment, the tester first needs to clearly define the data signal to be simulated or tested. The data signal to be simulated or tested may include various parameters related to the vehicle or system, such as vehicle speed, engine speed, fuel level, temperature, etc.

[0075] Testers use CANoe software to simulate the electronic systems and sensors inside a vehicle, collecting and simulating data signals associated with these systems and sensors. CANoe is a tool for simulating vehicle electronic system communications, generating simulated signals to mimic the behavior of sensors, control units, or communication buses within the vehicle.

[0076] Testers need to provide appropriate values ​​for each simulated signal. These values ​​can represent different data parameters, such as speed, temperature, and pressure. Once the values ​​are filled in, testers can package this data into a hexadecimal format data packet for transmission or storage.

[0077] In this embodiment, the tester also needs to create a parsing template, which is a file describing how to extract and parse the value of each signal from the hexadecimal data packet. Since the data signal is generated based on events, the parsing template includes the event ID, event name, number of signals, signal name, signal start bit, signal length, signal type, signal value range, signal calculation formula, and unit, etc.

[0078] In addition, testers need to create an Excel spreadsheet to record the value corresponding to each signal. This spreadsheet can be used as a reference for standard data, as well as for data management and documentation.

[0079] S302: Based on the parsing template, the data packet is parsed into multiple signals to be verified.

[0080] S303: Obtain scoring criteria and standard data sent by the Electrical and Electronic Architecture Group.

[0081] In one possible embodiment, the scoring criteria include accuracy calculation rules and accuracy tolerance. Accuracy tolerance means that when the accuracy of the data to be verified is greater than or equal to the accuracy tolerance, it can be considered that the parsing template, packaging process, and parsing process of the data are error-free. Conversely, when the accuracy of the data to be verified is less than the accuracy tolerance, it can be considered that at least one step of the parsing template, packaging process, and parsing process of the data has an error, and it is necessary to further find out which step has an error.

[0082] In one possible embodiment, the standard data is the value corresponding to the signal when there are no errors in the template parsing, packaging, and parsing processes. This value has integer and decimal places. The difference between the data to be verified and the standard data can be obtained by comparing the data to be verified with the standard data.

[0083] In this embodiment of the application, the standard data is presented in the form of an Excel spreadsheet, which contains a comparison table of all signals and standard data.

[0084] S304: Convert the signal to be verified into data to be verified.

[0085] In one embodiment, the preprocessing of multiple signals to be verified includes converting the signals to be verified into data to be verified.

[0086] In one possible embodiment, the step of converting the signal to be verified into data to be verified includes: obtaining the starting position, length information and type information of the signal to be verified; obtaining the position information of the signal to be verified in the data packet based on the starting position and length information; and converting the signal to be verified into data to be verified based on preset calculation rules, type information and position information.

[0087] In this embodiment, it is first necessary to know the position of the signal to be verified in the data packet, as well as its length and data type. This information is typically used as configuration parameters to enable the identification and location of the signal to be verified. Using the start position and length information, the start and end positions of the signal to be verified in the data packet can be calculated to locate the byte range of the signal to be verified.

[0088] In one possible embodiment, the preset calculation rules include various mathematical operations, such as addition, subtraction, multiplication, and division, as well as logical operations, such as shift, AND, OR, and NOT. The preset calculation rules characterize how to process the signal to be verified to obtain the final data to be verified.

[0089] In one possible implementation, type information specifies the data type of the signal to be verified, such as integer, floating-point number, string, etc. Different parsing and conversion methods are required depending on the data type.

[0090] For example, the verification signal representing the current temperature data is in units of 0.01 degrees (1 / 100th of a degree). It occupies 2 bytes starting from byte position 2 in the data packet, and the data type is a signed integer. The preset calculation rule for this verification signal could be: combine these two bytes into a 16-bit signed integer, then divide by 100 to obtain the temperature value. The type information can be a signed integer.

[0091] Through the above process, the corresponding bytes in the data packet are extracted, and the preset calculation rules are applied to convert them into the required temperature value.

[0092] S305: Obtain the integer and decimal places of the data to be verified.

[0093] In one possible implementation, it is necessary to separate the integer and decimal parts of the data to be verified. Therefore, the integer and decimal parts are distinguished by the decimal point.

[0094] After distinguishing between the integer and decimal places of the data to be verified, different processing strategies can be adopted for the integer and decimal places, which helps to more accurately control the accuracy of the data.

[0095] Furthermore, since the numerical value of standard data is usually fixed, and the number of decimal places in standard data is also fixed, the number of decimal places in the data to be verified obtained by conversion through preset calculation rules is not fixed. In order to facilitate comparison with standard data, it is necessary to limit the number of decimal places in the data to be verified.

[0096] If the number of decimal places is greater than or equal to the preset number of decimal places, retain the preset number of decimal places; if the number of decimal places is less than the preset number of decimal places, add zeros after the decimal places to obtain the preset number of decimal places.

[0097] For example, the default number of digits is 5, which means that five decimal places need to be retained. If the data to be verified is 6.723522, then the data to be verified after retaining the decimal places is 6.72352; if the data to be verified is 6.7235, then the data to be verified after padding the decimal places is 6.72350.

[0098] S306: Determine whether the integer part data and the integer part data of the standard data do not satisfy the first preset relationship. If yes, execute S307; otherwise, execute S308.

[0099] In one possible embodiment, the first preset relationship is an equal relationship. In other possible embodiments, the first preset relationship can also be set as a multiple relationship, etc., based on different needs.

[0100] In this embodiment of the application, if the integer bits are different, the error between the data to be verified and the standard data is too large, and it is directly determined that the data to be verified does not meet the accuracy tolerance.

[0101] S307: The verification result of the data to be verified is determined to be inconsistent with the accuracy tolerance.

[0102] In the embodiments of this application, the verification result includes two cases: meeting the accuracy tolerance and not meeting the accuracy tolerance.

[0103] S308: Compare each decimal place of the data to be verified with each decimal place of the standard data to determine the accuracy of the data to be verified.

[0104] In one possible embodiment, the scoring criteria also include digit weighting data, which represents the weight of each decimal place of the data to be verified. For example, the first type of digit weighting data is that each digit after the decimal point has a weight of 20%, or the second type of digit weighting data is: the first decimal place has a weight of 30%, the second decimal place has a weight of 30%, the third decimal place has a weight of 20%, the fourth decimal place has a weight of 10%, and the fifth decimal place has a weight of 10%.

[0105] In one possible embodiment, the accuracy data of the data to be verified is obtained according to the scoring criteria, including the following steps: comparing each decimal place of the data to be verified with each decimal place of the standard data, summing the weight data corresponding to the decimal place of the data to be verified that satisfies a second preset relationship with the decimal place of the standard data, and determining the accuracy data of the data to be verified based on the sum of the weight data.

[0106] Similarly, the second preset relationship is an equal relationship. In other possible embodiments, the second preset relationship can also be set as a multiple relationship or the like, depending on different needs.

[0107] In the case of the first type of digit weighted data, if the first three decimal places are equal, then the accuracy of the data to be verified is 60%. In the case of the second type of digit weighted data, if the first three decimal places are equal, then the accuracy of the data to be verified is 80%.

[0108] S309: Determine whether the accuracy data is greater than or equal to the accuracy tolerance. If yes, execute S310; otherwise, execute S307.

[0109] S310: Determine that the verification result of the data to be verified meets the accuracy tolerance.

[0110] S311: Obtain the single data verification result and the overall verification result of multiple data to be verified.

[0111] In one possible embodiment, a single data verification result refers to the verification result of a single data to be verified, while the overall verification result refers to the verification result of all data to be verified. In other possible embodiments, the verification result may also include the percentage of data with accuracy greater than or equal to the accuracy tolerance among all data.

[0112] In one possible embodiment, based on the verification results and accuracy data, the data to be verified is highlighted according to preset display rules, making it convenient for operators to view the verified data.

[0113] In one possible embodiment of this application, if the integer part data in the output result is not equal, the data is marked in red; if the precision of the decimal part data is 0%, the data is marked in red; if the precision of the decimal part data is 20%, the data is marked in orange-red; if the precision of the decimal part data is 40%, the data is marked in yellow; if the precision of the decimal part data is 60%, the data is marked in blue; if the precision of the decimal part data is 80%, the data is marked in sky blue; and if the precision of the decimal part data is 100%, the data is marked in green.

[0114] In some possible embodiments, the preset display rule can also be that the data is marked in green if 60% accuracy is met.

[0115] S312: Send the verification result to the vehicle.

[0116] In this embodiment of the application, in order to ensure the accuracy of the transmitted data, the verification results are mainly viewed and judged on the vehicle side to determine whether subsequent verifications pass. The data is transmitted by the actual vehicle, or the verification results can be viewed during bench testing.

[0117] After sending the verification result to the vehicle, it can also receive feedback information from the vehicle.

[0118] S313: Receive the verification pass information sent by the vehicle terminal.

[0119] In this embodiment of the application, the verification pass information is generated on the vehicle side when the single data verification result is greater than or equal to the first preset threshold and the overall verification result is greater than or equal to the second preset threshold.

[0120] In one possible embodiment, the first preset threshold is greater than the second preset threshold. Specifically, the accuracy tolerance can be set to 60%, the first preset threshold can be set to 80%, and the second preset threshold can be set to 60%, because the single data verification result represents the accuracy of a data point, and the overall verification result represents the proportion of data points in all data that meet the accuracy tolerance.

[0121] With the above settings, the verification process places higher demands on the accuracy of individual data points, requiring an accuracy of 80% or higher for each individual data point. However, as long as 60% of the data in the overall dataset meets the 80% accuracy requirement, the verification will pass. This allows for more precise control over the overall data accuracy.

[0122] S314: Get verification error information.

[0123] In this embodiment, the verification failure information is generated on the vehicle side when the single data verification result is less than the first preset threshold or the overall verification result is less than the second preset threshold. The verification error information indicates that there is an error in the data of the electronic and electrical architecture group, the vehicle side or the cloud.

[0124] Figure 4 This is a flowchart illustrating a data verification method provided in an embodiment of this application, applied to a vehicle. The method may include:

[0125] S401: Send data packets to the cloud.

[0126] S402: Receive the verification result sent by the vehicle terminal.

[0127] S403: Determine whether the single data verification results are all greater than or equal to the first preset threshold and whether the overall verification results are greater than or equal to the second preset threshold. If yes, execute S404; otherwise, execute S405.

[0128] In this embodiment, the first preset threshold can be equal to the second preset threshold. A single data verification result greater than or equal to the first preset threshold and an overall verification result greater than or equal to the second preset threshold indicate that the verification result meets the accuracy requirements.

[0129] If a single data verification result is greater than or equal to the first preset threshold, but the overall verification result is less than the second preset threshold, the verification fails. At the same time, if there is a single data verification result less than the first preset threshold, but the overall verification result is greater than or equal to the second preset threshold, the verification fails. Also, if there is a single data verification result less than the first preset threshold and the overall verification result less than the second preset threshold, the verification fails.

[0130] S404: Send verification pass information to the cloud.

[0131] S405: Sends a verification failure message to the cloud.

[0132] This application also provides a data verification device. Figure 5 This is a schematic diagram of the structure of a data verification device provided in an embodiment of this application, as shown below. Figure 5 As shown, the device, used in a cloud-based server, includes:

[0133] The receiving module 501 is used to receive data packets sent by the vehicle and parsing templates sent by the electronic and electrical architecture group;

[0134] The parsing module 502 is used to parse the data packet into multiple signals to be verified according to the parsing template;

[0135] The first acquisition module 503 is used to acquire the scoring criteria and standard data sent by the Electrical and Electronic Architecture Group;

[0136] The second acquisition module 504 is used to preprocess multiple signals to be verified and acquire multiple data to be verified.

[0137] The third acquisition module 505 is used to score the deviation between the data to be verified and the standard data according to the scoring criteria, and determine the verification result.

[0138] The sending module 506 is used to send the verification result to the vehicle.

[0139] In one alternative implementation, it further includes:

[0140] The fourth acquisition module is used to acquire the starting position, length information, and type information of the data to be verified;

[0141] The fifth acquisition module obtains the position information of the signal to be verified in the data packet based on the starting position and length information;

[0142] The conversion module is used to convert the signal to be verified into data to be verified according to preset calculation rules, type information and location information;

[0143] The sixth module is used to acquire multiple pieces of data to be verified.

[0144] In one alternative implementation, it further includes:

[0145] The seventh acquisition module is used to acquire the integer part data of the data to be verified and the integer part data of the standard data;

[0146] The eighth acquisition module is used to acquire the decimal places of the data to be verified with a preset number of digits and the decimal places of the standard data;

[0147] The ninth acquisition module is used to compare the integer part of the data to be verified with the integer part of the standard data, and to compare the decimal part of the data to be verified with the decimal part of the standard data, and to obtain the comparison result.

[0148] The first determination module is used to score the comparison results according to the scoring criteria and determine the verification result.

[0149] In one optional implementation, the scoring criteria include accuracy calculation rules and accuracy tolerance; the verification results include meeting the accuracy tolerance and not meeting the accuracy tolerance; and also include:

[0150] The second determining module is used to determine that the verification result of the data to be verified does not meet the accuracy tolerance if the comparison result indicates that the integer data and the integer data of the standard data do not satisfy the first preset relationship; or, if the comparison result indicates that the integer data and the integer data of the standard data satisfy the first preset relationship, obtain the accuracy data of the data to be verified according to the accuracy calculation rules.

[0151] The third determining module is used to determine that the verification result of the data to be verified meets the accuracy tolerance if the accuracy data is greater than or equal to the accuracy tolerance; or, if the accuracy data is less than the accuracy tolerance, to determine that the verification result of the data to be verified does not meet the accuracy tolerance.

[0152] In one optional implementation, the scoring criteria further includes digit weight data; the digit weight data represents the weight data corresponding to each decimal place of the data to be verified; and also includes:

[0153] The comparison module is used to compare each decimal place of the data to be verified with each decimal place of the standard data.

[0154] The fourth determination module is used to sum the weighted data corresponding to the decimal data of the data to be verified that satisfy the second preset relationship with the decimal data of the standard data, and determine the accuracy data of the data to be verified based on the sum of the weighted data.

[0155] In one optional implementation, the verification result includes a single data verification result and an overall verification result; it also includes:

[0156] The first receiving module is used to receive the verification pass information sent by the vehicle terminal; the verification pass information is generated on the vehicle terminal when the single data verification result is greater than or equal to the first preset threshold and the overall verification result is greater than or equal to the second preset threshold.

[0157] In one optional implementation, the verification result includes a single data verification result and an overall verification result; it also includes:

[0158] The tenth acquisition module is used to acquire verification error information when a verification failure message is received from the vehicle terminal; the verification failure message is generated on the vehicle terminal when the single data verification result is less than the first preset threshold or the overall verification result is less than the second preset threshold; the verification error message indicates that there is an error in the data of the electronic and electrical architecture group, the vehicle terminal or the cloud.

[0159] The apparatus and method embodiments in this application are based on the same application concept.

[0160] The methods and embodiments provided in this application can be executed on a computer terminal, server, or similar computing device. Taking running on a server as an example, Figure 6 This is a hardware structure block diagram of a server for a data verification method provided in an embodiment of this application. For example... Figure 6 As shown, the server 600 can vary significantly due to different configurations or performance. It may include one or more central processing units (CPUs) 610 (CPUs 610 may include, but are not limited to, microprocessors such as MCUs or programmable logic devices such as FPGAs), a memory 630 for storing data, and one or more storage media 620 (e.g., one or more mass storage devices) for storing application programs 623 or data 622. The memory 630 and storage media 620 may be temporary or persistent storage. The program stored in the storage media 620 may include one or more modules, each module may include a series of instruction operations on the server. Furthermore, the CPU 610 may be configured to communicate with the storage media 620 and execute the series of instruction operations stored in the storage media 620 on the server 600. Server 600 may also include one or more power supplies 660, one or more wired or wireless network interfaces 650, one or more input / output interfaces 640, and / or one or more operating systems 621, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0161] The input / output interface 640 can be used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of server 600. In one example, the input / output interface 640 includes a network interface controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the input / output interface 640 may be a radio frequency (RF) module for wireless communication with the Internet.

[0162] Those skilled in the art will understand that Figure 6 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, server 600 may also include... Figure 6 The more or fewer components shown, or having the same Figure 6 The different configurations shown.

[0163] This application provides an electronic device, which includes a processor and a memory. The memory stores at least one instruction, at least one program, code set, or instruction set. The processor loads and executes the at least one instruction, at least one program, code set, or instruction set to implement the above-described data processing method.

[0164] Embodiments of this application also provide a computer-readable storage medium, which can be disposed in a server to store at least one instruction, at least one program, code set, or instruction set related to implementing a data verification method in the method embodiment. The at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the above-described data verification method.

[0165] Optionally, in this embodiment, the storage medium may be located at at least one of the multiple network servers in a computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0166] As can be seen from the embodiments of the data verification method, apparatus, electronic device, or storage medium provided in this application, this application receives data packets sent by the vehicle and parsing templates sent by the electrical and electronic architecture group; according to the parsing templates, the data packets are parsed into multiple signals to be verified; scoring standards and standard data sent by the electrical and electronic architecture group are obtained; the multiple signals to be verified are preprocessed to obtain multiple data to be verified; the deviation between the data to be verified and the standard data is scored according to the scoring standards to determine the verification result; the verification result is sent to the vehicle, and the data packets, the template for parsing the data packets, and the configurable scoring standards are uploaded to the cloud for data parsing, scoring according to the scoring standards, and the signal verification result is output to the vehicle. This replaces manual verification and has configurable scoring standards, greatly saving labor costs and allowing for a systematic understanding of the final data parsing results.

[0167] It should be noted that the order of the embodiments described above is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. Furthermore, specific embodiments have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in a different order than that shown in the embodiments and still achieve the desired result. Additionally, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0168] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0169] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0170] The above description is only a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A data verification method, characterized in that, Servers used in the cloud include: Receive data packets sent by the vehicle and parsing templates sent by the electrical and electronic architecture group; According to the parsing template, the data packet is parsed into multiple signals to be verified; Obtain the scoring criteria and the standard data sent by the electrical and electronic architecture group; the standard data is the value corresponding to the signal in the data packet when there are no errors in the parsing template, packaging process and parsing process. The multiple signals to be verified are preprocessed to obtain multiple data to be verified. The deviation between the data to be verified and the standard data is scored according to the scoring criteria to determine the verification result; The verification result is sent to the vehicle terminal.

2. The data verification method according to claim 1, characterized in that, The preprocessing of the multiple signals to be verified to obtain multiple data to be verified includes: Obtain the start position, length information, and type information of the signal to be verified; Based on the starting position and the length information, the position information of the signal to be verified in the data packet is obtained; According to the preset calculation rules, the type information, and the location information, the signal to be verified is converted into the data to be verified. Obtain multiple sets of data to be verified.

3. The data verification method according to claim 1, characterized in that, The step of scoring the deviation between the data to be verified and the standard data according to the scoring criteria, and determining the verification result, includes: Obtain the integer bits of the data to be verified and the integer bits of the standard data; Obtain the decimal places of the data to be verified (preset number of digits) and the decimal places of the standard data; The integer part of the data to be verified is compared with the integer part of the standard data, and the decimal part of the data to be verified is compared with the decimal part of the standard data to obtain the comparison result. The comparison results are scored according to the scoring criteria to determine the verification result.

4. The data verification method according to claim 3, characterized in that, The scoring criteria include accuracy calculation rules and accuracy tolerance; the verification results include meeting the accuracy tolerance and not meeting the accuracy tolerance. The step of scoring the comparison results according to the scoring criteria and obtaining the verification results includes: If the comparison result indicates that the integer data and the integer data of the standard data do not satisfy the first preset relationship, the verification result of the data to be verified is determined to be that the accuracy tolerance is not met; or; if the comparison result indicates that the integer data and the integer data of the standard data satisfy the first preset relationship, the accuracy data of the data to be verified is obtained according to the accuracy calculation rule; If the accuracy data is greater than or equal to the accuracy tolerance, the verification result of the data to be verified is determined to meet the accuracy tolerance; or, if the accuracy data is less than the accuracy tolerance, the verification result of the data to be verified is determined to not meet the accuracy tolerance.

5. The data verification method according to claim 4, characterized in that, The scoring criteria also include digit weight data; the digit weight data represents the weight data corresponding to each decimal place of the data to be verified. The step of obtaining the accuracy data of the data to be verified according to the accuracy calculation rule includes: Compare each decimal place of the data to be verified with each decimal place of the standard data; The weighted data corresponding to the decimal data of the data to be verified that satisfy the second preset relationship with the decimal data of the standard data are summed, and the accuracy data of the data to be verified is determined based on the sum of the weighted data.

6. The data verification method according to claim 1, characterized in that, The verification results include single data verification results and overall verification results; The method further includes: The vehicle receives verification pass information sent by the vehicle terminal; the verification pass information is generated on the vehicle terminal when the single data verification result is greater than or equal to a first preset threshold and the overall verification result is greater than or equal to a second preset threshold.

7. The data verification method according to claim 1, characterized in that, The verification results include single data verification results and overall verification results; The method further includes: If a verification failure message is received from the vehicle terminal, a verification error message is obtained; the verification failure message is generated on the vehicle terminal when the single data verification result is less than a first preset threshold or the overall verification result is less than a second preset threshold; the verification error message indicates that there is an error in the data of the electronic and electrical architecture group, the vehicle terminal, or the cloud.

8. A data verification device, characterized in that, A server used in the cloud, the device comprising: The receiving module is used to receive data packets sent by the vehicle and parsing templates sent by the electrical and electronic architecture group; The parsing module is used to parse the data packet into multiple signals to be verified according to the parsing template; The first acquisition module is used to acquire the scoring criteria and the standard data sent by the electrical and electronic architecture group; the standard data is the value of the signal in the data packet when there are no errors in the parsing template, the packaging process and the parsing process. The second acquisition module is used to preprocess the multiple signals to be verified and acquire multiple data to be verified. The third acquisition module is used to score the deviation between the data to be verified and the standard data according to the scoring criteria, and to determine the verification result; The sending module is used to send the verification result to the vehicle terminal.

9. An electronic device, characterized in that, The electronic device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the data verification method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one instruction or at least one program, which is loaded and executed by a processor to implement the data verification method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Data consistency test system, method and device and storage medium

    CN114461526A

  • Analytic data evaluation method and device and medium

    CN114780682A