System upgrading method and device, medium and equipment
By monitoring the operating status of the equipment and calculating the quality scores of the mirror components and the entire machine software, dynamically selecting the upgrade method, the problem of unintelligent upgrade method in the existing technology is solved, and efficient and stable system upgrade is achieved.
Patent Information
- Application Number
- CN202510252283.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-04
- Publication Date
- 2025-07-04
AI Technical Summary
The existing technology lacks intelligently selecting the optimal upgrade method based on the actual operation of the equipment, resulting in inefficiency in the upgrade process or causing compatibility problems.
By monitoring the operating status of the equipment, calculating the quality scores of the mirror components and the entire machine software, dynamically selecting the entire machine package upgrade or the mirror component upgrade.
Improve the efficiency and stability of system upgrades, avoid unnecessary upgrades to the whole machine, and improve user experience.
Smart Images

Figure CN120255924A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of device operating systems, and in particular, to a system upgrade method, device, medium, and device. Background Art
[0002] Currently, the upgrade methods of operating systems such as the Android system mainly include whole machine package upgrade and mirror component upgrade. As Figure 1 shown, the whole machine package upgrade means downloading and installing the mirror file of the entire operating system on the device for upgrade. As Figure 2 shown, the mirror component upgrade means only downloading and installing the components that need to be updated currently for upgrade.
[0003] In the prior art, the upgrade method of a device is usually determined by the device manufacturer, lacking a mechanism to intelligently select the optimal upgrade method according to the actual operating conditions of the device, which may lead to low efficiency in the upgrade process, consume a large amount of data traffic, or component compatibility problems caused by frequent mirror component upgrades, and cannot maximize the respective advantages of the whole machine package upgrade and the mirror component upgrade. Summary of the Invention
[0004] Based on this, it is necessary to provide a system upgrade method, device, medium, and device to solve the problem that the prior art lacks a mechanism to intelligently select the optimal upgrade method according to the actual operating conditions of the device.
[0005] In a first aspect, an embodiment of the present application provides a system upgrade method, and the method includes:
[0006] When it is detected that the current meets the preset operating state evaluation conditions, calculate the mirror component quality score according to the operating state of each mirror component, and calculate the whole machine software quality score according to the operating state of the whole machine software;
[0007] If the whole machine software quality score is less than a preset first quality score threshold, perform a whole machine package upgrade;
[0008] If the mirror component quality score of the target mirror component is less than a preset second quality score threshold, and the whole machine software quality score is greater than or equal to the preset first quality score threshold, perform a mirror component upgrade on the target mirror component; where the target mirror component is any one of several mirror components in the system.
[0009] In one of the embodiments, the method further includes: when receiving the upgrade push information of the whole machine software and the mirror component, determine that the current meets the preset operating state evaluation conditions;
[0010] If the overall machine software quality score is greater than or equal to a preset first quality score threshold, determine the mirror component to be upgraded according to the upgrade push information of the mirror component, and perform mirror component upgrade on the mirror component to be upgraded.
[0011] In one embodiment, after determining that the current meets the preset operating state evaluation conditions when receiving the upgrade push information of the overall machine software and the mirror component, it further includes:
[0012] Judge whether the upgraded mirror component is compatible with the current overall machine software according to the upgrade push information of the mirror component;
[0013] If the upgraded mirror component is not compatible with the current overall machine software, perform overall machine package upgrade;
[0014] If the upgraded mirror component is compatible with the current overall machine software, execute the steps of calculating the mirror component quality score according to the operating state of each mirror component and calculating the overall machine software quality score according to the operating state of the overall machine software when it is monitored that the current meets the preset operating state evaluation conditions and subsequent steps.
[0015] In one embodiment, the method further includes: whenever at a preset state evaluation moment, determine that the current meets the preset operating state evaluation conditions.
[0016] In one embodiment, the performing overall machine package upgrade includes: verifying whether the server stores the overall machine software to be upgraded, and if the server stores the overall machine software to be upgraded, downloading the overall machine software to be upgraded from the server and installing it;
[0017] The performing mirror component upgrade on the target mirror component includes: verifying whether the server stores the target mirror component to be upgraded, and if the server stores the target mirror component to be upgraded, downloading the target mirror component to be upgraded from the server and installing it.
[0018] In one embodiment, the calculating the mirror component quality score according to the operating state of each mirror component includes:
[0019] Obtain multiple preset exception levels of each mirror component and the number of level exceptions at different preset exception levels, and use the sum of the number of level exceptions at all preset exception levels as the total number of exceptions of each mirror component;
[0020] Calculate the exception score of each mirror component according to the multiple preset exception levels, the number of level exceptions at different preset exception levels, and the total number of exceptions;
[0021] Calculate the image component quality score for each image component according to the abnormal score; wherein, the abnormal score of each image component is negatively correlated with the image component quality score.
[0022] In one embodiment, the calculating the overall software quality score according to the running state of the overall machine software includes:
[0023] Obtain the weight coefficient of each image component;
[0024] Calculate the overall software quality score by weighting according to the weight coefficient and the image component quality score of each image component.
[0025] In a second aspect, an embodiment of the present application further provides a system upgrade device, and the system upgrade device includes:
[0026] A quality score calculation module, configured to calculate the image component quality score according to the running state of each image component and calculate the overall software quality score according to the running state of the overall machine software when it is monitored that the current meets the preset running state evaluation conditions;
[0027] A first judgment and upgrade module, configured to perform an overall package upgrade if the overall software quality score is less than a preset first quality score threshold.
[0028] A second judgment and upgrade module, configured to perform an image component upgrade on the target image component if the image component quality score of the target image component is less than a preset second quality score threshold and the overall software quality score is greater than or equal to the preset first quality score threshold; wherein, the target image component is any one of several image components in the system.
[0029] In a third aspect, an embodiment of the present application further provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps in the above system upgrade method are implemented.
[0030] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above system upgrade method are implemented.
[0031] In a fifth aspect, an embodiment of the present application further provides a computer program product or a computer program, and the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the various optional implementation manners of the embodiments of the present application.
[0032] The present invention provides a system upgrade method, device, medium and equipment. By monitoring the operating state and calculating the quality scores of image components and the overall machine software quality score, the upgrade method is intelligently selected: when the overall machine software quality score is lower than the first threshold, a full machine package upgrade is performed to comprehensively repair system problems; when the overall machine software quality score meets the standard but the quality score of individual components is lower than the second threshold, only the target image component is upgraded. This method can accurately select whether to perform a full machine package upgrade or an image component upgrade according to the actual operating conditions of the device. By dynamically selecting the upgrade method, unnecessary full machine upgrades can be avoided, and local problems can be repaired in a timely manner, thereby improving system efficiency, stability and user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0034] Among them:
[0035] Figure 1 is a schematic diagram of a full machine package upgrade;
[0036] Figure 2 is a schematic diagram of an image component upgrade;
[0037] Figure 3 is a schematic flowchart of the system upgrade method provided by the first embodiment;
[0038] Figure 4 is a schematic flowchart of the system upgrade method provided by the second embodiment;
[0039] Figure 5 is a schematic flowchart of the system upgrade method provided by the third embodiment;
[0040] Figure 6 is a schematic structural diagram of the system upgrade device;
[0041] Figure 7 is a structural block diagram of a terminal device. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0042] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
[0043] The terms "first", "second", etc. in the description, claims and the above-mentioned drawings of this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally further includes steps or units not listed, or optionally further includes other steps or units inherent to these processes, methods, products or devices.
[0044] The mention of "embodiment" herein means that a specific feature, structure or characteristic described in connection with the embodiment can be included in at least one embodiment of this application. The appearance of this phrase at various positions in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.
[0045] Please refer to Figure 3 , Figure 3 , which is a schematic flowchart of the system upgrade method provided for the first embodiment of this application. Although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than that shown in the drawings. Specifically, the specific process of this system upgrade method is as follows:
[0046] S301, when it is monitored that the current meets the preset operating state evaluation conditions, calculate the mirror component quality score according to the operating state of each mirror component, and calculate the overall machine software quality score according to the operating state of the overall machine software.
[0047] Among them, the operating state evaluation condition is the trigger condition for the system to decide whether to perform quality evaluation, and may include system performance degradation, frequent errors, user manual trigger, etc. And the mirror component refers to different software modules or services of the system, see Figure 1 and Figure 2 The mirror components of the system include system components, product components, chip components, configuration components, etc. The mirror component quality score is an index used to quantify the operating condition of each mirror component, and can be calculated based on the stability, response speed, resource consumption, etc. of each mirror component. And the overall machine software quality score is an index used to quantify the operating condition of the entire system, and needs to be calculated by comprehensively considering the operating state of the overall machine software, such as comprehensively considering the mirror component quality scores of each mirror component.
[0048] S302. Determine whether the overall software quality score is less than a preset first quality score threshold. If the overall software quality score is less than the preset first quality score threshold, execute S303 to perform an overall package upgrade. If the overall software quality score is greater than or equal to the preset first quality score threshold, execute S304.
[0049] Among them, the first quality score threshold is a preset threshold used to determine whether the overall software quality reaches the acceptable minimum standard. If the overall software quality score is lower than this threshold, it indicates that the system health status is poor and an overall package upgrade is required. When performing an overall package upgrade, it is necessary to download and install the mirror file of the entire operating system to comprehensively update the system. On the contrary, if the overall software quality score is greater than or equal to this threshold, it indicates that there is no problem with the overall health status of the system, and at this time, execute S304.
[0050] In this way, through the intelligent judgment of upgrading based on the overall software quality score, unnecessary overall package upgrades can be avoided, saving data traffic and upgrade time.
[0051] S304. Determine whether the mirror component quality score of the target mirror component is less than a preset second quality score threshold. If the mirror component quality score of the target mirror component is less than the preset second quality score threshold, execute S305 to perform a mirror component upgrade on the target mirror component.
[0052] Among them, the target mirror component is any one of several mirror components in the system, such as Figure 1 the system components in. It can be understood that the same judgment operation needs to be performed on each mirror component in this step. The second quality score threshold is also a preset threshold used to determine whether the quality of the target mirror component reaches the acceptable minimum standard. If the mirror component quality score of the target mirror component is lower than this second quality score threshold, it indicates that the health status of the target mirror component is poor and a mirror component upgrade is required for the target mirror component.
[0053] In this way, by judging the quality score of the target mirror component, the problem component can be accurately located and repaired, reducing data traffic consumption and upgrade time, and optimizing resource utilization.
[0054] The above system upgrade method monitors the running state and calculates the mirror component quality score and the overall software quality score, and intelligently selects the upgrade method: when the overall software quality score is lower than the first threshold, perform an overall package upgrade to comprehensively repair system problems; when the overall software quality score meets the standard but the quality score of individual components is lower than the second threshold, only upgrade the target mirror component. This method can accurately select whether to perform an overall package upgrade or a mirror component upgrade according to the actual running situation of the device. By dynamically selecting the upgrade method, unnecessary overall upgrades can be avoided, and local problems can be repaired in a timely manner, thereby improving system efficiency, stability, and user experience.
[0055] Optionally, the mirror component quality score can be specifically calculated through the following sub-steps:
[0056] A1. Obtain multiple preset anomaly levels of each mirror component and the number of level anomalies at different preset anomaly levels, and take the sum of the number of level anomalies at all preset anomaly levels as the total number of anomalies of each mirror component.
[0057] Among them, the preset anomaly level is the result of classifying the possible anomalies of the mirror component. For example, it includes minor anomalies: such as short-term response delays. Medium anomalies: such as intermittent functional failures. Severe anomalies: such as component crashes or inability to start. Of course, it can also be in other forms. Then, the number of times the mirror component has an anomaly at each preset anomaly level is used as the number of level anomalies. The total number of times the mirror component has an anomaly at all preset anomaly levels is used as the total number of anomalies.
[0058] A2. Calculate the anomaly score of each mirror component based on multiple preset anomaly levels, the number of level anomalies at different preset anomaly levels, and the total number of anomalies.
[0059] Among them, the anomaly score reflects the severity of the anomalies of the mirror component. The anomaly score can be calculated by exponentially weighting the preset anomaly levels, the number of level anomalies at different preset anomaly levels, and the total number of anomalies, or by weighted summation and other methods.
[0060] A3. Calculate the mirror component quality score of each mirror component based on the anomaly score.
[0061] Among them, the anomaly score of each mirror component has a negative correlation with the mirror component quality score. It can be calculated by taking the negative value, or by the exponential decay method:
[0062] Mirror component quality score = 100×e -(异常分数×λ)
[0063] In the above formula, λ is a preset coefficient.
[0064] It can also be calculated by logarithmic mapping:
[0065] Mirror component quality score = 100 - (log 10 (anomaly score + 1)×k)
[0066] Optionally, the calculation formula for the mirror component quality score is as follows:
[0067]
[0068] In the above formula, Represents the quality score of the m-th mirror component, with a value ranging from 0 to 1. If the calculated result is less than 0, the value is taken as 0, that is: i represents the abnormality level of the mirror component, with a value ranging from 0 to 1. The larger the value, the higher the abnormality level; Represents the number of abnormal levels of the mirror component at the preset abnormal level i; E component Represents the total number of abnormalities of the mirror component.
[0069] Optionally, the overall software quality score can be specifically calculated through the following sub-steps:
[0070] B1. Obtain the weight coefficient of each mirror component.
[0071] Among them, the weight coefficient here is used to represent the importance of each mirror component in the overall software. It can be a preset fixed value manually, or the weight coefficient can be determined according to the actual usage times of each mirror component. Of course, it can also be in other forms.
[0072] B2. Calculate the overall software quality score by weighting according to the weight coefficient of each mirror component and the mirror component quality score.
[0073] Optionally, the calculation formula for the overall software quality score is as follows:
[0074]
[0075] In the above formula, S represents the quality score of the entire system software, with a value ranging from 0 to 1. If the calculated result is less than 0, the value is taken as 0, that is: S = max(0, S); Represents the weight coefficient of the m-th mirror component in the system software, with a value ranging from 0 to 1; Represents the quality score of the m-th mirror component. M represents the total number of mirror components.
[0076] Please refer to Figure 4 , Figure 4 , which is a schematic flow diagram of the system upgrade method provided in the second embodiment of this application. Specifically, the specific process of the system upgrade method in the second embodiment is as follows:
[0077] S401. When receiving the upgrade push information of the overall software and the mirror component, determine that the current meets the preset operating state evaluation conditions.
[0078] Among them, the upgrade push information refers to the upgrade notice issued by the device manufacturer. Generally speaking, when only the upgrade push information of the whole machine software is received for upgrade, the whole machine package upgrade is performed. When only the upgrade push information of the mirror component is received for upgrade, the mirror component upgrade is performed. Once the upgrade push information of both the whole machine software and the mirror component is received, the system needs to judge which method to use for upgrade according to the current actual situation, so it is determined that the current preset operating state evaluation conditions are met.
[0079] S402. When it is monitored that the current preset operating state evaluation conditions are met, calculate the mirror component quality score according to the operating state of each mirror component, and calculate the whole machine software quality score according to the operating state of the whole machine software.
[0080] S403. Judge whether the whole machine software quality score is less than the preset first quality score threshold. If the whole machine software quality score is less than the preset first quality score threshold, execute S404 to perform the whole machine package upgrade; if the whole machine software quality score is greater than or equal to the preset first quality score threshold, execute S405 to determine the mirror component to be upgraded according to the upgrade push information of the mirror component, and perform the mirror component upgrade on the mirror component to be upgraded.
[0081] It can be understood that S402 - S404 in the system upgrade method provided in this second embodiment is basically the same as S301 - S303 in the system upgrade method provided in the first embodiment, so it will not be elaborated here. The difference between this second embodiment and the first embodiment is that since it is the upgrade notice actively issued by the device manufacturer, on the premise that the whole machine software quality score is greater than or equal to the preset first quality score threshold, there is no need to judge the mirror component quality score anymore, and the local upgrade of the mirror component that needs to be upgraded can be directly performed. This method can save resources, improve efficiency, accurately repair problems, and at the same time maintain system stability and user experience.
[0082] Optionally, after S401, when the upgrade push information of both the whole machine software and the mirror component is received and it is determined that the current preset operating state evaluation conditions are met, the following steps can also be executed:
[0083] C1. Judge whether the upgraded mirror component is compatible with the current whole machine software according to the upgrade push information of the mirror component. If the upgraded mirror component is not compatible with the current whole machine software, execute S404; if the upgraded mirror component is compatible with the current whole machine software, execute S402.
[0084] Exemplarily, the current whole machine software is V1.1, and the current product component is V1.1. If the upgraded product component V1.2 is compatible with the current whole machine software V1.1, then only the product component can be upgraded with the mirror component. Otherwise, the whole machine package upgrade must be performed.
[0085] At the same time, this method can avoid compatibility problems and improve system stability.
[0086] Please refer to Figure 5 , Figure 5 , which is a schematic flowchart of the system upgrade method provided in the third embodiment of this application. Specifically, the specific process of the system upgrade method in the third embodiment is as follows:
[0087] S501. Whenever at a preset state evaluation moment, it is determined that the current meets the preset operating state evaluation conditions.
[0088] Specifically, the state evaluation moment refers to a time point or trigger condition preset by the system for regularly or on-demand evaluating the operating state of the device. These moments can be: Timing trigger: For example, 2:00 am every day. Event trigger: For example, device startup, idle state, or user manual trigger. Condition trigger: For example, the device has sufficient power, is connected to a Wi-Fi network, etc.
[0089] S502. When it is monitored that the current meets the preset operating state evaluation conditions, calculate the mirror component quality score according to the operating state of each mirror component, and calculate the overall machine software quality score according to the operating state of the overall machine software.
[0090] S503. Determine whether the overall machine software quality score is less than a preset first quality score threshold. If the overall machine software quality score is less than the preset first quality score threshold, then execute S504 to perform an overall machine package upgrade. If the overall machine software quality score is greater than or equal to the preset first quality score threshold, then execute S505.
[0091] S505. Determine whether the mirror component quality score of the target mirror component is less than a preset second quality score threshold. If the mirror component quality score of the target mirror component is less than the preset second quality score threshold, execute S506 to perform a mirror component upgrade on the target mirror component.
[0092] It can be understood that S502 - S506 in the system upgrade method provided in this third embodiment are basically the same as S301 - S305 in the system upgrade method provided in the first embodiment, so details will not be described again.
[0093] This third embodiment can trigger detection for upgrade at a preset state evaluation moment, and can effectively maintain system stability and user experience.
[0094] Optionally, the overall machine package upgrade in S504 specifically includes the following sub - steps:
[0095] S504A. Check whether the server stores the overall machine software to be upgraded. If the server stores the overall machine software to be upgraded, then download the overall machine software to be upgraded from the server and install it.
[0096] Specifically, the system sends a request to the server to query whether there is the latest version of the whole machine software. If the server returns that there is the latest version of the whole machine software available for upgrade, the system downloads the whole machine software image file from the server and verifies the integrity and signature of the file. After the verification passes, the system restarts the device and installs the whole machine software.
[0097] The mirror component upgrade of the target mirror component by S506 specifically includes the following sub-steps:
[0098] S506A, check whether the server stores the target mirror component to be upgraded. If the server stores the target mirror component to be upgraded, download the target mirror component to be upgraded from the server and install it.
[0099] Similarly, the system sends a request to the server to query whether there is the latest version of the target mirror component. If the server returns that there is the latest version of the target mirror component available for upgrade, the system downloads the update package of the latest version of the target mirror component from the server and verifies the integrity and signature of the file. After the verification passes, the system installs it and restarts the relevant services.
[0100] In this way, through the server verification, the availability and integrity of the upgrade content are ensured, and the upgrade failure caused by missing or damaged files is avoided.
[0101] To facilitate the better implementation of the system upgrade method of the present application, the present application also provides a system upgrade device based on the above system upgrade method. The meanings of the nouns are the same as those in the above system upgrade method, and the specific implementation details can refer to the description in the method embodiments.
[0102] Please refer to Figure 6 , Figure 6 which is a schematic structural diagram of the system upgrade device provided by the embodiments of the present application, and specifically may include:
[0103] A quality score calculation module 601, configured to calculate the mirror component quality score according to the running state of each mirror component and calculate the whole machine software quality score according to the running state of the whole machine software when it is monitored that the current meets the preset running state evaluation conditions;
[0104] A first judgment and upgrade module 602, configured to perform a whole machine package upgrade if the whole machine software quality score is less than a preset first quality score threshold.
[0105] A second judgment and upgrade module 603, configured to perform a mirror component upgrade on the target mirror component if the mirror component quality score of the target mirror component is less than a preset second quality score threshold and the whole machine software quality score is greater than or equal to the preset first quality score threshold; wherein, the target mirror component is any one of several mirror components in the system.
[0106] Optionally, in some embodiments of the present application, the system upgrade device is further configured to: when receiving the upgrade push information of the whole machine software and the image components, determine that the current meets the preset operating state evaluation conditions; if the quality score of the whole machine software is greater than or equal to the preset first quality score threshold, determine the image components to be upgraded according to the upgrade push information of the image components, and perform image component upgrade on the image components to be upgraded.
[0107] Optionally, in some embodiments of the present application, after receiving the upgrade push information of the whole machine software and the image components and determining that the current meets the preset operating state evaluation conditions, it further includes: judging whether the upgraded image components are compatible with the current whole machine software according to the upgrade push information of the image components; if the upgraded image components are not compatible with the current whole machine software, perform whole machine package upgrade; if the upgraded image components are compatible with the current whole machine software, execute the steps of calculating the image component quality score according to the operating state of each image component and calculating the whole machine software quality score according to the operating state of the whole machine software when it is monitored that the current meets the preset operating state evaluation conditions and subsequent steps.
[0108] Optionally, in some embodiments of the present application, the system upgrade device is further configured to: determine that the current meets the preset operating state evaluation conditions whenever at the preset state evaluation moment.
[0109] Optionally, in some embodiments of the present application, performing whole machine package upgrade includes: verifying whether the server stores the whole machine software to be upgraded, and if the server stores the whole machine software to be upgraded, downloading the whole machine software to be upgraded from the server and installing it;
[0110] Performing image component upgrade on the target image components includes: verifying whether the server stores the target image components to be upgraded, and if the server stores the target image components to be upgraded, downloading the target image components to be upgraded from the server and installing them.
[0111] Optionally, in some embodiments of the present application, calculating the image component quality score according to the operating state of each image component includes: obtaining multiple preset abnormal levels of each image component and the number of level anomalies at different preset abnormal levels, and taking the sum of the number of level anomalies at all preset abnormal levels as the total number of anomalies of each image component; calculating the anomaly score of each image component according to the multiple preset abnormal levels, the number of level anomalies at different preset abnormal levels and the total number of anomalies; calculating the image component quality score of each image component according to the anomaly score; wherein, the anomaly score of each image component is negatively correlated with the image component quality score.
[0112] Optionally, in some embodiments of the present application, the overall software quality score is calculated according to the running state of the overall machine software, including: obtaining the weight coefficient of each mirror component; calculating the overall machine software quality score by weighted calculation based on the weight coefficient of each mirror component and the mirror component quality score.
[0113] The above system upgrade device monitors the running state through the quality score calculation module and calculates the mirror component quality score and the overall machine software quality score, and then intelligently selects the upgrade method. The first judgment and upgrade module is used to perform an overall machine package upgrade to comprehensively repair system problems when the overall machine software quality score is lower than the first threshold; the second judgment and upgrade module is used to only upgrade the target mirror component when the overall machine software quality score meets the standard but the quality score of individual components is lower than the second threshold. This device can accurately select whether to perform an overall machine package upgrade or a mirror component upgrade according to the actual running situation of the device. By dynamically selecting the upgrade method, it can not only avoid unnecessary overall machine upgrades but also timely repair local problems, thereby improving system efficiency, stability, and user experience.
[0114] In addition, the present application also provides a terminal device, as Figure 7 shown, which shows a schematic structural diagram of the terminal device involved in the present application. Specifically:
[0115] The terminal device may include a processor 701 with one or more processing cores, a memory 702 with one or more computer-readable storage media, a power supply 703, an input unit 704, and other components. Those skilled in the art can understand that Figure 7 the structural diagram of the terminal device shown in does not constitute a limitation on the terminal device, and it may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0116] Among them:
[0117] The processor 701 is the control center of the terminal device, connecting various parts of the entire terminal device through various interfaces and lines. By running or executing software programs and / or modules stored in the memory 702, and calling data stored in the memory 702, it executes various functions of the terminal device and processes data, thereby performing overall monitoring of the terminal device. Optionally, the processor 701 may include one or more processing cores; preferably, the processor 701 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communication. It can be understood that the above modem processor may not be integrated into the processor 701.
[0118] The memory 702 can be used to store software programs and modules. The processor 701 executes various functional applications and data processing by running the software programs and modules stored in the memory 702. The memory 702 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function, etc.; the data storage area can store data created according to the use of the terminal device, etc. In addition, the memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 702 may also include a memory controller to provide the processor 701 with access to the memory 702.
[0119] The terminal device further includes a power supply 703 for powering each component. Preferably, the power supply 703 can be logically connected to the processor 701 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 703 may also include any components such as one or more DC or AC power supplies, a recharge system, a power device debugging circuit, a power converter or inverter, and a power status indicator.
[0120] The terminal device may further include an input unit 704, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
[0121] Although not shown, the terminal device may further include a display unit, etc., which will not be elaborated here. Specifically, in this embodiment, the processor 701 in the terminal device will load the executable files corresponding to the processes of one or more application programs into the memory 702 according to the following instructions, and the processor 701 will run the application programs stored in the memory 702, so as to implement the steps in any system upgrade method provided in the embodiments of the present application: when it is monitored that the current meets the preset operating state evaluation conditions, calculate the mirror component quality score according to the operating state of each mirror component, and calculate the overall machine software quality score according to the operating state of the overall machine software; if the overall machine software quality score is less than the preset first quality score threshold, perform an overall machine package upgrade. If the mirror component quality score of the target mirror component is less than the preset second quality score threshold, and the overall machine software quality score is greater than or equal to the preset first quality score threshold, perform a mirror component upgrade on the target mirror component; where the target mirror component is any one of several mirror components in the system.
[0122] In this way, by monitoring the running status and calculating the quality scores of the image components and the overall machine software, the upgrade method is intelligently selected: when the quality score of the overall machine software is lower than the first threshold, a full machine package upgrade is performed to comprehensively repair system problems; when the quality score of the overall machine software meets the standard but the quality score of individual components is lower than the second threshold, only the target image components are upgraded. This method can accurately select whether to perform a full machine package upgrade or an image component upgrade according to the actual running conditions of the device. By dynamically selecting the upgrade method, unnecessary full machine upgrades can be avoided, and local problems can be repaired in a timely manner, thereby improving system efficiency, stability, and user experience.
[0123] For the specific implementation of each of the above operations, reference may be made to the foregoing embodiments and will not be elaborated herein.
[0124] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling relevant hardware through instructions. The instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0125] Therefore, the present application provides a computer-readable storage medium on which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any of the system upgrade methods provided by the present application.
[0126] For the specific implementation of each of the above operations, reference may be made to the foregoing embodiments and will not be elaborated herein.
[0127] Among them, the computer-readable storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
[0128] Since the instructions stored in the computer-readable storage medium can execute the steps in any of the system upgrade methods provided by the present application, the beneficial effects achievable by any of the system upgrade methods provided by the present application can be realized. For details, reference may be made to the foregoing embodiments and will not be elaborated herein.
[0129] The above has introduced in detail a system upgrade method, device, terminal device, and computer-readable storage medium provided by the present application. Specific examples are used herein to elaborate on the principles and implementation manners of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation to the present invention.
Claims
1. A system upgrade method, characterized in that, The method includes: When it is monitored that the current meets the preset operating state evaluation conditions, calculate the mirror component quality score according to the operating state of each mirror component, and calculate the overall machine software quality score according to the operating state of the overall machine software; If the overall machine software quality score is less than the preset first quality score threshold, perform an overall machine package upgrade; If the mirror component quality score of the target mirror component is less than the preset second quality score threshold, and the overall machine software quality score is greater than or equal to the preset first quality score threshold, perform a mirror component upgrade on the target mirror component; wherein, the target mirror component is any one of several mirror components in the system.
2. The system upgrade method according to claim 1, wherein The method further includes: when receiving the upgrade push information of the overall machine software and the mirror component, determine that the current meets the preset operating state evaluation conditions; If the overall machine software quality score is greater than or equal to the preset first quality score threshold, determine the mirror component to be upgraded according to the upgrade push information of the mirror component, and perform a mirror component upgrade on the mirror component to be upgraded.
3. The system upgrade method according to claim 2, wherein After determining that the current meets the preset operating state evaluation conditions when receiving the upgrade push information of the overall machine software and the mirror component, it further includes: Judge whether the upgraded mirror component is compatible with the current overall machine software according to the upgrade push information of the mirror component; If the upgraded mirror component is not compatible with the current overall machine software, perform an overall machine package upgrade; If the upgraded mirror component is compatible with the current overall machine software, execute the steps of calculating the mirror component quality score according to the operating state of each mirror component and calculating the overall machine software quality score according to the operating state of the overall machine software when it is monitored that the current meets the preset operating state evaluation conditions and subsequent steps.
4. The system upgrade method according to claim 1, wherein The method further includes: whenever at the preset state evaluation moment, determine that the current meets the preset operating state evaluation conditions.
5. The system upgrade method according to claim 4, wherein Performing the overall machine package upgrade includes: verifying whether the server stores the overall machine software to be upgraded, and if the server stores the overall machine software to be upgraded, download the overall machine software to be upgraded from the server and install it; Performing the mirror component upgrade on the target mirror component includes: verifying whether the server stores the target mirror component to be upgraded, and if the server stores the target mirror component to be upgraded, download the target mirror component to be upgraded from the server and install it.
6. The system upgrade method according to claim 1, wherein Calculating the mirror component quality score according to the operating state of each mirror component includes: Obtain multiple preset abnormal levels of each mirror component and the number of level abnormalities under different preset abnormal levels, and use the sum of the number of level abnormalities under all preset abnormal levels as the total number of abnormalities of each mirror component; Calculate the abnormal score of each mirror component according to the multiple preset abnormal levels, the number of level abnormalities under different preset abnormal levels, and the total number of abnormalities; Calculate the mirror component quality score of each mirror component according to the abnormal score; wherein, the abnormal score of each mirror component is negatively correlated with the mirror component quality score.
7. The system upgrade method according to claim 1, wherein Calculating the overall machine software quality score according to the operating state of the overall machine software includes: Obtain the weight coefficient of each mirror component; The overall software quality score is calculated by weighted calculation based on the weight coefficient of each mirror component and the mirror component quality score.
8. A system upgrade device, characterized in that The system upgrade device includes: A quality score calculation module, configured to calculate the mirror component quality score according to the running state of each mirror component and calculate the overall software quality score according to the running state of the overall software when it is monitored that the current meets the preset running state evaluation conditions; A first judgment and upgrade module, configured to perform an overall package upgrade if the overall software quality score is less than a preset first quality score threshold; A second judgment and upgrade module, configured to perform a mirror component upgrade on the target mirror component if the mirror component quality score of the target mirror component is less than a preset second quality score threshold and the overall software quality score is greater than or equal to the preset first quality score threshold; wherein, the target mirror component is any one of several mirror components in the system.
9. A computer-readable storage medium, characterized in that, A computer program is stored, and when the computer program is executed by a processor, the processor is caused to execute the steps of the method according to any one of claims 1 to 7.
10. A terminal device, characterized in that, It includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor is caused to execute the steps of the method according to any one of claims 1 to 7.
Citation Information
Cited By
Personalized upgrading method and system of smart television
CN122160574A