A data dictionary processing method, device, medium and electronic device

In the development of AUTOSAR autonomous driving software, DDS specifications are used to encapsulate and code convert non-AUTOSAR standard data dictionaries to directly generate AUTOSAR standard data dictionaries, which solves the problems of complex and low-efficiency generation processes and achieves more efficient data dictionary generation. .

CN114757149BActive Publication Date: 2024-10-22BEIJING TRUNK TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210216381.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-07
Publication Date
2024-10-22
Estimated Expiration
2042-03-07

AI Technical Summary

Technical Problem

In the development of AUTOSAR autonomous driving software, the process of generating the AUTOSAR standard data dictionary is complex and inefficient. It is impossible to generate a standard data dictionary independently. The autonomous driving algorithm model, model data dictionary, etc. need to be loaded into the Matlab software for model conversion.

Method used

Obtain the target dictionary entries based on the identification of the data dictionary to be processed, encapsulate and code convert the target dictionary entries based on the DDS specification, generate a data dictionary that complies with the AUTOSAR standard, and directly generate the AUTOSAR standard data dictionary from the non-AUTOSAR standard data dictionary. Utilize preset target communication carriers for data transmission and code conversion.

Benefits of technology

It simplifies the data dictionary generation process, saves the time to generate AUTOSAR standard data dictionary, improves efficiency, avoids the loading of model and algorithm dependent libraries, and improves generation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114757149B_ABST
    Figure CN114757149B_ABST
Patent Text Reader

Abstract

The present application provides a data dictionary processing method, device, medium and electronic device. The method first obtains the target dictionary entries included in the data dictionary to be processed based on the identification of the data dictionary to be processed that does not comply with the AUTOSAR standard, then encapsulates the target dictionary entries based on the DDS specification, generates a message structure corresponding to the target dictionary entries, and stores the message structure in a preset target communication carrier, and then in response to receiving a format conversion instruction, obtains the data structure information in the message structure from the target communication carrier, and performs code conversion on the obtained data structure information to obtain a target data dictionary that complies with the AUTOSAR standard. The method generates a data dictionary that complies with the AUTOSAR standard only through a data dictionary that does not comply with the AUTOSAR standard, which can improve the generation efficiency of the data dictionary that complies with the AUTOSAR standard.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer application technology, and in particular, to a data dictionary processing method, device, medium and electronic device. Background Art

[0002] In the field of autonomous driving, the mainstream way of AUTOSAR (Automotive Open System Architecture) software development process is to automatically generate ARXML files required by architecture software through existing Simulink control models. The automotive industry is already very mature, and many tested models can be reused on different platforms without any manual modification of the models, such as AUTOSAR architecture.

[0003] In order to launch autonomous driving software that complies with the AUTOSAR standard, the Simulink algorithm model needs to be iterated and deployed multiple times, and the AUTOSAR configuration file corresponding to the algorithm model also needs to be updated accordingly. When the software interface is fixed, each iteration of the algorithm software mostly involves modifying the model's data dictionary.

[0004] In the development of AUTOSAR autonomous driving software of related technology, it is impossible to generate the AUTOSAR standard data dictionary alone. It is necessary to load the autonomous driving algorithm model, model data dictionary, algorithm dependency library, etc. into Matlab software, convert the model through AUTOSAR standard tools, and then automatically generate code. The generated ARXML file contains all the description information of the autonomous driving software. Therefore, when generating the AUTOSAR standard data dictionary, the process is complicated, time-consuming and inefficient. Summary of the invention

[0005] The embodiments of the present application provide a data dictionary processing method, device, medium and electronic device, which can improve the generation efficiency of the data dictionary of the AUTOSAR standard.

[0006] In a first aspect, an embodiment of the present application provides a data dictionary processing method, including:

[0007] Based on the identifier of the data dictionary to be processed, obtaining a target dictionary entry included in the data dictionary to be processed; the data dictionary to be processed does not comply with the AUTOSAR standard;

[0008] Encapsulating the target dictionary entry based on the DDS specification, generating a message structure corresponding to the target dictionary entry, and storing the message structure in a preset target communication carrier; the target communication carrier is used to assist in the data transmission of the message structure; the message structure includes data structure information of the target dictionary entry;

[0009] In response to the received format conversion instruction, the data structure information in the message structure is obtained from the target communication carrier, and the obtained data structure information is converted into code to obtain a target data dictionary that complies with the AUTOSAR standard.

[0010] The data dictionary processing method provided in the embodiment of the present application first obtains the target dictionary entries included in the data dictionary to be processed based on the identifier of the data dictionary to be processed, then encapsulates the target dictionary entries based on the DDS specification, generates a message structure corresponding to the target dictionary entries, and stores the message structure in a preset target communication carrier, and then in response to receiving a format conversion instruction, obtains the data structure information in the message structure from the target communication carrier, and performs code conversion on the obtained data structure information to obtain a target data dictionary that complies with the AUTOSAR standard. The method directly generates a corresponding data dictionary that complies with the AUTOSAR standard only through a non-AUTOSAR standard data dictionary by reading, encapsulating and code converting the target dictionary entries of a non-AUTOSAR standard data dictionary, and can more conveniently generate a data dictionary that complies with the AUTOSAR standard, saving the time consumption of generating a data dictionary that complies with the AUTOSAR standard, and improving the generation efficiency of a data dictionary that complies with the AUTOSAR standard.

[0011] In an optional embodiment, the acquiring, based on the identifier of the dictionary of data to be processed, a target dictionary entry included in the dictionary of data to be processed includes:

[0012] In response to a dictionary link instruction, based on the identifier of the to-be-processed data dictionary in the dictionary link instruction, a data dictionary library is searched to obtain the to-be-processed data dictionary;

[0013] In response to a dictionary entry setting instruction, obtaining dictionary entry configuration information of the to-be-processed data dictionary from the dictionary entry setting instruction;

[0014] According to the acquired dictionary entry configuration information, the target dictionary entry included in the dictionary of data to be processed is read through the input interface.

[0015] In this embodiment, the data dictionary to be processed is obtained by searching the data dictionary library, and then the dictionary item configuration information of the data dictionary to be processed is obtained. According to the dictionary item configuration information, the target dictionary item included in the data dictionary to be processed is read through the input interface, and a mechanism for obtaining the target dictionary item is provided, so that the target dictionary item can be obtained efficiently, thereby further improving the generation efficiency of the data dictionary of the AUTOSAR standard.

[0016] In an optional embodiment, encapsulating the target dictionary entry based on the DDS specification to generate a message structure corresponding to the target dictionary entry includes:

[0017] Based on the DDS specification, the target dictionary entry read through the input interface is encapsulated through a message encapsulation interface corresponding to the input interface, and a message structure corresponding to the target dictionary entry read through the input interface is generated.

[0018] In this embodiment, based on the DDS specification, the target dictionary entry read through the input interface is encapsulated through the message encapsulation interface corresponding to the input interface. The method provides a data transmission mechanism for the target dictionary entry by setting a message encapsulation interface corresponding to the input interface, so that the target dictionary entry can be efficiently encapsulated and transmitted, further improving the generation efficiency of the data dictionary of the AUTOSAR standard.

[0019] In an optional embodiment, before encapsulating the target dictionary entry based on the DDS specification and generating a message structure corresponding to the target dictionary entry, the method further includes:

[0020] generating subject identification information corresponding to the target dictionary entry;

[0021] After generating the message structure corresponding to the target dictionary entry and before storing the message structure in the preset target communication carrier, the method further includes:

[0022] Associating the generated message structure with the subject identification information;

[0023] Before acquiring the data structure information in the message structure from the target communication carrier, the method further includes:

[0024] After receiving the format conversion instruction, it is determined that the message structure in the target communication carrier has the associated subject identification information.

[0025] In this embodiment, subject identification information corresponding to the target dictionary entry is also generated, the generated message structure is associated with the subject identification information, and after receiving the format conversion instruction, it is determined that the message structure in the target communication carrier has the associated subject identification information. This method ensures that the generated target data dictionary can comply with the AUTOSAR standard by making a compliance judgment of the DDS specification based on the subject identification information before performing code conversion on the message structure, thereby further improving the generation efficiency of the data dictionary of the AUTOSAR standard.

[0026] In an optional embodiment, generating the topic identification information corresponding to the target dictionary entry includes:

[0027] Using fields extracted from some or all of the target dictionary entries as basic field information;

[0028] The basic field information is combined with preset additional field information to obtain subject identification information corresponding to the target dictionary entry.

[0029] In this embodiment, fields extracted from part or all of the target dictionary entries are used as basic field information; the basic field information is combined with preset additional field information to obtain subject identification information corresponding to the target dictionary entry. This method can efficiently generate subject identification information based on the target dictionary entry, further improving the generation efficiency of the data dictionary of the AUTOSAR standard.

[0030] In a second aspect, an embodiment of the present application further provides a data dictionary processing device, including:

[0031] An information input unit, configured to obtain a target dictionary entry included in the data dictionary to be processed based on an identifier of the data dictionary to be processed; the data dictionary to be processed does not comply with the AUTOSAR standard;

[0032] An information encapsulation unit, used to encapsulate the target dictionary entry based on the DDS specification, generate a message structure corresponding to the target dictionary entry, and store the message structure in a preset target communication carrier; the target communication carrier is used to assist in the data transmission of the message structure; the message structure includes data structure information of the target dictionary entry;

[0033] The code generation unit is used to obtain the data structure information in the message structure from the target communication carrier in response to the received format conversion instruction, and perform code conversion on the obtained data structure information to obtain a target data dictionary that complies with the AUTOSAR standard.

[0034] In an optional embodiment, the information input unit is specifically used to:

[0035] In response to a dictionary link instruction, based on the identifier of the to-be-processed data dictionary in the dictionary link instruction, a data dictionary library is searched to obtain the to-be-processed data dictionary;

[0036] In response to a dictionary entry setting instruction, obtaining dictionary entry configuration information of the to-be-processed data dictionary from the dictionary entry setting instruction;

[0037] According to the acquired dictionary entry configuration information, the target dictionary entry included in the dictionary of data to be processed is read through the input interface.

[0038] In an optional embodiment, the information encapsulation unit is specifically used to:

[0039] Based on the DDS specification, the target dictionary entry read through the input interface is encapsulated through a message encapsulation interface corresponding to the input interface, and a message structure corresponding to the target dictionary entry read through the input interface is generated.

[0040] In an optional embodiment, the information encapsulation unit is further used to:

[0041] The target dictionary entry is encapsulated based on the DDS specification, and before a message structure corresponding to the target dictionary entry is generated, subject identification information corresponding to the target dictionary entry is generated;

[0042] After generating the message structure corresponding to the target dictionary entry, before storing the message structure in the preset target communication carrier, associating the generated message structure with the subject identification information;

[0043] The code generation unit is further used for:

[0044] The acquiring of the data structure information in the message structure from the target communication carrier is preceded by, after receiving the format conversion instruction, determining that the message structure in the target communication carrier has the associated subject identification information.

[0045] In an optional embodiment, the information encapsulation unit is specifically used to:

[0046] Using fields extracted from some or all of the target dictionary entries as basic field information;

[0047] The basic field information is combined with preset additional field information to obtain subject identification information corresponding to the target dictionary entry.

[0048] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the data dictionary processing method of the first aspect is implemented.

[0049] In a fourth aspect, an embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, and when the computer program is executed by the processor, the data dictionary processing method of the first aspect is implemented.

[0050] In a fifth aspect, an embodiment of the present application further provides a computer program product, wherein the computer program product comprises computer instructions. When the computer instructions are executed by a computing device, the computing device may execute a method as described in any one of the first aspects.

[0051] The technical effects brought about by any one of the implementation methods in the second to fifth aspects can refer to the technical effects brought about by the corresponding implementation method in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 A flowchart of a data dictionary processing method provided in an embodiment of the present application;

[0053] Figure 2 A schematic diagram of a process for obtaining target dictionary entries in a data dictionary processing method provided in an embodiment of the present application;

[0054] Figure 3 A flowchart of another data dictionary processing method provided in an embodiment of the present application;

[0055] Figure 4 A schematic diagram of the structure of a data dictionary processing device provided in an embodiment of the present application;

[0056] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0058] It should be noted that the terms "including" and "having" and their variations involved in the documents of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0059] The following are explanations of some of the terms that appear in the text:

[0060] (1) AUTOSAR (Automotive Open System Architecture): AUTOSAR is a collaborative development framework for automotive electronic systems jointly participated by global automobile manufacturers, parts suppliers, and various research and service organizations. It has established an open automotive control unit (ECU) standard software architecture. Generally speaking, each OEM (Original Equipment Manufacturer) will produce more than one model, each OEM will choose more than one supplier for different subsystems and parts, and each supplier will supply more than one OEM. The most effective way to reduce development costs is to make products as reusable as possible and to spread the development costs by quantity. OEMs hope that the same system and parts can be used in different models; that the systems and parts from different suppliers on the same vehicle can be compatible with each other; and that the developed parts and algorithms can be supplied to different OEMs through simple software adjustments. On the other hand, the development progress of each supplier is often out of sync. People hope to be able to test whether the component can work correctly with other systems on the vehicle during the supplier's development process. Therefore, a unified and standardized system description method is needed. This is the original intention of AUTOSAR, which is to improve the management of complex automotive electronic and electrical architecture by improving the reusability and interchangeability of software modules between OEMs and suppliers. Therefore, AUTOSAR is mainly aimed at: standardizing the interface between application software and underlying software and between application software; providing a controller software reference architecture; and standardizing the exchange format in the distributed development process.

[0061] (2) ARXML (Architecture eXtensible Markup Language) file: ARXML files, as general configuration files or database files, play a key role in data transmission and storage under the AUTOSAR architecture. XML (eXtensible Markup Language) is a markup language similar to HTML. Its design purpose is to transmit data rather than display data. XML is self-descriptive and its tags are not predefined and need to be defined by yourself. Based on the XML file, the AUTOSAR specification defines the file format for transmitting information as ARXML based on the application scenarios of automotive electronics.

[0062] (3) Data dictionary: Data dictionary refers to the definition and description of data items, data structures, etc. Its purpose is to provide detailed descriptions of each element in the data flow diagram. Use data dictionary for simple modeling projects. In short, data dictionary is a collection of information describing data and a collection of definitions of all data elements used in the system.

[0063] In the field of autonomous driving, the mainstream way of AUTOSAR (Automotive Open System Architecture) software development process is to automatically generate ARXML files required by architecture software through existing Simulink control models. The automotive industry is already very mature, and many tested models can be reused on different platforms without any manual modification of the models, such as AUTOSAR architecture.

[0064] In order to launch autonomous driving software that complies with the AUTOSAR standard, the Simulink algorithm model needs to be iterated and deployed multiple times, and the AUTOSAR configuration file corresponding to the algorithm model also needs to be updated accordingly. When the software interface is fixed, each iteration of the algorithm software mostly involves modifying the model's data dictionary.

[0065] In the development of AUTOSAR autonomous driving software of related technology, it is impossible to generate the AUTOSAR standard data dictionary alone. It is necessary to load the autonomous driving algorithm model, model data dictionary, algorithm dependency library, etc. into Matlab software, convert the model through AUTOSAR standard tools, and then automatically generate code. The generated ARXML file contains all the description information of the autonomous driving software. Therefore, when generating the AUTOSAR standard data dictionary, the process is complicated, time-consuming and inefficient.

[0066] To solve the above problems, the embodiment of the present application provides a data dictionary processing method, firstly, based on the identification of the data dictionary to be processed that does not conform to the AUTOSAR standard, the target dictionary entries included in the data dictionary to be processed are obtained, and then the target dictionary entries are encapsulated based on the DDS specification, and a message structure corresponding to the target dictionary entries is generated, and the message structure is stored in a preset target communication carrier, wherein the message structure includes data structure information of the target dictionary entries, and then in response to receiving a format conversion instruction, the data structure information in the message structure is obtained from the target communication carrier, and the obtained data structure information is converted into code to obtain a target data dictionary that conforms to the AUTOSAR standard. This method generates a data dictionary that conforms to the AUTOSAR standard only through a non-AUTOSAR standard data dictionary, without loading an autonomous driving model and an algorithm dependency library, so that a data dictionary that conforms to the AUTOSAR standard is generated more conveniently, which can save the labor cost of generating a data dictionary that conforms to the AUTOSAR standard and improve the generation efficiency of a data dictionary that conforms to the AUTOSAR standard.

[0067] The technical solution provided in the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0068] Figure 1 FIG. 2 shows a flow chart of a data dictionary processing provided by an embodiment of the present application. Figure 1 As shown, the method may include the following steps:

[0069] Step S101 : acquiring target dictionary entries included in the dictionary of data to be processed based on the identifier of the dictionary of data to be processed.

[0070] Among them, the data dictionary to be processed does not comply with the AUTOSAR standard.

[0071] The file that complies with the AUTOSAR standard needs to be an ARXML file. In the embodiment of the present application, the data dictionary to be processed is a data dictionary in Sldd format created by MATLAB, which does not comply with the AUTOSAR standard.

[0072] The target dictionary entries may be part or all of the dictionary entries in the to-be-processed data dictionary.

[0073] Exemplarily, the identifier of the data dictionary to be processed Deal_1 is DOC_ModelINOUT, and the file format is Sldd format. The data dictionary to be processed Deal_1 is shown in Table 1.

[0074] Table 1

[0075] Data Item Data Types … Gaspedal single … Mastercylind single … DrvSBR boolean … PassSBR boolean …

[0076] As can be seen from Table 1, assuming that the number of target dictionary entries included in the data dictionary to be processed Deal_1 is 4, the data items of the 4 target dictionary entries are Gaspedal, Mastercylind, DrvSBR, and PassSBR. The file format of the data dictionary to be processed Deal_1 is Sldd format, which does not comply with the AUTOSAR standard. Based on the identifier DOC_ModelINOUT of the data dictionary to be processed Deal_1, the target dictionary entries of the data dictionary to be processed Deal_1, including the data items of Gaspedal, Mastercylind, DrvSBR, and PassSBR, are obtained.

[0077] In some embodiments of the present application, identification based on the dictionary of data to be processed is implemented through the AUTOSAR standard template in Matlab software to obtain target dictionary entries included in the dictionary of data to be processed.

[0078] Figure 2 A flowchart of a data dictionary processing method for obtaining target dictionary entries provided in an embodiment of the present application. Figure 2 As shown, based on the identifier of the dictionary of data to be processed, obtaining the target dictionary entries included in the dictionary of data to be processed can be achieved by the following steps:

[0079] Step S201 , responding to a dictionary link instruction, searching a data dictionary library based on the identifier of the data dictionary to be processed in the dictionary link instruction, and acquiring the data dictionary to be processed.

[0080] In the embodiment of the present application, a data dictionary library may be provided. After the user constructs the data dictionary to be processed Deal_1, it is stored in the data dictionary library. In order to obtain the data dictionary that complies with the AUTOSAR standard corresponding to the data dictionary to be processed Deal_1, the user enters the identifier DOC_ModelINOUT of the data dictionary to be processed Deal_1, and then triggers the dictionary link instruction Command1 by clicking.

[0081] After receiving the dictionary link instruction Command1, based on the identifier DOC_ModelINOUT in the dictionary link instruction Command1, the data dictionary library is searched, the data dictionary identified as DOC_ModelINOUT is found, the information is read and stored in the cache, so as to obtain the data dictionary to be processed Deal_1.

[0082] Step S202 , in response to the dictionary entry setting instruction, obtaining dictionary entry configuration information of the to-be-processed data dictionary from the dictionary entry setting instruction.

[0083] For example, after inputting the data items of the target dictionary entries Gaspedal, Mastercylind, DrvSBR, PassSBR, the user may trigger the dictionary entry setting instruction Command2 by a click operation.

[0084] The dictionary entry configuration information includes, but is not limited to, part or all of the following items: input interface identifier, dictionary entry reading order of each input interface, and data items of the dictionary entry that each input interface needs to read.

[0085] After receiving the dictionary entry setting instruction Command2, the dictionary entry configuration information Instr2 of the to-be-processed data dictionary Deal_1 is obtained from the dictionary entry setting instruction Command2. For example, the dictionary entry configuration information Instr2 may indicate "reading the target dictionary entries whose data items are Gaspedal, Mastercylind, DrvSBR, and PassSBR in sequence through the input interface inport1".

[0086] Step S203: Read the target dictionary entries included in the dictionary of data to be processed through the input interface according to the acquired dictionary entry configuration information.

[0087] In some embodiments of the present application, the input interface is an input port module in Matlab software. It can be understood that the input interface can also be an information reading module developed and designed by the user. The present application does not limit the specific form of the input interface.

[0088] Exemplarily, according to the information "reading target dictionary entries whose data items are Gaspedal, Mastercylind, DrvSBR, and PassSBR in sequence through input interface inport1" included in the acquired dictionary entry configuration information Instr2, the target dictionary entries whose data items are Gaspedal, Mastercylind, DrvSBR, and PassSBR respectively, included in the data dictionary Deal_1 to be processed are read through the input interface inport1.

[0089] Step S102, encapsulating the target dictionary entry based on the DDS specification, generating a message structure corresponding to the target dictionary entry, and storing the message structure in a preset target communication carrier.

[0090] The target communication carrier is used to assist in data transmission of a message structure; the message structure includes data structure information of a target dictionary entry.

[0091] In the embodiment of the present application, the target communication carrier is a virtual bus.

[0092] A virtual bus is a bus that combines multiple signals into a bus and then accesses the bus as a whole, or selects a specific signal from the bus. In an embodiment of the present application, the target communication carrier is a virtual bus, and the preset virtual bus is used to assist in the data transmission of the message structure.

[0093] In a specific implementation, after the target dictionary entry is encapsulated based on the DDS specification to generate a message structure corresponding to the target dictionary entry, the generated message structure is stored in a preset virtual bus according to the DDS specification. When the user inputs a format conversion instruction, in response to the received format conversion instruction, the data structure information in the message structure can be obtained from the virtual bus, thereby assisting the data transmission of the message structure through the virtual bus.

[0094] Exemplarily, based on the DDS specification, the target dictionary entries whose data items are Gaspedal, Mastercylind, DrvSBR, and PassSBR are read and encapsulated into the message of the DDS specification, and the message structures Info_1, Info_2, Info_3, and Info_4 corresponding to the target dictionary entries whose data items are Gaspedal, Mastercylind, DrvSBR, and PassSBR are obtained, and the message structures Info_1, Info_2, Info_3, and Info_4 are stored in the preset target communication carrier DOM_1. The message structures Info_1, Info_2, Info_3, and Info_4 respectively include the data structure information of the target dictionary entries whose data items are Gaspedal, Mastercylind, DrvSBR, and PassSBR, wherein each message structure includes the data structure information of one target dictionary entry.

[0095] In some embodiments of the present application, the target dictionary entries are encapsulated based on the DDS specification, and a message structure corresponding to the target dictionary entries is generated. Specifically, this is achieved in the following way: based on the DDS specification, through the message encapsulation interface corresponding to the input interface, the target dictionary entries read through the input interface are encapsulated, and a message structure corresponding to the target dictionary entries read through the input interface is generated.

[0096] In specific implementation, the correspondence between the input interface and the message encapsulation interface can be preset. The target dictionary entries can be read and encapsulated through one input interface and one message encapsulation interface corresponding to the one input interface; or the target dictionary entries can be read and encapsulated through multiple input interfaces and multiple message encapsulation interfaces corresponding to the input interfaces one by one.

[0097] In some embodiments of the present application, the message encapsulation interface is an AUTOSAR event message module in Matlab software.

[0098] The following describes the reading and encapsulation of target dictionary entries through an input interface and a message encapsulation interface corresponding to the input interface.

[0099] Exemplarily, it is assumed that the input interface inport1 is set in advance to correspond to the message encapsulation interface event1. After the input interface inport1 reads the target dictionary entry, the read target dictionary entry is sent to the corresponding message encapsulation interface event1. Based on the DDS specification, through the message encapsulation interface event1, the data structure information of the target dictionary entries whose data items are Gaspedal, Mastercylind, DrvSBR, and PassSBR are read in sequence, and are respectively encapsulated into the messages of the DDS specification, and the message structures Info_1, Info_2, Info_3, and Info_4 corresponding to the target dictionary entries whose data items are Gaspedal, Mastercylind, DrvSBR, and PassSBR are obtained.

[0100] The manner of reading and encapsulating the target dictionary entries through multiple input interfaces and multiple message encapsulation interfaces corresponding to the input interfaces one by one is similar to the aforementioned process.

[0101] Assume that the input interfaces inport1~inport4 are set in advance to correspond to the message encapsulation interfaces event1~event4 one-to-one. After the input interfaces inport1~inport4 read the target dictionary entries, they send the read target dictionary entries to the corresponding message encapsulation interfaces event1~event4 respectively. Based on the DDS specification, the message encapsulation interfaces event1, event2, event3, and event4 are used to read the data structure information of the target dictionary entries whose data items are Gaspedal, Mastercylind, DrvSBR, and PassSBR respectively; the message encapsulation interfaces event1, event2, event3, and event4 respectively encapsulate the data structure information read respectively into the messages of the DDS specification, and obtain the message structures Info_1, Info_2, Info_3, and Info_4 corresponding to the target dictionary entries whose data items are Gaspedal, Mastercylind, DrvSBR, and PassSBR respectively. That is, the message encapsulation interface event1 obtains the message structure Info_1 corresponding to the target dictionary entry whose data item is Gaspedal through encapsulation; the message encapsulation interface event2 obtains the message structure Info_2 corresponding to the target dictionary entry whose data item is Mastercylind through encapsulation; the message encapsulation interface event3 obtains the message structure Info_3 corresponding to the target dictionary entry whose data item is DrvSBR through encapsulation; the message encapsulation interface event4 obtains the message structure Info_4 corresponding to the target dictionary entry whose data item is PassSBR through encapsulation.

[0102] Based on the DSS specification, when a message structure is placed on a virtual bus, a corresponding reading module is usually required to be set to read the message structure from the virtual bus. In some embodiments of the present application, a reading module is not set. In this case, in order to compile the program normally, the virtual bus is connected to the terminator module in the Matlab software to prevent compilation errors.

[0103] Step S103, in response to the received format conversion instruction, obtaining data structure information in the message structure from the target communication carrier, and performing code conversion on the obtained data structure information to obtain a target data dictionary that complies with the AUTOSAR standard.

[0104] In the specific implementation, the obtained data structure information is converted into codes to obtain a target data dictionary that complies with the AUTOSAR standard. Specifically, the obtained data structure information is converted into codes to generate an ARXML file corresponding to the data structure information to obtain a target data dictionary that complies with the AUTOSAR standard.

[0105] Exemplarily, in response to a format conversion instruction received from a user input, data structure information in message structures Info_1, Info_2, Info_3, and Info_4 is obtained from a target communication carrier DOM_1, and the obtained data structure information is converted into code to generate an ARXML file corresponding to the data structure information in the message structures Info_1, Info_2, Info_3, and Info_4, thereby obtaining a target data dictionary Deal_1_datatype, which complies with the AUTOSAR standard.

[0106] In some embodiments of the present application, data structure information in a message structure is obtained from a target communication carrier through an AUTOSAR standard template in Matlab software, and the obtained data structure information is converted into code to obtain a target data dictionary that complies with the AUTOSAR standard.

[0107] The data dictionary processing method provided in the embodiment of the present application first obtains the target dictionary entries included in the data dictionary to be processed based on the identification of the data dictionary to be processed that does not conform to the AUTOSAR standard, then encapsulates the target dictionary entries based on the DDS specification, generates a message structure corresponding to the target dictionary entries, and stores the message structure in a preset target communication carrier, wherein the message structure includes data structure information of the target dictionary entries, and then in response to receiving a format conversion instruction, obtains the data structure information in the message structure from the target communication carrier, and performs code conversion on the obtained data structure information to obtain a target data dictionary that conforms to the AUTOSAR standard. This method generates a data dictionary that conforms to the AUTOSAR standard only through a non-AUTOSAR standard data dictionary, without loading the autonomous driving model and algorithm dependency library, so that the data dictionary of the AUTOSAR standard is generated more conveniently, saving the time-consuming process of generating the data dictionary of the AUTOSAR standard, and improving the generation efficiency of the data dictionary of the AUTOSAR standard.

[0108] Although the embodiments of the present application provide the operating steps of the method as shown in the above embodiments or the accompanying drawings, more or fewer operating steps may be included in the above method based on routine or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided in the embodiments of the present application. The above method may be executed in the order of the method shown in the embodiments or the accompanying drawings or in parallel during the actual processing process or when the device is executed.

[0109] In some embodiments of the present application, the step of generating subject identification information is also included. The subject identification information is used to associate the generated message structure with the subject identification information after generating the message structure, and then store the message structure in a preset target communication carrier, so that after receiving the format conversion instruction, it is determined that the message structure in the target communication carrier has the associated subject identification information. By performing a compliance judgment of the DDS specification based on the subject identification information before performing code conversion on the message structure, it is ensured that the generated target data dictionary can comply with the AUTOSAR standard, and the generation efficiency of the data dictionary of the AUTOSAR standard is further improved.

[0110] Figure 3 A flowchart of another data dictionary processing method provided in an embodiment of the present application. Figure 3 As shown, the following steps may be included:

[0111] Step S301 : based on the identifier of the dictionary of data to be processed, obtaining the target dictionary entries included in the dictionary of data to be processed.

[0112] Among them, the data dictionary to be processed does not comply with the AUTOSAR standard;

[0113] Step S302: Generate topic identification information corresponding to the target dictionary entry.

[0114] In an embodiment of the present application, subject identification information corresponding to a target dictionary entry is generated. The specific implementation process may be: fields extracted from part or all of the target dictionary entries are used as basic field information; the basic field information is combined with preset additional field information to obtain subject identification information corresponding to the target dictionary entry.

[0115] In specific implementation, the basic field information is combined with the preset additional field information, including but not limited to the following methods: using the preset additional field information as a suffix of the basic field information, using the preset additional field information as a prefix of the basic field information.

[0116] Extract fields from part or all of the target dictionary entries, including but not limited to: extracting the data item of the first target dictionary entry, extracting the data item of the last target dictionary entry, and extracting the first letters of the data items of each target dictionary entry.

[0117] Exemplarily, assume the preset additional field information "_TOPIC". The data dictionary to be processed Deal_1 includes 4 target dictionary entries, and the data items of the 4 target dictionary entries are Gaspedal, Mastercylind, DrvSBR, and PassSBR respectively. The first letters of each data item extracted from the target dictionary entry are used as the basic field information, for example, the extracted field may be "GMDP"; by using the preset additional field information as the suffix of the basic field information, the basic field information "GMDP" is combined with the preset additional field information "_TOPIC", and the subject identification information "GMDP_TOPIC" corresponding to the target dictionary entry is obtained.

[0118] Step S303: encapsulate the target dictionary entry based on the DDS specification and generate a message structure corresponding to the target dictionary entry.

[0119] The message structure includes the data structure information of the target dictionary entry.

[0120] Step S304: associate the generated message structure with the subject identification information.

[0121] Exemplarily, the message structures Info_1, Info_2, Info_3, and Info_4 are associated with the topic identification information "GMDP_TOPIC" respectively.

[0122] Step S305, storing the message structure into a preset target communication carrier.

[0123] The target communication carrier is used to assist in the data transmission of the message structure.

[0124] Step S306, after receiving the format conversion instruction, determining whether the message structure in the target communication carrier has associated subject identification information.

[0125] Exemplarily, after receiving the format conversion instruction, first determine whether the message structures Info_1, Info_2, Info_3, and Info_4 in the target communication carrier have associated subject identification information. If it is determined that the message structures Info_1, Info_2, Info_3, and Info_4 in the target communication carrier do not have associated subject identification information, it is determined that the transmission of the message structure in the target communication carrier does not comply with the DDS protocol. In order to ensure that the generated target data dictionary complies with the AUTOSAR standard, the user is prompted that the DDS specification is not compliant and the subsequent steps are stopped.

[0126] Specifically, the user is reminded that the DDS specification is not compliant by triggering an alarm, popping up a prompt message, etc.

[0127] Step S307 , in response to the received format conversion instruction, obtaining data structure information in the message structure from the target communication carrier, and performing code conversion on the obtained data structure information to obtain a target data dictionary that complies with the AUTOSAR standard.

[0128] Exemplarily, after receiving the format conversion instruction, if it is determined that the message structures Info_1, Info_2, Info_3, and Info_4 in the target communication carrier have associated subject identification information, then in response to the received format conversion instruction, the data structure information in the message structures Info_1, Info_2, Info_3, and Info_4 are obtained from the target communication carrier DOM_1, and the obtained data structure information is converted into code to obtain a target data dictionary that complies with the AUTOSAR standard.

[0129] The method of the above embodiment ensures that the generated target data dictionary complies with the AUTOSAR standard by performing a compliance judgment of the DDS specification based on the subject identification information before performing code conversion on the message structure, thereby further improving the generation efficiency of the data dictionary of the AUTOSAR standard.

[0130] Based on the same inventive concept, the embodiment of the present application also provides a data dictionary processing device. Since the device is a device corresponding to the data dictionary processing method of the embodiment of the present application, and the principle of solving the problem by the device is similar to that of the method, the implementation of the device can refer to the implementation process of the above-mentioned method embodiment, and the repeated parts will not be repeated.

[0131] Figure 4 FIG. 1 shows a schematic diagram of the structure of a data dictionary processing device provided in an embodiment of the present application. The data dictionary processing device, such as Figure 4 As shown, it includes: an information input unit 401, an information encapsulation unit 402 and a code generation unit 403; wherein,

[0132] The information input unit 401 is used to obtain a target dictionary entry included in the data dictionary to be processed based on the identifier of the data dictionary to be processed; the data dictionary to be processed does not comply with the AUTOSAR standard;

[0133] The information encapsulation unit 402 is used to encapsulate the target dictionary entry based on the DDS specification, generate a message structure corresponding to the target dictionary entry, and store the message structure in a preset target communication carrier; the target communication carrier is used to assist in the data transmission of the message structure; the message structure includes the data structure information of the target dictionary entry;

[0134] The code generation unit 403 is used to obtain data structure information in the message structure from the target communication carrier in response to the received format conversion instruction, and perform code conversion on the obtained data structure information to obtain a target data dictionary that complies with the AUTOSAR standard.

[0135] In an optional embodiment, the information input unit 401 is specifically used for:

[0136] In response to the dictionary link instruction, based on the identifier of the data dictionary to be processed in the dictionary link instruction, the data dictionary library is searched to obtain the data dictionary to be processed;

[0137] In response to the dictionary entry setting instruction, obtaining dictionary entry configuration information of the dictionary of data to be processed from the dictionary entry setting instruction;

[0138] According to the obtained dictionary entry configuration information, the target dictionary entry included in the dictionary of the data to be processed is read through the input interface.

[0139] In an optional embodiment, the information encapsulation unit 402 is specifically used for:

[0140] Based on the DDS specification, the target dictionary entry read through the input interface is encapsulated through a message encapsulation interface corresponding to the input interface, and a message structure corresponding to the target dictionary entry read through the input interface is generated.

[0141] In an optional embodiment, the information encapsulation unit 402 is further configured to:

[0142] Encapsulating the target dictionary entry based on the DDS specification, generating subject identification information corresponding to the target dictionary entry before generating a message structure corresponding to the target dictionary entry;

[0143] After generating a message structure corresponding to a target dictionary entry, before storing the message structure in a preset target communication carrier, the generated message structure is associated with the subject identification information;

[0144] The code generation unit 403 is further used for:

[0145] The data structure information in the message structure is obtained from the target communication carrier. Before that, after receiving the format conversion instruction, it is determined that the message structure in the target communication carrier has associated subject identification information.

[0146] In an optional embodiment, the information encapsulation unit 402 is specifically configured to:

[0147] Use fields extracted from some or all target dictionary entries as base field information;

[0148] The basic field information is combined with the preset additional field information to obtain the subject identification information corresponding to the target dictionary entry.

[0149] Based on the same inventive concept as the above method embodiment, an electronic device is also provided in the embodiment of the present application. The electronic device can be used for data dictionary processing. In one embodiment, the electronic device can be a server, or a terminal device or other electronic device. In this embodiment, the structure of the electronic device can be as follows: Figure 5 As shown, it includes a memory 501 , a communication module 503 and one or more processors 502 .

[0150] The memory 501 is used to store computer programs executed by the processor 502. The memory 501 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and programs required for running the instant messaging function, etc.; the data storage area may store various instant messaging information and operation instruction sets, etc.

[0151] The memory 501 may be a volatile memory, such as a random-access memory (RAM); the memory 501 may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), or the memory 501 may be any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 501 may be a combination of the above memories.

[0152] The processor 502 may include one or more central processing units (CPU) or a digital processing unit, etc. The processor 502 is used to implement the above data dictionary processing method when calling the computer program stored in the memory 501 .

[0153] The communication module 503 is used to communicate with terminal devices and other servers.

[0154] The specific connection medium between the memory 501, the communication module 503 and the processor 502 is not limited in the embodiment of the present application. Figure 5 In the embodiment, the memory 501 and the processor 502 are connected via a bus 504. The bus 504 is connected to the processor 502 via a bus 504. Figure 5The connections between other components are shown in bold lines, which are only for illustration and are not intended to be limiting. Bus 504 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0155] An embodiment of the present application also provides a computer storage medium, in which computer executable instructions are stored. The computer executable instructions are used to implement the data dictionary processing method of any embodiment of the present application.

[0156] According to one aspect of the present application, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions so that the computer device executes the data dictionary processing method in the above-mentioned embodiment. The program product can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0157] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A data dictionary processing method, It is characterized in that include: Based on the identifier of the dictionary of data to be processed, obtaining a target dictionary entry included in the dictionary of data to be processed; The data dictionary to be processed does not comply with the AUTOSAR standard of the automotive open system architecture; Encapsulating the target dictionary entry based on the data distribution service DDS specification, generating a message structure corresponding to the target dictionary entry, and storing the message structure in a preset target communication carrier; The target communication carrier is used to assist in the data transmission of the message structure; the message structure includes data structure information of the target dictionary entry; In response to the received format conversion instruction, the data structure information in the message structure is obtained from the target communication carrier, and the obtained data structure information is converted into code to obtain a target data dictionary that complies with the AUTOSAR standard.

2. The method according to claim 1, It is characterized in that The step of obtaining a target dictionary entry included in the dictionary of data to be processed based on an identifier of the dictionary of data to be processed includes: In response to a dictionary link instruction, based on the identifier of the to-be-processed data dictionary in the dictionary link instruction, a data dictionary library is searched to obtain the to-be-processed data dictionary; In response to a dictionary entry setting instruction, obtaining dictionary entry configuration information of the to-be-processed data dictionary from the dictionary entry setting instruction; According to the acquired dictionary entry configuration information, the target dictionary entry included in the dictionary of data to be processed is read through the input interface.

3. The method according to claim 2, It is characterized in that The encapsulating the target dictionary entry based on the DDS specification to generate a message structure corresponding to the target dictionary entry includes: Based on the DDS specification, the target dictionary entry read through the input interface is encapsulated through a message encapsulation interface corresponding to the input interface, and a message structure corresponding to the target dictionary entry read through the input interface is generated.

4. The method according to any one of claims 1 to 3, It is characterized in that Before encapsulating the target dictionary entry based on the DDS specification and generating a message structure corresponding to the target dictionary entry, the method further includes: generating subject identification information corresponding to the target dictionary entry; After generating the message structure corresponding to the target dictionary entry and before storing the message structure in the preset target communication carrier, the method further includes: Associating the generated message structure with the subject identification information; Before acquiring the data structure information in the message structure from the target communication carrier, the method further includes: After receiving the format conversion instruction, it is determined that the message structure in the target communication carrier has the associated subject identification information.

5. The method according to claim 4, It is characterized in that The generating of the subject identification information corresponding to the target dictionary entry includes: Using fields extracted from some or all of the target dictionary entries as basic field information; The basic field information is combined with preset additional field information to obtain subject identification information corresponding to the target dictionary entry.

6. A data dictionary processing device, It is characterized in that include: An information input unit, configured to obtain a target dictionary entry included in the dictionary of data to be processed based on an identifier of the dictionary of data to be processed; The data dictionary to be processed does not comply with the AUTOSAR standard; An information encapsulation unit, used to encapsulate the target dictionary entry based on the DDS specification, generate a message structure corresponding to the target dictionary entry, and store the message structure in a preset target communication carrier; The target communication carrier is used to assist in the data transmission of the message structure; the message structure includes data structure information of the target dictionary entry; The code generation unit is used to obtain the data structure information in the message structure from the target communication carrier in response to the received format conversion instruction, and perform code conversion on the obtained data structure information to obtain a target data dictionary that complies with the AUTOSAR standard.

7. The device according to claim 6, It is characterized in that The information input unit is specifically used for: In response to a dictionary link instruction, based on the identifier of the to-be-processed data dictionary in the dictionary link instruction, a data dictionary library is searched to obtain the to-be-processed data dictionary; In response to a dictionary entry setting instruction, obtaining dictionary entry configuration information of the to-be-processed data dictionary from the dictionary entry setting instruction; According to the acquired dictionary entry configuration information, the target dictionary entry included in the dictionary of data to be processed is read through the input interface.

8. The device according to claim 7, It is characterized in that The information encapsulation unit is specifically used for: Based on the DDS specification, the target dictionary entry read through the input interface is encapsulated through a message encapsulation interface corresponding to the input interface, and a message structure corresponding to the target dictionary entry read through the input interface is generated.

9. A computer-readable storage medium having a computer program stored therein. Features: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

10. An electronic device, It is characterized in that The method comprises a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the computer program is executed by the processor, the method according to any one of claims 1 to 5 is implemented.