Data verification method, device and equipment based on automobile open system architecture, medium and program product

By using data identification information to compare the data to be verified with the control group data in the open system architecture of automobiles, the problem of the error tracker module being unable to detect abnormal data changes was solved, the integrity and accuracy of data transmission were achieved, and the data verification process was optimized.

CN119025327APending Publication Date: 2024-11-26ECARX (HUBEI) TECHCO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411251109.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-06
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

In the existing open system architecture of automobiles, the development of error tracker modules cannot effectively detect abnormal changes in transmitted data, which affects data integrity and accuracy.

Method used

By acquiring the parameter information of the data to be verified and comparing the data to be verified with the control group data using the data identification information, it is determined whether there are any abnormalities in the data, including the use of data storage address and mapping flag bits, so as to realize the detection of abnormal changes.

Benefits of technology

It ensures the integrity and accuracy of transmitted data, improves the flexibility and response speed of data verification, reduces unnecessary data processing and storage, and optimizes the data verification process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119025327A_ABST
    Figure CN119025327A_ABST
Patent Text Reader

Abstract

The invention provides a data verification method, device and equipment based on an automobile open system architecture, a medium and a program product, and relates to the technical field of computers. The method comprises the steps of obtaining parameter information of to-be-verified data in response to the obtained to-be-verified data; the parameter information comprises data identification information; the to-be-verified data is data to be transmitted to the next information transmission module by the current information transmission module; if it is determined that the to-be-verified data has control group data based on the data identification information, comparing the to-be-verified data with the control group data to obtain a comparison result; the control group data has the same data identification information as the to-be-verified data and is data transmitted to the current information transmission module by the previous information transmission module; and determining whether the to-be-verified data is abnormal based on the comparison result. The method can achieve the effects of detecting the transmission data with abnormal change and ensuring the integrity and accuracy of the data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a data verification method, device, equipment, medium and program product based on an automobile open system architecture. Background Art

[0002] Automotive Open System Architecture (Autosar) is a standardized software framework and open E / E system architecture for intelligent mobile development and establishment. It can be divided into application layer, runtime environment layer, basic software layer (BSW), and microcontroller layer. Among them, the basic software layer is responsible for receiving, storing, parsing and sending data to ensure that data can flow smoothly throughout the system. In order to cope with increasingly complex driving scenarios and passenger needs, with the continuous increase in in-vehicle communication physical links, the amount of communication data has increased to form a geometric queue arrangement. Therefore, the amount of data signals that the BSW layer needs to process per unit time has increased significantly, which may cause memory mutations or memory out-of-bounds problems during data transmission in the BSW layer, which in turn causes abnormal changes in the transmitted data.

[0003] Currently, we only rely on Autosar's Development Error Tracker (DET) module to perform data legitimacy checks and environmental detection, but we are unable to detect abnormal changes in transmitted data, thus affecting the integrity and accuracy of the data. Summary of the invention

[0004] The present application provides a data verification method, device, equipment, medium and program product based on an automotive open system architecture, which are used to detect transmission data that has undergone abnormal changes and ensure the integrity and accuracy of the data.

[0005] In a first aspect, an embodiment of the present application provides a data verification method based on an automotive open system architecture, comprising:

[0006] In response to obtaining the data to be verified, obtaining parameter information of the data to be verified; the parameter information includes data identification information; the data to be verified is data to be transmitted from the current information transmission module to the next information transmission module;

[0007] If it is determined based on the data identification information that the data to be verified has control group data, the data to be verified is compared with the control group data to obtain a comparison result; the control group data is data that has the same data identification information as the data to be verified and is transmitted from the previous information transmission module to the current information transmission module;

[0008] Based on the comparison result, it is determined whether the data to be verified has an abnormality.

[0009] In a possible implementation manner, the parameter information further includes a data storage address;

[0010] Get the data to be verified, including:

[0011] Get the data to be verified from the corresponding data storage address.

[0012] In a possible implementation manner, determining whether the data to be verified includes control group data based on the data identification information includes:

[0013] Obtaining a corresponding mapping flag bit from a storage buffer area corresponding to the data identification information;

[0014] If it is determined that the value of the mapping flag is the first preset value, it is determined that the control group data exists;

[0015] If it is determined that the value of the mapping flag is the second preset value, it is determined that there is no control group data.

[0016] In a possible implementation manner, after determining that control group data exists, the method further includes:

[0017] Acquire control group data from the storage buffer area corresponding to the data identification information;

[0018] After determining that there is no control group data, the method further includes:

[0019] Acquire the data to be verified from the data storage address corresponding to the data to be verified, and store the data to be verified in the corresponding storage buffer area, so as to use the data to be verified as the control group data with the same data identification information;

[0020] The value of the mapping flag is updated from the second preset value to the first preset value.

[0021] In a possible implementation manner, determining whether the data to be verified has an abnormality based on the comparison result includes:

[0022] In response to the comparison result satisfying the preset verification result, determining that the data to be verified is normal;

[0023] In response to the comparison result not satisfying the preset verification result, determining that the data to be verified is abnormal;

[0024] The preset verification result includes any one of the following: the data to be verified is the same as the data in the control group, the data to be verified is a subset of the data in the control group, and the data in the control group is a subset of the data to be verified.

[0025] In a possible implementation manner, after determining that the data to be verified is normal, the method further includes:

[0026] Generate normal data prompt information, and send the normal data prompt information to the current information transmission module;

[0027] After determining that the data to be verified is abnormal, the method further includes:

[0028] Setting the mapping flag bit to a second preset value, deleting the control group data in the storage buffer area corresponding to the data identification information, and releasing the data identification information;

[0029] Generate data anomaly prompt information, and send the data anomaly prompt information to the current information transmission module, wherein the data anomaly prompt information is used to instruct the current information transmission module to prohibit the data to be verified from continuing to be transmitted.

[0030] In a possible implementation manner, the parameter information further includes an endpoint flag;

[0031] After comparing the data to be verified with the control group data to obtain a comparison result, the method further includes:

[0032] Determine whether the endpoint flag is a first preset value; the first preset value indicates that the endpoint flag is valid; the validity of the endpoint flag indicates that the next information transmission module corresponding to the data to be verified and the current information transmission module are located in different preset functional layers or the current information transmission module no longer continues to transmit data;

[0033] If it is determined that the endpoint flag information is the first preset value, the value of the mapping flag is set to the second preset value, the control group data in the storage buffer area corresponding to the data identification information is deleted, and the data identification information is released.

[0034] In a second aspect, an embodiment of the present application provides a data verification device based on an automotive open system architecture, comprising:

[0035] An acquisition module, configured to acquire parameter information of the data to be verified in response to obtaining the data to be verified;

[0036] A comparison module, configured to compare the data to be verified with the control group data to obtain a comparison result if it is determined based on the data identification information that the data to be verified has control group data;

[0037] A determination module is used to determine whether the data to be verified has an abnormality based on the comparison result.

[0038] In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;

[0039] The memory stores computer-executable instructions;

[0040] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.

[0041] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.

[0042] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.

[0043] The data verification method, device, equipment, medium and program product based on the automotive open system architecture provided by the embodiment of the present application obtain the parameter information of the data to be verified in response to the acquisition of the data to be verified; the parameter information includes data identification information; the data to be verified is the data to be transmitted from the current information transmission module to the next information transmission module; if it is determined based on the data identification information that the data to be verified has control group data, the data to be verified and the control group data are compared to obtain a comparison result; the control group data has the same data identification information as the data to be verified and is the data transmitted from the previous information transmission module to the current information transmission module; based on the comparison result, it is determined whether the data to be verified is abnormal. Since the data to be verified is the data to be transmitted from the current information transmission module to the next information transmission module, the data identification information contained in the parameter information of the data to be verified can be obtained before the data to be verified is transmitted, and the data identification information is consistent during the current data transmission process, so it can be obtained through the data identification information whether the data to be verified has control group data, and the control group data is the data transmitted from the previous information transmission module to the current information transmission module. When the data to be verified exists in the control group, the data to be verified and the control group data can be compared to obtain the comparison result. Because data mutation may occur during the process of generating, processing or transmitting the data to be verified by the information transmission module, it is possible to determine whether the data to be verified is abnormal based on the comparison result, and detect the data to be verified that has undergone abnormal changes, thereby ensuring the integrity and accuracy of the transmitted data. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0045] Figure 1 A schematic diagram of an application scenario of the data verification method based on the automotive open system architecture provided in this application;

[0046] Figure 2 A schematic diagram of a flow chart of a data verification method based on an automotive open system architecture provided in an embodiment of the present application;

[0047] Figure 3 A flow chart of a data verification method based on an automotive open system architecture provided by another embodiment of the present application;

[0048] Figure 4 A data flow diagram within a basic software layer in an automotive open system architecture provided by an embodiment of the present application;

[0049] Figure 5 A schematic diagram of the structure of a data verification device based on an automotive open system architecture provided by an embodiment of the present application;

[0050] Figure 6 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application.

[0051] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0052] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0053] In order to clearly understand the technical solution of the present application, the solution of the prior art is first introduced in detail.

[0054] At present, data errors are mainly detected by the Development Error Tracker (DET) module in the automotive open system architecture. The Development Error Tracker (DET) module is an important component of the automotive open system architecture for monitoring and reporting potential errors and anomalies in the software development process. The main responsibility of the DET module is to detect unexpected behaviors and states at runtime, such as parameters exceeding the defined range, uninitialized variable usage, invalid function calls, etc. When problems such as memory out-of-bounds or mutations occur in the transmitted data, which may cause abnormal changes such as data mutations within the legal range of the data to be verified, the DET module cannot directly detect such abnormal changes. Among them, data mutations within the legal range refer to data changes that may still be within the defined legal range, but occur due to system abnormalities.

[0055] Therefore, in the face of the technical problems in the prior art, in order to detect the abnormal changes of the transmission data, the data to be verified is obtained, and the data to be verified that is to be transmitted from the current information transmission module to the next information transmission module is compared with the data that has the same data identification information as the data to be verified and is transmitted from the previous information transmission module to the current information transmission module, so as to obtain whether the data in the current data identification information has undergone abnormal changes during the transmission process. Specifically, when the data to be verified is obtained, the corresponding parameter information in the obtained data to be verified, that is, the data identification information, can be used. Then, it is determined whether the data to be verified corresponding to the current data identification information is the first transmission. If the data to be verified is not the first transmission, it means that there is control group data in the data to be verified. Therefore, when the data to be verified has control group data, the data to be verified can be compared with the control group data, and the data to be verified can be determined whether there is abnormal change according to the comparison result, thereby realizing the detection of the transmission data with abnormal changes, thereby ensuring the integrity and accuracy of the transmission data.

[0056] Figure 1 The following is a schematic diagram of an application scenario of the data verification method based on the automotive open system architecture provided in this application. Figure 1As shown. In the system corresponding to the data verification method based on the automotive open system architecture in the embodiment of the present application, the following may be included: a server device 101, a data verification module 102, an information transmission module A 103, an information transmission module B 104, and an information transmission module C 105. The server device 101 includes a data verification module 102, an information transmission module A 103, an information transmission module B 104, and an information transmission module C 105. The information transmission module is a module that needs to perform data verification. The data verification module 102 is a module that verifies the data to be verified. The data transmission between the information transmission module and the data verification module is realized by calling a standard interface. The transmission order of the information transmission module is that the information transmission module A transmits data to the information transmission module B 104, and the information transmission module B 104 transmits data to the information transmission module C 105. The data verification module 102 responds to receiving the data to be verified sent by the information transmission module B 104, and obtains the parameter information of the data to be verified, thereby obtaining the data identification information X contained in the parameter information. The data to be verified with data identification information X is data transmitted by the information transmission module B 104 to the information transmission module C 105. When the data verification module 102 determines that the data to be verified with data identification information X has control group data based on the data identification information X, the data to be verified with data identification information X is compared with the control group data with data identification information X to obtain a comparison result. The control group data with data identification information X is data with data identification information X sent by the information transmission module A 103 to the data verification module 102 and needs to be transmitted to the information transmission module B 104. Therefore, based on the comparison result of the data to be verified with data identification information X and the control group data with data identification information X, it is determined whether the data to be verified with data identification information X has an abnormality.

[0057] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0058] Figure 2 A flow chart of a data verification method based on an automotive open system architecture provided in an embodiment of the present application is shown in FIG. Figure 2As shown, the execution subject of this embodiment is a data verification device based on the automotive open system architecture, which can be implemented by a computer program or by a medium storing relevant computer programs, such as a USB flash drive and / or a CD, etc.; or, it can also be implemented by a physical device integrated or installed with relevant computer programs, such as a chip, an electronic device, etc. Specifically, the electronic device can be a server-side device. The data verification method based on the automotive open system architecture provided in this embodiment includes the following steps:

[0059] S201, in response to obtaining the data to be verified, obtaining parameter information of the data to be verified.

[0060] The parameter information includes data identification information. The data to be verified is the data to be transmitted from the current information transmission module to the next information transmission module. The information transmission module can be a module in the preset function layer in the Autosar architecture that needs to perform data verification. The data verification module (Data Check, abbreviated as DCK) is located in the basic software layer of the Autosar architecture.

[0061] Among them, the preset functional layers may be functional layers included in the automotive open system architecture, such as: application layer, runtime environment layer, basic software layer, and microcontroller layer.

[0062] The basic software layer includes the Communication Hardware Abstraction Layer (ComHAL), the Communication Service Layer (Com), and the Communication Driver. Therefore, the data transmission between the Communication Hardware Abstraction Layer, the Communication Service Layer, and the Communication Driver belongs to the same functional layer.

[0063] It can be understood that the data identification information is a unique identifier of the data to be verified during the transmission process, which can be a data identification code or a data identification name. When the data to be verified starts to be transmitted for the first time, the information transmission module that sends the data to be verified is used as the source module, and the data identification information is used to mark the data to be verified. Then, during the transmission process, data with the same source as the data to be verified all use the same data identification information. Homologous data refers to data derived from the same source. The source module can be a module that sends the data to be verified.

[0064] Furthermore, the data identification information is reusable. When the data to be verified is no longer transmitted, that is, the data to be verified is no longer verified, the corresponding data identification information will be released and can be used to identify other data again.

[0065] Specifically, in this embodiment, when the data verification module receives the data to be verified sent by the current information transmission module, the parameter information carried in the data to be verified is obtained according to the data to be verified.

[0066] S202: If it is determined based on the data identification information that the data to be verified has control group data, the data to be verified is compared with the control group data to obtain a comparison result.

[0067] The control group data refers to data that has the same data identification information as the data to be verified and is data transmitted from the previous information transmission module to the current information transmission module.

[0068] It can be understood that the data to be verified and the control group data can be data packets or other data formats, which is not limited in this embodiment.

[0069] Specifically, in this embodiment, if it is determined from a preset database based on the data identification information that the data to be verified exists in a control group data with the same data identification information, the control group data is obtained, and the data contained in the data to be verified is compared with the data contained in the control group data according to preset comparison rules to obtain a comparison result.

[0070] Optionally, if the data to be verified and the control group data are data packets, the preset comparison rules may include but are not limited to parsing the header information in the data to be verified and the control group data, comparing the payload, etc. If the data to be verified and the control group data are in other data formats, the preset comparison rules can be adaptively adjusted according to the data format, which is not limited in this embodiment.

[0071] The data packet is the basic unit of communication transmission, which consists of two parts: header information and payload. The header information is located at the front of the data packet and contains important control information about how the data packet is transmitted.

[0072] Optionally, the comparison result may include that the data to be verified and the data of the control group are the same, the data to be verified and the data of the control group are different, etc., which is not limited in this embodiment.

[0073] S203: Determine whether there is any abnormality in the data to be verified based on the comparison result.

[0074] Specifically, in this embodiment, the comparison result of the data to be verified and the control group data is compared with the preset result. If the comparison result is the same as the preset result, there is no abnormality in the data to be verified. If the comparison result is different from the preset result, there is an abnormality in the data to be verified.

[0075] It can be understood that the preset result can be one or more. If there is a comparison result that is the same as at least one preset result, it can be considered that the comparison result is the same as the preset result, and there is no abnormality in the data to be verified. This is not limited in this embodiment.

[0076] The data verification method based on the automotive open system architecture provided by the embodiment of the present application obtains parameter information of the data to be verified in response to obtaining the data to be verified; the parameter information includes data identification information; the data to be verified is the data to be transmitted from the current information transmission module to the next information transmission module; if it is determined based on the data identification information that the data to be verified has control group data, the data to be verified and the control group data are compared to obtain a comparison result; the control group data is the data that has the same data identification information as the data to be verified and is transmitted from the previous information transmission module to the current information transmission module; based on the comparison result, it is determined whether the data to be verified is abnormal. Since the data to be verified is the data to be transmitted from the current information transmission module to the next information transmission module, the data identification information contained in the parameter information of the data to be verified can be obtained before the data to be verified is transmitted, and the data identification information can be kept consistent during the current data transmission process, so whether the data to be verified has control group data can be obtained through the data identification information, and the control group data is the data transmitted from the previous information transmission module to the current information transmission module. Then, when the data to be verified has control group data, the data to be verified and the control group data can be compared to obtain a comparison result. Since data mutations may occur when the information transmission module generates, processes or transmits the data to be verified, it is possible to determine whether the data to be verified is abnormal based on the comparison results, thereby detecting the data to be verified that has undergone abnormal changes, thereby ensuring the integrity and accuracy of the transmitted data.

[0077] As an optional implementation, based on the above embodiment, the parameter information further includes a data storage address;

[0078] Get the data to be verified, including:

[0079] Get the data to be verified from the corresponding data storage address.

[0080] The data storage address is a storage address that actually stores the data to be verified, and may be a memory address that stores the data to be verified.

[0081] Specifically, in this embodiment, the specific location where the data to be verified is stored is determined according to the data storage address included in the parameter information of the data to be verified, so that the data to be verified is read from the specific location where the data to be verified is stored.

[0082] In the data verification method based on the automotive open system architecture provided in this embodiment, the parameter information also includes a data storage address; obtaining the data to be verified includes: obtaining the data to be verified from the corresponding data storage address. Since the data to be verified is obtained through the data storage address, unnecessary data duplication and storage are avoided, redundancy is reduced, and storage space and resources are saved.

[0083] As an optional implementation, based on the above embodiment, determining whether the data to be verified contains control group data based on the data identification information includes:

[0084] Obtain the corresponding mapping flag bit from the storage buffer area corresponding to the data identification information;

[0085] If it is determined that the value of the mapping flag is the first preset value, it is determined that the control group data exists;

[0086] If it is determined that the value of the mapping flag is the second preset value, it is determined that there is no control group data.

[0087] Among them, the mapping flag is used to identify whether there is control group data in the data to be verified. The first preset value may be 1, and the second preset value may be 0. The first preset value and the second preset value are different positive integers, which are not limited in this embodiment. It can be understood that the storage buffer area is used to temporarily store the control group data, and there may be multiple storage buffer areas for storing control group data with different data identification information. A storage buffer area can store one or more data identification information. The data identification information is preset and stored in the corresponding storage buffer, and each data identification information corresponds to a mapping flag bit, which is used to mark whether there is control group data.

[0088] Specifically, in this embodiment, the storage buffer corresponding to the data identification information is determined according to the data identification information, so as to check the mapping flag corresponding to the data identification information in the storage buffer, and determine whether there is control group data according to the value of the mapping flag. When the value of the mapping flag is a first preset value, it is determined that there is control group data; when the value of the mapping flag is a second preset value, it is determined that there is no control group data.

[0089] Exemplarily, when the value of the mapping flag is 1, it is determined that there is control group data; when the value of the mapping flag is 0, there is no control group data.

[0090] The data verification method based on the automotive open system architecture provided in this embodiment determines whether there is control group data in the data to be verified based on the data identification information, including: obtaining the corresponding mapping flag bit from the storage cache area corresponding to the data identification information; if it is determined that the value of the mapping flag bit is a first preset value, it is determined that there is control group data; if it is determined that the value of the mapping flag bit is a second preset value, it is determined that there is no control group data. Since the value of the mapping flag bit is obtained from the corresponding storage cache area through the data identification information, and whether there is control group data is determined by the value of the mapping flag bit, the data management process is simplified, unnecessary data access and processing are avoided, and then by checking the value of the mapping flag bit, it can be quickly determined whether there is control group data, thereby improving the response speed.

[0091] As an optional implementation manner, based on the above embodiment, after determining that there is control group data, the method further includes:

[0092] Obtain control group data from the storage buffer area corresponding to the data identification information;

[0093] After confirming that there is no control group data, it also includes:

[0094] Acquire the data to be verified from the data storage address corresponding to the data to be verified, and store the data to be verified in the corresponding storage buffer area, so that the data to be verified is used as the control group data with the same data identification information;

[0095] The value of the mapping flag bit is updated from the second preset value to the first preset value.

[0096] Specifically, in this embodiment, when it is determined based on the mapping flag that there is control group data, the control group data is read from the storage buffer area corresponding to the data identification information. When it is determined based on the mapping flag that there is no control group data, the current data to be verified is used as the control group data with the same data identification information, the data to be verified is obtained according to the data storage address corresponding to the data to be verified, and the obtained data to be verified is stored in the storage buffer area corresponding to the data identification information, and the value of the mapping flag corresponding to the data identification information is changed from the second preset value indicating that there is no control group data to the first preset value indicating that there is control group data.

[0097] It can be understood that there is a mapping relationship between the data identification information, the mapping flag bit and the control group data with the same data identification information, each data identification information has a corresponding mapping flag bit, and the control group data corresponding to the data identification information is stored in the storage location corresponding to the data identification information.

[0098] The data verification method based on the automotive open system architecture provided in this embodiment, after determining that there is control group data, further includes: obtaining the control group data from the storage cache area corresponding to the data identification information; after determining that there is no control group data, further includes: obtaining the data to be verified from the data storage address corresponding to the data to be verified, and storing the data to be verified in the corresponding storage cache area, so that the data to be verified is used as the control group data with the same data identification information; updating the value of the mapping flag bit from the second preset value to the first preset value. Since the data is directly read from the storage cache area corresponding to the data identification information when it is determined that there is control group data, the data processing process is simplified and the response speed and efficiency of the control group data reading are improved. When it is determined that there is no control group data, the data to be verified is stored in the cache, so that the data is cached and reused, and the existing control group data is marked by updating the value of the preset mapping flag bit, thereby optimizing the data verification process.

[0099] As an optional implementation, based on the above embodiment, determining whether the data to be verified is abnormal based on the comparison result includes:

[0100] In response to the comparison result satisfying the preset verification result, determining that the data to be verified is normal;

[0101] In response to the comparison result not satisfying the preset verification result, determining that the data to be verified is abnormal;

[0102] The preset verification result includes any of the following: the data to be verified is the same as the data of the control group, the data to be verified is a subset of the data of the control group, and the data of the control group is a subset of the data to be verified.

[0103] Among them, the data to be verified is a subset of the control group data, which means that all the data in the data to be verified are included in the control group data, but the control group data may also contain other data that are not in the data to be verified. The control group data is a subset of the data to be verified, which means that all the data in the control group data are included in the data to be verified, but the data to be verified may also contain other data that are not in the control group data.

[0104] Specifically, in this embodiment, based on the preset verification result, it is determined whether the comparison result satisfies any one of the preset verification results. When the comparison result is that the data to be verified is the same as the control group data, it means that the comparison result satisfies the preset verification result, or when the comparison result is that the data to be verified is a subset of the control group data, it can also be considered that the comparison result satisfies the preset verification result, or when the comparison result is that the control group data is a subset of the data to be verified, it can also be considered that the comparison result satisfies the preset verification result. As long as the comparison result is any of the above, the data to be verified can be considered normal, but if the comparison result is not any of the above, the data to be verified can be considered abnormal.

[0105] The data verification method based on the automotive open system architecture provided in this embodiment determines whether the data to be verified is abnormal based on the comparison result, including: in response to the comparison result satisfying the preset verification result, determining that the data to be verified is normal; in response to the comparison result not satisfying the preset verification result, determining that the data to be verified is abnormal; the preset verification result includes any one of the following: the data to be verified is the same as the control group data, the data to be verified is a subset of the control group data, and the control group data is a subset of the data to be verified. Since the preset verification result includes multiple relationships between the verification data and the control group data, the flexibility of data verification is improved, and by checking whether the comparison result satisfies the preset verification result, the verification result of the data to be verified can be quickly determined, ensuring the accuracy and objectivity of the verification result of the data to be verified.

[0106] As an optional implementation manner, based on the above embodiment, after determining that the data to be verified is normal, the method further includes:

[0107] Generate normal data prompt information, and send the normal data prompt information to the current information transmission module;

[0108] After determining that the data to be verified is abnormal, it also includes:

[0109] Setting the mapping flag bit to a second preset value, deleting the control group data in the storage buffer area corresponding to the data identification information, and releasing the data identification information;

[0110] Generate data exception prompt information, and send the data exception prompt information to the current information transmission module. The data exception prompt information is used to instruct the current information transmission module to prohibit the continued transmission of the data to be verified.

[0111] The normal data prompt information is the prompt information that the data to be verified is normal, and the abnormal data prompt information is the prompt information that the data to be verified is abnormal.

[0112] Specifically, in this embodiment, after the data verification module determines that the data to be verified is normal, it generates data normal prompt information and sends the data normal prompt information to the current information module. When the data verification module determines that the data to be verified is abnormal, it sets the value of the mapping flag bit corresponding to the data identification information to the second preset value, deletes the control group data stored in the storage buffer area corresponding to the data identification information, generates data abnormality information and sends it to the current information transmission module, so that the information transmission module stops transmitting the data to be verified to the next information transmission module.

[0113] The data verification method based on the automotive open system architecture provided in this embodiment, after determining that the data to be verified is normal, also includes: generating data normal prompt information, and sending the data normal prompt information to the current information transmission module; after determining that the data to be verified is abnormal, it also includes: setting the mapping flag to a second preset value and deleting the control group data in the storage cache area corresponding to the data identification information, and releasing the data identification information; generating data abnormality prompt information, and sending the data abnormality prompt information to the current information transmission module, the data abnormality prompt information is used to instruct the current information transmission module to prohibit the data to be verified from continuing to be transmitted. Since the data normal prompt information is generated and sent to the current information transmission module after determining that the data to be verified is normal, it ensures that the current information transmission module can promptly know the verification result of the data to be verified, so as to continue to transmit the data to be verified, improve the efficiency of data transmission, reduce unnecessary waiting time, and ensure the smoothness and efficiency of the data transmission process. After determining that the data to be verified is abnormal, the data verification module sets the mapping flag to a second preset value, deletes the control group data in the storage cache area, and releases the data identification information, thereby effectively cleaning up invalid data and releasing system resources. It also generates a data abnormality prompt message and sends it to the current information transmission module, instructing it to prohibit the continued transmission of the data to be verified, thereby avoiding the continued transmission of the abnormal data to be verified and ensuring the stability and reliability of the system.

[0114] As an optional implementation manner, based on the above embodiment, the parameter information further includes an end point flag bit;

[0115] After comparing the data to be verified with the control group data to obtain the comparison results, it also includes:

[0116] Determine whether the endpoint flag is a first preset value;

[0117] If it is determined that the endpoint flag information is the first preset value, the value of the mapping flag is set to the second preset value, the control group data in the storage buffer area corresponding to the data identification information is deleted, and the data identification information is released.

[0118] The first preset value indicates that the end point flag is valid. The end point flag is valid, indicating that the next information transmission module corresponding to the data to be verified and the current information transmission module are located in different preset function layers or the current information transmission module does not continue to transmit data.

[0119] Specifically, in this embodiment, after obtaining the comparison result of the data to be verified and the control group data, the data verification module checks whether the end point flag in the parameter information of the data to be verified is the first preset value, that is, whether the end point flag is valid. If the end point flag is valid, it means that the current information transmission module will no longer continue to transmit data with the same data identification information as the current data to be verified at the current preset functional layer, or the next information transmission module to be transmitted by the current information transmission module is located at a different preset functional layer from the current information transmission module, then the mapping flag in the storage buffer corresponding to the data identification information corresponding to the data to be verified is set to the second preset value and the corresponding control group data is deleted, thereby releasing the data identification information.

[0120] It can be understood that when the current preset functional layer no longer continues to transmit data with the same data identification information as the current data to be verified, the end point flag value is set to the first preset value. Since the transmission is not continued downward, only the end point flag in the data received from the previous information transmission module can be set to the first preset value and then sent to the data verification module.

[0121] When the next information transmission module to which the current information transmission module is to transmit data is located at a different preset functional layer from the current information transmission module, the current information transmission module sets the end point flag in the data to be transmitted to the next information transmission module to the first preset value and then sends the data to the data verification module.

[0122] The data verification method based on the automotive open system architecture provided in this embodiment, the parameter information also includes an end point flag; after comparing the data to be verified with the control group data to obtain the comparison result, it also includes: determining whether the end point flag is a first preset value; the first preset value indicates that the end point flag is valid; the end point flag is valid, indicating that the next information transmission module corresponding to the data to be verified and the current information transmission module are located in different preset function layers or the current information transmission module no longer continues to transmit data; if it is determined that the end point flag information is the first preset value, the value of the mapping flag is set to the second preset value and the control group data in the storage buffer corresponding to the data identification information is deleted, and the data identification information is released. Since after obtaining the comparison result, by checking whether the end point flag is the first preset value, the data verification module executes the corresponding processing flow according to the value of the end point flag, when the end point flag is the first preset value, the information transmission module sets the mapping flag to the second preset value, deletes the control group data in the storage buffer, and releases the data identification information, so that the data identification information can be used again, and effectively clears the useless control group data, thereby releasing the storage resources.

[0123] Figure 3A flow chart of a data verification method based on an automotive open system architecture provided in another embodiment of the present application is shown as follows: Figure 3 As shown, the execution subject of this embodiment is a data verification device based on the automotive open system architecture. The data verification method based on the automotive open system architecture provided by this embodiment includes the following steps:

[0124] S301, in response to obtaining the data to be verified, obtaining parameter information of the data to be verified.

[0125] The parameter information of the data to be verified includes data identification information, data parameters, and end point flag. The data parameters also include data pointer and data length. The data pointer is a memory address that points to the actual storage location of the data to be verified. The data length is the actual size of the data.

[0126] S302, based on the data identification information, obtain a corresponding mapping flag bit from a storage buffer area corresponding to the data identification information.

[0127] S303, determine whether the mapping flag is valid.

[0128] It is understandable that when the mapping flag is set to the first preset value, the mapping flag is considered valid and control group data exists. When the mapping flag is set to the second preset value, the mapping flag is considered invalid and control group data does not exist.

[0129] S304: If the mapping flag is valid, obtain the control group data in the storage buffer area corresponding to the data identification information, and obtain the data to be verified according to the data pointer of the data to be verified.

[0130] S305, if the mapping flag is invalid, obtain the data to be verified according to the data pointer of the data to be verified, store the data to be verified in the storage buffer area corresponding to the data identification information, and set the value of the mapping flag bit to a first preset value.

[0131] S306, determining whether the control group data and the data to be verified are the same.

[0132] S307: If the control group data is different from the data to be verified, determine whether the control group data is a subset of the data to be verified.

[0133] S308: If the control group data is not a subset of the data to be verified, determine whether the data to be verified is a subset of the control group data.

[0134] S309, if the data to be verified is not a subset of the control group data, it is determined that there is an abnormality in the data to be verified, and data abnormality prompt information is generated, the mapping flag is set to a second preset value, and the control group data in the storage cache area corresponding to the data identification information is deleted, and the data identification information is released, and the data abnormality prompt information is sent to the current information transmission module.

[0135] S310, if the control group data is the same as the data to be verified or the control group data is a subset of the data to be verified or the data to be verified is a subset of the control group data, and any of the above conditions is met, then determine whether the endpoint flag is valid.

[0136] It is understandable that when the value of the endpoint flag is the first preset value, the endpoint flag is considered valid, and when the value of the endpoint flag is the second preset value, the endpoint flag is considered invalid.

[0137] S311, if the end point flag is valid, the value of the mapping flag is set to a second preset value, the control group data in the storage buffer area corresponding to the data identification information is deleted, and the data identification information is released.

[0138] Among them, the end point flag is valid, the information transmission module will also generate normal prompt information, and send the data normal prompt information to the current information transmission module.

[0139] S312: If the endpoint flag is invalid, generate normal data prompt information, and send the normal data prompt information to the current information transmission module.

[0140] Figure 4 This is a data flow diagram within the basic software layer in the automotive open system architecture, such as Figure 4As shown. In this embodiment, the basic software layer includes a communication driver layer, a communication hardware abstraction layer and a communication service layer. In the communication hardware abstraction layer and the communication service layer of the communication layer in the basic software layer, there is an information transmission module that is controlled by the verification result of the data verification module. The communication driver layer includes Ethernet driver, FlexRay driver, CAN driver and LIN low-level driver. The module included in the communication driver layer does not send the data to be verified to the data verification module, but transmits data with the module in the communication hardware abstraction layer. Being controlled by the verification result of the data verification module can be understood as the prompt information output by the data verification module can affect the data transmission of the information transmission module. The module controlled by the verification result of the data verification module is also an information transmission module. Among them, the data flow between the information transmission modules controlled by the verification result of the data verification module in the communication hardware abstraction layer and the communication service layer is represented by a dotted line, and the data flow for data interaction with the data verification module is represented by a solid line. If there is no interaction with the data verification module, there is no data flow. The modules in the communication hardware abstraction layer that are controlled by the verification results of the data verification module include: Ethernet interface module (Ethernet Interface), Flexray bus interface module (FlexRayInterface), CAN bus interface module (CAN Interface) and LIN bus interface module (LIN Interface). The modules in the communication service layer that are controlled by the verification results of the data verification module include: TCP / IP protocol stack (AUTOSAR TCP / IPStack), socket adapter (SoAd), service subscription (SD), basic software management (BswM), Internet diagnostic communication protocol (DoIP), protocol data unit routing (PDUR), diagnostic communication management (DCM), Flexray bus transmission (FlexRay TP) and CAN bus transmission (CAN TP). When the basic software management module, the protocol data routing module and the diagnostic communication module transmit data to the modules in the runtime environment layer, the end point flag bit will be set to the first preset value, and no data verification will be performed with the modules in the runtime environment layer that receive the data.

[0141] Figure 5 A schematic diagram of the structure of a data verification device based on an automotive open system architecture provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the data verification device based on the automobile open system architecture provided in this embodiment is located in an electronic device, and the data verification device 40 based on the automobile open system architecture provided in this embodiment includes: an acquisition module 41, a comparison module 42, and a determination module 43.

[0142] An acquisition module 41 is used for acquiring parameter information of the data to be verified in response to obtaining the data to be verified;

[0143] A comparison module 42 is used for comparing the data to be verified with the control group data to obtain a comparison result if it is determined based on the data identification information that the data to be verified has control group data;

[0144] The determination module 43 is used to determine whether there is any abnormality in the data to be verified based on the comparison result.

[0145] Optionally, the parameter information also includes a data storage address.

[0146] Correspondingly, when acquiring the data to be verified, the acquisition module 41 is also used to acquire the data to be verified from the corresponding data storage address.

[0147] Optionally, when determining whether the data to be verified has control group data based on the data identification information, the acquisition module 43 is further used to: obtain the corresponding mapping flag from the storage buffer corresponding to the data identification information. The determination module 43 is further used to determine whether the control group data exists if the value of the mapping flag is determined to be a first preset value; and determine whether the control group data does not exist if the value of the mapping flag is determined to be a second preset value.

[0148] Optionally, the data verification method based on the automotive open system architecture provided in this embodiment further includes: an update module.

[0149] Correspondingly, the acquisition module 41, after determining that the control group data exists, is further used to: acquire the control group data from the storage buffer area corresponding to the data identification information. The acquisition module 41, after determining that the control group data does not exist, is further used to: acquire the data to be verified from the data storage address corresponding to the data to be verified, and store the data to be verified in the corresponding storage buffer area, so that the data to be verified is used as the control group data with the same data identification information. The update module is used to update the value of the mapping flag from the second preset value to the first preset value.

[0150] Optionally, when determining whether there is an abnormality in the data to be verified based on the comparison result, the determination module 43 is specifically used to: in response to the comparison result satisfying a preset verification result, determine that the data to be verified is normal; in response to the comparison result not satisfying the preset verification result, determine that the data to be verified is abnormal; the preset verification result includes any one of the following: the data to be verified is the same as the control group data, the data to be verified is a subset of the control group data, and the control group data is a subset of the data to be verified.

[0151] Optionally, the data verification method based on the automotive open system architecture provided in this embodiment further includes: a generation module, a sending module, a setting module, and a release module.

[0152] Correspondingly, the generation module is used to generate data normal prompt information after determining that the data to be verified is normal. The sending module is used to send the data normal prompt information to the current information transmission module. The setting module is used to set the mapping flag to a second preset value and delete the control group data in the storage buffer area corresponding to the data identification information after determining that the data to be verified is abnormal. The release module is used to release the data identification information. The generation module is used to generate data abnormal prompt information. The sending module is used to send the data abnormal prompt information to the current information transmission module.

[0153] Optionally, the parameter information also includes an endpoint flag.

[0154] Correspondingly, the determination module 43 is used to determine whether the end point flag is a first preset value after comparing the data to be verified with the control group data to obtain a comparison result. The setting module is used to set the value of the mapping flag to a second preset value and delete the control group data in the storage buffer area corresponding to the data identification information if the end point flag information is determined to be the first preset value. The release module is used to release the data identification information.

[0155] The data verification device based on the automobile open system architecture provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be described in detail here.

[0156] Figure 6 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 6 As shown, the electronic device 50 provided in this embodiment includes: at least one processor 501 and a memory 502.

[0157] The processor 501 and the memory 502 are connected via a bus.

[0158] In a specific implementation process, at least one processor 501 executes the computer-executable instructions stored in the memory 502, so that at least one processor 501 executes the above method.

[0159] The specific implementation process of the processor 501 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0160] In the above embodiments, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the invention can be directly implemented as a hardware processor, or can be implemented by a combination of hardware and software modules in the processor.

[0161] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage.

[0162] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.

[0163] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0164] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.

[0165] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0166] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0167] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

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

[0169] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0170] 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 this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0171] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0172] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A data verification method based on an automotive open system architecture, characterized in that: The method comprises: In response to obtaining the data to be verified, obtaining parameter information of the data to be verified; the parameter information includes data identification information; the data to be verified is data to be transmitted from the current information transmission module to the next information transmission module; If it is determined based on the data identification information that the data to be verified has control group data, the data to be verified is compared with the control group data to obtain a comparison result; the control group data is data that has the same data identification information as the data to be verified and is transmitted from the previous information transmission module to the current information transmission module; Based on the comparison result, it is determined whether the data to be verified has an abnormality.

2. The method according to claim 1, characterized in that The parameter information also includes a data storage address; Get the data to be verified, including: Get the data to be verified from the corresponding data storage address.

3. The method according to claim 1, characterized in that Determining whether the data to be verified includes control group data based on the data identification information includes: Obtaining a corresponding mapping flag bit from a storage buffer area corresponding to the data identification information; If it is determined that the value of the mapping flag is the first preset value, it is determined that the control group data exists; If it is determined that the value of the mapping flag is the second preset value, it is determined that there is no control group data.

4. The method according to claim 3, characterized in that After determining that there is control group data, the method further includes: Acquire control group data from the storage buffer area corresponding to the data identification information; After determining that there is no control group data, the method further includes: Acquire the data to be verified from the data storage address corresponding to the data to be verified, and store the data to be verified in the corresponding storage buffer area, so as to use the data to be verified as the control group data with the same data identification information; The value of the mapping flag is updated from the second preset value to the first preset value.

5. The method according to claim 1, characterized in that Determining whether the data to be verified is abnormal based on the comparison result includes: In response to the comparison result satisfying the preset verification result, determining that the data to be verified is normal; In response to the comparison result not satisfying the preset verification result, determining that the data to be verified is abnormal; The preset verification result includes any one of the following: the data to be verified is the same as the data in the control group, the data to be verified is a subset of the data in the control group, and the data in the control group is a subset of the data to be verified.

6. The method according to claim 5, characterized in that After determining that the data to be verified is normal, the method further includes: Generate normal data prompt information, and send the normal data prompt information to the current information transmission module; After determining that the data to be verified is abnormal, the method further includes: Setting the mapping flag bit to a second preset value, deleting the control group data in the storage buffer area corresponding to the data identification information, and releasing the data identification information; Generate data anomaly prompt information, and send the data anomaly prompt information to the current information transmission module, wherein the data anomaly prompt information is used to instruct the current information transmission module to prohibit the data to be verified from continuing to be transmitted.

7. The method according to any one of claims 1 to 6, characterized in that: The parameter information also includes an endpoint flag; After comparing the data to be verified with the control group data to obtain a comparison result, the method further includes: Determine whether the endpoint flag is a first preset value; the first preset value indicates that the endpoint flag is valid; the validity of the endpoint flag indicates that the next information transmission module corresponding to the data to be verified and the current information transmission module are located in different preset functional layers or the current information transmission module no longer continues to transmit data; If it is determined that the endpoint flag information is the first preset value, the value of the mapping flag is set to the second preset value, the control group data in the storage buffer area corresponding to the data identification information is deleted, and the data identification information is released.

8. A data verification device based on an automotive open system architecture, characterized in that: include: An acquisition module, configured to acquire parameter information of the data to be verified in response to obtaining the data to be verified; A comparison module, configured to compare the data to be verified with the control group data to obtain a comparison result if it is determined based on the data identification information that the data to be verified has control group data; A determination module is used to determine whether the data to be verified has an abnormality based on the comparison result.

9. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.

11. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 7 when being executed by a processor.