In-vehicle infotainment system process control method and device, electronic equipment and vehicle

By detecting the vehicle-machine system status and application process activity, and performing memory recycling according to the interval level division strategy, the problem of poor memory status improvement of the vehicle-machine system in the existing technology is solved, and more efficient memory management and system performance improvement are achieved.

CN118733477AActive Publication Date: 2024-10-01BEIJING CO WHEELS TECH CO LTD

Patent Information

Application Number
CN202310331782.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-01
Estimated Expiration
2043-03-30

AI Technical Summary

Technical Problem

The existing memory compression method of the vehicle system is not effective in improving the memory status of the vehicle system and cannot effectively improve the memory utilization.

Method used

By detecting the current status of the vehicle system, the memory usage and activity of application processes are obtained, and application processes with different activity levels are killed or compressed according to the preset interval level division strategy to achieve memory recycling.

Benefits of technology

There is no need to limit scenarios or special conditions, and it can fundamentally improve the memory status of the vehicle system, improve the memory recycling effect, and avoid lags and slowdowns.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733477A_ABST
    Figure CN118733477A_ABST
Patent Text Reader

Abstract

According to the in-vehicle machine system process control method and device, the electronic equipment and the vehicle provided by the technical scheme of the invention, the current state of the in-vehicle machine system is detected, and when the in-vehicle machine system is in the working state, the memory occupancy rate of the in-vehicle machine system is monitored; obtaining a running application process in a running state, obtaining the activeness of the running application process by utilizing a preset rule, judging an interval level where the memory occupancy rate is located, and obtaining a target process processing strategy corresponding to the interval level where the memory occupancy rate is located, and searching, killing or compressing the running application processes with different activeness according to the target process processing strategy. According to the scheme, after the interval level where the memory occupancy rate of the vehicle-mounted infotainment system is located is determined, the corresponding target process processing strategy is combined with the activity degree of the running application process for searching and killing or compression, memory recovery is achieved, scenes or special conditions do not need to be limited, and the efficiency is improved. When the in-vehicle infotainment system is in the working state, the memory of the in-vehicle infotainment system can be recovered fundamentally, and the memory state improvement effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of vehicle system memory management, and in particular to a vehicle system process control method, device, electronic equipment and vehicle. Background Art

[0002] In a vehicle, the vehicle computer system is the core of the vehicle control. When there are too many application processes running in the vehicle computer system, the memory usage of the vehicle computer system is too high, which may affect the running speed of the vehicle computer system and even cause unfavorable phenomena such as freezing. Therefore, in order to ensure the running speed of the vehicle computer system, certain types of qualified processes are usually compressed in specific scenarios to release some memory. For example, during normal driving of the vehicle, processes related to vehicle remote control can be compressed. In the solutions in the prior art, since the compression process is only for certain specific scenarios and the compression conditions only include a few special conditions, the memory recovery effect on the vehicle computer system is not obvious, and the system memory status cannot be truly improved. Summary of the invention

[0003] The technical problem to be solved by the present application is that the existing memory compression method of the vehicle system has a poor effect on improving the memory status of the vehicle system. To this end, the present application proposes a vehicle system process control method, device, electronic equipment and vehicle.

[0004] In a first aspect, the technical solution of the present application provides a vehicle system process control method, comprising:

[0005] Detect the current status of the vehicle system;

[0006] If the current state is a working state, obtaining the memory occupancy rate of the vehicle computer system;

[0007] Obtaining a running application process in a running state, and obtaining the activity of the running application process according to a preset rule;

[0008] Determine the interval level of the memory occupancy rate and obtain a determination result; the interval level includes a plurality of preset interval levels, each of the interval levels corresponds to a different memory occupancy rate range;

[0009] The process processing strategy corresponding to the interval level in the judgment result is obtained as the target process processing strategy, and the running application processes of different activity levels are checked, killed or compressed according to the target process processing strategy; wherein each interval level corresponds to a different process processing strategy.

[0010] In some embodiments of the vehicle system process control method, the interval level includes multiple interval levels set from high to low according to the memory occupancy rate range; the determining the interval level of the memory occupancy rate and obtaining the determination result include:

[0011] The interval level to which the memory occupancy rate belongs is determined according to the memory occupancy rate and the memory occupancy rate range corresponding to each of the interval levels.

[0012] In some embodiments, the vehicle system process control method, wherein the interval level includes a high interval level, the process processing strategy corresponding to the interval level in the judgment result is obtained as a target process processing strategy, and the running application processes of different activity levels are checked and killed or compressed according to the target process processing strategy, including:

[0013] If the judgment result indicates that the interval level of the memory usage rate is the high interval level, all running application processes whose activity level is lower than the first activity level are checked and killed.

[0014] In some embodiments, the vehicle system process control method, wherein the interval level includes a median interval level, the process processing strategy corresponding to the interval level in the judgment result is obtained as a target process processing strategy, and the running application processes of different activity levels are checked and killed or compressed according to the target process processing strategy, including:

[0015] If the judgment result indicates that the interval level of the memory usage rate is the median interval level, the application process whose activity is lower than the second activity is compressed in the first compression mode, and the second activity is greater than the first activity.

[0016] In some embodiments, the vehicle system process control method, wherein the interval level includes a low interval level, the process processing strategy corresponding to the interval level in the judgment result is obtained as a target process processing strategy, and the running application processes of different activity levels are checked and killed or compressed according to the target process processing strategy, including:

[0017] If the judgment result indicates that the interval level of the memory occupancy rate is the low interval level, the application process whose activity is lower than the third activity level is compressed using the second compression method, the third activity level is lower than the second activity level, and the compression rate of the second compression method is lower than the compression rate of the first compression method.

[0018] In some schemes, the vehicle system process control method is described, wherein the first compression method is a full compression method, and the second compression method is a reverse page compression process.

[0019] In some embodiments, the vehicle system process control method, wherein the step of obtaining a running application process in a running state and obtaining the activity of the running application process according to a preset rule includes:

[0020] Acquire user identification information, and extract historical data associated with the user identification information, the historical data including the historical start frequency and historical running time of the running application process in a set historical period;

[0021] Obtaining the running time, memory usage information and importance data of the running application process, wherein the importance data represents the importance of the user service corresponding to the running application process;

[0022] The activity of the running application process is obtained by weighted calculation of the historical startup frequency, the historical running time, the running time of the current running, the memory occupancy information and the importance data.

[0023] In some embodiments of the vehicle system process control method, the step of obtaining user identification information includes:

[0024] At least one biometric feature information of the user is detected as the user identification information.

[0025] In some embodiments, if the current state is a dormant state, the vehicle system process control method further includes:

[0026] Detecting the remaining space size of a preset area reserved by the vehicle system for storing compressed process data;

[0027] Obtaining the compression process activity of the application corresponding to each compression process data in the preset area;

[0028] Compare the remaining space size with a set value to obtain a comparison result;

[0029] If the comparison result is that the remaining space size is lower than the set value, the application processes corresponding to the compression process data are checked and killed in sequence according to the order of compression process activity until the remaining space size is higher than or equal to the set value.

[0030] In a second aspect, the technical solution of the present application provides a vehicle system process control device, comprising:

[0031] A state detection module is configured to detect the current state of the vehicle system;

[0032] A memory occupancy rate acquisition module is configured to acquire the memory occupancy rate of the vehicle system if the current state is a working state;

[0033] A process activity acquisition module is configured to acquire a running application process in a running state and obtain the activity of the running application process according to a preset rule;

[0034] An interval level acquisition module is configured to determine the interval level of the memory occupancy rate and obtain a determination result; the interval level includes a plurality of pre-set interval levels, each of which corresponds to a different memory occupancy rate range;

[0035] The process control module is configured to obtain the process processing strategy corresponding to the interval level in the judgment result as the target process processing strategy, and to detect, kill or compress the running application processes of different activity levels according to the target process processing strategy; wherein each of the interval levels corresponds to a different process processing strategy.

[0036] In a third aspect, the technical solution of the present application provides a storage medium, in which program instructions are stored. After a computer calls the program instructions, the vehicle system process control method described in any technical solution of the first aspect is executed.

[0037] In a fourth aspect, the technical solution of the present application provides an electronic device, comprising at least one processor and at least one memory, at least one of the memories storing program information, and at least one of the processors calling the program information executes the vehicle system process control method described in any one of the solutions of the first aspect.

[0038] In a fifth aspect, the technical solution of the present application provides a vehicle computer, which is configured with the vehicle computer system process control device described in the technical solution of the second aspect, or the storage medium described in the technical solution of the third aspect, or the electronic device described in the technical solution of the fourth aspect.

[0039] In a sixth aspect, the technical solution of the present application provides a vehicle, which includes the vehicle computer described in the technical solution of the fifth aspect.

[0040] The above technical solution has the following beneficial effects:

[0041] The vehicle system process control method, device, electronic device and vehicle provided by the technical solution of the present application detect the current state of the vehicle system. If the vehicle system is in working state, the memory occupancy rate of the vehicle system is monitored, and the running application process in the running state is obtained at the same time, and the activity of the running application process is obtained by using preset rules. After determining the interval level of the memory occupancy rate, the process processing strategy corresponding to the interval level is obtained as the target process processing strategy. According to the target process processing strategy, the running application processes of different activity levels can be checked or compressed. The above scheme of the present application can use the corresponding target process processing strategy after determining the interval level of the vehicle system memory occupancy rate, and check or compress the running application process in combination with the activity of the running application process to realize memory recovery. This scheme does not need to limit the scene or special conditions. As long as the vehicle system is in working state, the memory of the vehicle system can be fundamentally recovered, which improves the improvement effect of the memory state. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 This is a flow chart of a vehicle system process control method described in an embodiment of the present application;

[0043] Figure 2 This is a flow chart of a vehicle system process control method according to another embodiment of the present application;

[0044] Figure 3 This is a flow chart of a vehicle system process control method according to another embodiment of the present application;

[0045] Figure 4 This is a structural block diagram of a vehicle system process control device according to an embodiment of the present application;

[0046] Figure 5 A schematic diagram of the hardware connection relationship of an electronic device for executing a vehicle system process control method according to an embodiment of the present application. DETAILED DESCRIPTION

[0047] The specific implementation of the present application is further described below with reference to the accompanying drawings.

[0048] It is easy to understand that according to the technical solution of the present application, without changing the essential spirit of the present application, a variety of structural modes and implementation modes that can be replaced by those skilled in the art can be replaced with each other. Therefore, the following specific implementation modes and drawings are only exemplary descriptions of the technical solution of the present application, and should not be regarded as the entirety of the present application or as a limitation or restriction on the technical solution of the application.

[0049] The directional terms such as up, down, left, right, front, back, front, back, top, bottom, etc. mentioned or may be mentioned in this specification are defined relative to the structures shown in the drawings. They are relative concepts and may change accordingly according to different positions and different usage conditions. Therefore, these or other directional terms should not be interpreted as restrictive terms.

[0050] The present application embodiment discloses a vehicle system process control method, which is applied to a vehicle system. Figure 1 As shown, the method includes:

[0051] S10: Detect the current status of the vehicle system.

[0052] The operating state of the vehicle system may include closed, opened, dormant, working, etc. After the vehicle system is opened, the operating state can be monitored in real time.

[0053] S20: If the current state is a working state, the memory occupancy rate of the vehicle system is obtained.

[0054] The memory occupancy rate may be a percentage of the occupied memory space to the total memory space.

[0055] S30: Acquire a running application process in a running state, and obtain the activity of the running application process according to a preset rule.

[0056] When the vehicle system is in working state, the system can automatically obtain a list of currently running application processes.

[0057] The calculation rules for the activity of each application process can be pre-stored in the vehicle system, and can be determined based on the duration of the application process in the current state, the frequency of use of the application process, the priority of the application process, etc.

[0058] S40: Determine the interval level of the memory occupancy rate and obtain a determination result; the interval level includes a plurality of pre-set interval levels, each of the interval levels corresponds to a different memory occupancy rate range.

[0059] The memory occupancy rate ranges corresponding to the multiple interval levels are different, so the memory occupancy rate ranges can be sorted, and the interval level division result can be obtained using the sorting result.

[0060] S50: Obtaining the process processing strategy corresponding to the interval level in the judgment result as the target process processing strategy, and killing or compressing the running application processes of different activity levels according to the target process processing strategy; wherein each of the interval levels corresponds to a different process processing strategy. wherein the process processing strategies corresponding to different interval levels have different standards for killing and / or compressing the running application processes.

[0061] Specifically, if the interval level corresponding to the memory occupancy rate is a higher level, for example, the memory occupancy rate is already high and causes the vehicle system to freeze, then more application processes may need to be checked and killed. If the interval level corresponding to the memory occupancy rate is a lower level, it is just that the vehicle system responds slowly to certain services, then fewer processes may need to be checked and killed, and compressing some application process data may meet the requirements. Therefore, in the process processing strategies corresponding to different interval levels, the standards for checking and / or compressing the running application processes are different.

[0062] The solution in the present application detects the current state of the vehicle system. If the vehicle system is in working state, the memory occupancy rate of the vehicle system is monitored. At the same time, the running application process in the running state is obtained and the activity of the running application process is obtained by using preset rules. After determining the interval level of the memory occupancy rate, the process processing strategy corresponding to the interval level is obtained as the target process processing strategy. According to the target process processing strategy, the running application processes with different activity levels can be checked or compressed. The above solution of the present application can use the corresponding target process processing strategy after determining the interval level of the vehicle system memory occupancy rate, combined with the activity of the running application process, to achieve memory recovery. This solution does not need to limit the scene or special conditions. As long as the vehicle system is in working state, the memory of the vehicle system can be fundamentally recovered, which improves the improvement effect of the memory state.

[0063] In some schemes, in step S40, the interval level includes multiple interval levels set from high to low according to the memory occupancy range; the interval level where the memory occupancy is located is determined according to the memory occupancy and the memory occupancy range corresponding to each of the interval levels. For example, the interval level includes a high interval level, a median interval level and a low interval level; the memory occupancy range corresponding to the high interval level is [first memory occupancy, 100%); the memory occupancy range corresponding to the median interval level is [second memory occupancy, first memory occupancy); the memory occupancy range corresponding to the low interval level is [third memory occupancy, second memory occupancy); the first memory occupancy corresponds to the memory occupancy that causes the vehicle system to stop running; the second memory occupancy corresponds to the memory occupancy that causes the vehicle system to freeze; the third memory occupancy corresponds to the memory occupancy that causes the vehicle system to respond at a speed lower than a preset speed. When determining which interval level the memory occupancy rate is in, the memory occupancy rate can be compared with the memory occupancy rate range in each interval level in order from high to low or from low to high. Once the range of the memory occupancy rate is determined, its corresponding interval level can be determined.

[0064] In some schemes, such as Figure 2 As shown, the step S50 includes:

[0065] S501: If the judgment result indicates that the interval level of the memory usage rate is the high interval level, all running application processes whose activity level is lower than the first activity level are checked and killed.

[0066] For example, if the memory occupancy rate is within the range of [first memory occupancy rate, 100%), it means that the current vehicle system is at risk of stopping operation, and it is urgent to release more memory as soon as possible to ensure that the vehicle system can resume operation. Therefore, in this solution, all running application processes with the first activity level are checked and killed, thereby releasing memory to the maximum extent. Among them, the first activity level can be a long-term inactive process or a short-term inactive process. A long-term inactive process can indicate that the process has been inactive for a long time and it is almost impossible to restore to an active state. As mentioned above, the system can determine the activity level after determining its importance based on the process priority, the duration of the current state of the process, the memory usage of the process, and the user needs or user experience. A short-term inactive process means that the process is already in an inactive state, but it is still possible to restore to an active state. As mentioned above, the system can determine the activity level after determining its importance based on the process priority, the duration of the current state of the process, the memory usage of the process, and the user needs or user experience.

[0067] S502: If the judgment result indicates that the interval level of the memory usage rate is the median interval level, compress the application process whose activity is lower than the second activity level by the first compression method, and the second activity level is greater than the first activity level.

[0068] For example, if the memory occupancy rate is within the range of [second memory occupancy rate, first memory occupancy rate), it means that the current vehicle system is already stuck, and the urgency for memory recovery is lower than that of the high interval level. At this time, the application process with an activity lower than the second activity rate can be compressed in the first compression method, and the second activity rate is greater than the first activity rate. That is, in the high-level interval, all application processes with an activity rate lower than the first activity rate are killed, and some application processes with lower activity rates can be compressed in this solution. The activity of the compressed application process in this process can be higher than the activity of the application process killed in the high interval level, because the compression process has less impact on the application process than the killing process.

[0069] S503: If the judgment result indicates that the interval level of the memory occupancy rate is the low interval level, compress the application process whose activity is lower than the third activity level by the second compression method, the third activity level is lower than the second activity level, and the compression rate of the second compression method is lower than the compression rate of the first compression method. When the compression rate is lower, the difference in data size before and after compression is smaller.

[0070] For example, if the memory occupancy rate is within the range of [third memory occupancy rate, second memory occupancy rate), it means that the current vehicle system has a slow response speed, and the urgency of memory recovery is lower than the high interval level and the median interval level. At this time, the application process with an activity lower than the third activity can be compressed by the second compression method, and the third activity is less than the second activity, and the compression rate of the second compression method is less than the compression rate of the first compression method. That is, in this scheme, some application processes with lower activity can be compressed, but the compression rate is less than the compression rate of the median interval level, that is, the compression process has less impact on the application process, and the activity of the compressed application process in this process can be lower than the activity of the compressed application process in the median interval level. Because in this case, the operation of the vehicle system is at the median interval level, the number of application processes selected for compression can be less than the number of application processes compressed in the median interval level.

[0071] In the above scheme, the first compression method is full compression, and the second compression method is reverse page compression. That is, for compression operations at the middle interval level, full compression can be directly selected to release memory space to the maximum extent. That is, for compression operations at the low interval level, reverse page compression is used for compression. Although the compression rate of reverse page compression is relatively small, it is more convenient when the application process needs to be decompressed when it is restored to an active state again.

[0072] In some embodiments, the step S30 includes:

[0073] S301: Acquire user identification information, and extract historical data associated with the user identification information, wherein the historical data includes a historical startup frequency and a historical running time of the running application process in a set historical period.

[0074] The user identification information may be identity authentication information.

[0075] Each user has his or her own preferences for some function settings during vehicle use. The vehicle computer system can associate and store each user's setting data with the user's identity information. In this way, when the user's identity is determined, the setting data that meets the user's preferences can be provided to the user.

[0076] The historical start-up frequency and the historical operation duration can be directly determined based on the historical operation data of the vehicle system. In specific implementation, historical operation data within a period of time can be selected for query, such as data within the past week.

[0077] S302: Obtain the running time, memory usage information and importance data of the running application process, where the importance data represents the importance of the user service corresponding to the running application process.

[0078] When the vehicle system is started, the vehicle system can obtain the running time and memory usage information of the running application process in real time. The importance data is determined by the server, which can monitor the status of the service tasks corresponding to each application process and record the personalized needs of the user for each service task. The importance of each service task can be determined based on the personalized needs of the user for each service task, and then the importance of each application process can be determined.

[0079] S303: Obtain the activity of the running application process by weighted calculation of the historical startup frequency, the historical running time, the running time of the current running, the memory occupancy information and the importance data.

[0080] By setting weight values ​​for the above parameters in advance, when calculating the activity, the weight value is multiplied by the numerical value corresponding to each parameter, and then the activity is calculated using a pre-defined calculation algorithm. For example, the weight value and the parameter can be directly multiplied and the summed result can be used as the activity.

[0081] In a specific example, user A likes to play cloud music from 7 to 8 a.m. every Monday. If the user is identified as user A, the application process related to playing music will be considered as an application process that should not be checked or fully compressed, because cleaning the application process will affect the opening speed, and compressing the application process will cause the system to run slowly, thus avoiding affecting the user's actual experience. If the identified user is not user A, the application process will be checked or compressed according to its activity. If the new user resets or changes the vehicle function, the user's settings and changes will be directly associated with the new user identification information and stored, so as to record the application usage habits by user.

[0082] Preferably, the acquiring of user identification information in the above solution includes: detecting at least one biometric information of the user as the user identification information. The biometric information may include face recognition results, voice recognition results, or fingerprint recognition results.

[0083] In some schemes, such as Figure 3 As shown, if the current state is a dormant state, the method further includes:

[0084] S60: Detecting the remaining space size of a preset area reserved by the vehicle system for storing compressed process data.

[0085] The preset area is a storage area reserved by the vehicle system for storing compressed process data. This area is reserved in general operating systems. The remaining space size of the preset area can be directly obtained by the vehicle system, and can usually be expressed in size or percentage.

[0086] S70: Obtain the compression process activity of the application corresponding to each compression process data in the preset area.

[0087] The compressed process data is obtained by compressing the application process, and the activity of the running process is obtained by the vehicle system in real time. At the same time, the compression operation of the application process performed by the vehicle system can also determine the corresponding relationship between the compressed process data and the application process. Therefore, the vehicle system can obtain the compressed process activity of the application process corresponding to the compressed process data in real time.

[0088] S80: Compare the remaining space size with a set value to obtain a comparison result.

[0089] The set value may be determined according to the size of general compressed process data, and may usually be several times the size of general compressed process data.

[0090] S90: If the comparison result is that the remaining space size is lower than the set value, then the application processes corresponding to the compression process data are sequentially checked and killed in the order of the compression process activity until the remaining space size is higher than or equal to the set value.

[0091] If the remaining space in the preset area is too small, it may affect the storage of compressed process data. Even if the vehicle system is slow or stuck, it is impossible to release memory space by compressing low-activity application processes. In this step, when the remaining space is less than the set value, the application processes corresponding to the compressed process data can be checked and killed in the order of activity, thereby reclaiming the storage space of the preset area.

[0092] In the above scheme, it can ensure that the remaining space in the reserved preset area is always sufficient, and the vehicle system can recycle the memory space at any time through memory compression, which can effectively improve the operation speed of the vehicle system and avoid freezing. Moreover, when the vehicle system enters the dormant state, the size of the remaining space in the preset area is detected and cleared and released, which can effectively reduce the memory pressure of the vehicle system and reduce the impact of memory compression and application process cleaning on the performance of the vehicle system.

[0093] As a preferred solution, the arrangement order of the compressed process activity can be obtained in the following way: the compressed process activity of the application corresponding to the compressed process data is sorted from low to high to obtain the arrangement order. In this way, when executing the application process killing, the application process with low activity can be killed first. The lower the activity of the application process, the less frequently it is used, or even it has not been used for a long time. Killing the application process will not have an adverse effect on the normal operation of the vehicle system. After killing the application process, its corresponding compressed process data is naturally cleared, thereby releasing part of the space in the preset area. By releasing the space occupied by one or more compressed process data in sequence, the remaining space in the preset area can meet the needs.

[0094] In some schemes, step S70 may include: obtaining the priority, current state duration, memory usage and importance of the application process corresponding to each of the compressed process data, wherein the importance is used to characterize the importance of the user service corresponding to the application process. The priority, the current state duration, the memory usage and the importance are weighted to obtain the compressed process activity of the application process corresponding to each of the compressed process data. Among them, the priority may be set manually. The current state duration and memory usage can be directly obtained by the vehicle system, because when the vehicle system is running, it can monitor the state of each running application process and can obtain the current state duration and memory usage of each application process at any time. The importance is determined by the server, which can monitor the state of the service task corresponding to each application process, and can also record the personalized needs of the user for each service task. According to the personalized needs of the user for each service task, the importance of each service task can be determined, and then the importance of each application process can be determined. By setting weight values ​​for the above parameters in advance, when calculating the activity, the weight value is multiplied by the numerical value corresponding to each parameter, and then the activity is calculated using a pre-defined calculation algorithm. For example, the weight value and the parameter can be directly multiplied and the summed result can be used as the activity.

[0095] In some schemes, the method for determining the priority of the application process corresponding to the compressed process data in step S70 may include: obtaining the historical operation frequency and historical operation duration of the application process corresponding to the compressed process data. The priority is obtained by accumulating the product of the historical operation frequency and the historical operation duration. The historical operation frequency and the historical operation duration can be directly determined based on the historical operation data of the vehicle system. In specific implementation, historical operation data within a period of time can be selected for query, such as data within the past week. The greater the historical operation frequency or the longer the historical operation duration, the more likely the user will use the application process, and the higher the possibility of the user using the application process, the higher the priority should be. In this scheme, the product of the historical operation frequency and the historical operation duration can be directly added, and the summed result is used as the priority. Alternatively, the summed results of each application process are sorted, and the sorted sequence number is used as the priority.

[0096] In some schemes, after step S80, if the comparison result is that the remaining space size is greater than or equal to the set value, the method further includes S91: obtaining the running process activity of the uncompressed and running application process. Compress the application process whose running process activity is lower than the first set activity to obtain compressed process data. Store the compressed process data in the preset area. That is, by cleaning up part of the compressed process data in the preset area, when the remaining space in the preset area has met the condition for continuing to store the compressed process data, the activity of the running application process currently in the uncompressed state is screened, so as to continue to select some application processes for compression, thereby realizing the recovery of the memory space of the vehicle system. Among them, the first set activity can be a long-term inactive process or a short-term inactive process. By continuing to compress and store a part of the application processes in the preset area, the overall memory space of the vehicle system can be further released and recovered. When the vehicle system exits the sleep state and enters the normal operating state, it can have a higher operating speed.

[0097] Further preferably, S91 in the above scheme may include: performing reverse page compression processing on the application process whose running process activity is lower than the first set activity and higher than the second set activity to obtain the compressed process data. Performing full compression processing on the application process whose running process activity is lower than the second set activity to obtain the compressed process data, wherein the second set activity is less than the first set activity. That is, for the application process that will hardly be restored to the active state, full compression can be directly performed to release the space of the preset area to the maximum extent. For the application process that may be restored to the active state again, the reverse page compression processing method is adopted for compression, and the compression ratio of the reverse page compression will be higher than the compression ratio of the full compression technology, so it is more convenient when the application process is restored to the active state again and needs to be decompressed. In specific implementation, the above-mentioned long-term inactive process and short-term inactive process can be written into two lists respectively. If a certain application process needs to be compressed, it can be efficiently determined by looking up the table to determine which type the application process belongs to, so that the compression strategy can be quickly determined.

[0098] The present application also provides a vehicle system process control device, such as Figure 4 As shown, including:

[0099] The state detection module 10 is configured to detect the current state of the vehicle system; the operating state of the vehicle system may include off, on, dormant, working, etc. After the vehicle system is turned on, the operating state can be monitored in real time.

[0100] The memory occupancy rate acquisition module 20 is configured to acquire the memory occupancy rate of the vehicle system if the current state is the working state; the memory occupancy rate may be a percentage of the occupied memory space to the total memory space.

[0101] The process activity acquisition module 30 is configured to acquire the running application process in the running state, and obtain the activity of the running application process according to the preset rules; when the vehicle system is in the working state, the system can automatically obtain the list of the currently running application processes. The calculation rules of the activity of each application process can be pre-stored in the vehicle system, and can be determined by the duration of the application process in the current state, the frequency of use of the application process, the priority of the application process, etc.

[0102] The interval level acquisition module 40 is configured to determine the interval level of the memory occupancy rate and obtain a determination result; the interval level includes a plurality of pre-set interval levels, each of which corresponds to a different memory occupancy rate range; the memory occupancy rate ranges corresponding to the plurality of interval levels are different, so the memory occupancy rate ranges can be sorted, and the interval level division result can be obtained using the sorting result.

[0103] The process control module 50 is configured to obtain the process processing strategy corresponding to the interval level in the judgment result as the target process processing strategy, and to detect and kill or compress the running application processes of different activity levels according to the target process processing strategy; wherein each of the interval levels corresponds to a different process processing strategy. wherein the process processing strategies corresponding to different interval levels have different standards for detecting and killing and / or compressing the running application processes.

[0104] Specifically, if the interval level corresponding to the memory occupancy rate is a higher level, for example, the memory occupancy rate is already high and causes the vehicle system to freeze, then more application processes may need to be checked and killed. If the interval level corresponding to the memory occupancy rate is a lower level, it is just that the vehicle system responds slowly to certain services, then fewer processes may need to be checked and killed, and compressing some application process data may meet the requirements. Therefore, in the process processing strategies corresponding to different interval levels, the standards for checking and / or compressing the running application processes are different.

[0105] The solution in the present application detects the current state of the vehicle system. If the vehicle system is in working state, the memory occupancy rate of the vehicle system is monitored. At the same time, the running application process in the running state is obtained and the activity of the running application process is obtained by using preset rules. After determining the interval level of the memory occupancy rate, the process processing strategy corresponding to the interval level is obtained as the target process processing strategy. According to the target process processing strategy, the running application processes of different activity levels can be checked or compressed. The above solution of the present application can, after determining the interval level of the vehicle system memory occupancy rate, use the corresponding target process processing strategy, combined with the activity of the running application process to check or compress, to achieve memory recovery. This solution does not need to limit the scene or special conditions. As long as the vehicle system is in working state, the memory of the vehicle system can be fundamentally recovered, which improves the improvement effect of the memory state.

[0106] In some schemes, the interval level acquisition module 40 is configured as follows: the interval level includes multiple interval levels set from high to low according to the memory occupancy range; according to the memory occupancy and the memory occupancy range corresponding to each interval level, the interval level in which the memory occupancy is located is determined. When determining which interval level the memory occupancy is in, the memory occupancy can be compared with the memory occupancy range in each interval level in order from high to low or from low to high, and the corresponding interval level can be determined by determining the range in which the memory occupancy is located.

[0107] In some schemes, the process control module 50 is configured to, if the judgment result indicates that the interval level of the memory occupancy rate is the high interval level, then kill all running application processes whose activity is lower than the first activity; if the judgment result indicates that the interval level of the memory occupancy rate is the median interval level, compress the application processes whose activity is lower than the second activity by the first compression method, and the second activity is greater than the first activity. If the judgment result indicates that the interval level of the memory occupancy rate is the low interval level, compress the application processes whose activity is lower than the third activity by the second compression method, and the third activity is less than the second activity, and the compression rate of the second compression method is less than the compression rate of the first compression method. When the compression rate is small, the difference in data size before and after compression is smaller. For example, if the memory occupancy rate is within the range of [first memory occupancy rate, 100%), it means that the current vehicle system is at risk of stopping operation, and it is urgent to release more memory as soon as possible to ensure that the vehicle system can resume operation. Therefore, in this scheme, all running application processes with the first activity are killed, thereby releasing memory to the greatest extent. If the memory occupancy rate is within the range of [second memory occupancy rate, first memory occupancy rate), it means that the current vehicle system has been stuck, and its urgency for memory recovery is lower than the high interval level. At this time, the application process with an activity lower than the second activity can be compressed in the first compression method, and the second activity is greater than the first activity. That is, in the high-level interval, all application processes with an activity lower than the first activity are checked and killed. In this solution, some application processes with lower activity can be compressed. The activity of the compressed application process in this process can be higher than the activity of the application process checked and killed in the high interval level, because the impact of the compression process on the application process is less than the killing process. If the memory occupancy rate is within the range of [third memory occupancy rate, second memory occupancy rate), it means that the current vehicle system has been slowed down in response speed, and its urgency for memory recovery is lower than the high interval level and the middle interval level. At this time, the application process with an activity lower than the third activity can be compressed in the second compression method, and the third activity is less than the second activity, and the compression rate of the second compression method is less than the compression rate of the first compression method. That is, in this solution, some application processes with lower activity can be compressed, but the compression rate is lower than the compression rate of the median interval level, that is, the compression process has less impact on the application process, and the activity of the application process compressed in this process can be lower than the activity of the application process compressed in the median interval level. Because in this case, the operation of the vehicle system is at the median interval level, the number of application processes selected during compression can be less than the number of application processes compressed in the median interval level.

[0108] In the above scheme, the first compression method is full compression, and the second compression method is reverse page compression. That is, for compression operations at the middle interval level, full compression can be directly selected to release memory space to the maximum extent. That is, for compression operations at the low interval level, reverse page compression is used for compression. Although the compression rate of reverse page compression is relatively small, it is more convenient when the application process needs to be decompressed when it is restored to an active state again.

[0109] In some schemes, the process activity acquisition module 30 is configured to obtain user identification information and extract historical data associated with the user identification information, wherein the historical data includes the historical start frequency and historical running time of the running application process in a set historical period. The running time, memory occupancy information and importance data of the running application process in this operation are obtained, and the importance data represents the importance of the user service corresponding to the running application process. The activity of the running application process is obtained by weighted operation of the historical start frequency, the historical running time, the running time of this operation, the memory occupancy information and the importance data. The user identification information may be identity authentication information. Each user may have his or her own preferences for some function settings during the use of the vehicle, and the vehicle system may associate and store the setting data of each user with the user's identity information. In this way, when the user's identity is determined, the setting data that meets the user's preferences can be provided to the user. The historical start frequency and the historical running time can be directly determined based on the historical operation data of the vehicle system. In specific implementation, historical operation data within a period of time can be selected for query, such as data within the past week. When the vehicle system is started, the vehicle system can obtain the running time and memory usage information of the running application process in real time. The importance data is determined by the server, which can monitor the status of the service tasks corresponding to each application process, and can also record the user's personalized needs for each service task. The importance of each service task can be determined based on the user's personalized needs for each service task, and then the importance of each application process can be determined. By setting weight values ​​for the above parameters in advance, when calculating the activity, the weight value is multiplied by the numerical value corresponding to each parameter, and then the activity is calculated using a pre-defined calculation algorithm. For example, the weight value and the parameter can be directly multiplied and added as the result as the activity.

[0110] Preferably, the acquiring of user identification information in the above solution includes: detecting at least one biometric information of the user as the user identification information. The biometric information may include face recognition results, voice recognition results, or fingerprint recognition results.

[0111] In some embodiments, the device further comprises:

[0112] The preset space recovery module is configured to detect the remaining space size of the preset area reserved by the vehicle system for storing compressed process data. Obtain the compression process activity of the application corresponding to each compressed process data in the preset area. Compare the remaining space size with the set value to obtain a comparison result. If the comparison result is that the remaining space size is lower than the set value, the application processes corresponding to the compressed process data are checked and killed in sequence according to the arrangement order of the compression process activity until the remaining space size is higher than or equal to the set value. The preset area is a storage area reserved by the vehicle system for storing compressed process data, and this area is reserved in general operating systems. The remaining space size of the preset area can be directly obtained by the vehicle system, and can usually be expressed in size or by percentage. The compressed process data is obtained after compressing the application process, and the activity of the running process can be obtained by the vehicle system in real time. At the same time, the compression operation of the application process performed by the vehicle system can also determine the corresponding relationship between the compressed process data and the application process. Therefore, the vehicle system can obtain the compression process activity of the application process corresponding to the compressed process data in real time. The set value can be determined based on the size of the general compressed process data, and can usually be several times the size of the general compressed process data. If the remaining space in the preset area is too small, it may affect the storage of the compressed process data. Even if the vehicle system is slow or stuck, it is impossible to release memory space by compressing the application processes with low activity. In this step, when the remaining space is less than the set value, the application processes corresponding to the compressed process data can be checked and killed in the order of activity, thereby reclaiming the storage space of the preset area.

[0113] In the above scheme, it can ensure that the remaining space in the reserved preset area is always sufficient, and the vehicle system can recycle the memory space at any time through memory compression, which can effectively improve the operation speed of the vehicle system and avoid freezing. Moreover, when the vehicle system enters the dormant state, the size of the remaining space in the preset area is detected and cleared and released, which can effectively reduce the memory pressure of the vehicle system and reduce the impact of memory compression and application process cleaning on the performance of the vehicle system.

[0114] As a preferred solution, in the above-mentioned preset space recovery module, the arrangement order of the compression process activity can be obtained in the following way: the compression process activity of the application corresponding to the compression process data is sorted from low to high to obtain the arrangement order. In this way, when executing application process killing, the application process with low activity can be killed first. The lower the activity of the application process, the less frequently it is used, or even it has not been used for a long time. Killing the application process will not have an adverse effect on the normal operation of the vehicle system. After killing the application process, its corresponding compression process data is naturally cleaned up, thereby releasing part of the space in the preset area. By releasing the space occupied by one or more compression process data in sequence, the remaining space in the preset area can meet the needs.

[0115] In some schemes, the preset space recovery module is also used to: obtain the priority, current state duration, memory usage and importance of the application process corresponding to each compressed process data, and the importance is used to characterize the importance of the user service corresponding to the application process. The priority, the current state duration, the memory usage and the importance are weighted to obtain the compression process activity of the application process corresponding to each compressed process data. Among them, the priority can be set manually. The current state duration and memory usage can be directly obtained by the vehicle system, because when the vehicle system is running, it can monitor the state of each running application process and can obtain the current state duration and memory usage of each application process at any time. The importance is determined by the server, which can monitor the state of the service task corresponding to each application process, and can also record the personalized needs of the user for each service task. According to the personalized needs of the user for each service task, the importance of each service task can be determined, and then the importance of each application process can be determined. By setting weight values ​​for the above parameters in advance, when calculating the activity, the weight value is multiplied by the numerical value corresponding to each parameter, and then the activity is calculated using a pre-defined calculation algorithm. For example, the weight value and the parameter can be directly multiplied and the summed result can be used as the activity.

[0116] In some schemes, the preset space recovery module is also used to: obtain the historical running frequency and historical running time of the application process corresponding to the compressed process data. The priority is obtained by accumulating the product of the historical running frequency and the historical running time. The historical running frequency and the historical running time can be directly determined based on the historical running data of the vehicle system. The greater the historical running frequency or the longer the historical running time, the more likely it is that the user will use the application process, and the higher the possibility that the user will use the application process, the higher the priority should be. In this scheme, the product of the historical running frequency and the historical running time can be directly added, and the summed result is used as the priority. Alternatively, the summed results of each application process are sorted, and the sorted serial number is used as the priority.

[0117] In some schemes, the preset space recovery module is also used for: if the comparison result is that the remaining space size is greater than or equal to the set value, then the running process activity of the uncompressed and running application process is obtained. The application process whose running process activity is lower than the first set activity is compressed to obtain compressed process data. The compressed process data is stored in the preset area. That is, by cleaning up part of the compressed process data in the preset area, when the remaining space in the preset area has met the conditions for continuing to store the compressed process data, the activity of the running application process currently in the uncompressed state is screened, so as to continue to select some application processes for compression, thereby realizing the recovery of the memory space of the vehicle system. Among them, the first set activity can be a long-term inactive process or a short-term inactive process. By continuing to compress and store a part of the application processes in the preset area, the overall memory space of the vehicle system can be further released and recovered. When the vehicle system exits the sleep state and enters the normal operating state, it can have a higher running speed.

[0118] Further preferably, the preset space recovery module is also used to: perform reverse page compression processing on the application process whose running process activity is lower than the first set activity and higher than the second set activity to obtain the compressed process data. Perform full compression processing on the application process whose running process activity is lower than the second set activity to obtain the compressed process data, wherein the second set activity is less than the first set activity. That is, for the application process that is almost never restored to the active state, full compression can be directly performed to release the space of the preset area to the maximum extent. For the application process that is likely to be restored to the active state again, the reverse page compression processing method is adopted for compression, and the compression ratio of the reverse page compression will be higher than the compression ratio of the full compression technology, so it is more convenient when the application process is restored to the active state again and needs to be decompressed. In specific implementation, the above-mentioned long-term inactive process and short-term inactive process can be written into two lists respectively. If a certain application process needs to be compressed, the type of the application process can be efficiently determined by looking up the table, so that the compression strategy can be quickly determined.

[0119] In some embodiments of the present application, a storage medium is provided, in which program instructions are stored. After a computer calls the program instructions, the vehicle system process control method described in any one of the above embodiments is executed.

[0120] The present application also provides an electronic device, such as Figure 5As shown, the electronic device includes at least one processor 51 and at least one memory 52, at least one of the memories 52 stores program information, and at least one of the processors 51 reads the program information and executes the vehicle system process control method described in any of the above method embodiments. The device may also include: an input device 53 and an output device 54. The processor 51, the memory 52, the input device 53 and the output device 54 can be connected in communication. The memory 52, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The processor 51 executes various functional applications and data processing by running the non-volatile software programs, instructions and modules stored in the memory 52, that is, the vehicle system process control method provided by any of the above schemes is implemented. The memory 52 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created according to the use of the vehicle system process control method, etc. In addition, the memory 52 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 52 may optionally include a memory remotely arranged relative to the processor 51, and these remote memories may be connected to a device for executing the vehicle system process control method via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network and a combination thereof. The input device 53 may receive input user clicks, and generate signal inputs related to user settings and function controls of the vehicle system process control method. The output device 54 may include a display device such as a display screen. When the one or more modules are stored in the memory 52, when they are run by the one or more processors 51, the vehicle system process control method in any of the above-mentioned method embodiments is executed.

[0121] An embodiment of the present application also provides a vehicle computer, which is configured with the vehicle computer system process control device or storage medium or electronic device described in the above solution.

[0122] An embodiment of the present application also provides a vehicle, which includes the vehicle computer described in the above solution.

[0123] As needed, the above technical solutions can be combined to achieve the best technical effect.

[0124] The above are only the principles and preferred embodiments of the present application. It should be noted that, for ordinary technicians in this field, on the basis of the principles of the present application, several other modifications can be made, which should also be considered as the protection scope of the present application.

Claims

1. A vehicle system process control method, characterized in that: include: Detect the current status of the vehicle system; If the current state is a working state, obtaining the memory occupancy rate of the vehicle computer system; Obtaining a running application process in a running state, and obtaining the activity of the running application process according to a preset rule; Determine the interval level of the memory occupancy rate and obtain a determination result; the interval level includes a plurality of preset interval levels, each of the interval levels corresponds to a different memory occupancy rate range; The process processing strategy corresponding to the interval level in the judgment result is obtained as the target process processing strategy, and the running application processes of different activity levels are checked, killed or compressed according to the target process processing strategy; wherein each interval level corresponds to a different process processing strategy.

2. The vehicle system process control method according to claim 1, characterized in that: The interval level includes a plurality of interval levels set from high to low according to the range of memory usage; The determining the interval level of the memory usage rate and obtaining the determination result includes: The interval level to which the memory occupancy rate belongs is determined according to the memory occupancy rate and the memory occupancy rate range corresponding to each of the interval levels.

3. The vehicle system process control method according to claim 2, characterized in that: The interval level includes a high interval level, the process processing strategy corresponding to the interval level in the judgment result is obtained as a target process processing strategy, and the running application processes of different activity levels are checked and killed or compressed according to the target process processing strategy, including: If the judgment result indicates that the interval level of the memory usage rate is the high interval level, all running application processes whose activity level is lower than the first activity level are checked and killed.

4. The vehicle system process control method according to claim 3, characterized in that: The interval level includes a median interval level, the process processing strategy corresponding to the interval level in the judgment result is obtained as a target process processing strategy, and the running application processes of different activity levels are checked and killed or compressed according to the target process processing strategy, including: If the judgment result indicates that the interval level of the memory usage rate is the median interval level, the application process whose activity is lower than the second activity is compressed in the first compression mode, and the second activity is greater than the first activity.

5. The vehicle system process control method according to claim 4, characterized in that: The interval level includes a low interval level, the process processing strategy corresponding to the interval level in the judgment result is obtained as a target process processing strategy, and the running application processes of different activity levels are checked and killed or compressed according to the target process processing strategy, including: If the judgment result indicates that the interval level of the memory occupancy rate is the low interval level, the application process whose activity is lower than the third activity level is compressed using the second compression method, the third activity level is lower than the second activity level, and the compression rate of the second compression method is lower than the compression rate of the first compression method.

6. The vehicle system process control method according to claim 5, characterized in that: The first compression method is a full compression method, and the second compression method is a reverse page compression process.

7. The vehicle system process control method according to claim 1, characterized in that: The acquiring the running application process in the running state and obtaining the activity of the running application process according to a preset rule includes: Acquire user identification information, and extract historical data associated with the user identification information, the historical data including the historical start frequency and historical running time of the running application process in a set historical period; Obtaining the running time, memory usage information and importance data of the running application process, wherein the importance data represents the importance of the user service corresponding to the running application process; The activity of the running application process is obtained by weighted calculation of the historical startup frequency, the historical running time, the running time of the current running, the memory occupancy information and the importance data.

8. The vehicle system process control method according to claim 7, characterized in that: The obtaining of user identification information includes: At least one biometric feature information of the user is detected as the user identification information.

9. The vehicle system process control method according to any one of claims 1 to 8, characterized in that: If the current state is a dormant state, the method further includes: Detecting the remaining space size of a preset area reserved by the vehicle system for storing compressed process data; Obtaining the compression process activity of the application corresponding to each compression process data in the preset area; Compare the remaining space size with a set value to obtain a comparison result; If the comparison result is that the remaining space size is lower than the set value, the application processes corresponding to the compression process data are checked and killed in sequence according to the order of compression process activity until the remaining space size is higher than or equal to the set value.

10. A vehicle system process control device, characterized in that: include: A state detection module is configured to detect the current state of the vehicle system; A memory occupancy rate acquisition module is configured to acquire the memory occupancy rate of the vehicle system if the current state is a working state; A process activity acquisition module is configured to acquire a running application process in a running state and obtain the activity of the running application process according to a preset rule; An interval level acquisition module is configured to determine the interval level of the memory occupancy rate and obtain a determination result; the interval level includes a plurality of preset interval levels, each of which corresponds to a different memory occupancy rate range; The process control module is configured to obtain the process processing strategy corresponding to the interval level in the judgment result as the target process processing strategy, and to detect, kill or compress the running application processes of different activity levels according to the target process processing strategy; wherein each of the interval levels corresponds to a different process processing strategy.

11. A storage medium, characterized in that: The storage medium stores program instructions, and the computer calls the program instructions to execute the vehicle system process control method according to any one of claims 1 to 9.

12. An electronic device, characterized in that: The electronic device includes at least one processor and at least one memory, at least one of the memories stores program information, and at least one of the processors calls the program information and executes the vehicle system process control method according to any one of claims 1-9.

13. A vehicle computer, characterized in that: The vehicle computer is configured with the vehicle computer system process control device according to claim 10 or the storage medium according to claim 11 or the electronic device according to claim 12.

14. A vehicle, characterized in that: The vehicle comprises the vehicle machine according to claim 13.

Citation Information

Patent Citations

  • Memory recycle method and device

    CN107220076A

  • Method and device for memory management, readable storage medium, and terminal

    CN108932163A

  • Memory compression method and device, terminal and storage medium

    CN110457235A

  • Application control method and device, electronic equipment and computer readable medium

    CN111045809A

  • Memory compression method and device, terminal and storage medium

    CN111367828A

Cited By

  • Application operation method and device, processor, vehicle and storage medium

    CN120892103A