CN117952069A - ARXML file processing method, ARXML file processing device, ARXML file processing equipment and medium - Google Patents

ARXML file processing method, ARXML file processing device, ARXML file processing equipment and medium Download PDF

Info

Publication number
CN117952069A
CN117952069A CN202410095969.5A CN202410095969A CN117952069A CN 117952069 A CN117952069 A CN 117952069A CN 202410095969 A CN202410095969 A CN 202410095969A CN 117952069 A CN117952069 A CN 117952069A
Authority
CN
China
Prior art keywords
arxml
file
processed
arxml 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
Application number
CN202410095969.5A
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.)
Blue Cong Technology Shanghai Co ltd
Original Assignee
Blue Cong Technology Shanghai Co ltd
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 Blue Cong Technology Shanghai Co ltd filed Critical Blue Cong Technology Shanghai Co ltd
Priority to CN202410095969.5A priority Critical patent/CN117952069A/en
Publication of CN117952069A publication Critical patent/CN117952069A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The application discloses a ARXML file processing method, a ARXML file processing device, ARXML file processing equipment and a ARXML file processing medium, and relates to the technical field of automobile software development. Applied to an automobile open system architecture, the method comprises the following steps: acquiring a to-be-processed ARXML file; carrying out logic verification on a ARXML file to be processed based on preset verification logic by utilizing a pre-constructed ARXML file analysis tool to determine incompatible problem points in the ARXML file to be processed; and aiming at the incompatible problem point, calling the ARXML file analysis tool to automatically execute a corresponding target script statement to modify the ARXML file to be processed, and exporting a target ARXML file obtained after modification. By the technical scheme, the problem of incompatibility of the input files of the automobile open system architecture when the input files are imported into various tools can be solved, the propulsion efficiency of the development of the automobile open system architecture is greatly improved, the development period is shortened, and a large amount of manpower and material resources are solved.

Description

ARXML file processing method, ARXML file processing device, ARXML file processing equipment and medium
Technical Field
The invention relates to the technical field of automobile software development, in particular to a ARXML file processing method, a ARXML file processing device, ARXML file processing equipment and a ARXML file processing medium.
Background
Currently, when developing an automobile control system under an architecture based on an AUTOSAR (Automotive Open System Architecture, automobile open system architecture), the development processes are handed over through ARXML files. However, there are cases where the imported XML file is not compatible with the currently available AUTOSAR tools such as Vector, ETAS, mentor, that is, there is always a problem of errors in the process of importing the XML file into the AUTOSAR due to the incompatibility of the AUTOSAR tools. At present, the problems can only be solved by manually comparing the difference points of the XML, the actions of manual modification, replacement, addition and the like are carried out by relying on the working experience of engineers, and the universality and the error checking of the XML can not be achieved when various tools are imported.
Therefore, how to provide a solution to the above technical problem is a problem that a person skilled in the art needs to solve at present.
Disclosure of Invention
In view of the above, the present invention aims to provide a method, a device and a medium for processing ARXML files, which can solve the problem of incompatibility of input files of an open system architecture of an automobile when the input files are imported into various tools. The specific scheme is as follows:
In a first aspect, the present application discloses a method for processing ARXML files, which is applied to an open system architecture of an automobile, and includes:
Acquiring a to-be-processed ARXML file;
Carrying out logic verification on the to-be-processed ARXML file based on preset verification logic by utilizing a pre-constructed ARXML file analysis tool to determine incompatible problem points in the to-be-processed ARXML file;
and aiming at the incompatible problem point, calling the ARXML file analysis tool to automatically execute a corresponding target script statement to modify the ARXML file to be processed, and exporting a target ARXML file obtained after modification.
Optionally, the pending ARXML files include a first type pending ARXML file for describing a system configuration, a second type pending ARXML file for describing configuration information of an electronic control unit of the automobile, a third type pending ARXML file for describing a configuration file of an electronic control unit of the automobile, a fourth type pending ARXML file for describing a configuration file of a software component, and a fifth type pending ARXML file for describing a configuration file of a base software layer module.
Optionally, before the logic verification is performed on the to-be-processed ARXML file based on the preset verification logic by using the pre-built ARXML file parsing tool to determine the incompatible problem point in the to-be-processed ARXML file, the method further includes:
And analyzing the ARXML file to be processed by using an XML analysis library in Python by using the ARXML file analysis tool.
Optionally, after performing logic verification on the to-be-processed ARXML file based on preset verification logic by using a pre-built ARXML file parsing tool to determine an incompatible problem point in the to-be-processed ARXML file, the method further includes:
and performing mode verification on the to-be-processed ARXML file by using an extensible markup language architecture definition file corresponding to the specification of the automobile open system architecture.
Optionally, after the obtaining the file to be processed ARXML, the method further includes:
traversing the to-be-processed ARXML file to identify invalid characters in the to-be-processed ARXML file and clearing the invalid characters.
Optionally, for the incompatible problem point, the invoking the ARXML file parsing tool automatically executes a corresponding target script statement to modify the to-be-processed ARXML file, and exports a target ARXML file obtained after modification, including:
Determining target elements which need to be operated in the to-be-processed ARXML file aiming at the incompatible problem point;
And calling the ARXML file analysis tool to automatically execute a corresponding target script statement to replace, delete or add the target element, and exporting a target ARXML file after the corresponding operation is performed on the target element.
Optionally, after the step of calling the ARXML file parsing tool to automatically execute the corresponding target script statement to modify the to-be-processed ARXML file and export the target ARXML file obtained after modification, the method further includes:
checking the target ARXML file by using a cyclic redundancy check code checking mode to judge whether the target ARXML file has an incompatibility problem with the automobile open system architecture;
And if the target ARXML file has an incompatibility problem with the automobile open system architecture, re-triggering the step of logically checking the to-be-processed ARXML file based on preset checking logic by utilizing a pre-constructed ARXML file analysis tool to determine an incompatibility problem point in the to-be-processed ARXML file.
In a second aspect, the present application discloses a processing device of ARXML documents, which is applied to an open system architecture of an automobile, and includes:
the file acquisition module is used for acquiring a ARXML file to be processed;
The problem point determining module is used for logically checking the to-be-processed ARXML file based on preset checking logic by utilizing a pre-constructed ARXML file parsing tool so as to determine incompatible problem points in the to-be-processed ARXML file;
And the problem point processing module is used for calling the ARXML file analysis tool to automatically execute corresponding target script statements aiming at the incompatible problem points so as to modify the ARXML file to be processed and export a target ARXML file obtained after modification.
In a third aspect, the present application discloses an electronic device comprising a processor and a memory; wherein the memory is used for storing a computer program, and the computer program is loaded and executed by the processor to implement the processing method of the ARXML file as described above.
In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the method of processing ARXML files as described above.
The application provides a ARXML file processing method, which is applied to an automobile open system architecture and comprises the following steps: acquiring a to-be-processed ARXML file; carrying out logic verification on the to-be-processed ARXML file based on preset verification logic by utilizing a pre-constructed ARXML file analysis tool to determine incompatible problem points in the to-be-processed ARXML file; and aiming at the incompatible problem point, calling the ARXML file analysis tool to automatically execute a corresponding target script statement to modify the ARXML file to be processed, and exporting a target ARXML file obtained after modification. The beneficial technical effects of the application are as follows: according to the method, the device and the system, the logical verification can be carried out on XML files of different types in an automobile open system architecture through ARXML file analysis tools, and incompatible problem points in ARXML files to be processed can be rapidly located; and (3) automatically executing corresponding scripts for each incompatible problem point to modify the file to be processed ARXML, so that the problem of incompatibility of the input file of the automobile open system architecture when the input file is imported into each tool is fundamentally solved. Therefore, the propulsion efficiency of the development of the open system architecture of the automobile can be greatly improved, the development period is shortened, and a large amount of manpower and material resources are solved.
In addition, the processing device, the device and the storage medium for ARXML files provided by the application correspond to the processing method for ARXML files, and have the same effects.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for processing ARXML files disclosed in the present application;
FIG. 2 is a schematic diagram of a System Configuration type ARXML file of the present disclosure;
FIG. 3 is a schematic view of an ECU Extract type ARXML file disclosed in the present application;
FIG. 4 is a schematic diagram of a ECU Configuration type ARXML document of the present disclosure;
FIG. 5 is a schematic diagram of a SWC Description type ARXML file according to the present disclosure;
FIG. 6 is a schematic diagram of a BSW Module Description type ARXML file of the present disclosure;
FIG. 7 is a schematic diagram of an interface of a ARXML file parsing tool disclosed in the present application;
FIG. 8 is a schematic diagram of a code for clearing redundant invalid characters according to the present application;
FIG. 9 is a schematic diagram of an XML parsing library code according to the present disclosure;
FIG. 10 is a schematic diagram of a code for performing pattern verification on ARXML files in accordance with the present disclosure;
FIG. 11 is a code schematic diagram of a corresponding operation performed on ARXML files in accordance with the present disclosure;
FIG. 12 is a code schematic diagram of a corresponding operation performed on ARXML files in accordance with the present disclosure;
FIG. 13 is a schematic diagram of a modified derived ARXML file according to the present disclosure;
FIG. 14 is a flowchart illustrating a ARXML file process according to the present disclosure;
FIG. 15 is a schematic diagram illustrating a structure of a ARXML file processing apparatus according to the present application;
fig. 16 is a block diagram of an electronic device according to the present disclosure.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
When developing an automobile control system based on an automobile open system architecture, the development flows are handed over through ARXML files. However, there is always a problem of error reporting caused by incompatibility of the tools of the automobile open system architecture in the process of importing the XML file into the automobile open system architecture. Currently, the problems can only be solved by manually comparing the difference points of the XML, the actions of manual modification, replacement, addition and the like are carried out by relying on the working experience of engineers, and the universality and the error checking of the XML cannot be achieved when various tools are imported.
Therefore, the application provides a ARXML file processing scheme, which can prevent the phenomenon of error reporting caused by incompatibility when XML files are imported and exported between various automobile open system architecture tools.
The embodiment of the invention discloses a ARXML file processing method, which is shown in fig. 1 and is applied to an automobile open system architecture, and comprises the following steps:
Step S11: and obtaining a file to be processed ARXML.
The ARXML document represents AUTOSAR XML, a human-machine readable text format that describes the AUTOSAR model in XML language (Extensible Markup Language ). In the embodiment of the application, in order to prevent error reporting phenomenon caused by incompatibility when the XML files are imported and exported between the AUTOSAR tools, the XML files of various types in the AUTOSAR can be compared, modified and integrated.
First, a file to be processed ARXML is acquired. Specifically, the files to be processed ARXML include a first type of file to be processed ARXML for describing a system configuration, a second type of file to be processed ARXML for describing configuration information of an electronic control unit of an automobile, a third type of file to be processed ARXML for describing a configuration file of an electronic control unit of an automobile, a fourth type of file to be processed ARXML for describing a configuration file of a software component, and a fifth type of file to be processed ARXML for describing a configuration file of a base software layer module.
There are 5 types ARXML for development of an open system architecture of an automobile, system Configuration, ECU Extract, ECU Configuration, SWC Description, BSW Module Description, respectively.
In a first specific embodiment, the first type of to-be-processed ARXML file is System Configuration, which contains description information of a plurality of ECUs (Electronic Control Unit, electronic control units), and describes transmission or reception information among the ECUs, interface and port description information crossing ECU components, and hardware resource information of the ECU. System Configuration describe the interaction information between the ECUs from the perspective of the overall vehicle system. An exemplary XML file code representation of the type System Configuration is provided as shown in fig. 2.
In a second specific embodiment, the second type of to-be-processed ARXML file is an ECU Extract, belongs to a subset of System Configuration, and describes information sent or received by a single ECU, and also includes SWC (Software Component ) and detailed information of the SWC, such as interface definition and port definition, etc., contained in the single ECU. The ECU Extract is consistent with the currently used communication matrix. An exemplary provided XML file code representation of the type of ECU Extract is shown in fig. 3.
In a third specific embodiment, the third type ARXML file to be processed is ECU Configuration, which belongs to the category of a single ECU and describes all information after configuration of SWC Description, ECU Extract, and BSW (Basic Software Layer, base software layer) modules, etc. An exemplary XML file code representation of the type ECU Configuration is provided as shown in fig. 4.
In a fourth specific embodiment, the fourth type to-be-processed ARXML file is SWC Description, describing all user-defined design information, including SWC definitions, definitions of running entities, interfaces, and port data types. An exemplary provided XML document code representation of the SWC Description type is shown in fig. 5.
In a fifth specific embodiment, the file to be processed ARXML of the fifth type is BSW Module Description, which belongs to standard module information, wherein the module information is related to code packages, and different suppliers may have differences, but all conform to the definition of the AUTOSAR standard. An exemplary XML file code representation of the type BSW Module Description is provided as shown in fig. 6.
Step S12: and carrying out logic verification on the to-be-processed ARXML file based on preset verification logic by utilizing a pre-constructed ARXML file analysis tool to determine incompatible problem points in the to-be-processed ARXML file.
In the embodiment of the application, a tool capable of automatically analyzing whether the format of the to-be-processed ARXML file accords with the current tool, namely, a ARXML file analysis tool is provided. Automatic modification is achieved for files which are not compatible with the current automobile open system architecture by utilizing ARXML file parsing tools, and modification can be achieved through tools by comparing difference points among a plurality of to-be-processed ARXML files. FIG. 7 is a schematic diagram of a tool interface for a ARXML file parsing tool.
It should be noted that, for unrecognizable characters generated when the file is designed to be input, the function of traversing the entire file after the input is adopted in the embodiment of the present application, and redundant invalid characters are cleared. Specifically, after the file to be processed ARXML is obtained, the method further includes: traversing the to-be-processed ARXML file to identify invalid characters in the to-be-processed ARXML file and clearing the invalid characters. An example of a code that clears unrecognizable characters or logos generated by the AUTOSAR input file at design time is shown in FIG. 8.
In the embodiment of the application, ARXML file parsing tools firstly parse the inputted ARXML file to be processed by using an XML parsing library. Specifically, the ARXML file parsing tool is used to parse the ARXML file to be processed by using an XML parsing library in Python. Common libraries include xml. Etre. Elementtree and lxml, as shown in fig. 9 as an example of code for both libraries.
After parsing ARXML the file using the XML parsing library in Python, check logic is written according to the ARXML specification and the needs of different users, which may include checking if the element is present, if the attribute meets the expected value, etc. Therefore, logic verification is performed on the file to be processed ARXML based on preset verification logic, and the corresponding scripts for each incompatibility problem are adopted to quickly locate the incompatibility problem point in the file to be processed ARXML.
Further, in order to ensure the correctness of the XML file, the schema validation is performed on the file to be processed ARXML. Specifically, the mode verification is performed on the file to be processed ARXML by using an extensible markup language architecture definition file corresponding to the specification of the automobile open system architecture. The extensible markup language architecture definition file, XSD (XML Schemas Definition) file, AUTOSAR typically provides XSD files corresponding to its specification, and pattern verification can be performed using the ete xmlschema class of lxml library. Fig. 10 shows an example of a code when pattern verification is performed.
Step S13: and aiming at the incompatible problem point, calling the ARXML file analysis tool to automatically execute a corresponding target script statement to modify the ARXML file to be processed, and exporting a target ARXML file obtained after modification.
In the embodiment of the application, errors possibly occurring in the verification process are processed, such as capturing anomalies and outputting corresponding information. That is, after the incompatible problem point in the file to be processed ARXML is rapidly located, the corresponding script statement is automatically executed for the incompatible problem point to modify the file to be processed ARXML. The modification process mainly comprises operations of replacement, deletion, addition and the like of the file to be processed ARXML.
Specifically, determining a target element to be operated in the to-be-processed ARXML file according to the incompatible problem point; and calling the ARXML file analysis tool to automatically execute a corresponding target script statement to replace, delete or add the target element, and exporting a target ARXML file after the corresponding operation is performed on the target element. Examples of operation codes corresponding to the input elements are included as shown in fig. 11 and 12, and substitution, deletion and addition operations can be performed on the elements of the file to be processed ARXML through this operation. An XML file modified after the corresponding operation is then exported, as shown in fig. 13 as an exemplary SDB XML file code schematic, i.e., object ARXML file format schematic.
It should be noted that at the end of the last execution, the obtained target ARXML file is checked for a problem by checking the data with CRC (Cyclic Redundancy Check ) and if not, the script of the corresponding solution is executed again. Specifically, checking the target ARXML file by using a checking mode of a cyclic redundancy check code to determine whether the target ARXML file has a problem of incompatibility with the automobile open system architecture; and if the target ARXML file has an incompatibility problem with the automobile open system architecture, re-triggering the step of logically checking the to-be-processed ARXML file based on preset checking logic by utilizing a pre-constructed ARXML file analysis tool to determine an incompatibility problem point in the to-be-processed ARXML file.
An overall flow diagram for handling an AUTOSAR input file incompatibility problem is shown in FIG. 14. The comparison, modification, integration and replacement, deletion and addition of corresponding elements can be performed by tools for different types ARXML.
The application provides a ARXML file processing method, which is applied to an automobile open system architecture and comprises the following steps: acquiring a to-be-processed ARXML file; carrying out logic verification on the to-be-processed ARXML file based on preset verification logic by utilizing a pre-constructed ARXML file analysis tool to determine incompatible problem points in the to-be-processed ARXML file; and aiming at the incompatible problem point, calling the ARXML file analysis tool to automatically execute a corresponding target script statement to modify the ARXML file to be processed, and exporting a target ARXML file obtained after modification. The beneficial technical effects of the application are as follows: according to the method, the device and the system, the logical verification can be carried out on XML files of different types in an automobile open system architecture through ARXML file analysis tools, and incompatible problem points in ARXML files to be processed can be rapidly located; and (3) automatically executing corresponding scripts for each incompatible problem point to modify the file to be processed ARXML, so that the problem of incompatibility of the input file of the automobile open system architecture when the input file is imported into each tool is fundamentally solved. Therefore, the propulsion efficiency of the development of the open system architecture of the automobile can be greatly improved, the development period is shortened, and a large amount of manpower and material resources are solved.
Correspondingly, the embodiment of the application also discloses a ARXML file processing device which is applied to an automobile open system architecture, and as shown in fig. 15, the device comprises:
The file acquisition module 11 is used for acquiring a file to be processed ARXML;
The problem point determining module 12 is configured to logically check the to-be-processed ARXML file based on a preset check logic by using a pre-built ARXML file parsing tool to determine an incompatible problem point in the to-be-processed ARXML file;
And the problem point processing module 13 is configured to call the ARXML file parsing tool to automatically execute a corresponding target script statement to modify the to-be-processed ARXML file according to the incompatible problem point, and export a target ARXML file obtained after modification.
The more specific working process of each module may refer to the corresponding content disclosed in the foregoing embodiment, and will not be described herein.
It can be seen that, by the above scheme of the present embodiment, the application to an automobile open system architecture includes: acquiring a to-be-processed ARXML file; carrying out logic verification on the to-be-processed ARXML file based on preset verification logic by utilizing a pre-constructed ARXML file analysis tool to determine incompatible problem points in the to-be-processed ARXML file; and aiming at the incompatible problem point, calling the ARXML file analysis tool to automatically execute a corresponding target script statement to modify the ARXML file to be processed, and exporting a target ARXML file obtained after modification. The beneficial technical effects of the application are as follows: according to the method, the device and the system, the logical verification can be carried out on XML files of different types in an automobile open system architecture through ARXML file analysis tools, and incompatible problem points in ARXML files to be processed can be rapidly located; and (3) automatically executing corresponding scripts for each incompatible problem point to modify the file to be processed ARXML, so that the problem of incompatibility of the input file of the automobile open system architecture when the input file is imported into each tool is fundamentally solved. Therefore, the propulsion efficiency of the development of the open system architecture of the automobile can be greatly improved, the development period is shortened, and a large amount of manpower and material resources are solved.
Further, the embodiment of the present application further discloses an electronic device, and fig. 16 is a block diagram of an electronic device 20 according to an exemplary embodiment, where the content of the figure is not to be considered as any limitation on the scope of use of the present application.
Fig. 16 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. The memory 22 is configured to store a computer program, where the computer program is loaded and executed by the processor 21 to implement relevant steps in the processing method of the ARXML file disclosed in any of the foregoing embodiments.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon may include an operating system 221, a computer program 222, data 223, and the like, and the data 223 may include various data. The storage means may be a temporary storage or a permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, netware, unix, linux, etc. The computer program 222 may further include a computer program capable of performing other specific tasks in addition to the computer program capable of performing the processing method of ARXML files executed by the electronic device 20 as disclosed in any of the foregoing embodiments.
Further, embodiments of the present application also disclose a computer readable storage medium, where the computer readable storage medium includes random access Memory (Random Access Memory, RAM), memory, read-Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, magnetic disk, or optical disk, or any other form of storage medium known in the art. Wherein the computer program when executed by the processor implements the processing method of the ARXML file. For specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
The steps of a processing method or algorithm of the ARXML document described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The processing method, device, equipment and medium of ARXML file provided by the present invention are described in detail, and specific examples are applied to illustrate the principle and implementation of the present invention, and the description of the above examples is only used to help understand the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (10)

1. A method for processing ARXML documents, which is applied to an automobile open system architecture, comprising:
Acquiring a to-be-processed ARXML file;
Carrying out logic verification on the to-be-processed ARXML file based on preset verification logic by utilizing a pre-constructed ARXML file analysis tool to determine incompatible problem points in the to-be-processed ARXML file;
and aiming at the incompatible problem point, calling the ARXML file analysis tool to automatically execute a corresponding target script statement to modify the ARXML file to be processed, and exporting a target ARXML file obtained after modification.
2. The method of claim 1, wherein the files to be processed ARXML include a first type of files to be processed ARXML for describing system configuration, a second type of files to be processed ARXML for describing configuration information of an electronic control unit of an automobile, a third type of files to be processed ARXML for describing configuration files of an electronic control unit of an automobile, a fourth type of files to be processed ARXML for describing configuration files of software components, and a fifth type of files to be processed ARXML for describing configuration files of a base software layer module.
3. The method of claim 1, wherein the step of using a pre-built ARXML file parsing tool to logically verify the to-be-processed ARXML file based on a pre-set verification logic to determine an incompatible problem point in the to-be-processed ARXML file further comprises:
And analyzing the ARXML file to be processed by using an XML analysis library in Python by using the ARXML file analysis tool.
4. The method of claim 1, wherein after performing a logical check on the to-be-processed ARXML file based on a preset check logic by using a pre-constructed ARXML file parsing tool to determine an incompatible problem point in the to-be-processed ARXML file, further comprising:
and performing mode verification on the to-be-processed ARXML file by using an extensible markup language architecture definition file corresponding to the specification of the automobile open system architecture.
5. The method for processing a ARXML file according to claim 1, wherein after the obtaining the ARXML file to be processed, further includes:
traversing the to-be-processed ARXML file to identify invalid characters in the to-be-processed ARXML file and clearing the invalid characters.
6. The method for processing the ARXML file according to claim 1, wherein for the incompatible problem point, invoking the ARXML file parsing tool to automatically execute a corresponding target script statement to modify the ARXML file to be processed and export a modified target ARXML file includes:
Determining target elements which need to be operated in the to-be-processed ARXML file aiming at the incompatible problem point;
And calling the ARXML file analysis tool to automatically execute a corresponding target script statement to replace, delete or add the target element, and exporting a target ARXML file after the corresponding operation is performed on the target element.
7. The method for processing a ARXML file according to any one of claims 1 to 6, wherein, after the step of calling the ARXML file parsing tool to automatically execute a corresponding target script statement to modify the ARXML file to be processed and export a modified target ARXML file, further includes:
checking the target ARXML file by using a cyclic redundancy check code checking mode to judge whether the target ARXML file has an incompatibility problem with the automobile open system architecture;
And if the target ARXML file has an incompatibility problem with the automobile open system architecture, re-triggering the step of logically checking the to-be-processed ARXML file based on preset checking logic by utilizing a pre-constructed ARXML file analysis tool to determine an incompatibility problem point in the to-be-processed ARXML file.
8. A ARXML file processing device, which is applied to an automobile open system architecture, and comprises:
the file acquisition module is used for acquiring a ARXML file to be processed;
The problem point determining module is used for logically checking the to-be-processed ARXML file based on preset checking logic by utilizing a pre-constructed ARXML file parsing tool so as to determine incompatible problem points in the to-be-processed ARXML file;
And the problem point processing module is used for calling the ARXML file analysis tool to automatically execute corresponding target script statements aiming at the incompatible problem points so as to modify the ARXML file to be processed and export a target ARXML file obtained after modification.
9. An electronic device comprising a processor and a memory; wherein the memory is for storing a computer program that is loaded and executed by the processor to implement the method of processing ARXML files as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program; wherein the computer program, when executed by a processor, implements a method of processing ARXML files as claimed in any one of claims 1 to 7.
CN202410095969.5A 2024-01-23 2024-01-23 ARXML file processing method, ARXML file processing device, ARXML file processing equipment and medium Pending CN117952069A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410095969.5A CN117952069A (en) 2024-01-23 2024-01-23 ARXML file processing method, ARXML file processing device, ARXML file processing equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410095969.5A CN117952069A (en) 2024-01-23 2024-01-23 ARXML file processing method, ARXML file processing device, ARXML file processing equipment and medium

Publications (1)

Publication Number Publication Date
CN117952069A true CN117952069A (en) 2024-04-30

Family

ID=90800812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410095969.5A Pending CN117952069A (en) 2024-01-23 2024-01-23 ARXML file processing method, ARXML file processing device, ARXML file processing equipment and medium

Country Status (1)

Country Link
CN (1) CN117952069A (en)

Similar Documents

Publication Publication Date Title
WO2012034440A1 (en) Method and device for generating database upgrading script
CN111930489B (en) Task scheduling method, device, equipment and storage medium
CN114691464A (en) Interface testing method, computer equipment and computer readable storage medium
CN104461531A (en) Implementing method for self-defined functions of reporting system
CN113901083B (en) Heterogeneous data source operation resource analysis positioning method and equipment based on multiple resolvers
CN115167831A (en) Software integration method and device based on AUTOSAR and use method
CN114138244A (en) Method and device for automatically generating model files, storage medium and electronic equipment
CN110543427A (en) Test case storage method and device, electronic equipment and storage medium
US20190212990A1 (en) Framework for generating adapters in an integrated development environment
CN115357289A (en) Register application information generation method and device, electronic equipment and storage medium
CN114091383A (en) Test sequence generation method, device and system and related equipment
CN116088846A (en) Processing method, related device and equipment for continuous integrated code format
CN113238739A (en) Plug-in development and data acquisition method, device, electronic equipment and medium
CN111444208B (en) Data updating method and related equipment
CN112230848A (en) NVM automatic configuration method, device and equipment
CN112948400A (en) Database management method, database management device and terminal equipment
US11977473B2 (en) Providing a pseudo language for manipulating complex variables of an orchestration flow
CN110688823A (en) XML file verification method and device
CN117952069A (en) ARXML file processing method, ARXML file processing device, ARXML file processing equipment and medium
KR101665962B1 (en) Method of verifying modeling code, apparatus performing the same and storage media storing the same
CN116521143B (en) DID read-write service processing method and device for fault diagnosis
CN117372182B (en) Insurance management system based on rapid development persistent layer code auxiliary method
US11550579B2 (en) Systems and methods for configurable ordered transformation of database content
CN112052012B (en) XSLT and XSD-based code automatic generation method and equipment
US7827480B2 (en) System and method of using a transactional unit comprised of transactional subunits

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