CN117669518A - File generation method, system, computer device and storage medium - Google Patents
File generation method, system, computer device and storage medium Download PDFInfo
- Publication number
- CN117669518A CN117669518A CN202311640551.XA CN202311640551A CN117669518A CN 117669518 A CN117669518 A CN 117669518A CN 202311640551 A CN202311640551 A CN 202311640551A CN 117669518 A CN117669518 A CN 117669518A
- Authority
- CN
- China
- Prior art keywords
- interface
- data
- file
- configuration file
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 66
- 238000013461 design Methods 0.000 claims abstract description 68
- 238000012545 processing Methods 0.000 claims abstract description 20
- 238000004891 communication Methods 0.000 claims description 33
- 230000006870 function Effects 0.000 claims description 17
- 239000011159 matrix material Substances 0.000 claims description 14
- 238000012986 modification Methods 0.000 claims description 14
- 230000004048 modification Effects 0.000 claims description 14
- 238000004590 computer program Methods 0.000 claims description 8
- 238000001514 detection method Methods 0.000 claims description 8
- 238000012795 verification Methods 0.000 claims description 8
- 238000013075 data extraction Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 8
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004148 unit process Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/177—Editing, e.g. inserting or deleting of tables; using ruled lines
- G06F40/18—Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/258—Data format conversion from or to a database
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Data Mining & Analysis (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present disclosure provides a file generation method, system, computer device and storage medium, wherein the method includes: receiving interface design data of each functional interface in a functional architecture designed for a target vehicle, and an interface configuration file template; performing data processing on the interface design data of each functional interface by using the constructed file generation system to generate interface data which meets the standard data format and is respectively included by a plurality of data interface types; and filling interface data respectively included by a plurality of data interface types into the interface configuration file template by using the file generation system to generate a target configuration file corresponding to the target vehicle.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a file generating method, a system, a computer device, and a storage medium.
Background
Generally, for interface design data of each functional interface in a functional architecture of a vehicle design, a worker is required to manually fill in an electronic form, and the worker is required to maintain the electronic form. However, as the functions that can be achieved by the vehicle are more and more, more manpower and time are required to be consumed to generate the electronic form; and maintenance of the electronic form is difficult due to lack of unified standardization of the electronic form.
Disclosure of Invention
The embodiment of the disclosure at least provides a file generation method, a system, a device, computer equipment and a storage medium.
In a first aspect, an embodiment of the present disclosure provides a file generating method, including:
receiving interface design data of each functional interface in a functional architecture designed for a target vehicle, and an interface configuration file template;
performing data processing on the interface design data of each functional interface by using the constructed file generation system to generate interface data which meets the standard data format and is respectively included by a plurality of data interface types;
and filling interface data respectively included by a plurality of data interface types into the interface configuration file template by using the file generation system to generate a target configuration file corresponding to the target vehicle.
In an optional implementation manner, the generating, by using the file generating system, the interface data respectively included in the plurality of data interface types, filling the interface data into the interface configuration file template, and generating the target configuration file corresponding to the target vehicle, includes:
creating, by using the file generation system, for each of the data interface types, at least one secondary label included in the data interface type under a primary label of the data interface type in the interface configuration file template; filling interface data included in the data interface type under a corresponding secondary label in the interface configuration file template;
And filling interface data respectively included in each data interface type into the interface configuration file template to obtain a target configuration file corresponding to the target vehicle.
In an alternative embodiment, after the populating the interface data included in the data interface type under the corresponding secondary label in the interface profile template, the method further includes:
and generating reference path information corresponding to the interface data based on the configuration position of the interface data in the interface configuration file template, and configuring the reference path information corresponding to the interface data under a corresponding secondary label in the interface configuration file template.
In an alternative embodiment, after the obtaining the interface design data of each functional interface in the functional architecture designed for the target vehicle, the method further includes:
detecting whether the data attribute of the interface design data of each functional interface meets the condition or not based on at least one preset condition indicated by a condition database on the file generation system by using the constructed file generation system;
if not, generating first indication information for indicating data modification.
In an alternative embodiment, after generating the target configuration file corresponding to the target vehicle, the method further includes:
detecting whether the file content of the target configuration file meets the configuration requirement or not;
if not, generating second indication information based on the configuration position of the target content which does not meet the configuration requirement in the target configuration file.
In an alternative embodiment, the method further comprises:
and responding to the input operation of the target configuration file, and generating a communication matrix corresponding to the target vehicle based on file content contained in the target configuration file, wherein the communication matrix is used for indicating communication links for carrying out information communication on all function interfaces in the function architecture of the target vehicle.
In a second aspect, an embodiment of the present disclosure further provides a file generation system, including: a data extraction module and a writing module;
the data extraction module is used for carrying out data processing on the received interface design data of each functional interface in the functional architecture designed for the target vehicle, and generating interface data which meets the standard data format and is respectively included by a plurality of data interface types;
and the writing module is used for filling interface data respectively included by the plurality of data interface types into the received interface configuration file template to generate a target configuration file corresponding to the target vehicle.
In an alternative embodiment, the file generation system further includes a data detection module;
the data detection module is used for detecting whether the data attribute of the interface design data of each functional interface meets the condition or not based on at least one preset condition indicated by the condition database on the file generation system; if not, generating first indication information for indicating data modification.
In an alternative embodiment, the file generation system further includes a file verification module;
the file verification module is used for detecting whether the file content of the target configuration file meets the configuration requirement or not; if not, generating second indication information based on the configuration position of the target content which does not meet the configuration requirement in the target configuration file.
In a third aspect, an embodiment of the present disclosure further provides a file generating apparatus, including:
the receiving module is used for receiving interface design data of each functional interface in the functional architecture designed for the target vehicle and an interface configuration file template;
the data processing module is used for carrying out data processing on the interface design data of each functional interface by utilizing the constructed file generation system to generate interface data which meets the standard data format and is respectively included by a plurality of data interface types;
And the first generation module is used for filling interface data respectively included by a plurality of data interface types into the interface configuration file template by using the file generation system to generate a target configuration file corresponding to the target vehicle.
In a fourth aspect, an optional implementation of the disclosure further provides a computer device, a processor, and a memory, where the memory stores machine-readable instructions executable by the processor, and the processor is configured to execute the machine-readable instructions stored in the memory, where the machine-readable instructions, when executed by the processor, perform the steps of the first aspect, or any possible implementation of the first aspect.
In a fifth aspect, an alternative implementation of the present disclosure further provides a computer readable storage medium having stored thereon a computer program which when executed performs the steps of the first aspect, or any of the possible implementation manners of the first aspect.
The description of the effects of the above-mentioned file generating apparatus, computer device, and computer-readable storage medium is referred to the description of the above-mentioned file generating method, and is not repeated here.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the aspects of the disclosure.
The embodiment of the disclosure provides a file generation method, a system, a device, computer equipment and a storage medium, wherein after receiving interface design data of each functional interface in a functional architecture designed for a target vehicle and an interface configuration file template, the method utilizes a constructed file generation system to perform data processing on the interface design data of each functional interface to generate interface data which meets a standard data format and is respectively included by a plurality of data interface types; and the interface data respectively included by the plurality of data interface types is filled into the interface configuration file template by utilizing the file generation system, so that the target configuration file corresponding to the target vehicle can be generated relatively quickly, the interface data included in the generated target configuration file accords with the data format standard, and the generation efficiency of the target configuration file is improved.
The foregoing objects, features and advantages of the disclosure will be more readily apparent from the following detailed description of the preferred embodiments taken in conjunction with the accompanying drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for the embodiments are briefly described below, which are incorporated in and constitute a part of the specification, these drawings showing embodiments consistent with the present disclosure and together with the description serve to illustrate the technical solutions of the present disclosure. It is to be understood that the following drawings illustrate only certain embodiments of the present disclosure and are therefore not to be considered limiting of its scope, for the person of ordinary skill in the art may admit to other equally relevant drawings without inventive effort.
FIG. 1 illustrates a flow chart of a file generation method provided by some embodiments of the present disclosure;
FIG. 2 is a schematic diagram illustrating a process for generating a target configuration file in a file generating method according to some embodiments of the present disclosure;
FIG. 3 illustrates a schematic diagram of a file generation system provided by some embodiments of the present disclosure;
FIG. 4 illustrates a schematic diagram of a file generation device provided by some embodiments of the present disclosure;
fig. 5 illustrates a schematic diagram of a computer device provided by some embodiments of the present disclosure.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the technical solutions in the embodiments of the present disclosure will be described below with reference to the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are only some embodiments of the present disclosure, but not all embodiments. The components of the disclosed embodiments generally described and illustrated herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure is not intended to limit the scope of the disclosure, as claimed, but is merely representative of selected embodiments of the disclosure.
Generally, for interface design data of each functional interface in a functional architecture of a vehicle design, a worker is required to manually fill in an electronic form, and the worker is required to maintain the electronic form. However, as the functions that can be achieved by the vehicle are more and more, more manpower and time are required to be consumed to generate the electronic form; and maintenance of the electronic form is difficult due to lack of unified standardization of the electronic form.
Based on the above study, the embodiments of the present disclosure provide a method, a system, an apparatus, a computer device, and a storage medium for generating a file.
The present invention is directed to a method for manufacturing a semiconductor device, and a semiconductor device manufactured by the method.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
For the sake of understanding the present embodiment, first, a detailed description will be given of a file generating method disclosed in an embodiment of the present disclosure, where an execution body of the file generating method provided in the embodiment of the present disclosure is generally a computer device having a certain computing capability, where the computer device includes, for example: a terminal device or server or other processing device, etc. In some possible implementations, the file generation method may be implemented by way of a processor invoking computer readable instructions stored in a memory.
Referring to fig. 1, a flowchart of a file generating method according to an embodiment of the disclosure is shown, where the method includes steps S101 to S103, where:
S101, receiving interface design data of all function interfaces in a function architecture designed for a target vehicle and an interface configuration file template.
In order to facilitate management of interface design data of each functional interface in a functional architecture designed for a target vehicle, the interface design data of each functional interface may be input to a terminal device such as a computer, and at the same time, an interface configuration file template may be input to the terminal device; so that the terminal device can generate the target configuration files corresponding to the functional interfaces. The respective functional interfaces may include a system level interface, an application level interface, a network interface, etc., and the interface design data of the respective functional interfaces may correspond to different data interface types. The interface profile template may be set according to actual requirements, for example, the interface profile template may include a plurality of primary labels, where the plurality of primary labels may be matched with a data interface type of the interface design data.
In specific implementation, a worker can fill interface design data of each functional interface in a functional architecture designed for a target vehicle into a preset electronic table, namely, the interface design data of each functional interface can be stored in the form of the electronic table, so that the interface design data of each functional interface can be conveniently input to a terminal device.
In an alternative embodiment, after the acquiring the interface design data of each functional interface in the functional architecture designed for the target vehicle, the method may further include: detecting whether the data attribute of the interface design data of each functional interface meets the condition or not based on at least one preset condition indicated by a condition database on the file generation system by using the constructed file generation system; if not, generating first indication information for indicating data modification.
When the method is implemented, after the interface design data of each functional interface in the functional architecture designed for the target vehicle is obtained, whether the data attribute of the interface design data of each functional interface meets the condition or not can be detected by using the constructed file generation system based on at least one preset condition indicated by the condition database on the file generation system. Wherein the at least one preset condition may include, but is not limited to: the interface name may only contain letters, numbers, underlining, integer type of data of the interface design data indicating the amount of space occupied by the data, the interface design data 1 being associated with the interface design data 3, and so on. For example, if it is detected that the interface design data indicating the interface name of the functional interface contains "%", it may be determined that the data attribute of the interface design data does not satisfy the condition.
In the case where it is detected that the data attribute of the interface design data satisfies the condition, S102 may be performed; in the case where it is detected that the data attribute of the interface design data does not satisfy the condition, first instruction information for instructing to make the data modification may be generated. Specifically, the interface design data of each functional interface may be stored in the electronic table, so the first indication information may be generated based on the position information of the interface design data in the electronic table and the preset condition that the data attribute of the interface design data is not satisfied, so that the staff may modify the interface design data based on the first indication information.
Here, at least one preset condition indicated by the condition database on the file generating system may be set according to actual requirements, for example, a worker may perform an update operation on at least one preset condition indicated by the condition database to obtain an updated condition database; wherein the adjusting operation may include modifying the preset condition, adding the preset condition, deleting the preset condition, and the like. In specific implementation, the updated condition database can be obtained in response to the updating operation for the condition database; and the built file generation system can be utilized to detect the data attribute of the interface design data of each functional interface based on at least one preset condition indicated by the updated condition database on the file generation system.
According to the method, the built file generation system is utilized, whether the data attribute of the interface design data of each functional interface meets the condition or not is detected based on at least one preset condition indicated by the condition database on the file generation system, and when the data attribute does not meet the condition, the first indication information for indicating to carry out data modification is generated, so that workers can be prompted to carry out data modification more timely, and the target configuration file can be generated more efficiently later.
S102, performing data processing on the interface design data of each functional interface by using the constructed file generation system, and generating interface data which meets the standard data format and is respectively included by a plurality of data interface types.
When the method is implemented, after the terminal equipment receives the interface design data of each functional interface, the interface design data of each functional interface can be subjected to data processing by using the constructed file generation system to generate interface data which meets the standard data format and is respectively included by a plurality of data interface types; here, the standard data format may be a data format that meets the automobile open system architecture (AUTomotive Open System ARchitecture, AUTOSAR) specification, and the plurality of data interface types may be set according to the AUTOSAR specification, for example, may include: system data interface type, end-to-End protection End-2-End protection data interface type, system Variant data interface type, topology data interface type, software component SwComponent data interface type, data type DataTypes data interface type, etc.
The type of the Topology data interface may further include an electronic control unit process ECU Instance, a communication control Communication Controller, a communication interface Communication Connector, a serial communication Communication Cluster, and the like; swComponent data interface types may also include port provider Pport, port requester Rport, etc., and DataTypes data interface types may also include application data Type Application Data Type, constant specification Constant Specification, base Type, etc.
And S103, filling interface data respectively included by a plurality of data interface types into the interface configuration file template by using the file generation system, and generating a target configuration file corresponding to the target vehicle.
Further, the file generating system can be utilized to fill interface data respectively included by a plurality of data interface types into an interface configuration file template to generate a target configuration file corresponding to the target vehicle; specifically, a configuration location may be determined from the interface profile template based on the data interface type of the interface data, and the interface data may be configured at the configuration location in the interface profile template. After the interface data respectively included in each data interface type is filled into the interface configuration file template, a target configuration file corresponding to the target vehicle can be obtained.
In an optional implementation manner, the generating, by using the file generating system, the interface data respectively included in the plurality of data interface types, and filling the interface data into the interface configuration file template, so as to generate the target configuration file corresponding to the target vehicle may include:
step A1, using the file generation system, for each data interface type, creating at least one secondary label included in the data interface type under the primary label of the data interface type in the interface configuration file template; filling interface data included in the data interface type under a corresponding secondary label in the interface configuration file template;
and step A2, after filling interface data respectively included in each data interface type into the interface configuration file template, obtaining a target configuration file corresponding to the target vehicle.
When the method is implemented, after interface data respectively included in a plurality of data interface types are obtained, a file generation system can be utilized to establish at least one secondary label included in the data interface types under the primary label of the data interface type in an interface configuration file template for each data interface type; the at least one secondary tag included in the created data interface type may be determined based on a standard data format, such as the data format indicated by the AUTOSAR Specification. Continuing with the above embodiment, for example, for a Base Type data interface Type, the AUTOSAR specification indicates that the Base Type data interface Type may include SW-BASE-TYPE, and then a secondary tag SW-BASE-TYPE may be created under a primary tag Base Type in the interface configuration file template.
And the interface data included in the data interface Type may be filled under the corresponding secondary label in the interface configuration file template, for example, the Base Type data interface Type includes a basic Type uint16 (16-bit unsigned integer), and the interface data uint16 for indicating the name of the basic Type, the interface data 16 for indicating the occupation width of the uint16, the interface data fixed_length for indicating the category of the unit16, and the like may be filled under the secondary label SW-Base-Type. Specifically, an element tag NAME for configuring a basic TYPE NAME may be created under the secondary tag SW-BASE-TYPE, and the uint16 may be configured under the element tag NAME; creating an element tag BASE-TYPE-SIZE for configuring the occupied width of the basic TYPE, and configuring 16 under the element tag BASE-TYPE-SIZE; an element tag CATEGORY for configuring the basic type CATEGORY is created, and the fixed_length is configured under the element tag CATEGORY. Furthermore, after the interface data respectively included in each data interface type is filled into the interface configuration file template, a target configuration file corresponding to the target vehicle can be obtained.
Here, for each data interface type, under a primary label of the data interface type in the interface configuration file template, creating at least one secondary label included in the data interface type, and filling interface data included in the data interface type under a corresponding secondary label in the interface configuration file template; the file content of the target configuration file corresponding to the obtained target vehicle is clear, so that the use efficiency of the target configuration file is good.
In an alternative embodiment, after the populating the interface data included in the data interface type under the corresponding secondary label in the interface profile template, the method may further include: and generating reference path information corresponding to the interface data based on the configuration position of the interface data in the interface configuration file template, and configuring the reference path information corresponding to the interface data under a corresponding secondary label in the interface configuration file template.
In the implementation, after the interface data included in the data interface type is filled under the corresponding secondary label in the interface configuration file template, in order to better find the configured interface data, the reference path information corresponding to the interface data can be generated based on the configuration position of the interface data in the interface configuration file template; for example, if the interface data uint16 is configured under the secondary tag SW-Base-Type under the primary tag Base Type in the configuration file template, the reference path information of the interface data uint16 may be < ROOT/Base Type/SW-Base-Type >, where ROOT is a ROOT tag, and does not represent any meaning.
And the REFERENCE PATH information corresponding to the interface data can be configured under the corresponding secondary label in the interface configuration file template, for example, the REFERENCE PATH information corresponding to the interface data can be configured at the end of the interface data, or an element label REFERENCE-PATH for configuring the REFERENCE PATH information can be created under the corresponding secondary label in the interface configuration file template, and the REFERENCE PATH information corresponding to the interface data is configured under the corresponding element label REFERENCE-PATH.
After the interface data included in the data interface type is filled under the corresponding secondary label in the interface configuration file template, the reference path information corresponding to the interface data is configured under the corresponding secondary label in the interface configuration file template, so that the interface data can be quickly acquired from the target configuration file according to the reference path information corresponding to the interface data.
In an alternative embodiment, after generating the target configuration file corresponding to the target vehicle, the method may further include: detecting whether the file content of the target configuration file meets the configuration requirement or not; if not, generating second indication information based on the configuration position of the target content which does not meet the configuration requirement in the target configuration file.
When the method is implemented, after the target configuration file corresponding to the target vehicle is generated, the file content of the target configuration file can be detected, namely whether the file content of the target configuration file meets the configuration requirement or not is detected; at least one configuration requirement in which the configuration requirement matches the file type of the target configuration file may include, for example, but is not limited to: the tag names of the tags (root tag, primary tag, secondary tag) in the target configuration file can only contain capital letters and characters "-", whether the position indicated by the reference path information of the interface data is the configuration position where the interface data is located, whether the data tags in the file content are paired as the interface data, and the like.
Under the condition that the file content of the target configuration file meets the configuration requirement is detected, the target configuration file can be obtained; and under the condition that the file content of the target configuration file does not meet the configuration requirement is detected, generating second indication information based on the configuration position of the target content which does not meet the configuration requirement in the target configuration file so as to prompt a worker to modify the file content.
After the target configuration file corresponding to the target vehicle is generated, under the condition that the file content of the target configuration file does not meet the configuration requirement is detected, second indication information is generated based on the configuration position of the target content which does not meet the configuration requirement in the target configuration file, so that workers are prompted to timely modify the file content, and the accuracy of the file content in the target configuration file is improved.
In an alternative embodiment, the method may further comprise: and responding to the input operation of the target configuration file, and generating a communication matrix corresponding to the target vehicle based on file content contained in the target configuration file, wherein the communication matrix is used for indicating communication links for carrying out information communication on all function interfaces in the function architecture of the target vehicle.
In the implementation, after the target configuration file of the target vehicle is generated, a worker can input the target configuration file into a communication matrix generation tool to generate a communication matrix corresponding to the target vehicle; that is, in response to an input operation for the target profile, a communication matrix corresponding to the target vehicle may be generated based on file content included in the target profile, where the communication matrix may be used to indicate communication links for information communication by each functional interface in the functional architecture of the target vehicle. For example, the source network segment name and the target network segment name corresponding to the signal names can be determined based on the signal names indicated by the file contents contained in the target configuration file; or, the provider name and the receiver name corresponding to the data name may be determined based on the data name indicated by the file content included in the target configuration file; etc.
Here, the file format of the target configuration file generated by the file generation system is standard, so that the communication matrix corresponding to the target vehicle can be generated more simply and rapidly based on the file content contained in the target configuration file, and the generation efficiency of the communication matrix is improved.
Referring to the schematic diagram of the process of generating the target profile shown in fig. 2, the process of generating the target profile will be described in more detail with reference to fig. 2.
A worker, such as the function owner FO shown in fig. 2, or the system owner SO, may populate interface design data of each functional interface in the functional architecture designed for the target vehicle into the structural design data template to obtain a data table containing the interface design data; further, whether the data attribute of the interface design data of each functional interface meets the condition can be detected by using the constructed file generation system based on at least one preset condition indicated by the condition database on the file generation system; if not, first indication information for indicating that data modification is performed may be generated.
When the condition that the data attribute of the interface design data of each functional interface meets the condition is detected, the interface design data of each functional interface can be subjected to data processing by using the constructed file generation system, so that the interface data which meets the standard data format and is respectively included by a plurality of data interface types is generated. The interface data respectively included by the plurality of data interface types can be filled into an interface configuration file template by using a file generation system, so that a target configuration file corresponding to the target vehicle is generated; specifically, a file generating system can be utilized, and for each data interface type, at least one secondary label included in the data interface type is created under the primary label of the data interface type in the interface configuration file template, and interface data included in the data interface type can be filled under the corresponding secondary label in the interface configuration file template; the method comprises the steps that reference path information corresponding to interface data can be generated based on the configuration position of the interface data in an interface configuration file template, and the reference path information corresponding to the interface data can be configured under a corresponding secondary label in the interface configuration file template; further, after the interface data and the reference path information corresponding to the interface data, which are respectively included in each data interface type, are filled into the interface profile template, a target profile corresponding to the target vehicle can be obtained.
Finally, whether the file content of the target configuration file meets the configuration requirement can be detected; if not, generating second indication information based on the configuration position of the target content which does not meet the configuration requirement in the target configuration file; if the target configuration file is satisfied, a target configuration file corresponding to the target vehicle can be obtained.
It will be appreciated by those skilled in the art that in the above-described method of the specific embodiments, the written order of steps is not meant to imply a strict order of execution but rather should be construed according to the function and possibly inherent logic of the steps.
Based on the same inventive concept, the embodiment of the present disclosure further provides a file generating system corresponding to the file generating method, with reference to fig. 3, which is a schematic diagram of the file generating system provided by the embodiment of the present disclosure, where the system includes: a data extraction module 301 and a write module 302;
the data extraction module 301 is configured to perform data processing on the received interface design data of each functional interface in the functional architecture designed for the target vehicle, and generate interface data that respectively includes a plurality of data interface types and meets a standard data format;
The writing module 302 is configured to fill interface data respectively included in the plurality of data interface types into the received interface configuration file template, and generate a target configuration file corresponding to the target vehicle.
In implementation, the file generating system provided by the embodiment of the disclosure can be utilized to generate the target configuration file corresponding to the target vehicle. Specifically, the file generating system may include a data extracting module 301 and a writing module 302, where the data extracting module 301 may be configured to receive interface design data of each functional interface in a functional architecture designed for a target vehicle, and may perform data processing on the interface design data of each functional interface, to generate interface data that satisfies a standard data format and includes a plurality of data interface types respectively; and may send interface data, which may be included in each of the plurality of data interface types, to the write module 302.
The writing module 302 may be configured to fill interface data respectively included in the plurality of data interface types into the received interface configuration file template, and generate a target configuration file corresponding to the target vehicle; specifically, the writing module 302 may be configured to create, for each data interface type, at least one secondary label included in the data interface type under the primary label of the data interface type in the interface configuration file template; interface data included in the data interface type can be filled under a corresponding secondary label in the interface configuration file template; furthermore, the reference path information corresponding to the interface data can be generated based on the configuration position of the interface data in the interface configuration file template, and the reference path information corresponding to the interface data can be configured under the corresponding secondary label in the interface configuration file template. And the interface data respectively included in each data interface type and the reference path information corresponding to the interface data are filled into the interface configuration file template to obtain the target configuration file corresponding to the target vehicle.
In an alternative embodiment, the file generation system may further include a data detection module 303; the data detection module 303 is configured to detect whether a data attribute of interface design data of each functional interface meets a condition based on at least one preset condition indicated by a condition database on the file generation system; if not, generating first indication information for indicating data modification.
In practice, the file generation system may also include a data detection module 303; the data detection module 303 may be configured to detect whether the data attribute of the interface design data of each functional interface meets a condition based on at least one preset condition indicated by a condition database on the file generation system; if the data modification information does not meet the requirement, first indication information for indicating the data modification can be generated, so that workers can timely modify the data of the interface design data.
In an alternative embodiment, the file generation system further includes a file verification module 304; the file verification module 304 is configured to detect whether file contents of the target configuration file meet a configuration requirement; if not, generating second indication information based on the configuration position of the target content which does not meet the configuration requirement in the target configuration file.
In particular implementations, the file generation system may also include a file verification module 304; the file verification module 304 may be configured to detect whether the file content of the target configuration file meets the configuration requirement; if not, generating second indication information based on the configuration position of the target content which does not meet the configuration requirement in the target configuration file; for example, the second indication information may indicate that the target content that does not meet the configuration requirement is in the line number of the target configuration file, and/or may indicate requirement information that the target content does not meet the configuration requirement, so as to prompt a staff member to modify the file content according to the second indication information.
Based on the same inventive concept, the embodiments of the present disclosure further provide a file generating device corresponding to the file generating method, and since the principle of solving the problem by the device in the embodiments of the present disclosure is similar to that of the file generating method in the embodiments of the present disclosure, the implementation of the device may refer to the implementation of the method, and the repetition is omitted.
Referring to fig. 4, a schematic diagram of a file generating apparatus according to an embodiment of the disclosure is provided, where the apparatus includes: a receiving module 401, a data processing module 402, and a first generating module 403; wherein,
A receiving module 401, configured to receive interface design data of each functional interface in a functional architecture designed for a target vehicle, and an interface configuration file template;
the data processing module 402 is configured to perform data processing on the interface design data of each functional interface by using the constructed file generation system, so as to generate interface data that satisfies a standard data format and is respectively included by a plurality of data interface types;
the first generating module 403 is configured to fill interface data respectively included in a plurality of data interface types into the interface configuration file template by using the file generating system, and generate a target configuration file corresponding to the target vehicle.
In a possible implementation manner, the first generating module 403 is configured to, when using the file generating system to fill interface data respectively included in a plurality of data interface types into the interface profile template to generate a target profile corresponding to the target vehicle:
creating, by using the file generation system, for each of the data interface types, at least one secondary label included in the data interface type under a primary label of the data interface type in the interface configuration file template; filling interface data included in the data interface type under a corresponding secondary label in the interface configuration file template;
And filling interface data respectively included in each data interface type into the interface configuration file template to obtain a target configuration file corresponding to the target vehicle.
In a possible implementation manner, after the populating the interface data included in the data interface type under the corresponding secondary label in the interface configuration file template, the first generating module 403 is further configured to:
and generating reference path information corresponding to the interface data based on the configuration position of the interface data in the interface configuration file template, and configuring the reference path information corresponding to the interface data under a corresponding secondary label in the interface configuration file template.
In a possible embodiment, the apparatus further comprises: a second generating module 404, after the obtaining of the interface design data of each functional interface in the functional architecture designed for the target vehicle, the second generating module 404 is configured to:
detecting whether the data attribute of the interface design data of each functional interface meets the condition or not based on at least one preset condition indicated by a condition database on the file generation system by using the constructed file generation system;
If not, generating first indication information for indicating data modification.
In an alternative embodiment, the apparatus further comprises: the third generating module 405, after generating the target configuration file corresponding to the target vehicle, the third generating module 405 is configured to:
detecting whether the file content of the target configuration file meets the configuration requirement or not;
if not, generating second indication information based on the configuration position of the target content which does not meet the configuration requirement in the target configuration file.
In an alternative embodiment, the apparatus further comprises: a fourth generation module 406, the fourth generation module 406 being configured to:
and responding to the input operation of the target configuration file, and generating a communication matrix corresponding to the target vehicle based on file content contained in the target configuration file, wherein the communication matrix is used for indicating communication links for carrying out information communication on all function interfaces in the function architecture of the target vehicle.
In some embodiments, the functions or templates included in the apparatus provided by the embodiments of the present disclosure may be used to perform the methods described in the foregoing method embodiments, and specific implementations thereof may refer to descriptions of the foregoing method embodiments, which are not repeated herein for brevity.
Based on the same technical concept, the embodiment of the disclosure also provides computer equipment. Referring to fig. 5, a schematic structural diagram of a computer device according to an embodiment of the disclosure includes a processor 501, a memory 502, and a bus 503. The memory 502 is configured to store execution instructions, including a memory 5021 and an external memory 5022; the memory 5021 is also referred to as an internal memory, and is used for temporarily storing operation data in the processor 501 and data exchanged with an external memory 5022 such as a hard disk, the processor 501 exchanges data with the external memory 5022 through the memory 5021, and when the computer device is running, the processor 501 and the memory 502 communicate through the bus 503, so that the processor 501 executes the following instructions:
receiving interface design data of each functional interface in a functional architecture designed for a target vehicle, and an interface configuration file template;
performing data processing on the interface design data of each functional interface by using the constructed file generation system to generate interface data which meets the standard data format and is respectively included by a plurality of data interface types;
and filling interface data respectively included by a plurality of data interface types into the interface configuration file template by using the file generation system to generate a target configuration file corresponding to the target vehicle.
The specific processing flow of the processor 501 may refer to the description of the above method embodiments, and will not be repeated here.
The disclosed embodiments also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the file generation method described in the method embodiments described above. Wherein the storage medium may be a volatile or nonvolatile computer readable storage medium.
The embodiments of the present disclosure further provide a computer program product, where the computer program product carries a program code, where instructions included in the program code may be used to perform steps of a file generating method described in the foregoing method embodiments, and specifically reference may be made to the foregoing method embodiments, which are not described herein in detail.
Wherein the above-mentioned computer program product may be realized in particular by means of hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied as a computer storage medium, and in another alternative embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), or the like.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of 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.
In addition, each functional unit in each embodiment of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in essence or a part contributing to the prior art or a part of the technical solution, or in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present disclosure. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the foregoing examples are merely specific embodiments of the present disclosure, and are not intended to limit the scope of the disclosure, but the present disclosure is not limited thereto, and those skilled in the art will appreciate that while the foregoing examples are described in detail, it is not limited to the disclosure: any person skilled in the art, within the technical scope of the disclosure of the present disclosure, may modify or easily conceive changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features thereof; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the disclosure, and are intended to be included within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.
Claims (10)
1. A document generation method, comprising:
receiving interface design data of each functional interface in a functional architecture designed for a target vehicle, and an interface configuration file template;
performing data processing on the interface design data of each functional interface by using the constructed file generation system to generate interface data which meets the standard data format and is respectively included by a plurality of data interface types;
and filling interface data respectively included by a plurality of data interface types into the interface configuration file template by using the file generation system to generate a target configuration file corresponding to the target vehicle.
2. The method according to claim 1, wherein the generating, by using the file generating system, the target profile corresponding to the target vehicle by filling interface data respectively included in the plurality of data interface types into the interface profile template includes:
creating, by using the file generation system, for each of the data interface types, at least one secondary label included in the data interface type under a primary label of the data interface type in the interface configuration file template; filling interface data included in the data interface type under a corresponding secondary label in the interface configuration file template;
And filling interface data respectively included in each data interface type into the interface configuration file template to obtain a target configuration file corresponding to the target vehicle.
3. The method of claim 2, wherein after said populating interface data included in the data interface type under corresponding secondary labels in the interface profile template, the method further comprises:
and generating reference path information corresponding to the interface data based on the configuration position of the interface data in the interface configuration file template, and configuring the reference path information corresponding to the interface data under a corresponding secondary label in the interface configuration file template.
4. The method according to claim 1, further comprising, after the acquiring the interface design data for each functional interface in the functional architecture designed for the target vehicle:
detecting whether the data attribute of the interface design data of each functional interface meets the condition or not based on at least one preset condition indicated by a condition database on the file generation system by using the constructed file generation system;
if not, generating first indication information for indicating data modification.
5. The method of claim 1, wherein after generating the target profile for the target vehicle, the method further comprises:
detecting whether the file content of the target configuration file meets the configuration requirement or not;
if not, generating second indication information based on the configuration position of the target content which does not meet the configuration requirement in the target configuration file.
6. The method according to any one of claims 1-5, further comprising:
and responding to the input operation of the target configuration file, and generating a communication matrix corresponding to the target vehicle based on file content contained in the target configuration file, wherein the communication matrix is used for indicating communication links for carrying out information communication on all function interfaces in the function architecture of the target vehicle.
7. A document generation system, comprising: a data extraction module and a writing module;
the data extraction module is used for carrying out data processing on the received interface design data of each functional interface in the functional architecture designed for the target vehicle, and generating interface data which meets the standard data format and is respectively included by a plurality of data interface types;
And the writing module is used for filling interface data respectively included by the plurality of data interface types into the received interface configuration file template to generate a target configuration file corresponding to the target vehicle.
8. The system of claim 7, wherein the file generation system further comprises a data detection module and/or a file verification module;
the data detection module is used for detecting whether the data attribute of the interface design data of each functional interface meets the condition or not based on at least one preset condition indicated by the condition database on the file generation system; if not, generating first indication information for indicating data modification;
the file verification module is used for detecting whether the file content of the target configuration file meets the configuration requirement or not; if not, generating second indication information based on the configuration position of the target content which does not meet the configuration requirement in the target configuration file.
9. A computer device, comprising: a processor, a memory storing machine-readable instructions executable by the processor for executing the machine-readable instructions stored in the memory, which when executed by the processor, perform the steps of the file generation method of any one of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a computer device, performs the steps of the file generation method as claimed in any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311640551.XA CN117669518A (en) | 2023-12-01 | 2023-12-01 | File generation method, system, computer device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311640551.XA CN117669518A (en) | 2023-12-01 | 2023-12-01 | File generation method, system, computer device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117669518A true CN117669518A (en) | 2024-03-08 |
Family
ID=90065548
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311640551.XA Pending CN117669518A (en) | 2023-12-01 | 2023-12-01 | File generation method, system, computer device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117669518A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118394322A (en) * | 2024-04-29 | 2024-07-26 | 镁佳(北京)科技有限公司 | Code generation method of E2E function conforming to AUTOSAR architecture |
-
2023
- 2023-12-01 CN CN202311640551.XA patent/CN117669518A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118394322A (en) * | 2024-04-29 | 2024-07-26 | 镁佳(北京)科技有限公司 | Code generation method of E2E function conforming to AUTOSAR architecture |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108388598B (en) | Electronic device, data storage method, and storage medium | |
CN104391725A (en) | Page display method and page display device | |
CN105117431A (en) | Dynamic configuration method and system for external imported data | |
CN111159982B (en) | Document editing method, device, electronic equipment and computer readable storage medium | |
CN117669518A (en) | File generation method, system, computer device and storage medium | |
CN112486490B (en) | Front-end code packaging method and device, electronic equipment and storage medium | |
CN107797819A (en) | Delta package generation method, computer-readable recording medium and server | |
CN111831920A (en) | User demand analysis method and device, computer equipment and storage medium | |
CN114090671A (en) | Data import method and device, electronic equipment and storage medium | |
CN113157315A (en) | Method, device, equipment and medium for identifying difference information of different versions of software | |
CN112650909A (en) | Product display method and device, electronic equipment and storage medium | |
CN111562907A (en) | Conversion method and system of user-defined interface data | |
CN113434542B (en) | Data relationship identification method and device, electronic equipment and storage medium | |
CN109144620B (en) | Skipping method and device for suspension window permission setting interface | |
CN106095511A (en) | A kind of server updating method and apparatus | |
CN109584091B (en) | Generation method and device of insurance image file | |
CN111026613A (en) | Log processing method and device | |
CN114356379A (en) | Backup-based service upgrading method, device, equipment and storage medium | |
CN109840080B (en) | Character attribute comparison method and device, storage medium and electronic equipment | |
CN114169306A (en) | Method, device and equipment for generating electronic receipt and readable storage medium | |
CN114003661A (en) | Offline data entry method and device, electronic equipment and storage medium | |
CN111651362A (en) | Test case generation method and device, storage medium and computer equipment | |
CN115964075B (en) | Application export import method and device, computer equipment and storage medium | |
CN113672565B (en) | File marking method and device, electronic equipment and storage medium | |
CN112232533B (en) | Product assembly management method and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |