CN117827316A - Method and device for generating extensible markup language configuration file and electronic equipment - Google Patents

Method and device for generating extensible markup language configuration file and electronic equipment Download PDF

Info

Publication number
CN117827316A
CN117827316A CN202311867454.4A CN202311867454A CN117827316A CN 117827316 A CN117827316 A CN 117827316A CN 202311867454 A CN202311867454 A CN 202311867454A CN 117827316 A CN117827316 A CN 117827316A
Authority
CN
China
Prior art keywords
information
data
configuration
processed
update
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
Application number
CN202311867454.4A
Other languages
Chinese (zh)
Inventor
董亚亚
秦民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Automotive Innovation Corp
Original Assignee
China Automotive Innovation Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Automotive Innovation Corp filed Critical China Automotive Innovation Corp
Priority to CN202311867454.4A priority Critical patent/CN117827316A/en
Publication of CN117827316A publication Critical patent/CN117827316A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to a method and device for generating an extensible markup language configuration file and electronic equipment. The method may include: acquiring a plurality of configuration files to be processed; extracting the configuration information to be configured corresponding to each of the plurality of configuration files to be processed from the plurality of configuration files to be processed respectively; generating interface rendering data corresponding to a plurality of configuration files to be processed according to the plurality of configuration information to be configured; transmitting the interface rendering data to the terminal equipment; receiving update information which is sent by terminal equipment and carries out update operation on each piece of information to be configured based on a configuration update interface; and generating target configuration files corresponding to the plurality of configuration files to be processed according to the plurality of updating information and the plurality of configuration files to be processed. According to the technical scheme provided by the application, a plurality of configuration files to be processed can be processed in parallel, the development efficiency of the extensible markup language configuration files is improved, and the development cost is saved.

Description

Method and device for generating extensible markup language configuration file and electronic equipment
Technical Field
The present invention relates to the field of automotive electronic control software development technologies, and in particular, to a method and an apparatus for generating an extensible markup language configuration file, and an electronic device.
Background
ARXML (AUTOSAR eXtensible Markup Language) files based on the open system architecture AUTOSAR (Automotive Open System Architecture) of the automobile are one of the most important configuration files in the development of electronic control systems for automobiles.
However, since License of commercial AUTOSAR development tools owned by original equipment manufacturers OEM and factories and suppliers Tier1 of the vehicle enterprise is limited in number, some commercial License binds special PC MAC addresses, and some commercial License binds hardware USB keys, each commercial License can only guarantee that ARXML files on one PC are editable at most, and editing processing efficiency is low and time is long.
In addition, the license price of commercial AUTOSAR development tools is high, and the development of the vehicle controller involves a large number of component modules, so that the development cost is increased. Under the License of the limited AUTOSAR development tool, a plurality of ARXML files cannot be edited and generated at the same time, so that the ARXML files are limited to the License of the AUTOSAR development tool in the processing process, the development efficiency is low, and the development cost is high.
Disclosure of Invention
The application provides a method, a device and electronic equipment for generating an extensible markup language configuration file, which at least solve the problem of how to flexibly edit a plurality of information to be configured without using a license of an AUTOSAR tool in the related technology. The technical scheme of the application is as follows:
According to a first aspect of an embodiment of the present application, there is provided a method for generating an extensible language configuration file, applied to an open system architecture of an automobile, including:
acquiring a plurality of configuration files to be processed; the configuration file to be processed is a file based on an extensible markup language;
extracting the configuration information to be configured corresponding to each of the plurality of configuration files to be processed from the plurality of configuration files to be processed respectively;
generating interface rendering data corresponding to a plurality of configuration files to be processed according to the plurality of configuration information to be configured; the interface rendering data is used for displaying information to be configured;
transmitting the interface rendering data to the terminal equipment;
receiving update information which is sent by terminal equipment and carries out update operation on each piece of information to be configured based on a configuration update interface; configuring an update interface for the terminal equipment to be displayed based on the interface rendering data;
and generating target configuration files corresponding to the plurality of configuration files to be processed according to the plurality of updating information and the plurality of configuration files to be processed.
According to a second aspect of embodiments of the present application, there is provided an apparatus for generating an extensible markup language configuration file, including:
the acquisition module is used for acquiring a plurality of configuration files to be processed; the configuration file to be processed is a file based on an extensible markup language;
The extraction module is used for respectively extracting the to-be-configured information corresponding to each of the plurality of to-be-processed configuration files from the plurality of to-be-processed configuration files;
the data generation module is used for generating interface rendering data corresponding to the plurality of configuration files to be processed according to the plurality of configuration information to be configured; the interface rendering data is used for displaying information to be configured;
the sending module is used for sending the interface rendering data to the terminal equipment;
the receiving module is used for receiving the update information which is sent by the terminal equipment and is used for carrying out update operation on each piece of information to be configured based on the configuration update interface; configuring an update interface for the terminal equipment to be displayed based on the interface rendering data;
the configuration file generation module is used for generating target configuration files corresponding to the plurality of configuration files to be processed according to the plurality of update information and the plurality of configuration files to be processed.
According to a third aspect of embodiments of the present application, there is provided an electronic device, including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method of any of the first aspects above.
According to a fourth aspect of embodiments of the present application, there is provided a computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the method of any of the first aspects of embodiments of the present application.
According to a fifth aspect of embodiments of the present application, there is provided a computer program product comprising computer instructions which, when executed by a processor, cause the computer to perform the method of any of the first aspects of embodiments of the present application.
The technical scheme provided by the embodiment of the application at least brings the following beneficial effects:
the configuration files to be processed are obtained, the configuration information to be configured corresponding to each of the configuration files to be processed is extracted from the configuration files to be processed, and the configuration files to be processed can be processed in parallel without depending on the license of the development tool of the open system architecture of the automobile, so that the processing flexibility and the processing efficiency of the configuration files are improved, the processing time is shortened, and the processing cost is saved;
further, according to the plurality of configuration information to be configured, interface rendering data corresponding to the plurality of configuration files to be processed are generated; transmitting the interface rendering data to the terminal equipment; the method comprises the steps of receiving the update information which is sent by the terminal equipment and is used for carrying out update operation on each piece of information to be configured based on the configuration update interface, and being capable of helping to more intuitively display a plurality of pieces of information to be configured in the terminal equipment, improving the visual editing and updating effects on the configuration update interface and enhancing the user experience and editing efficiency;
And generating target configuration files corresponding to the plurality of configuration files to be processed according to the plurality of updating information and the plurality of configuration files to be processed, so that maintainability and reliability of the target configuration files can be improved.
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 application.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application and do not constitute an undue limitation on the application.
FIG. 1 is a flowchart illustrating a method of generating an extensible markup language configuration file, according to an exemplary embodiment.
FIG. 2 is a schematic diagram illustrating a configuration update interface, according to an example embodiment.
FIG. 3 is a block diagram of an apparatus for generating an extensible markup language configuration file, according to an example embodiment.
Fig. 4 is a block diagram of an electronic device for fault handling, according to an example embodiment.
Fig. 5 is a block diagram two of an electronic device for fault handling, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present application, the following description will make clear and complete descriptions of the technical solutions in the embodiments of the present application with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
The following figures illustrate one possible sequence of steps and in fact do not limit the order in which it must be strictly followed. Some steps may be performed in parallel without mutual dependency. User information (including, but not limited to, user device information, user personal information, user behavior information, etc.) and data (including, but not limited to, data for presentation, training, etc.) referred to herein are both information and data that is authorized by the user or sufficiently authorized by the parties.
FIG. 1 is a flowchart illustrating a method of generating an extensible markup language configuration file, according to an exemplary embodiment. The method for generating the extensible markup language configuration file can be applied to an automobile open system architecture AUTOSAR, and as shown in figure 1, the method for generating the extensible markup language configuration file can comprise the following steps.
In step S101, a plurality of configuration files to be processed are acquired.
The configuration file to be processed may be an extensible markup language-based file, i.e., an editable ARXML file, and may be used to describe information such as application software, a communication interface, and parameter configuration that need to be edited in an automotive electronic system.
The automobile open system architecture AUTOSAR can be a collaborative development framework of an automobile electronic system jointly participated by various automobile manufacturers, parts suppliers and various research and service institutions worldwide, and establishes an open automobile controller (ECU) standard software architecture.
In this embodiment of the present disclosure, the configuration file to be processed may be directly read from the local file of the automotive electronic system in multiple ways, for example, the configuration file to be processed may be read from the local file using Java, python, or other languages, which is not limited in this application. Or exporting the XML file from the network service or other software tools or hardware equipment, thereby obtaining the configuration file to be processed which needs editing operation from the XML file.
In step S103, the configuration information corresponding to each of the plurality of configuration files to be processed is extracted from the plurality of configuration files to be processed.
The information to be configured may refer to editable information extracted from an extensible markup language configuration file. The configuration information includes configuration information such as a tag name, an attribute value, text content and the like of the configuration file to be processed, which is not limited in the application.
In the embodiment of the present disclosure, the acquired configuration file to be processed is analyzed, where the configuration file to be processed includes a plurality of configuration information to be configured, and the configuration information to be configured corresponding to each configuration file to be processed may be extracted from the analyzed configuration file to be processed.
In one possible implementation manner, analyzing and processing the attribute description information, the hierarchical path information and the element identification information respectively to obtain attribute information to be configured, hierarchical relationship to be configured and data type to be configured, which correspond to each of the plurality of configuration files to be processed; extracting the information to be configured corresponding to each of the plurality of configuration files to be processed from the attribute information to be configured, the hierarchical relationship to be configured and the data type to be configured.
The configuration file to be processed comprises attribute description information, hierarchical path information and element identification information. The attribute description information may refer to information for describing attribute rules in the configuration file to be processed, and may include information such as a name, a data type, and the like of the configuration file to be processed. The attribute information to be configured may refer to attribute information parsed from attribute description information of the configuration file to be processed.
The hierarchical path information may refer to a hierarchical relationship for representing the configuration file to be processed, and the hierarchical relationship may be a parent-child relationship, for example, one configuration file to be processed may include one or more subfiles, and the subfiles may further include more subfiles, so as to form a tree structure. The hierarchical relationship to be configured may refer to a hierarchical relationship between information to be configured.
The element identification information may refer to information used to distinguish between different pending profiles. Each configuration file to be processed has respective corresponding element identification information. The type of data to be configured may be used to indicate the type of object editable data in the information to be configured.
In the embodiment of the present disclosure, each configuration file to be processed is parsed, that is, attribute description information, hierarchical path information, and element identification information corresponding to each configuration file to be processed are parsed, so as to obtain attribute information to be configured, hierarchical relationship to be configured, and data type to be configured, which are respectively corresponding to a plurality of configuration files to be processed.
In step S105, according to the plurality of configuration information, interface rendering data corresponding to the plurality of configuration files to be processed is generated.
The interface rendering data may be used to display information to be configured.
In the embodiment of the present disclosure, the editable configuration information corresponding to the plurality of configuration files to be processed is converted into data displayed on a configuration update interface of the terminal device, that is, interface rendering data corresponding to the plurality of configuration files to be processed, so that a user may perform an update operation on each piece of configuration information in the interface rendering data through the configuration update interface, where the update operation includes an add operation, a modify operation, and a delete operation.
In step S107, the interface rendering data is transmitted to the terminal device.
In the embodiment of the present disclosure, the interface rendering data is sent to the terminal device, and the configuration update interface of the terminal device may display a plurality of configuration files to be processed and information to be configured corresponding to the configuration files to be processed included in the interface rendering data.
In one example, FIG. 2 is a schematic diagram of a configuration update interface, shown in accordance with an exemplary embodiment. As shown in fig. 2, the interface rendering data in the drawing includes two configuration files to be processed, namely a configuration file to be processed 1 and a configuration file to be processed 2, wherein the configuration file to be processed 1 corresponds to two pieces of configuration information, namely the configuration information to be configured 1 and the configuration information to be configured 2; the to-be-processed configuration file 2 also corresponds to two to-be-configured information, namely to-be-configured information 3 and to-be-configured information 4, and the number of to-be-processed configuration files and the number of to-be-configured information corresponding to the to-be-processed configuration files are not limited.
In one possible implementation manner, the vehicle enterprise original manufacturer packages and sends development requirements and a configuration file to be processed (extensible markup language file based on AUTOSAR) to the small and medium automobile part suppliers for editing and updating, and an engineer performs updating operation on the information to be configured in a configuration updating interface of the terminal equipment according to the development requirements of the vehicle enterprise original equipment manufacturer. In the case that the development requirement of the vehicle enterprise original equipment manufacturer is to modify the numerical data of the information to be configured or other editable data, the numerical data of the information to be configured is modified, for example, the vehicle braking response time is modified, and the development requirement is that the vehicle braking response time needs to be shortened. Further, the original vehicle braking response time may be modified from 0.5s to 0.3s, which is not limited in this application, and the modified information to be configured is defined as update information.
The development requirement can also be that the original data or the content part with error information in the information of the to-be-configured file is modified, the engineer can find the to-be-configured file according to the development requirement, analyze the original data or the information in the to-be-configured file, and then modify the error information in the original data or the information to obtain the processed to-be-configured information, namely the updated information.
In one possible implementation manner, in the case that development requirements of a vehicle enterprise original equipment manufacturer or a vehicle factory and a supplier are to delete editable content of information to be configured, deleting the content to be deleted in the information to be configured according to the development requirements. For example, in fig. 3, the information to be configured 1 is information to be configured in a vehicle navigation system, redundant data exists in the information to be configured 1, the redundant data is deleted, the continuous use of the vehicle navigation system is not affected, the functions of other systems in the vehicle are not affected, and the capacity of the configuration file to be processed can be increased. Further, deleting redundant data in the to-be-configured information 1 corresponding to the vehicle navigation system to obtain the to-be-configured information after deleting, namely updating information.
In one possible implementation manner, in the case of performing an adding operation on the editable content of the information to be configured according to the development requirements of the vehicle enterprise original equipment manufacturer or the vehicle factory and the supplier, the information to be configured is subjected to the adding operation according to the development requirements of the vehicle control system. For example, when a first braking mode in the vehicle braking system cannot guarantee the safety braking of the vehicle, a second braking mode parallel to the first braking mode can be supplemented to the information to be configured, so that the vehicle can better meet the braking requirement, and the safety in driving is guaranteed to a greater extent. And further, the second braking mode provided in the development requirement is newly added into the information to be configured to obtain the information to be configured after the new processing, namely the updated information.
The updating operation, namely the adding operation, the deleting operation and the modifying operation, performed in the configuration updating interface can be processed in parallel, and when the parallel editing processing is performed on the plurality of information to be configured, each information to be configured is independently edited, and the information to be configured does not depend on each other. For example, the update operation may be performed on a plurality of pieces of configuration information to be processed at the same time at one pc end, or when a plurality of pieces of configuration information to be processed exist at one pc end, sequential processing may be performed according to a time sequence of development requirements, or a plurality of pc ends may be established in the terminal device, and editing processing may be performed on a plurality of pieces of configuration information to be processed corresponding to the configuration file to be processed, which is not limited in this application.
In step S109, update information sent by the terminal device for performing an update operation on each information to be configured based on the configuration update interface is received.
The configuration updating interface can be an editable interface which is displayed by the terminal equipment based on the interface rendering data. The update information may refer to information obtained after the update operation is performed on the information to be configured.
In the embodiment of the specification, the terminal device performs update processing on each piece of to-be-configured information according to development requirements to obtain processed update information, and then the terminal device sends the update information to a background server of a vehicle enterprise for verification, after verification is passed, a target configuration file corresponding to the to-be-processed configuration file is generated according to the update information and the to-be-processed configuration file corresponding to the update information, and the target configuration file is applied to a vehicle control system.
In one possible implementation manner, after receiving update information which is sent by a terminal device and is updated on the basis of a configuration update interface for each piece of information to be configured, monitoring and processing first data update information sent by the terminal device to obtain a target data monitoring result; and under the condition that the target data monitoring result is that the first data updating information is in the preset range, determining the first data updating information as the updating information of the information to be configured.
The first data update information may be update information obtained after a modification operation is performed in the configuration update interface. The target data monitoring result may be a result of monitoring the first data update information sent by the terminal device. The preset range is the numerical range of the data in the information to be configured.
In the embodiment of the present disclosure, after receiving the first data update information sent by the terminal device, the background server monitors the first update data information according to the basic file information specified in the basic electronic control file of the automobile, that is, the ecu pdf, to obtain a target data monitoring result. The target data detection result is used for judging that the first updated data information is in a preset range. And when the target data monitoring result shows that the first data updating information is in the preset range, confirming that the first updating information can be applied to the automobile control system, and determining the first data updating information as the updating information of the information to be configured.
In another possible implementation, in a case where the target data monitoring result indicates that the first data update information is out of the preset range, the first data update information cannot be directly applied to the vehicle control system. And re-determining the modification requirement and the information to be configured, re-transmitting the modification requirement and the information to be configured to the terminal equipment for modification processing, and re-transmitting the modified update information to the server for verification. And further, the modified update information in the preset range is determined to be the update information corresponding to the information to be configured, and the update information is stored in the configuration file to be processed corresponding to the information to be configured.
In one example, taking a vehicle braking system as an example, the original vehicle braking response time is 0.5s, the vehicle braking response time in the modified first data updating information is 0.3s, and the preset range of the vehicle braking response time specified in the automobile electronic control unit is 0.05-0.6s, which is not limited in the application. And further, monitoring the vehicle braking response time in the first data updating information, and determining the first data updating information as the updating information corresponding to the information to be configured when the first data updating information is monitored to be in the preset range.
In one possible implementation manner, verification processing is performed on the update operation control function corresponding to the second data update information, so as to obtain a target data verification result; and under the condition that the target data verification result indicates that the updating operation control function accords with the automobile electronic control function, determining the second data updating information as updating information corresponding to the information to be configured.
The second data update information may be update information obtained after a deletion operation is performed in the configuration update interface. The update operation control function may refer to an automobile operation function corresponding to the update information. The vehicle electronic control function may be a basic function specified in the vehicle electronic control unit.
In the embodiment of the specification, after receiving the second data update information sent by the terminal device, the server performs verification processing on the update operation control function corresponding to the second data information after the deletion processing, so as to obtain a target data verification result. Further, whether the target data verification result accords with the original automobile electronic control function of the automobile is judged, namely whether an error occurs in the updating operation control function or whether the updating operation control function is not matched with the automobile electronic control function is judged. And under the condition that the target data verification result shows that the updating operation control function accords with the automobile electronic control function, namely after part of contents in the information to be configured are deleted, the remaining updating operation control function of the updating information still accords with the original automobile electronic control function, at the moment, the second data updating information is determined to be the updating information corresponding to the information to be configured, and the updating information is stored in the corresponding configuration file to be processed.
In another possible implementation manner, in the case that the target data verification result indicates that the update operation control function does not conform to the automobile electronic control function, the second data update information is canceled and a verification failure instruction is generated; sending a verification failure instruction to terminal equipment; and receiving third data updating information which is sent by the terminal equipment and is updated again according to the verification failure instruction.
The verification failure instruction may be used to indicate that the updated information does not meet the requirement of the electronic control function of the automobile. The third data update information may refer to information after the editing process is performed again according to the verification failure instruction.
In the embodiment of the specification, when the target data verification result indicates that the update operation control function does not conform to the automobile electronic control function, that is, when the second data update information obtained after deletion has a logic error or other functional errors, the server side immediately generates a serious failure instruction corresponding to the error; and further, sending the verification failure instruction to the terminal equipment. After receiving the verification failure instruction, the terminal equipment can analyze the error information according to the instruction and edit the information to be configured again to obtain updated third data updating information.
Further, the terminal device sends the reprocessed third data updating information to the server, the server verifies the third data updating information again after receiving the third data updating information, when the target data verification result accords with the automobile electronic control function, the reprocessed third data updating information is determined to be the updating information corresponding to the information to be configured, and the updating information is stored in the configuration file to be processed.
In one possible implementation manner, searching the fourth data updating information based on the automobile basic electronic control file to obtain a target data searching result; the automobile foundation electronic control file is a file for storing all foundation configuration information in an automobile; and determining the fourth data updating information as the updating information of the information to be configured under the condition that the target data searching result indicates that the fourth data updating information does not exist in the automobile basic control file.
The fourth data update information may be update information obtained after a new process is performed in the configuration update interface. The automobile basic electronic control file may refer to a file storing all basic configuration information in the automobile. The target data search result may refer to a result of searching for fourth data update information.
In the embodiment of the present disclosure, after receiving the fourth data update information sent by the terminal device, the fourth data update information is searched in the basic electronic control file of the automobile, so as to obtain a target data search result. And under the condition that the target data search result indicates that the fourth data updating information does not exist in the automobile basic control file, performing functional verification on the fourth data updating information, verifying whether an error or an error exists between the newly added fourth data updating information and the development requirement, and when the error exists, retransmitting the error information to the terminal equipment for editing processing, so that the error information is modified correctly. And determining the fourth data updating information as updating information corresponding to the information to be configured under the condition that the fourth data updating information is matched with the development requirement.
In another possible implementation manner, if the target data search result indicates that fourth data update information exists in the automobile basic electronic control file, automatically referencing the reference update information existing in the automobile basic electronic control file and generating a new reference instruction; sending the newly added reference instruction to the terminal equipment; and receiving fifth data updating information which is sent by the terminal equipment and is used for updating the reference updating information again based on the newly added reference instruction.
Wherein the reference update information may refer to data information in which fourth data update information is stored. The newly added reference instruction may be an instruction instructing the terminal device to edit the reference update information. The fifth data update information may be information obtained by editing the reference update information according to the newly added reference instruction.
In the embodiment of the present disclosure, when the target data search result indicates that the fourth data update information exists in the basic electronic control file of the automobile, for example, a new operation is performed on the information to be configured in the brake system, but the new fourth data update information exists in the auxiliary driving system of the basic electronic control file of the automobile. And deleting the newly added fourth data updating information and automatically referencing the reference updating information in the basic electronic control file of the automobile, and at the moment, synchronizing the reference updating information in the braking system and the auxiliary driving system of the automobile and generating a newly added reference instruction.
Further, the newly added reference instruction is sent to the terminal equipment, and the terminal equipment re-edits the reference update information according to the newly added reference instruction, and obtains fifth data update information corresponding to the reference update information. And the terminal equipment sends the fifth data updating information to the server side. The server side verifies the re-edited fifth data updating information, judges whether the function corresponding to the fifth data updating information meets the development requirement, and determines the fifth data updating information as updating information corresponding to the information to be configured under the condition that the function meets the opening requirement.
In step S111, a target configuration file corresponding to each of the plurality of configuration files to be processed is generated according to the plurality of update information and the plurality of configuration files to be processed.
The target profile may refer to a profile applied to a vehicle Electronic Control Unit (ECU), among others.
In the embodiment of the present disclosure, according to the update information after editing and confirmed by the server and a plurality of configuration files to be processed corresponding to the update information, target configuration information corresponding to each of the plurality of configuration files to be processed is generated, and the target configuration information is applied to each corresponding vehicle system.
FIG. 3 is a block diagram of an apparatus for generating an extensible markup language configuration file, according to an example embodiment. Referring to fig. 3, the apparatus may include:
an obtaining module 301, configured to obtain a plurality of configuration files to be processed; the configuration file to be processed is a file based on an extensible markup language;
the extracting module 303 is configured to extract, from the plurality of configuration files to be processed, information to be configured corresponding to each of the plurality of configuration files to be processed;
in one possible implementation, the extracting module 303 includes:
the analysis module is used for respectively analyzing the attribute description information, the hierarchical path information and the element identification information to obtain attribute information to be configured, hierarchical relationship to be configured and data type to be configured, which are respectively corresponding to the plurality of configuration files to be processed;
The to-be-configured information extraction module is used for extracting to-be-configured information corresponding to each of the plurality of to-be-processed configuration files from the to-be-configured attribute information, the to-be-configured hierarchical relationship and the to-be-configured data type.
The data generating module 305 is configured to generate interface rendering data corresponding to the plurality of configuration files to be processed according to the plurality of configuration information to be configured; the interface rendering data is used for displaying information to be configured;
a sending module 307, configured to send the interface rendering data to a terminal device;
a receiving module 309, configured to receive update information sent by the terminal device and performing an update operation on each piece of information to be configured based on the configuration update interface; configuring an update interface for the terminal equipment to be displayed based on the interface rendering data;
in one possible implementation, after the receiving module 309, further includes:
the monitoring module is used for monitoring the first data updating information sent by the terminal equipment to obtain a target data monitoring result;
the first data updating information determining module is used for determining the first data updating information as updating information of the information to be configured when the target data monitoring result is that the first data updating information is in a preset range.
In one possible implementation, after the receiving module 309, further includes:
the verification module is used for verifying the update operation control function corresponding to the second data update information to obtain a target data verification result;
and the second data updating information determining module is used for determining the second data updating information as updating information of the information to be configured under the condition that the target data verification result indicates that the updating operation control function accords with the automobile electronic control function.
In one possible implementation, the method further includes:
the verification failure instruction generation module is used for canceling the second data update information and generating a verification failure instruction when the target data verification result indicates that the update operation control function does not accord with the automobile electronic control function;
the verification failure instruction sending module is used for sending a verification failure instruction to the terminal equipment;
and the fourth data updating information receiving module is used for receiving third data updating information which is sent by the terminal equipment and is updated again according to the verification failure instruction.
In one possible implementation, after the receiving module 309, further includes:
the searching module is used for searching the fourth data updating information based on the automobile basic electronic control file to obtain a target data searching result; the automobile basic control file is a file for storing all basic configuration information in an automobile;
And the fourth data updating information determining module is used for determining the third data updating information as updating information of the information to be configured under the condition that the target data searching result indicates that the fourth data updating information does not exist in the automobile basic control file.
In one possible implementation, the method further includes:
the newly added reference instruction generation module is used for automatically referencing the reference update information existing in the automobile basic electronic control file and generating a newly added reference instruction under the condition that the target data search result indicates that fourth data update information exists in the automobile basic electronic control file;
the newly added reference instruction sending module is used for sending the newly added reference instruction to the terminal equipment;
and the fifth data updating information receiving module is used for receiving fifth data updating information which is sent by the terminal equipment and is used for updating the reference updating information again based on the newly added reference instruction.
The configuration file generating module 311 is configured to generate, according to the plurality of update information and the plurality of configuration files to be processed, a target configuration file corresponding to each of the plurality of configuration files to be processed.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 4 is a block diagram illustrating an electronic device, which may be a terminal, for generation of an extensible markup language profile, the internal structure of which may be as shown in fig. 4, according to an exemplary embodiment. The electronic device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic device includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the electronic device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method of generating an extensible markup language configuration file. The display screen of the electronic equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the electronic equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 4 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the electronic device to which the present application is applied, and that a particular electronic device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
FIG. 5 is a block diagram of an electronic device, which may be a server, for the generation of an extensible markup language profile, the internal structure of which may be as shown in FIG. 5, according to an example embodiment. The electronic device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic device includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the electronic device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method of generating an extensible markup language configuration file.
It will be appreciated by those skilled in the art that the structure shown in fig. 5 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the electronic device to which the present application is applied, and that a particular electronic device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In an exemplary embodiment, there is also provided an electronic device including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement a method of generating an extensible markup language profile as in an embodiment of the present application.
In an exemplary embodiment, a computer readable storage medium is also provided, which when executed by a processor of an electronic device, causes the electronic device to perform the method for generating an extensible markup language configuration file in the embodiments of the present application. The computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In an exemplary embodiment, a computer program product comprising instructions that, when run on a computer, cause the computer to perform the method of generating an extensible markup language configuration file in embodiments of the present application is also provided.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the present application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. The method for generating the extensible markup language configuration file is characterized by being applied to an automobile open system architecture and comprising the following steps:
acquiring a plurality of configuration files to be processed; the configuration file to be processed is a file based on an extensible markup language;
extracting the configuration information to be configured corresponding to each of the configuration files to be processed from the configuration files to be processed respectively;
Generating interface rendering data corresponding to the plurality of configuration files to be processed according to the plurality of configuration information to be configured; the interface rendering data is used for displaying the information to be configured;
sending the interface rendering data to a terminal device;
receiving update information which is sent by the terminal equipment and carries out update operation on each piece of information to be configured based on a configuration update interface; the configuration updating interface is an interface which is displayed by the terminal equipment based on the interface rendering data;
and generating target configuration files corresponding to the plurality of configuration files to be processed according to the plurality of update information and the plurality of configuration files to be processed.
2. The method of claim 1, wherein the updating operation comprises a modification operation of the information to be configured; the update information comprises first data update information obtained by modifying each piece of information to be configured, and after receiving the update information sent by the terminal equipment and used for updating each piece of information to be configured based on a configuration update interface, the method further comprises the steps of:
monitoring the first data updating information sent by the terminal equipment to obtain a target data monitoring result;
And under the condition that the target data monitoring result is that the first data updating information is in a preset range, determining the first data updating information as the updating information corresponding to the information to be configured.
3. The method of claim 1, wherein the updating operation further comprises a delete operation of the information to be configured; the update information comprises second data update information obtained by deleting the information to be configured, and after receiving the update information which is sent by the terminal equipment and is used for updating the information to be configured based on the configuration update interface, the method further comprises the steps of:
performing verification processing on the update operation control function corresponding to the second data update information to obtain a target data verification result;
and under the condition that the target data verification result indicates that the updating operation control function accords with the automobile electronic control function, determining the second data updating information as the updating information corresponding to the information to be configured.
4. A method according to claim 3, characterized in that the method further comprises:
canceling the second data update information and generating a verification failure instruction under the condition that the target data verification result indicates that the update operation control function does not accord with the automobile electronic control function;
Sending the verification failure instruction to the terminal equipment;
and receiving third data updating information which is sent by the terminal equipment and is updated again according to the verification failure instruction.
5. The method of claim 1, wherein the updating operation further comprises a new operation to the information to be configured; the update information comprises fourth data update information obtained by performing new operation on each piece of information to be configured, and after receiving the update information which is sent by the terminal equipment and is used for performing update operation on each piece of information to be configured based on a configuration update interface, the method further comprises the steps of:
searching the fourth data updating information based on the automobile basic electronic control file to obtain a target data searching result; the automobile foundation electronic control file is a file for storing all foundation configuration information in an automobile;
and determining the fourth data updating information as the updating information of the information to be configured under the condition that the target data searching result indicates that the fourth data updating information does not exist in the automobile basic control file.
6. The method of claim 5, wherein the method further comprises:
Automatically referencing the reference update information existing in the automobile basic electronic control file and generating a new reference instruction under the condition that the target data search result indicates that the fourth data update information exists in the automobile basic electronic control file;
sending the newly added reference instruction to the terminal equipment;
and receiving fifth data updating information which is sent by the terminal equipment and is used for updating the reference updating information again based on the newly added reference instruction.
7. The method according to claim 1, wherein the configuration files to be processed include attribute description information, hierarchical path information, and element identification information, and the extracting the configuration information corresponding to each of the configuration files to be processed from the configuration files to be processed includes:
respectively analyzing the attribute description information, the hierarchical path information and the element identification information to obtain attribute information to be configured, hierarchical relationship to be configured and data type to be configured, which are respectively corresponding to the plurality of configuration files to be processed;
extracting the to-be-configured information corresponding to each of the plurality of to-be-processed configuration files from the to-be-configured attribute information, the to-be-configured hierarchical relationship and the to-be-configured data type.
8. An apparatus for generating an extensible markup language configuration file, comprising:
the acquisition module is used for acquiring a plurality of configuration files to be processed; the configuration file to be processed is a file based on an extensible markup language;
the extraction module is used for respectively extracting the to-be-configured information corresponding to each of the plurality of to-be-processed configuration files from the plurality of to-be-processed configuration files;
the data generation module is used for generating interface rendering data corresponding to the plurality of configuration files to be processed according to the plurality of configuration information to be configured; the interface rendering data is used for displaying the information to be configured;
the sending module is used for sending the interface rendering data to the terminal equipment;
the receiving module is used for receiving the update information which is sent by the terminal equipment and is used for carrying out update operation on each piece of information to be configured based on the configuration update interface; the configuration updating interface is an interface which is displayed by the terminal equipment based on the interface rendering data;
and the configuration file generation module is used for generating target configuration files corresponding to the plurality of configuration files to be processed according to the plurality of update information and the plurality of configuration files to be processed.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of generating an extensible markup language profile of any one of claims 1 to 7.
10. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of generating an extensible markup language profile of any one of claims 1 to 7.
CN202311867454.4A 2023-12-29 2023-12-29 Method and device for generating extensible markup language configuration file and electronic equipment Pending CN117827316A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311867454.4A CN117827316A (en) 2023-12-29 2023-12-29 Method and device for generating extensible markup language configuration file and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311867454.4A CN117827316A (en) 2023-12-29 2023-12-29 Method and device for generating extensible markup language configuration file and electronic equipment

Publications (1)

Publication Number Publication Date
CN117827316A true CN117827316A (en) 2024-04-05

Family

ID=90511132

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311867454.4A Pending CN117827316A (en) 2023-12-29 2023-12-29 Method and device for generating extensible markup language configuration file and electronic equipment

Country Status (1)

Country Link
CN (1) CN117827316A (en)

Similar Documents

Publication Publication Date Title
CN111027295B (en) Data processing method, device, computer equipment and storage medium
CN111240994A (en) Vulnerability processing method and device, electronic equipment and readable storage medium
US8676627B2 (en) Vertical process merging by reconstruction of equivalent models and hierarchical process merging
CN105205144A (en) Method and system used for data diagnosis and optimization
CN111026080A (en) Hardware-in-loop test method and device for controller
CN104657274A (en) Method and device for testing software interface
Schlie et al. Detecting variability in MATLAB/Simulink models: An industry-inspired technique and its evaluation
CN115167831A (en) Software integration method and device based on AUTOSAR and use method
CN115617780A (en) Data import method, device, equipment and storage medium
CN112215015B (en) Translation text revision method, device, computer equipment and storage medium
CN111522881B (en) Service data processing method, device, server and storage medium
CN111752838A (en) Question checking method and device, server and storage medium
CN109684207B (en) Method and device for packaging operation sequence, electronic equipment and storage medium
CN117827316A (en) Method and device for generating extensible markup language configuration file and electronic equipment
Pereira et al. Retrospective and Trends in Requirements Engineering for Embedded Systems: A Systematic Literature Review.
CN110888641A (en) Automatic script generation method and device, server and storage medium
KR101843092B1 (en) Method for verifying multiple insurance computer system
US10061686B2 (en) Method, electronic apparatus, system, and storage medium for automated testing of application user interface
CN112149343B (en) Object modeling method, device and storage medium
CN110096281B (en) Code analysis method, analysis server, storage medium and device
CN110275731B (en) Information processing method, information processing apparatus, storage medium, and electronic device
CN114003486A (en) Plug-in debugging method, client, server and storage medium
CN112445461A (en) Business rule generation method and device, electronic equipment and readable storage medium
KR20170047013A (en) Method, Apparatus and Computer-readable Medium for Generating Authority Guideline File for Vehicle
CN115599868B (en) Data real-time synchronous processing method, system, equipment and medium

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