A Linux-based application management method and system for in-vehicle infotainment systems

By dividing the automotive Linux vehicle infotainment system into functional groups and configuring process information, and establishing execution management and status management processes, the system restart problem caused by application anomalies was solved, and automatic application recovery and safe system operation were achieved.

CN116521255BActive Publication Date: 2026-11-17WUHAN KOTEI INFORMATICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310181014.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-24
Publication Date
2026-11-17
Estimated Expiration
2043-02-24

AI Technical Summary

Technical Problem

Existing automotive Linux-based infotainment systems may cause the operating system to restart when applications malfunction, affecting vehicle driving safety.

Method used

By obtaining the startup order of system processes and applications, multiple functionally coupled processes are divided into a functional group, and the process information required for different states of each functional group is configured. An execution management process and a state management process are established to monitor application anomalies in real time and adjust the startup order to achieve functional group switching.

Benefits of technology

In the event of an application malfunction, the system should be prevented from restarting to ensure the safe operation of the vehicle's infotainment system and enable automatic application recovery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116521255B_ABST
    Figure CN116521255B_ABST
Patent Text Reader

Abstract

This invention relates to an application management method and system for a Linux-based in-vehicle infotainment system. The method includes: obtaining the startup order of system processes and applications; dividing multiple functionally coupled processes into functional groups and ensuring that no duplicate processes exist within each functional group; configuring the processes required for different states of each functional group based on the startup order and one or more functional groups, and writing the functional group information and process information into a configuration file; establishing an execution management process and a state management process; using the execution management process to read the functional group information and process information from the configuration file and adjust the startup order of applications; and using the state management process to create all child processes for the initial state of each functional group and to respond to each application, triggering a functional group switch. This invention avoids the problem of system restarts caused by application anomalies by intercepting child processes and switching states through EM and SM.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of automotive infotainment system technology, specifically relating to an application management method and system for a Linux-based automotive infotainment system. Background Technology

[0002] Currently, automotive Linux in-vehicle infotainment system applications are directly managed by the operating system. When an application malfunctions, it may affect the in-vehicle operating system. Many functions are now integrated into the in-vehicle infotainment system. If a driving-related configuration causes the in-vehicle infotainment system to restart abnormally while the car is in motion, it can lead to abnormal vehicle operation and potentially cause a traffic accident. Summary of the Invention

[0003] To address the issue of vehicle infotainment system (VIS) restarts due to application anomalies, a first aspect of this invention provides an application management method for a Linux-based VIS system, comprising: obtaining the startup order of system processes and applications; dividing multiple functionally coupled processes into functional groups and determining that no identical processes exist within each functional group; configuring the processes required for different states of each functional group based on the startup order and one or more functional groups, and writing the functional group information and process information into a configuration file; establishing an execution management process and a state management process; reading the functional group information and process information from the configuration file through the execution management process and adjusting the startup order of applications; and creating all child processes of the initial state of each functional group through the state management process, and triggering functional group switching in response to each application.

[0004] In some embodiments of the present invention, the step of reading functional group information and process information from the configuration file through the execution management process and adjusting the startup order of applications includes: after the system starts, the execution management process is started first; the execution management process reads functional group information and process information from the configuration file and monitors whether the applications are abnormal in real time; the execution management process chooses to ignore or adjust the startup order of applications based on whether the process in which the application is located is abnormal, according to whether the process is abnormal.

[0005] Furthermore, the execution management process selects to ignore or adjust the application startup order based on whether the process containing the application is abnormal, including: if the process containing the application is detected to have exited normally, ignore it; otherwise, feed back the abnormally exiting process and its functional group information to the state management process, and adjust the application startup order based on the feedback from the state management process.

[0006] Furthermore, adjusting the application startup order through feedback from the state management process includes: after receiving information about the abnormal process and its functional group, the state management process performs a recovery action; the state management process feeds back the functional group information to the execution management process, and the execution management process performs the switching of the functional group.

[0007] In some embodiments of the present invention, the step of responding to each application and triggering function group switching includes: responding to an application on the vehicle infotainment system and triggering a state management process to perform function group switching.

[0008] In the above embodiments, obtaining the startup order of system processes and applications, dividing multiple functionally coupled processes into a functional group, and determining that there are no identical processes in each functional group includes: obtaining the historical startup order of system processes and applications through the timing diagram or flowchart of the vehicle system, dividing multiple functionally coupled processes into a functional group, and determining that there are no identical processes in each functional group.

[0009] A second aspect of the present invention provides an application management system for a Linux-based vehicle infotainment system, comprising: an acquisition module, configured to acquire the startup order of system processes and applications, divide multiple functionally coupled processes into a functional group, and determine that no identical processes exist in each functional group; a configuration module, configured to configure the processes required for different states of each functional group based on the startup order and one or more functional groups, and write the functional group information and process information into a configuration file; an adjustment module, configured to establish an execution management process and a state management process; and adjust the startup order of applications by reading functional group information and process information from the configuration file through the execution management process; and a switching module, configured to create all child processes of the initial state of each functional group through the state management process, and trigger functional group switching in response to each application.

[0010] A third aspect of the present invention provides an electronic device comprising: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the application management method for a Linux-based vehicle infotainment system provided in the first aspect of the present invention.

[0011] In a fourth aspect, the present invention provides a computer-readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the application management method for a Linux-based vehicle infotainment system provided in the first aspect of the present invention.

[0012] The beneficial effects of this invention are:

[0013] This invention prevents the system from restarting when an application exits abnormally because the application is a child process of the EM (Enterprise Management System). Exceptions in child processes are intercepted and handled by the EM, preventing them from being passed to the operating system and ensuring the security of the vehicle's infotainment system. When an application on the vehicle's infotainment system exits abnormally, the EM monitors it and notifies the SM (System Management System) to perform a recovery operation, achieving automatic recovery after an application exception. Attached Figure Description

[0014] Figure 1 This is a basic flowchart illustrating the application management method for a Linux-based vehicle infotainment system in some embodiments of the present invention.

[0015] Figure 2 This is a schematic diagram of process grouping rules within a functional group in some embodiments of the present invention;

[0016] Figure 3 This is a timing diagram of system startup and function group switching in some embodiments of the present invention;

[0017] Figure 4 This is a timing diagram of abnormal recovery during application execution in some embodiments of the present invention;

[0018] Figure 5 This is a schematic diagram of the application management system of a Linux-based vehicle infotainment system in some embodiments of the present invention;

[0019] Figure 6 This is a schematic diagram of the structure of an electronic device in some embodiments of the present invention. Detailed Implementation

[0020] The principles and features of the present invention are described below with reference to the accompanying drawings. The examples given are only for explaining the present invention and are not intended to limit the scope of the present invention.

[0021] refer to Figure 1 In a first aspect, the present invention provides an application management method for a Linux-based vehicle infotainment system, comprising: S100. obtaining the startup order of system processes and applications, dividing multiple functionally coupled processes into a functional group, and determining that no identical processes exist in each functional group; S200. configuring the processes required for different states of each functional group based on the startup order and one or more functional groups, and writing the functional group information and process information into a configuration file; S300. establishing an execution management process and a state management process; adjusting the startup order of applications by reading functional group information and process information from the configuration file through the execution management process; S400. creating all child processes of the initial state of each functional group through the state management process, and triggering functional group switching in response to each application.

[0022] In step S100 of the embodiments of this disclosure, obtaining the startup order of system processes and applications, dividing multiple functionally coupled processes into a functional group, and determining that there are no identical processes in each functional group includes: obtaining the historical startup order of system processes and applications through the timing diagram or flowchart of the vehicle system, dividing multiple functionally coupled processes into a functional group, and determining that there are no identical processes in each functional group.

[0023] Specifically, during the design phase, the system startup sequence and functional group switching sequence are analyzed and identified based on sequence diagrams or flowcharts to design configuration files and software architecture.

[0024] In step S100 of the embodiments of this disclosure, based on the startup order and one or more functional groups, the processes required for different states of each functional group are configured, and the functional group information and process information are written into a configuration file. Specifically, during the deployment phase, the configuration file is configured with which functional group states need to be switched according to the actual project, and which application processes are included in these functional group states.

[0025] refer to Figure 2 In step S300 of some embodiments of the present invention, the step of reading functional group information and process information from the configuration file through the execution management process and adjusting the startup order of applications includes: S301. After the system starts, the execution management process is started first; S302. The execution management process reads functional group information and process information from the configuration file and monitors whether the applications are abnormal in real time; S303. The execution management process chooses to ignore or adjust the startup order of applications based on whether the process in which the application is located is abnormal, according to whether the process is abnormal.

[0026] Furthermore, in step S303, the execution management process selects to ignore or adjust the application startup order based on whether the process to which the application resides is abnormal, including: if the process to which the application resides is detected to have exited normally, ignoring it; otherwise, feeding back the abnormally exiting process and its functional group information to the state management process, and adjusting the application startup order based on the feedback from the state management process.

[0027] Furthermore, the adjustment of the application startup order through feedback from the state management process includes: after receiving information about the abnormal process and its functional group, the state management process performs a recovery action; the state management process feeds back the functional group information to the execution management process, and the execution management process performs the switching of the functional group.

[0028] Specifically, during the execution phase, after the system starts, the first process to start is the EM (Execution Management) process. Then, the initial state SM (State Management) of the first functional group is started by all the child processes of the initial state created by (EM). When (EM) starts, it reads functional group information and process information from the configuration file. (SM) switches functional groups through the application on the vehicle's infotainment system.

[0029] refer to Figure 3 and Figure 4 In step S400 of some embodiments of the present invention, the step of responding to each application and triggering function group switching includes: responding to the application on the vehicle system and triggering the state management process to perform function group switching.

[0030] Specifically, when an application exits abnormally while running on the vehicle infotainment system, the (EM) process, as the parent process, can detect the abnormality of the child process and intercept it to prevent it from flowing to the vehicle infotainment system. The (EM) sends the abnormal process information and its functional group information to the (SM) process for recovery. The (SM) then sends the functional group information to the (EM) process for switching the functional group status.

[0031] Example 2

[0032] refer to Figure 5 In a second aspect, the present invention provides an application management system 1 for a Linux-based vehicle infotainment system, comprising: an acquisition module 11, configured to acquire the startup order of system processes and applications, divide multiple functionally coupled processes into a functional group, and determine that no identical processes exist in each functional group; a configuration module 12, configured to configure the processes required for different states of each functional group based on the startup order and one or more functional groups, and write the functional group information and process information into a configuration file; an adjustment module 13, configured to establish an execution management process and a state management process; and adjust the startup order of applications by reading functional group information and process information from the configuration file through the execution management process; and a switching module 14, configured to create all child processes of the initial state of each functional group through the state management process, and trigger functional group switching in response to each application.

[0033] Furthermore, the adjustment module 13 includes: a startup unit, used to start the execution management process first after the system starts; a monitoring unit, used to read function group information and process information from the configuration file and monitor whether the application is abnormal in real time; and an adjustment unit, used to select to ignore or adjust the startup order of the application based on whether the process in which the application is located is abnormal, according to the feedback of the status management process.

[0034] Example 3

[0035] refer to Figure 6 A third aspect of the present invention provides an electronic device comprising: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method of the first aspect of the present invention.

[0036] Electronic device 500 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 502 or a program loaded from storage device 508 into random access memory (RAM) 503. RAM 503 also stores various programs and data required for the operation of electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via bus 504. Input / output (I / O) interface 505 is also connected to bus 504.

[0037] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, hard disks; and communication devices 509. Communication device 509 allows electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6 An electronic device 500 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively. Figure 6 Each box shown can represent a device or multiple devices as needed.

[0038] Specifically, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by a processing device 501, it performs the functions defined in the methods of embodiments of this disclosure. It should be noted that the computer-readable medium described in embodiments of this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In embodiments of this disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In embodiments of this disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0039] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device. The aforementioned computer-readable medium carries one or more computer programs, which, when executed by the electronic device, cause the electronic device to:

[0040] Computer program code for performing the operations of embodiments of this disclosure can be written in one or more programming languages ​​or a combination thereof. Programming languages ​​include object-oriented programming languages—such as Java, Smalltalk, C++, and Python—and conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0041] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0042] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for managing applications in a Linux-based vehicle infotainment system, characterized in that, include: Obtain the startup order of system processes and applications, divide multiple functionally coupled processes into a functional group, and determine that there are no duplicate processes in each functional group; Based on the startup order and one or more functional groups, configure the processes required for each functional group in different states, and write the functional group information and process information into the configuration file; Establish execution management processes and status management processes; The management process reads functional group information and process information from the configuration file and adjusts the startup order of applications. The step of reading functional group information and process information from the configuration file through the execution of a management process and adjusting the startup order of applications includes: After the system starts up, the execution management process is started first; The execution management process reads functional group information and process information from the configuration file and monitors whether the application is abnormal in real time; The execution management process decides whether to ignore an application or adjust the startup order of applications based on feedback from the status management process, depending on whether the process containing the application is abnormal. The execution management process, based on whether the process containing the application is abnormal, chooses to ignore it or adjust the application startup order according to feedback from the status management process, including: If the process containing the application is detected to have exited normally, ignore it; otherwise, feed back the information of the abnormally exiting process and its functional group to the state management process, and adjust the startup order of the applications based on the feedback from the state management process. The adjustment of the application startup order through feedback from the state management process includes: After receiving information about the abnormal process and its functional group, the state management process performs recovery actions. The state management process feeds back the function group information to the execution management process, which then performs the function group switching. The state management process creates all child processes of the initial state of each functional group, and responds to each application to trigger functional group switching.

2. The application management method for a Linux-based vehicle infotainment system according to claim 1, characterized in that, The response to each application, triggering the function group switch, includes: In response to the application on the vehicle's infotainment system, the state management process is triggered to switch between function groups.

3. The application management method for a Linux-based vehicle infotainment system according to any one of claims 1 to 2, characterized in that, The process of obtaining the startup order of system processes and applications, dividing multiple functionally coupled processes into a functional group, and determining that no two processes are the same in each functional group includes: By using the timing diagram or flowchart of the vehicle system, the historical startup order of system processes and applications can be obtained, multiple functionally coupled processes can be divided into a functional group, and it can be determined that there are no identical processes in each functional group.

4. An application management system for a Linux-based vehicle infotainment system, employing the application management method for a Linux-based vehicle infotainment system as described in any one of claims 1-3, characterized in that, include: The acquisition module is used to acquire the startup order of system processes and applications, divide multiple functionally coupled processes into a functional group, and determine that there are no duplicate processes in each functional group; The configuration module is used to configure the processes required for different states of each functional group based on the startup order and one or more functional groups, and write the functional group information and process information into the configuration file; The adjustment module is used to establish the execution management process and the status management process; The management process reads functional group information and process information from the configuration file and adjusts the startup order of applications. The switching module is used by all child processes that create the initial state of each function group through the state management process, and to respond to each application and trigger the function group switching.

5. The application management system for the Linux-based vehicle infotainment system according to claim 4, characterized in that, The adjustment module includes: The startup unit is used to start the execution management process first after the system starts up; The monitoring unit is used to execute the management process to read functional group information and process information from the configuration file, and to monitor whether the application is abnormal in real time; The adjustment unit is used to execute the management process to choose to ignore or adjust the startup order of applications based on whether the process in which the application resides is abnormal, or based on feedback from the status management process.

6. An electronic device, comprising: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the application management method for a Linux-based vehicle infotainment system as described in any one of claims 1 to 3.

7. A computer-readable medium having a computer program stored thereon, wherein, When the computer program is executed by the processor, it implements the application management method for a Linux-based vehicle infotainment system as described in any one of claims 1 to 3.