ARXML file processing method, device and system and storage medium

The ARXML file processing method simplifies ARXML files by parsing and constructing a data dictionary with relevant information, addressing the inefficiency in extracting useful data from ARXML files.

CN119106677APending Publication Date: 2024-12-10BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310686714.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-09
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

The processing of ARXML files is cumbersome due to their large volume of information, leading to significant time wastage for engineers in extracting relevant data, which hampers daily work efficiency.

Method used

An ARXML file processing method that parses the file into class data, extracts preset information excluding tag and path information, constructs a data dictionary with relevant information, and converts it into a readable format using a template engine.

Benefits of technology

Simplifies the content of ARXML files by eliminating unnecessary information, reducing reading difficulty and enhancing engineer efficiency in obtaining valid data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119106677A_ABST
    Figure CN119106677A_ABST
Patent Text Reader

Abstract

The invention discloses an ARXML file processing method, device and system and a storage medium. The method, device and system are used for rapidly extracting effective information in an ARXML file. The method comprises the steps that when an ARXML file to be analyzed is obtained, the ARXML file is analyzed into class data; the class data is analyzed to obtain preset information in the class data, and the preset information comprises other information, except label information and path information, in the ARXML file; and constructing a data dictionary containing the preset information. By adopting the scheme provided by the invention, the information without help in reading is eliminated, so that the content of the ARXML file is simplified, the reading difficulty of an engineer is reduced, and the acquisition efficiency of the engineer on effective information is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device, system and storage medium for processing ARXML files. Background Art

[0002] AUTOSAR is a set of standard protocols jointly established by major global automobile manufacturers, parts suppliers and automotive electronic software and hardware companies. It aims to improve the update and exchange of automotive electronic system software, and to more conveniently and effectively manage increasingly complex automotive electronic software systems.

[0003] ARXML files are common configuration files or database files under the AUTOSAR architecture, and play a critical role in data storage and data transmission. ARXML files are usually generated by tools such as Artop, DaVinCi developer, and MATLAB, which contain the functional requirements of each module of the ECU and the input-output relationship between each module, as well as the mapping of each system component to the ECU and the mapping relationship of signals. However, since ARXML files contain a lot of information, when engineers need to obtain some valid information in the ARXM file, directly reading ARXML will waste a lot of time for engineers to find valid information from the ARXML file, which has a great impact on the daily work of engineers.

[0004] Therefore, how to provide a method for processing ARXML files to simplify the contents in the ARXML files and reduce the reading difficulty for engineers has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] The present application provides an ARXML file processing method, device, system and storage medium, which are used to simplify the content of the ARXML file and reduce the reading difficulty for engineers.

[0006] This application provides a method for processing an ARXML file, including:

[0007] When an ARXML file to be parsed is obtained, the ARXML file is parsed into class data;

[0008] Parsing the class data to obtain preset information in the class data, wherein the preset information includes other information in the ARXML file except the tag information and the path information;

[0009] A data dictionary containing the preset information is constructed.

[0010] The beneficial effect of the present application is that when an ARXML file to be parsed is obtained, the ARXML file is parsed into class data; then, the class data is parsed to obtain preset information in the class data. Since the preset information does not contain tag information and path information that are not helpful for manual reading, the information that is not helpful for reading is eliminated, thereby simplifying the content of the ARXML file, reducing the reading difficulty for engineers, and improving the efficiency of engineers in obtaining effective information.

[0011] In one embodiment, parsing the ARXML file into class data includes:

[0012] Parse the ARXML file to obtain at least one of the following target attributes in the ARXML file:

[0013] Name, type, running entity, sending interface, receiving interface;

[0014] Generates class data containing all target attributes.

[0015] In one embodiment, parsing the class data to obtain preset information in the class data includes:

[0016] Acquire first target fields corresponding to respective target attributes from pre-configured corresponding relationship data, wherein the corresponding relationship data is used to record the corresponding relationship between the target attribute and the first target field, and the first target field is a field that must be included in the corresponding target attribute;

[0017] Matching the contents in the class data according to the first target fields respectively;

[0018] When a second target field identical to the first target field is matched in the class data, preset information in the paragraph where the second target field is located is acquired.

[0019] In one embodiment, the acquiring the preset information in the paragraph where the second target field is located includes:

[0020] Obtaining a preset parsing function, wherein the preset parsing function corresponds to the type of the preset information;

[0021] The preset parsing function is called to recursively process the content of the paragraph where the second target field is located to obtain the preset information of the target attribute.

[0022] In one embodiment, matching the content in the class data according to the first target field respectively includes:

[0023] Determining a target position of each target attribute in the class data, wherein a second target field identical to the first target field is stored at the target position;

[0024] The content of the target storage location is matched according to the first target field.

[0025] In one embodiment, the step of constructing a data dictionary containing the preset information includes:

[0026] Matching the titles of all preset information with the labels at various positions in the pre-established data structure respectively;

[0027] Filling the preset information of successful title matching into the position of the tag successfully matching the title in the pre-established data structure;

[0028] When all the preset information is filled, it is determined that the construction of the data dictionary containing the preset information is completed.

[0029] In one embodiment, the method further comprises:

[0030] In response to a triggering event of converting the data dictionary into code, obtaining a preset template engine corresponding to the operating environment;

[0031] The data dictionary is converted into an operating environment code through the preset template engine.

[0032] The present application also provides an ARXML file processing device, including:

[0033] A first parsing module, configured to parse an ARXML file to be parsed into class data when the ARXML file to be parsed is obtained;

[0034] A second parsing module is used to parse the class data to obtain preset information in the class data, where the preset information includes other information in the ARXML file except the tag information and the path information;

[0035] A construction module is used to construct a data dictionary containing the preset information.

[0036] In one embodiment, the first parsing module includes:

[0037] The parsing submodule is used to parse the ARXML file to obtain at least one of the following target attributes in the ARXML file:

[0038] Name, type, running entity, sending interface, receiving interface;

[0039] Generate submodule, used to generate class data containing all target attributes.

[0040] In one embodiment, the second parsing module includes:

[0041] A first acquisition submodule is used to respectively acquire first target fields corresponding to each target attribute from pre-configured corresponding relationship data, wherein the corresponding relationship data is used to record the corresponding relationship between the target attribute and the first target field, and the first target field is a field that must be included in the corresponding target attribute;

[0042] A first matching submodule, used for matching the content in the class data according to the first target field respectively;

[0043] The second acquisition submodule is used to acquire preset information in the paragraph where the second target field is located when a second target field identical to the first target field is matched in the class data.

[0044] In one embodiment, the second acquisition submodule is further used to:

[0045] Obtaining a preset parsing function, wherein the preset parsing function corresponds to the type of the preset information;

[0046] The preset parsing function is called to recursively process the content of the paragraph where the second target field is located to obtain the preset information of the target attribute.

[0047] In one embodiment, the matching submodule is further used for:

[0048] Determining a target position of each target attribute in the class data, wherein a second target field identical to the first target field is stored at the target position;

[0049] The content of the target storage location is matched according to the first target field.

[0050] In one embodiment, the building block comprises:

[0051] A second matching submodule is used to match the titles of all preset information with the labels at various positions in the pre-established data structure respectively;

[0052] A filling submodule, used to fill the preset information of successful title matching into the position of the tag successfully matching its title in the pre-established data structure;

[0053] The determination submodule is used to determine that the construction of the data dictionary containing the preset information is completed when all the preset information is filled.

[0054] In one embodiment, the apparatus further comprises:

[0055] A response module, configured to obtain a preset template engine corresponding to an operating environment in response to a triggering event of converting the data dictionary into code;

[0056] A conversion module is used to convert the data dictionary into an operating environment code through the preset template engine.

[0057] The present application also provides an ARXML file processing system, including:

[0058] at least one processor; and,

[0059] a memory communicatively connected to the at least one processor; wherein,

[0060] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to implement the ARXML file processing method recorded in any of the above embodiments.

[0061] The present application also provides a computer-readable storage medium. When the instructions in the storage medium are executed by a processor corresponding to the ARXML file processing system, the ARXML file processing system can implement the ARXML file processing method recorded in any of the above embodiments.

[0062] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings.

[0063] The technical solution of the present application is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] The accompanying drawings are used to provide a further understanding of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings:

[0065] Figure 1 This is a flowchart of a method for processing an ARXML file in one embodiment of the present application;

[0066] Figure 2 This is a schematic diagram of the data structure corresponding to the ARXML file in one embodiment of the present application;

[0067] Figure 3 This is a flowchart of a method for processing an ARXML file in another embodiment of the present application;

[0068] Figure 4This is a structural diagram corresponding to the data structure of the data dictionary in one embodiment of the present application;

[0069] Figure 5 This is a block diagram of a device for processing an ARXML file in an embodiment of the present application;

[0070] Figure 6 This is a schematic diagram of the hardware structure of an ARXML file processing system in one embodiment of the present application. DETAILED DESCRIPTION

[0071] The preferred embodiments of the present application are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application and are not used to limit the present application.

[0072] Figure 1 FIG. 1 is a flowchart of a method for processing an ARXML file in one embodiment of the present application. Figure 1 As shown, the method can be implemented as the following steps S101-S103:

[0073] In step S101, when an ARXML file to be parsed is obtained, the ARXML file is parsed into class data;

[0074] In step S102, the class data is parsed to obtain preset information in the class data, where the preset information includes other information in the ARXML file except tag information and path information;

[0075] In step S103, a data dictionary including the preset information is constructed.

[0076] In this application, when an ARXML file to be parsed is obtained, the ARXML file is parsed into class data; specifically, Figure 2 This is a schematic diagram of the data structure corresponding to the ARXML file, such as Figure 2 As shown, the ARXML file can contain module information, data type information, implementation data, interface information, etc.

[0077] Among them, the module information mainly includes two parts: interface information and behavior information;

[0078] Interface information includes sending interface information and receiving interface information, which specifically includes the port name, type, initial value, associated data elements, interface and other information.

[0079] The behavior information includes event information and running entity information, wherein the event information includes the type of event triggering; the running entity includes the name of the executable interface, the associated port and other information.

[0080] The data type information includes common data types and complex data types such as arrays and structures. It also includes sub-packages such as basic data package, calculation formula package, data structure, and implementation data, which are used to store basic data, calculation formula, data upper and lower limit constraints, and implementation data respectively.

[0081] When parsing the ARXML file into class data, the ARXML file is parsed to obtain at least one of the following target attributes in the ARXML file: name, type, running entity, sending interface, and receiving interface; and then class data including the above target attributes in the ARXML file is generated.

[0082] The class data is parsed to obtain preset information in the class data, wherein the preset information includes other information in the ARXML file except the tag information and the path information; specifically, since the format of the ARXML file is specified in the computer, which is similar to the conventional XML file, for example, it is specified that the ARXML file must have a start tag and an end tag, and the start tag and the end tag are used to assist the computer to identify the type of the element in the tag. Therefore, in the description language of the ARXML file, in order to assist the computer and other devices to identify and run the ARXML file, a lot of tag information is usually set, and the path information of various types of information is set in the basic information. Therefore, the amount of data is very large, that is, in ARXML, the amount of data is very large. In the description language of the RXML file, most of the information is used to assist the computer to identify and run the ARXML file, and there is not much really useful information. It is not difficult to understand that a lot of tag information is not helpful for reading, and the setting of the path information is also based on the consideration that the ARXML file has a lot of content, so the path information is set, but such a design can only turn the information to the corresponding position through the path information, but no matter the path information or the position corresponding to the path information, there are still too many tags that interfere with reading, and considering that after removing the tags in the ARXML file, the length of the ARXML file will be greatly reduced, there is no need to use the path information for positioning, therefore, the preset information may not include the path information in the ARXML file.

[0083] When parsing class data, the first target field corresponding to each target attribute can be obtained from the pre-configured correspondence data, wherein the correspondence data is used to record the correspondence between the target attribute and the first target field, and the first target field is a field that must be included in the corresponding target attribute; the content in the class data is matched according to the first target field; when the second target field that is the same as the first target field is matched in the class data, a preset parsing function is obtained, wherein the preset parsing function corresponds to the type of the preset information; the preset parsing function is called to recursively process the content of the paragraph where the second target field is located to obtain the preset information of the target attribute. Taking the target attribute as a sending interface as an example, the first target field corresponding to the sending interface is "P-PORT-PROTOTYPE". In the class data, the paragraph containing the first target field usually contains the information of the sending interface. Therefore, the content in the class data can be matched through the first target field. When the second target field that is the same as the first target field is matched in the class data, the parsing function corresponding to the preset information is obtained. For example, the preset information includes the name information of the sending interface, the type information of the sending interface, and the module information corresponding to the sending interface. Then, it is necessary to call the name parsing function, the type parsing function and the module parsing function to recursively process the content of the paragraph where the second target field is located to obtain the name information of the sending interface, the type information of the sending interface and the module information corresponding to the sending interface. In other words, the name information of the sending interface, the type information of the sending interface and the module information corresponding to the sending interface are the preset information of the target attribute to be obtained.

[0084] When matching the contents in the class data according to the first target field respectively, it is necessary to first determine the target position of each target attribute in the class data, wherein the second target field identical to the first target field is stored at the target position; and the contents of the target storage position are matched according to the first target field. Still using the above example, that is, taking the target attribute being the sending interface as an example, the sending interface information and the receiving interface information are both stored in the interface information, therefore, the target storage position of the target attribute of the sending interface in the class data is the storage position where the interface information is located, that is, the storage position where the interface information is located can be determined first, and then the contents of the storage position where the interface information is located can be matched according to the first target field.

[0085] Construct a data dictionary containing the preset information. Specifically, obtain a pre-established data structure; fill the preset information into the corresponding position in the pre-established data structure to generate a data dictionary containing the preset information. Further, match the titles of all preset information with the labels at various positions in the pre-established data structure respectively; fill the preset information with successfully matched titles into the position of the label with successfully matched titles in the pre-established data structure; when all preset information is filled, determine that the construction of the data dictionary containing the preset information is completed. Wherein, Figure 4 This is a structural diagram corresponding to the data structure of the data dictionary. When engineers view ARXML files, they usually need running entity information, sending interface information, and receiving interface information, so as to manage and develop the automotive system software in the automotive development process through running entity information, sending interface information, and receiving interface information. In other words, the main focus of engineers on the information in ARXML files is on the three items of information: running entity information, sending interface information, and receiving interface information. Therefore, in this application, when constructing the data dictionary, the three items of information, namely, running entity information, sending interface information, and receiving interface information, are displayed as the core content of the data dictionary, so as to facilitate engineers to read.

[0086] In the present application, the data dictionary can also be converted into other formats, or converted into code. For example, the data dictionary can be converted into a lightweight data exchange format. When converting to code, a preset template engine corresponding to the operating environment is obtained. The preset template engine can convert the data dictionary into various text formats based on the template. For example, the preset template engine can be jinja2; the data dictionary is converted into the operating environment code through the preset template engine.

[0087] The beneficial effects of the present application are as follows: when an ARXML file to be parsed is obtained, the ARXML file is parsed into class data; then, the class data is parsed to obtain preset information in the class data. Since the preset information only contains other information in the ARXML file except tag information and path information, only valid information is retained and unnecessary information is eliminated, thereby improving the efficiency of extracting valid information; finally, the valid information is sorted and a data dictionary containing the preset information is constructed, thereby further improving the efficiency of obtaining valid information.

[0088] In one embodiment, the above step S101 may be implemented as the following steps A1-A2:

[0089] In step A1, the ARXML file is parsed to obtain at least one of the following target attributes in the ARXML file:

[0090] Name, type, running entity, sending interface, receiving interface;

[0091] In step A2, class data containing all target attributes is generated.

[0092] In one embodiment, Figure 3 As shown, the above step S102 can be implemented as the following steps S301-S303:

[0093] In step S301, first target fields corresponding to respective target attributes are respectively obtained from pre-configured corresponding relationship data, wherein the corresponding relationship data is used to record the corresponding relationship between the target attribute and the first target field, and the first target field is a field necessarily included in the corresponding target attribute;

[0094] In step S302, the content in the class data is matched according to the first target field respectively;

[0095] In step S303, when a second target field identical to the first target field is matched in the class data, preset information in the paragraph where the second target field is located is obtained.

[0096] When parsing class data, the first target field corresponding to each target attribute can be obtained from the pre-configured correspondence data, wherein the correspondence data is used to record the correspondence between the target attribute and the first target field, and the first target field is a field that must be included in the corresponding target attribute; the content in the class data is matched according to the first target field; when the second target field that is the same as the first target field is matched in the class data, a preset parsing function is obtained, wherein the preset parsing function corresponds to the type of the preset information; the preset parsing function is called to recursively process the content of the paragraph where the second target field is located to obtain the preset information of the target attribute. Taking the target attribute as a sending interface as an example, the first target field corresponding to the sending interface is "P-PORT-PROTOTYPE". In the class data, the paragraph containing the first target field usually contains the information of the sending interface. Therefore, the content in the class data can be matched through the first target field. When the second target field that is the same as the first target field is matched in the class data, the parsing function corresponding to the preset information is obtained. For example, the preset information includes the name information of the sending interface, the type information of the sending interface, and the module information corresponding to the sending interface. Then, it is necessary to call the name parsing function, the type parsing function and the module parsing function to recursively process the content of the paragraph where the second target field is located to obtain the name information of the sending interface, the type information of the sending interface and the module information corresponding to the sending interface. In other words, the name information of the sending interface, the type information of the sending interface and the module information corresponding to the sending interface are the preset information of the target attribute to be obtained.

[0097] In one embodiment, the above step S302 may be implemented as the following steps B1-B2:

[0098] In step B1, a target position of each target attribute in the class data is determined, wherein a second target field identical to the first target field is stored at the target position;

[0099] In step B2, the content of the target storage location is matched according to the first target field.

[0100] In this embodiment, when matching the contents in the class data according to the first target field respectively, it is necessary to first determine the target position of each target attribute in the class data, wherein the second target field identical to the first target field is stored at the target position; and the contents of the target storage position are matched according to the first target field. Still using the above example, that is, taking the target attribute being the sending interface as an example, the sending interface information and the receiving interface information are both stored in the interface information, therefore, the target storage position of the target attribute of the sending interface in the class data is the storage position where the interface information is located, that is, the storage position where the interface information is located can be determined first, and then the contents of the storage position where the interface information is located can be matched according to the first target field.

[0101] In one embodiment, the above step S303 may be implemented as the following steps C1-C2:

[0102] In step C1, a preset parsing function is obtained, wherein the preset parsing function corresponds to the type of the preset information;

[0103] In step C2, a preset parsing function is called to recursively process the content of the paragraph where the second target field is located, so as to obtain preset information of the target attribute.

[0104] In one embodiment, the above step S103 can be implemented as the following steps D1-D2:

[0105] In step D1, a pre-established data structure is obtained;

[0106] In step D2, the preset information is filled into the corresponding position in the pre-established data structure to generate a data dictionary containing the preset information.

[0107] When engineers view ARXML files, they usually need running entity information, sending interface information, and receiving interface information, so as to manage and develop the automotive system software in the automotive development process through running entity information, sending interface information, and receiving interface information. In other words, the main focus of engineers on the information in ARXML files is on the three items of information: running entity information, sending interface information, and receiving interface information. Therefore, if Figure 4 As shown, in this embodiment, when constructing a data dictionary, the three items of information, namely, the running entity information, the sending interface information, and the receiving interface information, can be displayed as the core content in the data dictionary, thereby facilitating the reading of engineers.

[0108] In one embodiment, the above step S103 can also be implemented as the following steps D3-D5:

[0109] In step D3, the titles of all preset information are matched with the tags at various positions in the pre-established data structure respectively;

[0110] In step D4, the preset information of successful title matching is filled into the position of the tag successfully matching its title in the pre-established data structure;

[0111] In step D5, when all the preset information is filled, it is determined that the construction of the data dictionary containing the preset information is completed.

[0112] In one embodiment, the method can also be implemented as the following steps E1-E2:

[0113] In step E1, in response to a triggering event of converting the data dictionary into code, a preset template engine corresponding to the operating environment is obtained;

[0114] In step E2, the data dictionary is converted into operating environment code through the preset template engine.

[0115] In this embodiment, in response to a trigger event for converting the data dictionary into code, a preset template engine corresponding to the operating environment is obtained, and the preset template engine can convert the data dictionary into various text formats based on the template. For example, the preset template engine can be jinja2; the data dictionary is converted into the operating environment code through the preset template engine

[0116] Figure 5 FIG. 1 is a block diagram of an ARXML file processing device according to an embodiment of the present application. Figure 5 As shown, the device comprises:

[0117] The first parsing module 501 is used to parse the ARXML file into class data when the ARXML file to be parsed is obtained;

[0118] A second parsing module 502 is used to parse the class data to obtain preset information in the class data, where the preset information includes other information in the ARXML file except the tag information and the path information;

[0119] The construction module 503 is used to construct a data dictionary containing the preset information.

[0120] In one embodiment, the first parsing module includes:

[0121] The parsing submodule is used to parse the ARXML file to obtain at least one of the following target attributes in the ARXML file:

[0122] Name, type, running entity, sending interface, receiving interface;

[0123] Generate submodule, used to generate class data containing all target attributes.

[0124] In one embodiment, the second parsing module includes:

[0125] A first acquisition submodule is used to respectively acquire first target fields corresponding to each target attribute from pre-configured corresponding relationship data, wherein the corresponding relationship data is used to record the corresponding relationship between the target attribute and the first target field, and the first target field is a field that must be included in the corresponding target attribute;

[0126] A first matching submodule, used for matching the content in the class data according to the first target field respectively;

[0127] The second acquisition submodule is used to acquire preset information in the paragraph where the second target field is located when a second target field identical to the first target field is matched in the class data.

[0128] In one embodiment, the second acquisition submodule is further used to:

[0129] Obtaining a preset parsing function, wherein the preset parsing function corresponds to the type of the preset information;

[0130] The preset parsing function is called to recursively process the content of the paragraph where the second target field is located to obtain the preset information of the target attribute.

[0131] In one embodiment, the matching submodule is further used for:

[0132] Determining target positions of the respective target attributes in the class data;

[0133] The content of the target storage location is matched according to the first target field.

[0134] In one embodiment, the building block comprises:

[0135] A third acquisition submodule is used to acquire a pre-established data structure;

[0136] The filling submodule is used to fill the preset information into the corresponding position in the pre-established data structure to generate a data dictionary containing the preset information.

[0137] In one embodiment, the building block further includes:

[0138] A second matching submodule is used to match the titles of all preset information with the labels at various positions in the pre-established data structure respectively;

[0139] The filling submodule is further used to fill the preset information of successful title matching into the position of the label successfully matching its title in the pre-established data structure;

[0140] The determination submodule is used to determine that the construction of the data dictionary containing the preset information is completed when all the preset information is filled.

[0141] In one embodiment, the apparatus further comprises:

[0142] A response module, configured to obtain a preset template engine corresponding to an operating environment in response to a triggering event of converting the data dictionary into code;

[0143] A conversion module is used to convert the data dictionary into an operating environment code through the preset template engine.

[0144] Figure 6 FIG. 1 is a schematic diagram of the hardware structure of an ARXML file processing system in one embodiment of the present application. Figure 6 As shown, the ARXML file processing system includes:

[0145] at least one processor 620; and,

[0146] A memory 604 in communication with the at least one processor 620; wherein,

[0147] The memory 604 stores instructions that can be executed by the at least one processor 620, and the instructions are executed by the at least one processor 620 to implement the ARXML file processing method described in any of the above embodiments.

[0148] Reference Figure 6 , the ARXML file processing system 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .

[0149] The processing component 602 generally controls the overall operation of the processing system 600 for ARXML files. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.

[0150] The memory 604 is configured to store various types of data to support the operation of the ARXML document processing system 600. Examples of such data include instructions for any application or method operating on the ARXML document processing system 600, such as text, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0151] The power component 606 provides power to various components of the ARXML file processing system 600. The power component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the ARXML file processing system 600.

[0152] The multimedia component 608 includes a screen that provides an output interface between the processing system 600 of the ARXML file and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 may also include a front camera and / or a rear camera. When the processing system 600 of the ARXML file is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0153] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the processing system 600 of the ARXML file is in an operation mode, such as an alarm mode, a recording mode, a speech recognition mode, and a speech output mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.

[0154] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0155] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the ARXML file processing system 600. For example, the sensor assembly 614 may include a sound sensor. In addition, the sensor assembly 614 may detect the open / closed state of the ARXML file processing system 600, the relative positioning of components, such as the display and keypad of the ARXML file processing system 600, and the sensor assembly 614 may also detect the operating state of the ARXML file processing system 600 or a component of the ARXML file processing system 600, such as the operating state of the air distribution plate, the structural state, the operating state of the discharge scraper, etc., the orientation or acceleration / deceleration of the ARXML file processing system 600 and the temperature change of the ARXML file processing system 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, a material stacking thickness sensor, or a temperature sensor.

[0156] The communication component 616 is configured to enable the ARXML file processing system 600 to provide the ability to communicate with other devices and cloud platforms in a wired or wireless manner. The ARXML file processing system 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0157] In an exemplary embodiment, the ARXML file processing system 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the ARXML file processing method described in any of the above embodiments.

[0158] The present application also provides a computer-readable storage medium. When the instructions in the storage medium are executed by a processor corresponding to the ARXML file processing system, the ARXML file processing system can implement the ARXML file processing method recorded in any of the above embodiments.

[0159] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.

[0160] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0161] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0162] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0163] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for processing an ARXML file, characterized in that: include: When an ARXML file to be parsed is obtained, the ARXML file is parsed into class data; Parsing the class data to obtain preset information in the class data, wherein the preset information includes other information in the ARXML file except the tag information and the path information; A data dictionary containing the preset information is constructed.

2. The method according to claim 1, characterized in that The step of parsing the ARXML file into class data includes: Parse the ARXML file to obtain at least one of the following target attributes in the ARXML file: Name, type, running entity, sending interface, receiving interface; Generates class data containing all target attributes.

3. The method according to claim 2, characterized in that The parsing of the class data to obtain preset information in the class data includes: Acquire first target fields corresponding to respective target attributes from pre-configured corresponding relationship data, wherein the corresponding relationship data is used to record the corresponding relationship between the target attribute and the first target field, and the first target field is a field that must be included in the corresponding target attribute; Matching the contents in the class data according to the first target fields respectively; When a second target field identical to the first target field is matched in the class data, preset information in the paragraph where the second target field is located is obtained.

4. The method according to claim 3, characterized in that The acquiring the preset information in the paragraph where the second target field is located includes: Obtaining a preset parsing function, wherein the preset parsing function corresponds to the type of the preset information; The preset parsing function is called to recursively process the content of the paragraph where the second target field is located to obtain the preset information of the target attribute.

5. The method according to claim 3, characterized in that The matching the contents in the class data according to the first target field respectively includes: Determining a target position of each target attribute in the class data, wherein the target position stores a second target field that is the same as the first target field; The content of the target location is matched according to the first target field.

6. The method according to claim 1, characterized in that The step of constructing a data dictionary containing the preset information includes: Matching the titles of all preset information with the labels at various positions in the pre-established data structure respectively; Filling the preset information of successful title matching into the position of the tag successfully matching the title in the pre-established data structure; When all the preset information is filled, it is determined that the construction of the data dictionary containing the preset information is completed.

7. The method according to claim 1, characterized in that The method further comprises: In response to a triggering event of converting the data dictionary into code, obtaining a preset template engine corresponding to the operating environment; The data dictionary is converted into an operating environment code through the preset template engine.

8. A device for processing ARXML files, characterized in that: include: A first parsing module, configured to parse an ARXML file to be parsed into class data when the ARXML file to be parsed is obtained; A second parsing module is used to parse the class data to obtain preset information in the class data, where the preset information includes other information in the ARXML file except the tag information and the path information; A construction module is used to construct a data dictionary containing the preset information.

9. A processing system for ARXML files, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to implement the ARXML file processing method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor corresponding to the ARXML file processing system, the ARXML file processing system can implement the ARXML file processing method according to any one of claims 1 to 7.