Application program starting method and device, terminal and storage medium
By encapsulating non-AUTOSAR AP platform applications and configuring the MANIFEST.json file of the AUTOSAR AP platform, the problem of non-AUTOSAR AP platform application startup is solved, an efficient startup process is achieved, and direct modification of the application is avoided.
Patent Information
- Application Number
- CN202410687173.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-17
AI Technical Summary
The existing technology fails to effectively solve the problem of starting non-AUTOSAR AP platform applications, especially the lack of methods for EM to start non-AUTOSAR AP platform applications.
By establishing a packaging application, encapsulate the application of the non-AUTOSAR AP platform into the application of the AUTOSAR AP platform, and configure the MANIFEST.json file of the AUTOSAR AP platform for it, use EM to start the packaging application, and send parameter information to start the non-AUTOSAR AP platform applications.
It avoids modification of non-AUTOSAR AP platform applications, saves manpower and time, and improves its startup efficiency.
Smart Images

Figure CN118656143A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an application startup method, device, terminal and storage medium. Background Art
[0002] With the rapid development of automobile intelligence, the AP (Adaptive Platform) in the AUTOSAR (Automotive Open System Architecture) standard has been widely used in autonomous driving software. The EM (Execution Management) module is part of the AP platform in AUTOSAR and its main function is to start the application in the AP platform.
[0003] Currently, after EM starts an application on the AP platform, the application on the AP platform will report the running status to EM to indicate that the application is started normally. If the application does not report the running status within a certain period of time, EM will consider the application to be in an abnormal state and kill it. However, in a system, not all applications are AUTOSARAP platform applications, and applications on non-AUTOSARAP platforms will not report the running status to EM after they are started.
[0004] Currently, no method has been proposed to launch applications for non-AUTOSARAP platforms via EM. Summary of the invention
[0005] The main purpose of the present application is to provide an application startup method, device, terminal and storage medium to solve the problem of starting non-AUTOSARAP platform applications through EM.
[0006] In order to achieve the above objectives, in a first aspect, the present application provides an application startup method, comprising:
[0007] Establishing a wrapper application, wherein the wrapper application wraps an application of a non-AUTOSAR AP platform;
[0008] The MANIFEST.json file of the application that configures the AUTOSAR AP platform for the wrapper application;
[0009] Start the wrapper application through EM and send the parameter information in the MANIFEST.json file to the wrapper application to start the non-AUTOSAR AP platform application through the wrapper application.
[0010] In one possible implementation, a packaging application is created, including:
[0011] Get applications for non-AUTOSAR AP platforms;
[0012] The non-AUTOSAR AP platform application is packaged by using the packaging class to obtain a packaged application.
[0013] In one possible implementation, the MANIFEST.json file of the application for the AUTOSAR AP platform is configured for the packaging application, including:
[0014] Get the MANIFEST.json file that matches the application of the AUTOSAR AP platform;
[0015] Use the MANIFEST.json file that matches the application of the AUTOSAR AP platform as the MANIFEST.json file of the wrapper application.
[0016] In one possible implementation, the MANIFEST.json file of the application for the AUTOSAR AP platform is configured for the packaging application, including:
[0017] Get all configuration files of the application of the AUTOSAR AP platform and filter out the MANIFEST.json file from all configuration files;
[0018] If the application of the AUTOSAR AP platform matches the MANIFEST.json file, obtain the corresponding identifier of the packaged application;
[0019] If a keyword of a MANIFEST.json file matching an application of the AUTOSAR AP platform exists in the identifier corresponding to the packaged application, the MANIFEST.json file matching the application of the AUTOSAR AP platform is used as the MANIFEST.json file of the packaged application.
[0020] In one possible implementation, a non-AUTOSAR AP platform application is started by a wrapper application, including:
[0021] Parsing the parameter information in the MANIFEST.json file by packaging the application to obtain a first parameter and a second parameter, wherein the first parameter is used to represent the full path of the application of the non-AUTOSAR AP platform, and the second parameter is used to represent all parameters in the parameter information in the MANIFEST.json file except the first parameter;
[0022] Report the operation status to EM through the packaging application;
[0023] An application program of the non-AUTOSAR AP platform is started based on the first parameter, and a second parameter is sent to the application program of the non-AUTOSAR AP platform.
[0024] In one possible implementation, a non-AUTOSAR AP platform application is started by a wrapper application, including:
[0025] Create a software cluster corresponding to the packaged application through the functional components in the configuration tool;
[0026] Generate software packages for packaging applications in a software cluster;
[0027] Start the non-AUTOSAR AP platform application by the full path of the non-AUTOSAR AP platform application in the software package.
[0028] In a possible implementation, after configuring the MANIFEST.json file of the application of the AUTOSAR AP platform for the packaging application, it also includes:
[0029] The MANIFEST.json file is read and parsed by EM to obtain the parameter information in the MANIFEST.json file.
[0030] In a second aspect, an embodiment of the present invention provides an application startup device, including:
[0031] A building module, used for building a packaging application, wherein the packaging application packages an application of a non-AUTOSAR AP platform;
[0032] Configuration module, used to configure the MANIFEST.json file of the application for the AUTOSAR AP platform for the wrapper application;
[0033] The startup module is used to start the packaging application through the EM and send the parameter information in the MANIFEST.json file to the packaging application to start the application of the non-AUTOSAR AP platform through the packaging application.
[0034] In a third aspect, an embodiment of the present invention provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above application startup methods when executing the computer program.
[0035] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of any of the above application startup methods are implemented.
[0036] The embodiment of the present invention provides an application startup method, device, terminal and storage medium, including: first establishing a packaging application, wherein the packaging application packages an application of a non-AUTOSAR AP platform, then configuring the packaging application with a MANIFEST.json file of the application of the AUTOSAR AP platform, then starting the packaging application through EM, and sending parameter information in the MANIFEST.json file to the packaging application, so as to start the application of the non-AUTOSAR AP platform through the packaging application. The present invention encapsulates the application of the non-AUTOSAR AP platform into a packaging application, and configures the MANIFEST.json file of the application of the AUTOSAR AP platform for the packaging application, so as to start the application of the non-AUTOSAR AP platform based on the parameter information in the MANIFEST.json file, thereby avoiding modifying the application of the non-AUTOSAR AP platform, saving manpower and time, and improving the startup efficiency of the application of the non-AUTOSAR AP platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The drawings constituting a part of this application are used to provide a further understanding of this application, so that other features, purposes and advantages of this application become more obvious. The schematic embodiment drawings and their descriptions of this application are used to explain this application and do not constitute an improper limitation on this application. In the drawings:
[0038] Figure 1 is a flow chart of an implementation method of an application startup method provided by an embodiment of the present invention;
[0039] Figure 2 It is a structural schematic diagram of an application startup device provided by an embodiment of the present invention;
[0040] Figure 3 is a schematic diagram of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein.
[0043] It should be understood that in various embodiments of the present invention, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0044] It should be understood that in the present invention, "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatuses.
[0045] It should be understood that in the present invention, "plurality" refers to two or more than two. "And / or" is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "Contains A, B and C", "Contains A, B, C" means that A, B, and C are all included, "Contains A, B or C" means that one of A, B, and C is included, and "Contains A, B and / or C" means that any one, any two, or any three of A, B, and C are included.
[0046] It should be understood that in the present invention, "B corresponding to A", "B corresponding to A", "A corresponds to B" or "B corresponds to A" means that B is associated with A and B can be determined based on A. Determining B based on A does not mean determining B based only on A, but B can also be determined based on A and / or other information. A and B match when the similarity between A and B is greater than or equal to a preset threshold.
[0047] Depending on the context, "if" as used herein may be interpreted as "when" or "when" or "in response to determining" or "in response to detecting."
[0048] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0049] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.
[0050] In one embodiment, Figure 1 As shown, a method for starting an application is provided, comprising the following steps:
[0051] Step S101: Create a packaging application.
[0052] The packaged application contains an application of a non-AUTOSAR AP platform.
[0053] To establish a packaged application, it is necessary to first obtain an application of a non-AUTOSAR AP platform, and then package the application of the non-AUTOSAR AP platform through a wrapper class to obtain a packaged application. The wrapper class is preferably Wrapper.
[0054] For example, an application program of a non-AUTOSAR AP platform is application program A, and then application program A is packaged by a wrapper class Wrapper to obtain a packaged application program B, also called a packaged application program.
[0055] Step S102: configuring the MANIFEST.json file of the application of the AUTOSAR AP platform for the packaging application.
[0056] In one embodiment, to configure the MANIFEST.json file of the AUTOSAR AP platform application for the packaging application, it is necessary to first obtain the MANIFEST.json file matching the AUTOSAR AP platform application, and then use the MANIFEST.json file matching the AUTOSAR AP platform application as the MANIFEST.json file of the packaging application.
[0057] In another embodiment, to configure the MANIFEST.json file of the application of the AUTOSAR AP platform for the packaging application, it is necessary to first obtain all configuration files of the application of the AUTOSAR AP platform, and filter out the MANIFEST.json file from all the configuration files. If the application of the AUTOSAR AP platform matches the MANIFEST.json file, obtain an identifier corresponding to the packaging application. If the identifier corresponding to the packaging application contains a keyword of the MANIFEST.json file that matches the application of the AUTOSAR AP platform, use the MANIFEST.json file that matches the application of the AUTOSAR AP platform as the MANIFEST.json file of the packaging application.
[0058] Specifically, the application of the AUTOSAR AP platform is configured with multiple configuration files, such as component configuration files, MANIFEST.json files, etc., and the MANIFEST.json file can be selected from these configuration files. Afterwards, it is identified whether the application of the AUTOSAR AP platform matches the MANIFEST.json file. If the application of the AUTOSAR AP platform matches the MANIFEST.json file, the corresponding identifier of the packaged application can be directly obtained, and this identifier can be represented by at least one of text, letters, numbers, etc.
[0059] For example, the identifier corresponding to the packaged application is IFES-22A, and the keyword of the MANIFEST.json file that matches the application of the AUTOSAR AP platform is IFES. It can be seen that the identifier corresponding to the packaged application is IFES-22A, and the keyword IFES exists in the MANIFEST.json file that matches the application of the AUTOSAR AP platform can be used as the MANIFEST.json file of the packaged application.
[0060] After configuring the MANIFEST.json file of the AUTOSAR AP platform application for the packaging application, the MANIFEST.json file needs to be read and parsed by EM to obtain the parameter information in the MANIFEST.json file.
[0061] The parameter information in the MANIFEST.json file includes a first parameter and a second parameter, wherein the first parameter is used to characterize the full path of the application of the non-AUTOSAR AP platform, and the second parameter is used to characterize all parameters in the parameter information in the MANIFEST.json file except the first parameter.
[0062] Step S103: Start the packaged application through the EM, and send the parameter information in the MANIFEST.json file to the packaged application, so as to start the application of the non-AUTOSAR AP platform through the packaged application.
[0063] In one embodiment, when starting an application on a non-AUTOSAR AP platform through a packaging application, the packaging application first needs to parse parameter information in the MANIFEST.json file to obtain a first parameter and a second parameter, then report the running status to the EM through the packaging application, start the application on the non-AUTOSAR AP platform based on the first parameter, and send the second parameter to the application on the non-AUTOSAR AP platform.
[0064] In another embodiment, to start an application on a non-AUTOSAR AP platform through a packaged application, it is necessary to first create a software cluster corresponding to the packaged application through functional components in a configuration tool, then generate a software package for the packaged application in the software cluster, and then start the application on the non-AUTOSAR AP platform through the full path of the application on the non-AUTOSAR AP platform in the software package.
[0065] Specifically, the required functional components can be selected from the various functional components in the configuration tool, and then the selected functional components are combined to form a software cluster for packaging the application, wherein the software cluster can be formed based on any combination of functional components. After the software cluster is obtained, the various software in the software cluster can be combined and packaged in any way to form a software package, wherein the formed software package contains the full path of the application of the non-AUTOSAR AP platform, such as / usr / bin / dlt-daemon. Afterwards, the application of the non-AUTOSAR AP platform can be started through this path.
[0066] An embodiment of the present invention provides an application startup method, comprising: first establishing a packaging application, wherein the packaging application packages an application of a non-AUTOSAR AP platform, then configuring a MANIFEST.json file of an application of the AUTOSAR AP platform for the packaging application, then starting the packaging application through EM, and sending parameter information in the MANIFEST.json file to the packaging application, so as to start the application of the non-AUTOSAR AP platform through the packaging application. The present invention encapsulates the application of the non-AUTOSAR AP platform into a packaging application, and configures the MANIFEST.json file of the application of the AUTOSAR AP platform for the packaging application, so as to start the application of the non-AUTOSAR AP platform based on the parameter information in the MANIFEST.json file, thereby avoiding modifying the application of the non-AUTOSAR AP platform, saving manpower and time, and improving the startup efficiency of the application of the non-AUTOSAR AP platform.
[0067] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0068] The following is an embodiment of the device of the present invention. For details not described in detail, reference may be made to the corresponding method embodiments described above.
[0069] Figure 2 The schematic diagram of the structure of an application startup device provided by an embodiment of the present invention is shown. For the convenience of description, only the part related to the embodiment of the present invention is shown. The application startup device includes a building module 201, a configuration module 202 and a startup module 203, which are as follows:
[0070] An establishing module 201 is used to establish a packaged application, wherein the packaged application packages an application of a non-AUTOSARAP platform;
[0071] A configuration module 202, configured to configure a MANIFEST.json file of an application of the AUTOSAR AP platform for packaging the application;
[0072] The starting module 203 is used to start the packaged application through the EM and send the parameter information in the MANIFEST.json file to the packaged application, so as to start the application of the non-AUTOSAR AP platform through the packaged application.
[0073] In a possible implementation, the establishing module 201 is further used to obtain an application program of a non-AUTOSAR AP platform;
[0074] The non-AUTOSAR AP platform application is packaged by using the packaging class to obtain a packaged application.
[0075] In a possible implementation, the configuration module 202 is further used to obtain a MANIFEST.json file matching the application of the AUTOSAR AP platform;
[0076] Use the MANIFEST.json file that matches the application of the AUTOSAR AP platform as the MANIFEST.json file of the wrapper application.
[0077] In a possible implementation, the configuration module 202 is further used to obtain all configuration files of the application of the AUTOSAR AP platform, and filter out the MANIFEST.json file from all the configuration files;
[0078] If the application of the AUTOSAR AP platform matches the MANIFEST.json file, obtain the corresponding identifier of the packaged application;
[0079] If a keyword of a MANIFEST.json file matching an application of the AUTOSAR AP platform exists in the identifier corresponding to the packaged application, the MANIFEST.json file matching the application of the AUTOSAR AP platform is used as the MANIFEST.json file of the packaged application.
[0080] In a possible implementation, the startup module 203 is further used to parse the parameter information in the MANIFEST.json file by packaging the application to obtain a first parameter and a second parameter, wherein the first parameter is used to characterize the full path of the application of the non-AUTOSAR AP platform, and the second parameter is used to characterize all parameters in the parameter information in the MANIFEST.json file except the first parameter;
[0081] Report the operation status to EM through the packaging application;
[0082] An application program of the non-AUTOSAR AP platform is started based on the first parameter, and a second parameter is sent to the application program of the non-AUTOSAR AP platform.
[0083] In a possible implementation, the startup module 203 is further used to create a software cluster corresponding to the packaged application program through the functional components in the configuration tool;
[0084] Generate software packages for packaging applications in a software cluster;
[0085] Start the non-AUTOSAR AP platform application by the full path of the non-AUTOSAR AP platform application in the software package.
[0086] In a possible implementation, after the configuration module 202, it further includes: a parsing module, which is used to read and parse the MANIFEST.json file through EM to obtain parameter information in the MANIFEST.json file.
[0087] The embodiment of the present invention provides an application startup device, which is specifically used to: first establish a packaging application, wherein the packaging application packages an application of a non-AUTOSAR AP platform, then configure the MANIFEST.json file of the application of the AUTOSAR AP platform for the packaging application, then start the packaging application through EM, and send parameter information in the MANIFEST.json file to the packaging application, so as to start the application of the non-AUTOSAR AP platform through the packaging application. The present invention packages the application of the non-AUTOSAR AP platform into a packaging application, and configures the MANIFEST.json file of the application of the AUTOSAR AP platform for the packaging application, so as to start the application of the non-AUTOSAR AP platform based on the parameter information in the MANIFEST.json file, thereby avoiding the modification of the application of the non-AUTOSAR AP platform, saving manpower and time, and improving the startup efficiency of the application of the non-AUTOSAR AP platform.
[0088] Figure 3 is a schematic diagram of a terminal provided by an embodiment of the present invention. Figure 3 As shown, the terminal 3 of this embodiment includes: a processor 301, a memory 302, and a computer program 303 stored in the memory 302 and executable on the processor 301. When the processor 301 executes the computer program 303, the steps in the above-mentioned various application startup method embodiments are implemented, such as Figure 1 Alternatively, when the processor 301 executes the computer program 303, the functions of each module / unit in the above-mentioned application program startup device embodiments are realized, for example Figure 2 Functionality of modules / units 201-203 is shown.
[0089] The present invention further provides a readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement an application startup method provided in the above various embodiments, including:
[0090] Establishing a wrapper application, wherein the wrapper application wraps an application of a non-AUTOSAR AP platform;
[0091] The MANIFEST.json file of the application that configures the AUTOSAR AP platform for the wrapper application;
[0092] Start the wrapper application through EM and send the parameter information in the MANIFEST.json file to the wrapper application to start the non-AUTOSAR AP platform application through the wrapper application.
[0093] In one possible implementation, a packaging application is created, including:
[0094] Get applications for non-AUTOSAR AP platforms;
[0095] The non-AUTOSAR AP platform application is packaged by using the packaging class to obtain a packaged application.
[0096] In one possible implementation, the MANIFEST.json file of the application for the AUTOSAR AP platform is configured for the packaging application, including:
[0097] Get the MANIFEST.json file that matches the application of the AUTOSAR AP platform;
[0098] Use the MANIFEST.json file that matches the application of the AUTOSAR AP platform as the MANIFEST.json file of the wrapper application.
[0099] In one possible implementation, the MANIFEST.json file of the application for the AUTOSAR AP platform is configured for the packaging application, including:
[0100] Get all configuration files of the application of the AUTOSAR AP platform and filter out the MANIFEST.json file from all configuration files;
[0101] If the application of the AUTOSAR AP platform matches the MANIFEST.json file, obtain the corresponding identifier of the packaged application;
[0102] If a keyword of a MANIFEST.json file matching an application of the AUTOSAR AP platform exists in the identifier corresponding to the packaged application, the MANIFEST.json file matching the application of the AUTOSAR AP platform is used as the MANIFEST.json file of the packaged application.
[0103] In one possible implementation, a non-AUTOSAR AP platform application is started by a wrapper application, including:
[0104] Parsing the parameter information in the MANIFEST.json file by packaging the application to obtain a first parameter and a second parameter, wherein the first parameter is used to represent the full path of the application of the non-AUTOSAR AP platform, and the second parameter is used to represent all parameters in the parameter information in the MANIFEST.json file except the first parameter;
[0105] Report the operation status to EM through the packaging application;
[0106] An application program of the non-AUTOSAR AP platform is started based on the first parameter, and a second parameter is sent to the application program of the non-AUTOSAR AP platform.
[0107] In one possible implementation, a non-AUTOSAR AP platform application is started by a wrapper application, including:
[0108] Create a software cluster corresponding to the packaged application through the functional components in the configuration tool;
[0109] Generate software packages for packaging applications in a software cluster;
[0110] Start the non-AUTOSAR AP platform application by the full path of the non-AUTOSAR AP platform application in the software package.
[0111] In a possible implementation, after configuring the MANIFEST.json file of the application of the AUTOSAR AP platform for the packaging application, it also includes:
[0112] The MANIFEST.json file is read and parsed by EM to obtain the parameter information in the MANIFEST.json file.
[0113] Among them, the readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general or special-purpose computer. For example, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application-specific integrated circuit (ASIC). In addition, the ASIC can be located in a user device. Of course, the processor and the readable storage medium can also exist in a communication device as discrete components. The readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0114] The present invention also provides a program product, which includes an execution instruction, and the execution instruction is stored in a readable storage medium. At least one processor of a device can read the execution instruction from the readable storage medium, and at least one processor executes the execution instruction so that the device implements an application startup method provided by the various embodiments described above, including:
[0115] Establishing a wrapper application, wherein the wrapper application wraps an application of a non-AUTOSAR AP platform;
[0116] The MANIFEST.json file of the application that configures the AUTOSAR AP platform for the wrapper application;
[0117] Start the wrapper application through EM and send the parameter information in the MANIFEST.json file to the wrapper application to start the non-AUTOSAR AP platform application through the wrapper application.
[0118] In one possible implementation, a packaging application is created, including:
[0119] Get applications for non-AUTOSAR AP platforms;
[0120] The non-AUTOSAR AP platform application is packaged by using the packaging class to obtain a packaged application.
[0121] In one possible implementation, the MANIFEST.json file of the application for the AUTOSAR AP platform is configured for the packaging application, including:
[0122] Get the MANIFEST.json file that matches the application of the AUTOSAR AP platform;
[0123] Use the MANIFEST.json file that matches the application of the AUTOSAR AP platform as the MANIFEST.json file of the wrapper application.
[0124] In one possible implementation, the MANIFEST.json file of the application for the AUTOSAR AP platform is configured for the packaging application, including:
[0125] Get all configuration files of the application of the AUTOSAR AP platform and filter out the MANIFEST.json file from all configuration files;
[0126] If the application of the AUTOSAR AP platform matches the MANIFEST.json file, obtain the corresponding identifier of the packaged application;
[0127] If a keyword of a MANIFEST.json file matching an application of the AUTOSAR AP platform exists in the identifier corresponding to the packaged application, the MANIFEST.json file matching the application of the AUTOSAR AP platform is used as the MANIFEST.json file of the packaged application.
[0128] In one possible implementation, a non-AUTOSAR AP platform application is started by a wrapper application, including:
[0129] Parsing the parameter information in the MANIFEST.json file by packaging the application to obtain a first parameter and a second parameter, wherein the first parameter is used to represent the full path of the application of the non-AUTOSAR AP platform, and the second parameter is used to represent all parameters in the parameter information in the MANIFEST.json file except the first parameter;
[0130] Report the operation status to EM through the packaging application;
[0131] An application program of the non-AUTOSAR AP platform is started based on the first parameter, and a second parameter is sent to the application program of the non-AUTOSAR AP platform.
[0132] In one possible implementation, a non-AUTOSAR AP platform application is started by a wrapper application, including:
[0133] Create a software cluster corresponding to the packaged application through the functional components in the configuration tool;
[0134] Generate software packages for packaging applications in a software cluster;
[0135] Start the non-AUTOSAR AP platform application by the full path of the non-AUTOSAR AP platform application in the software package.
[0136] In a possible implementation, after configuring the MANIFEST.json file of the application of the AUTOSAR AP platform for the packaging application, it also includes:
[0137] The MANIFEST.json file is read and parsed by EM to obtain the parameter information in the MANIFEST.json file.
[0138] In the embodiments of the above-mentioned devices, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The steps of the method disclosed in the present invention may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0139] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.
Claims
1. A method for starting an application, characterized in that: include: Establishing a packaging application, wherein the packaging application packages an application of a non-AUTOSAR AP platform; A MANIFEST.json file of an application of the AUTOSAR AP platform is configured for the packaging application; The packaging application is started through the EM, and the parameter information in the MANIFEST.json file is sent to the packaging application, so as to start the application of the non-AUTOSAR AP platform through the packaging application.
2. The application startup method according to claim 1, characterized in that: The creation of a packaging application includes: Obtain an application for the non-AUTOSAR AP platform; The non-AUTOSAR AP platform application is packaged by a packaging class to obtain the packaged application.
3. The application startup method according to claim 1, characterized in that: The MANIFEST.json file of the application for configuring the AUTOSAR AP platform for the packaging application includes: Obtain a MANIFEST.json file that matches the application of the AUTOSAR AP platform; The MANIFEST.json file matching the application of the AUTOSAR AP platform is used as the MANIFEST.json file of the packaged application.
4. The application startup method according to claim 1, characterized in that: The MANIFEST.json file of the application for configuring the AUTOSAR AP platform for the packaging application includes: Obtain all configuration files of the application of the AUTOSAR AP platform, and filter out the MANIFEST.json file from all the configuration files; If the application of the AUTOSAR AP platform matches the MANIFEST.json file, obtaining an identifier corresponding to the packaged application; If the identifier corresponding to the packaged application contains a keyword of the MANIFEST.json file matching the application of the AUTOSAR AP platform, the MANIFEST.json file matching the application of the AUTOSAR AP platform is used as the MANIFEST.json file of the packaged application.
5. The application startup method according to claim 1, characterized in that: The step of starting the application of the non-AUTOSAR AP platform by using the packaging application comprises: Parsing the parameter information in the MANIFEST.json file by the packaging application to obtain a first parameter and a second parameter, wherein the first parameter is used to characterize the full path of the application of the non-AUTOSAR AP platform, and the second parameter is used to characterize all parameters in the parameter information in the MANIFEST.json file except the first parameter; Reporting the running status to the EM through the packaging application; The application program of the non-AUTOSAR AP platform is started based on the first parameter, and the second parameter is sent to the application program of the non-AUTOSAR AP platform.
6. The application startup method according to claim 1, characterized in that: The step of starting the application of the non-AUTOSAR AP platform by using the packaging application comprises: Creating a software cluster corresponding to the packaged application using functional components in a configuration tool; generating a software package of the packaged application in the software cluster; The non-AUTOSAR AP platform application is started through the full path of the non-AUTOSAR AP platform application in the software package.
7. The application startup method according to claim 1, characterized in that: After configuring the MANIFEST.json file of the application of the AUTOSAR AP platform for the packaging application, it also includes: The MANIFEST.json file is read and parsed by the EM to obtain parameter information in the MANIFEST.json file.
8. An application startup device, characterized in that: include: A building module, used for building a packaged application, wherein the packaged application packages an application of a non-AUTOSAR AP platform; A configuration module, used to configure the MANIFEST.json file of the application of the AUTOSAR AP platform for the packaging application; The startup module is used to start the packaging application through the EM and send the parameter information in the MANIFEST.json file to the packaging application, so as to start the application of the non-AUTOSAR AP platform through the packaging application.
9. A terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the application startup method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the application startup method according to any one of claims 1 to 7 are implemented.
