CN116527503A - Method and device for determining upgrade strategy, storage medium and electronic device - Google Patents

Method and device for determining upgrade strategy, storage medium and electronic device Download PDF

Info

Publication number
CN116527503A
CN116527503A CN202310315951.7A CN202310315951A CN116527503A CN 116527503 A CN116527503 A CN 116527503A CN 202310315951 A CN202310315951 A CN 202310315951A CN 116527503 A CN116527503 A CN 116527503A
Authority
CN
China
Prior art keywords
upgrade
upgrading
task
target
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310315951.7A
Other languages
Chinese (zh)
Inventor
沈鹏飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202310315951.7A priority Critical patent/CN116527503A/en
Publication of CN116527503A publication Critical patent/CN116527503A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • H04L41/0836Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability to enhance reliability, e.g. reduce downtime
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0883Semiautomatic configuration, e.g. proposals from system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0894Policy-based network configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a method and a device for determining an upgrade strategy, a storage medium and an electronic device, and relates to the technical field of smart families, wherein the method for determining the upgrade strategy comprises the following steps: determining a target upgrading task to be configured; configuring upgrade times for the target upgrade task, wherein the upgrade times are the maximum times of the target upgrade task allowed to execute upgrade operation; and under the condition that the target upgrading task is started, controlling the upgrading strategy of the target upgrading task according to the upgrading times. The problem that an upgrading scheme in the related technology, the upgrading safety and reliability are controlled manually, and an abnormal upgrading task cannot be found and terminated in time, so that the upgrading task is caused to continuously influence more user equipment is solved.

Description

Method and device for determining upgrade strategy, storage medium and electronic device
Technical Field
The application relates to the technical field of smart families, in particular to a method and a device for determining an upgrade strategy, a storage medium and an electronic device.
Background
When the device OTA (Over-the-Air Technology) upgrade is based on the applicable version for firmware upgrade, once the upgrade task is started, the upgrade task is validated for the device matched with the whole network, specifically, when the device is online, if the matched and validated upgrade task exists, the platform issues an upgrade instruction. The device receiving the instruction can automatically upgrade or pop the window and upgrade after the user confirms. In this process, unless a task is manually suspended, the matched devices can be matched and upgraded in the effective execution period of the upgrade task, and once an abnormality occurs and the abnormality is not found in time, the abnormal upgrade may be continuously generated later, wherein the reasons of the abnormality are diversified, and the abnormality may be caused by the difference of the devices, or the bug may occur in a firmware package or a platform. If the device is still available, the upgrade failure only affects the user experience. If the equipment fails and is not available, the loss of property of the customer is directly caused, and the consequences are quite serious. When such unpredictable problems occur, more refined configuration and regulatory restrictions should be made in a high risk upgrade scenario in order to mitigate the impact of the incident.
However, the current upgrading task is effective for all matched devices, and the execution ranges of the upgrading tasks of different production lines are different, the number of related user devices is different, so the current upgrading task cannot be finely controlled in a differentiation mode; when a specific abnormality occurs and the upgrading failure rate is high, the issuing platform of the upgrading task does not automatically terminate the ability of continuing upgrading; the control mode of upgrading according to the flow is not adopted, and the flexibility is not enough.
Aiming at the problems that in the related technology, the existing upgrading scheme is manually controlled, the upgrading safety and reliability are abnormal and the upgrading task can not be found and terminated in time, so that the upgrading task is caused to continuously influence more user equipment, and no effective solution is provided.
Accordingly, there is a need for improvements in the related art to overcome the drawbacks of the related art.
Disclosure of Invention
The embodiment of the application provides a method and a device for determining an upgrading strategy, a storage medium and an electronic device, which are used for at least solving the problem that the upgrading task is continuously influenced on more user equipment due to the fact that the upgrading task cannot be timely found and terminated due to the fact that the upgrading safety and the reliability are controlled manually when abnormality occurs in the upgrading scheme in the related technology.
According to an aspect of the embodiments of the present application, there is provided a method for determining an upgrade policy, including: determining a target upgrading task to be configured; configuring upgrade times for the target upgrade task, wherein the upgrade times are the maximum times of the target upgrade task allowed to execute upgrade operation; and under the condition that the target upgrading task is started, controlling the upgrading strategy of the target upgrading task according to the upgrading times.
In an exemplary embodiment, controlling the upgrade policy of the target upgrade task according to the upgrade times includes: determining the current upgrading times of the target upgrading task in the appointed equipment; determining that the target upgrading task allows the designated equipment to continue upgrading under the condition that the current upgrading frequency is smaller than or equal to the upgrading frequency; and under the condition that the current upgrading times are larger than the upgrading times, suspending the upgrading operation of the target upgrading task on the appointed equipment.
In an exemplary embodiment, after controlling the upgrade policy of the target upgrade task according to the upgrade times, the method further includes: acquiring the upgrading success rate of the target upgrading task in a first historical time period; under the condition that the upgrade success rate is greater than a first threshold value, expanding the upgrade times according to an upgrade increment index; and under the condition that the upgrade success rate is smaller than or equal to a first threshold value, reducing the upgrade times according to the upgrade decremental index.
In one exemplary embodiment, expanding the number of upgrades according to an upgrade increment index includes: acquiring a historical upgrade success rate of the upgrade task in a second historical time period, wherein the second historical time period is before the first historical time period; and determining the average upgrading success rate of the upgrading success rate and the historical upgrading success rate, and expanding the upgrading times according to the average upgrading success rate and the upgrading increment index.
In an exemplary embodiment, after determining the target upgrade task to be configured, the method further comprises: configuring an upgrade exception white list for the target upgrade task, wherein the upgrade exception white list comprises identifiers of a plurality of target upgrade tasks, and the maximum number of times that the plurality of target upgrade tasks allow to execute upgrade operations is not configured; and under the condition that the upgrading times of the target upgrading task for executing the upgrading operation exceeds a second threshold value, sending out an alarm prompt through any device which is executing the target upgrading task.
In an exemplary embodiment, after determining the target upgrade task to be configured, the method further comprises: configuring an upgrade exception blacklist for the target upgrade task, wherein the upgrade exception blacklist comprises: one or more exception types; acquiring the occurrence times of the one or more abnormal types in the process of executing the upgrading operation by the target upgrading task; and if the occurrence number of the target abnormal type is greater than a third threshold value, suspending executing the target upgrading task.
In an exemplary embodiment, after controlling the upgrade policy of the target upgrade task according to the upgrade times, the method further includes: and under the condition that the abnormal termination of the target upgrading task is detected, executing an abnormal alarm event to inform a target object to detect the running state of the target upgrading task again.
According to another aspect of the embodiments of the present application, there is also provided an apparatus for determining an upgrade policy, including: the determining module is used for determining a target upgrading task to be configured; the configuration module is used for configuring the upgrade times for the target upgrade task, wherein the upgrade times are the maximum times of the target upgrade task allowed to execute upgrade operation; and the control module is used for controlling the upgrading strategy of the target upgrading task according to the upgrading times under the condition that the target upgrading task is started.
According to yet another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the above-described method of determining an upgrade policy when run.
According to still another aspect of the embodiments of the present application, there is further provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the method for determining the upgrade policy by using the computer program.
According to the method and the device, a target upgrading task to be configured is determined; configuring upgrade times for the target upgrade task, wherein the upgrade times are the maximum times of the target upgrade task allowed to execute upgrade operation; and under the condition that the target upgrading task is started, controlling the upgrading strategy of the target upgrading task according to the upgrading times. That is, by configuring the maximum number of times that the target upgrading task allows the upgrading operation to be executed, and further controlling the upgrading strategy of the target upgrading task according to the maximum number of times that the upgrading operation is allowed to be executed, by adopting the technical scheme, the problem that the upgrading scheme in the related art, the upgrading safety and reliability are controlled manually, the upgrading task can not be found and terminated in time due to abnormality, and the upgrading task is caused to continuously influence more user equipment is solved; the technical effects of controlling the abnormal influence in a certain range and further improving the system stability and the product experience are achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a hardware environment for an alternative method of determining an upgrade policy according to embodiments of the present application;
FIG. 2 is a flow chart of an alternative method of determining an upgrade policy according to embodiments of the present application;
FIG. 3 is a flow diagram of an alternative method of determining an upgrade policy according to embodiments of the present application;
FIG. 4 is a block diagram of an alternative upgrade policy determination device according to an embodiment of the present application;
fig. 5 is another block diagram of an alternative upgrade policy determination apparatus according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiments of the present application, a method for determining an upgrade policy is provided. The method for determining the upgrade strategy is widely applied to full-house intelligent digital control application scenes such as Smart Home (Smart Home), intelligent Home equipment ecology, intelligent Home (intelligent house) ecology and the like. Alternatively, in the present embodiment, the above-described determination method of the upgrade policy may be applied to a hardware environment constituted by a plurality of terminal apparatuses 102 and servers 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to a plurality of terminal devices 102 through a network, and may be used to provide services (such as application services, etc.) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 104, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data operation services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
In this embodiment, a method for determining an upgrade policy is provided, including but not limited to being applied to a computer terminal, and fig. 2 is a flowchart of a method for determining an upgrade policy according to an embodiment of the present application, where the flowchart includes the following steps:
Step S202: determining a target upgrading task to be configured;
step S204: configuring upgrade times for the target upgrade task, wherein the upgrade times are the maximum times of the target upgrade task allowed to execute upgrade operation;
optionally, the upgrade times can be configured for the target upgrade task through the upgrade policy configuration platform, and the upgrade times can be configured for the target upgrade task through the terminal remotely and sent to the upgrade policy configuration platform through the cloud.
Step S206: and under the condition that the target upgrading task is started, controlling the upgrading strategy of the target upgrading task according to the upgrading times.
Through the steps, determining a target upgrading task to be configured; configuring upgrade times for the target upgrade task, wherein the upgrade times are the maximum times of the target upgrade task allowed to execute upgrade operation; and under the condition that the target upgrading task is started, controlling the upgrading strategy of the target upgrading task according to the upgrading times. That is, by configuring the maximum number of times that the target upgrading task allows the upgrading operation to be executed, and further controlling the upgrading strategy of the target upgrading task according to the maximum number of times that the upgrading operation is allowed to be executed, by adopting the technical scheme, the problem that the upgrading scheme in the related art, the upgrading safety and reliability are controlled manually, the upgrading task can not be found and terminated in time due to abnormality, and the upgrading task is caused to continuously influence more user equipment is solved; the technical effects of controlling the abnormal influence in a certain range and further improving the system stability and the product experience are achieved.
In an exemplary embodiment, controlling the upgrade policy of the target upgrade task according to the upgrade times includes: determining the current upgrading times of the target upgrading task in the appointed equipment; determining that the target upgrading task allows the designated equipment to continue upgrading under the condition that the current upgrading frequency is smaller than or equal to the upgrading frequency; and under the condition that the current upgrading times are larger than the upgrading times, suspending the upgrading operation of the target upgrading task on the appointed equipment.
Optionally, the number of devices to be upgraded (which may be the estimation result) is determined, and the number of upgrades configured for the target upgrade task is determined according to the number of devices to be upgraded. In order to ensure that the possible influence is controlled to be minimum in the case of an upgrade abnormality, one thousandth, or the like of the number can be selected as the upgrade number in the case of an extremely large number of devices to be upgraded, or a smaller number within the number of devices to be upgraded can be selected as the upgrade number.
For example, the device to be upgraded may be 10000, and the number of upgrades configured for the target upgrade task may be one thousandth, that is, 10 times, of the device to be upgraded; the number of upgrades may also be set directly to 50. Setting the upgrade times to 50, and further determining that the designated equipment is the nth equipment (i.e. the upgrade task is already executed by the nth time when the upgrade task is executed to the designated equipment) for the upgrade operation under the condition that the upgrade time is executed to the designated equipment, and further determining that the target upgrade task can be executed at the designated equipment under the condition that the N is less than or equal to 50; in the case where N is greater than 50, determining that the target upgrade task may not be performed on the designated device, and determining to suspend upgrade operations of the target upgrade task on all remaining devices to be upgraded. It should be noted that the designated device may be any device of the devices to be upgraded.
In an exemplary embodiment, after controlling the upgrade policy of the target upgrade task according to the upgrade times, the method further includes: acquiring the upgrading success rate of the target upgrading task in a first historical time period; under the condition that the upgrade success rate is greater than a first threshold value, expanding the upgrade times according to an upgrade increment index; and under the condition that the upgrade success rate is smaller than or equal to a first threshold value, reducing the upgrade times according to the upgrade decremental index.
It can be understood that after the control target upgrade task upgrades the to-be-upgraded devices with the upgrade times, the number of successfully upgraded devices in the to-be-upgraded devices with the upgrade times is obtained, and the upgrade success rate is calculated by taking the set upgrade times as a base number. Optionally, the first threshold may be set to 80%, and if the upgrade success rate is greater than 80%, the upgrade number is enlarged according to the upgrade increment index, and optionally, the upgrade increment index may be set to a multiple, a percentage, or the like, which is not limited in the embodiment of the present application. If the upgrade success rate is less than or equal to the first threshold value, further determining whether the upgrade success rate is less than half of the first threshold value, and if so, determining whether the corresponding relation between the upgrade task and the equipment to be upgraded is set in error (such as error of equipment identification and version number of the upgrade task); and the upgrade times can be reduced according to the upgrade decremental index, and the upgrade success rate can be redetermined.
In one exemplary embodiment, expanding the number of upgrades according to an upgrade increment index includes: acquiring a historical upgrade success rate of the upgrade task in a second historical time period, wherein the second historical time period is before the first historical time period; and determining the average upgrading success rate of the upgrading success rate and the historical upgrading success rate, and expanding the upgrading times according to the average upgrading success rate and the upgrading increment index.
Optionally, after the number of upgrades is enlarged according to the upgrade increment index, the upgrade success rate is used as a historical upgrade success rate and used for determining the next number of upgrades. Optionally, under the condition that the upgrading times of the target upgrading task are expanded for a plurality of times, determining a plurality of upgrading success rates corresponding to a plurality of historical time periods, determining an average upgrading success rate of the plurality of upgrading success rates, and expanding the upgrading times according to the average upgrading success rate and the upgrading increment index. It is understood that expanding the number of upgrades according to the average upgrade success rate and the upgrade increment index includes: and expanding the upgrading times according to the product of the average upgrading success rate, the upgrading increment index and the upgrading times.
In an exemplary embodiment, after determining the target upgrade task to be configured, the method further comprises: configuring an upgrade exception white list for the target upgrade task, wherein the upgrade exception white list comprises identifiers of a plurality of target upgrade tasks, and the maximum number of times that the plurality of target upgrade tasks allow to execute upgrade operations is not configured; and under the condition that the upgrading times of the target upgrading task for executing the upgrading operation exceeds a second threshold value, sending out an alarm prompt through any device which is executing the target upgrading task.
It can be understood that there is a target upgrade task with a low risk of upgrade, and the target upgrade task with a low risk is generally an upgrade task that does not involve a main program of a device or firmware of the device, that is, it can be known that such an upgrade task does not affect the operation of the device itself. Therefore, an upgrade abnormal white list can be set for a plurality of target upgrade tasks with low risks, and identifications generated or distributed by the plurality of target upgrade tasks when the target upgrade tasks are generated are recorded in the upgrade abnormal white list. Optionally, a second threshold may be set for the target upgrade task with low risk, where the second threshold may be set as the number of devices to be upgraded, and further, under the condition that the upgrade number of the target upgrade task in the upgrade abnormal white list exceeds the second threshold, it may be determined that the upgrade process is repeatedly executed, or the upgrade process is in error, and further, the alarm prompt is executed.
In an exemplary embodiment, after determining the target upgrade task to be configured, the method further comprises: configuring an upgrade exception blacklist for the target upgrade task, wherein the upgrade exception blacklist comprises: one or more exception types; acquiring the occurrence times of the one or more abnormal types in the process of executing the upgrading operation by the target upgrading task; and if the occurrence number of the target abnormal type is greater than a third threshold value, suspending executing the target upgrading task.
Optionally, the target upgrading task is recorded in an upgrading exception blacklist in the reason that the equipment to be upgraded is in an upgrading exception, or the exception type of the target object which wants to collect data has the greatest influence on the equipment to be upgraded, so that the number of times that any exception type occurs in the upgrading number is counted, and under the condition that the number of times that the target exception type occurs is greater than a third threshold value, the execution of the target upgrading task is paused.
In an exemplary embodiment, after controlling the upgrade policy of the target upgrade task according to the upgrade times, the method further includes: and under the condition that the abnormal termination of the target upgrading task is detected, executing an abnormal alarm event to inform a target object to detect the running state of the target upgrading task again.
Optionally, executing the abnormal alert event includes: and sending the abnormal alarm information to a terminal of the target object or broadcasting the abnormal alarm event by voice.
It will be apparent that the embodiments described above are only some, but not all, of the embodiments of the present application. In order to better understand the determination method of the upgrade policy, the following description will explain the foregoing process with reference to the embodiments, but is not intended to limit the technical solutions of the embodiments of the present application, specifically:
the equipment is upgraded into high-risk operation, so that the process control of an OTA (Over-the-Air Technology) process is enhanced, the equipment upgrading safety is improved, the user experience is improved, the product competitiveness is improved, and the situation that the customer equipment is not available due to the problem of equipment upgrading, and further the loss of customers and company property is caused, and the product experience and brand image are affected is avoided. It is important to improve reliability and security of OTA processes. Therefore, the details are noted in the configuration and control links, and it is necessary to strengthen the flow control.
Therefore, in the upgrade task execution link, especially when a higher risk upgrade or a large area upgrade is performed on the client device, in order to prevent a large number of anomalies from occurring in the upgrade of the device due to unexpected and unpredictable problems, and further to cause serious production accidents, the alternative embodiments of the present application may configure and limit the upgrade times according to different scenarios, where configuring and limiting the upgrade times includes: the upgrading times are configured and the abnormal upgrading times are configured, so that the effects of gradually upgrading the client equipment, timely finding out problems and timely terminating the upgrading task are achieved, and further problem diffusion is prevented.
Optionally, fig. 3 is a flow chart of an optional method for determining an upgrade policy according to an embodiment of the present application, as shown in fig. 3, with the following steps:
step S301: and upgrading the task configuration.
Step S301 further includes: step S3011: normally configuring relevant configuration of the upgrade task; step S3012: limiting the upgradeable times of the upgrade task; step S3013: and configuring an upgrade abnormal white list.
Step S302: and starting the task.
Step S303: and executing upgrading operation on the equipment to be upgraded according to the upgrading task.
Step S304: and upgrading the record.
Step S305: judging whether an upgrade limit exists or not, and if so, entering step S306 and step S309 at the same time; and if no upgrade limit exists, ending the upgrade task.
It should be noted that the upgrade limitation includes limitation of the number of upgrades, abnormality of upgrade, and the like.
Step S306: and monitoring the upgrade task through the upgrade frequency limit controller.
Step S307: determining whether the upgrade number limiting controller in step S306 is triggered, and if so, proceeding to step S308; and if not triggered, ending the upgrading task.
Step S308: the task is suspended.
Step S309: and monitoring the upgrade task through the upgrade anomaly controller.
Step S310: determining whether the upgrade anomaly controller in step S309 is triggered, and if so, proceeding to step S311; and if not triggered, ending the upgrading task.
Step S308: the task pauses and alarms.
After step S308 and/or step S311 is performed, the upgrade task ends.
Based on the above steps, it can be appreciated that the platform provides and performs the upgrade count limit configuration. In the upgrade task configuration stage, a configurator can configure a fixed upgrade number limit for the upgrade task, and after each task is started, the number of devices allowed to be upgraded is the number corresponding to the upgrade number limit (for example, the upgrade number limit is 50, and the number of devices executing the upgrade task is 50), and after the upgrade number limit is exceeded, the upgrade task can be automatically paused, and the configurator waits for further confirmation and restarting the task to continue upgrading. When the configurator does not configure the upgrading task, the configurator indicates that the task does not limit the upgrading times, and generally, the non-configured upgrading task is a low-risk upgrading task, and a prompt is given out when the risk is high.
Furthermore, 1) the platform also provides an upgrade frequency increment configuration strategy, and an upgrade task configuration stage is used for setting initial upgrade frequency, qualified upgrade rate index and upgrade frequency increment index. When the number of the one-stage upgrading reaches the standard, the upgrading success rate reaches the standard, and the number of the upgrading is automatically increased according to the upgrading increment index, so that the high-efficiency upgrading is continued.
2) The platform can be used for configuring an upgrade abnormal blacklist for the upgrade task, and is used for limiting the number of times of abnormal upgrade, and the upgrade task automatically pauses once certain specific abnormality occurs n times in the execution process of the upgrade task, so that the manual subsequent analysis and processing are convenient.
3) The platform also provides an upgrade termination alarm, and once the task is abnormally terminated in the steps, the OTA upgrade abnormal alarm is triggered to inform relevant personnel to process in time.
Further, the embodiment of the application has the following key points: OTA is a high-risk operation, and once an upgrade task is started, the upgrade task is effective to all matched devices in the whole network, so that upgrade refinement control and upgrade processes aiming at different scenes are needed. The number of times of executing the upgrade is controlled to be used for finely controlling the upgrade task, the upgrade control and arrangement progress and flow are timely found out and processed, and the problem is prevented; the number control of abnormal upgrading is used for automatically starting a protection mechanism when the system is abnormal in upgrading, suspending upgrading tasks and triggering an alarm, preventing the problem caused by the abnormality from further spreading seriously and controlling the generated influence in a certain range.
Furthermore, if the upgrading times of the OTA equipment are not controlled, and problems are found and solved manually, timeliness of problem processing is poor, user experience is poor if the upgrading is too many in abnormal failure in upgrading execution, and once the user equipment is unavailable after upgrading, the damage is larger. Based on the above, the optional embodiment of the application strictly controls the upgrading process, limits the upgrading times, upgrades the user equipment in a small range, and upgrades the equipment in a large area or comprehensively after the user equipment is stable and free of errors. According to the method and the device for upgrading the mobile terminal, the optional embodiment can also sense the abnormality in advance, monitor the upgrading abnormality in advance according to the configurable abnormal upgrading limit, trigger the critical value to automatically terminate the upgrading task, facilitate subsequent personnel to process, control the influence of the abnormality and the accident in a certain range, and promote the stability of the system and the product experience.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the embodiments of the present application.
The embodiment also provides a device for determining an upgrade policy, which is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
FIG. 4 is a block diagram of an alternative upgrade policy determination apparatus according to an embodiment of the present application, the apparatus comprising:
a determining module 42, configured to determine a target upgrade task to be configured;
a configuration module 44, configured to configure an upgrade number for the target upgrade task, where the upgrade number is a maximum number of times the target upgrade task is allowed to perform an upgrade operation;
and the control module 46 is configured to control an upgrade policy of the target upgrade task according to the upgrade times when the target upgrade task is started.
Determining a target upgrading task to be configured through the device; configuring upgrade times for the target upgrade task, wherein the upgrade times are the maximum times of the target upgrade task allowed to execute upgrade operation; and under the condition that the target upgrading task is started, controlling the upgrading strategy of the target upgrading task according to the upgrading times. That is, by configuring the maximum number of times that the target upgrading task allows the upgrading operation to be executed, and further controlling the upgrading strategy of the target upgrading task according to the maximum number of times that the upgrading operation is allowed to be executed, by adopting the technical scheme, the problem that the upgrading scheme in the related art, the upgrading safety and reliability are controlled manually, the upgrading task can not be found and terminated in time due to abnormality, and the upgrading task is caused to continuously influence more user equipment is solved; the technical effects of controlling the abnormal influence in a certain range and further improving the system stability and the product experience are achieved.
In an exemplary embodiment, the control module 46 is further configured to determine a current number of upgrades of the target upgrade task at a specified device; determining that the target upgrading task allows the designated equipment to continue upgrading under the condition that the current upgrading frequency is smaller than or equal to the upgrading frequency; and under the condition that the current upgrading times are larger than the upgrading times, suspending the upgrading operation of the target upgrading task on the appointed equipment.
Optionally, the number of devices to be upgraded (which may be the estimation result) is determined, and the number of upgrades configured for the target upgrade task is determined according to the number of devices to be upgraded. In order to ensure that the possible influence is controlled to be minimum in the case of an upgrade abnormality, one thousandth, or the like of the number can be selected as the upgrade number in the case of an extremely large number of devices to be upgraded, or a smaller number within the number of devices to be upgraded can be selected as the upgrade number.
For example, the device to be upgraded may be 10000, and the number of upgrades configured for the target upgrade task may be one thousandth, that is, 10 times, of the device to be upgraded; the number of upgrades may also be set directly to 50. Setting the upgrade times to 50, and further determining that the designated equipment is the nth equipment (i.e. the upgrade task is already executed by the nth time when the upgrade task is executed to the designated equipment) for the upgrade operation under the condition that the upgrade time is executed to the designated equipment, and further determining that the target upgrade task can be executed at the designated equipment under the condition that the N is less than or equal to 50; in the case where N is greater than 50, determining that the target upgrade task may not be performed on the designated device, and determining to suspend upgrade operations of the target upgrade task on all remaining devices to be upgraded. It should be noted that the designated device may be any device of the devices to be upgraded.
In an exemplary embodiment, as shown in fig. 5, the apparatus further includes an expansion module 58, configured to obtain an upgrade success rate of the target upgrade task over a first historical period of time; under the condition that the upgrade success rate is greater than a first threshold value, expanding the upgrade times according to an upgrade increment index; and under the condition that the upgrade success rate is smaller than or equal to a first threshold value, reducing the upgrade times according to the upgrade decremental index.
It can be understood that after the control target upgrade task upgrades the to-be-upgraded devices with the upgrade times, the number of successfully upgraded devices in the to-be-upgraded devices with the upgrade times is obtained, and the upgrade success rate is calculated by taking the set upgrade times as a base number. Optionally, the first threshold may be set to 80%, and if the upgrade success rate is greater than 80%, the upgrade number is enlarged according to the upgrade increment index, and optionally, the upgrade increment index may be set to a multiple, a percentage, or the like, which is not limited in the embodiment of the present application. If the upgrade success rate is less than or equal to the first threshold value, further determining whether the upgrade success rate is less than half of the first threshold value, and if so, determining whether the corresponding relation between the upgrade task and the equipment to be upgraded is set in error (such as error of equipment identification and version number of the upgrade task); and the upgrade times can be reduced according to the upgrade decremental index, and the upgrade success rate can be redetermined.
In an exemplary embodiment, the augmentation module 58 is further configured to obtain a historical upgrade success rate of the upgrade task for a second historical period of time, where the second historical period of time precedes the first historical period of time; and determining the average upgrading success rate of the upgrading success rate and the historical upgrading success rate, and expanding the upgrading times according to the average upgrading success rate and the upgrading increment index.
Optionally, after the number of upgrades is enlarged according to the upgrade increment index, the upgrade success rate is used as a historical upgrade success rate and used for determining the next number of upgrades. Optionally, under the condition that the upgrading times of the target upgrading task are expanded for a plurality of times, determining a plurality of upgrading success rates corresponding to a plurality of historical time periods, determining an average upgrading success rate of the plurality of upgrading success rates, and expanding the upgrading times according to the average upgrading success rate and the upgrading increment index. It is understood that expanding the number of upgrades according to the average upgrade success rate and the upgrade increment index includes: and expanding the upgrading times according to the product of the average upgrading success rate, the upgrading increment index and the upgrading times.
In an exemplary embodiment, after determining the target upgrade task to be configured, the configuration module 44 is further configured to configure an upgrade exception white list for the target upgrade task, where the upgrade exception white list includes identifiers of a plurality of target upgrade tasks, and a maximum number of times that the plurality of target upgrade tasks allow to perform an upgrade operation is not configured; and under the condition that the upgrading times of the target upgrading task for executing the upgrading operation exceeds a second threshold value, sending out an alarm prompt through any device which is executing the target upgrading task.
It can be understood that there is a target upgrade task with a low risk of upgrade, and the target upgrade task with a low risk is generally an upgrade task that does not involve a main program of a device or firmware of the device, that is, it can be known that such an upgrade task does not affect the operation of the device itself. Therefore, an upgrade abnormal white list can be set for a plurality of target upgrade tasks with low risks, and identifications generated or distributed by the plurality of target upgrade tasks when the target upgrade tasks are generated are recorded in the upgrade abnormal white list. Optionally, a second threshold may be set for the target upgrade task with low risk, where the second threshold may be set as the number of devices to be upgraded, and further, under the condition that the upgrade number of the target upgrade task in the upgrade abnormal white list exceeds the second threshold, it may be determined that the upgrade process is repeatedly executed, or the upgrade process is in error, and further, the alarm prompt is executed.
In an exemplary embodiment, after determining the target upgrade task to be configured, the configuration module 44 is further configured to configure an upgrade exception blacklist for the target upgrade task, where the upgrade exception blacklist includes: one or more exception types; acquiring the occurrence times of the one or more abnormal types in the process of executing the upgrading operation by the target upgrading task; and if the occurrence number of the target abnormal type is greater than a third threshold value, suspending executing the target upgrading task.
Optionally, the target upgrading task is recorded in an upgrading exception blacklist in the reason that the equipment to be upgraded is in an upgrading exception, or the exception type of the target object which wants to collect data has the greatest influence on the equipment to be upgraded, so that the number of times that any exception type occurs in the upgrading number is counted, and under the condition that the number of times that the target exception type occurs is greater than a third threshold value, the execution of the target upgrading task is paused.
In an exemplary embodiment, after controlling the upgrade policy of the target upgrade task according to the upgrade times, the control module 46 is further configured to execute an abnormal alarm event to notify a target object to re-detect the running state of the target upgrade task if the abnormal termination of the target upgrade task is detected.
Optionally, executing the abnormal alert event includes: and sending the abnormal alarm information to a terminal of the target object or broadcasting the abnormal alarm event by voice.
Embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, determining a target upgrading task to be configured;
s2, configuring upgrade times for the target upgrade task, wherein the upgrade times are the maximum times of the target upgrade task allowed to execute upgrade operation;
s3, under the condition that the target upgrading task is started, controlling the upgrading strategy of the target upgrading task according to the upgrading times.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
Embodiments of the present application also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, determining a target upgrading task to be configured;
s2, configuring upgrade times for the target upgrade task, wherein the upgrade times are the maximum times of the target upgrade task allowed to execute upgrade operation;
s3, under the condition that the target upgrading task is started, controlling the upgrading strategy of the target upgrading task according to the upgrading times.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (10)

1. A method for determining an upgrade policy, comprising:
determining a target upgrading task to be configured;
Configuring upgrade times for the target upgrade task, wherein the upgrade times are the maximum times of the target upgrade task allowed to execute upgrade operation;
and under the condition that the target upgrading task is started, controlling the upgrading strategy of the target upgrading task according to the upgrading times.
2. The method according to claim 1, wherein controlling the upgrade policy of the target upgrade task according to the number of upgrades comprises:
determining the current upgrading times of the target upgrading task in the appointed equipment;
determining that the target upgrading task allows the designated equipment to continue upgrading under the condition that the current upgrading frequency is smaller than or equal to the upgrading frequency;
and under the condition that the current upgrading times are larger than the upgrading times, suspending the upgrading operation of the target upgrading task on the appointed equipment.
3. The method according to claim 1, wherein after controlling the upgrade policy of the target upgrade task according to the number of upgrades, the method further comprises:
acquiring the upgrading success rate of the target upgrading task in a first historical time period;
Under the condition that the upgrade success rate is greater than a first threshold value, expanding the upgrade times according to an upgrade increment index;
and under the condition that the upgrade success rate is smaller than or equal to a first threshold value, reducing the upgrade times according to the upgrade decremental index.
4. The method of claim 3, wherein expanding the number of upgrades according to an upgrade increment index comprises:
acquiring a historical upgrade success rate of the upgrade task in a second historical time period, wherein the second historical time period is before the first historical time period;
and determining the average upgrading success rate of the upgrading success rate and the historical upgrading success rate, and expanding the upgrading times according to the average upgrading success rate and the upgrading increment index.
5. The method for determining an upgrade policy according to claim 1, wherein after determining a target upgrade task to be configured, the method further comprises:
configuring an upgrade exception white list for the target upgrade task, wherein the upgrade exception white list comprises identifiers of a plurality of target upgrade tasks, and the maximum number of times that the plurality of target upgrade tasks allow to execute upgrade operations is not configured;
And under the condition that the upgrading times of the target upgrading task for executing the upgrading operation exceeds a second threshold value, sending out an alarm prompt through any device which is executing the target upgrading task.
6. The method of determining an upgrade policy according to claim 4, wherein after determining a target upgrade task to be configured, the method further comprises:
configuring an upgrade exception blacklist for the target upgrade task, wherein the upgrade exception blacklist comprises: one or more exception types;
acquiring the occurrence times of the one or more abnormal types in the process of executing the upgrading operation by the target upgrading task;
and if the occurrence number of the target abnormal type is greater than a third threshold value, suspending executing the target upgrading task.
7. The method according to claim 1, wherein after controlling the upgrade policy of the target upgrade task according to the number of upgrades, the method further comprises:
and under the condition that the abnormal termination of the target upgrading task is detected, executing an abnormal alarm event to inform a target object to detect the running state of the target upgrading task again.
8. An upgrade policy determination apparatus, comprising:
the determining module is used for determining a target upgrading task to be configured;
the configuration module is used for configuring the upgrade times for the target upgrade task, wherein the upgrade times are the maximum times of the target upgrade task allowed to execute upgrade operation;
and the control module is used for controlling the upgrading strategy of the target upgrading task according to the upgrading times under the condition that the target upgrading task is started.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program when run performs the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of claims 1 to 7 by means of the computer program.
CN202310315951.7A 2023-03-28 2023-03-28 Method and device for determining upgrade strategy, storage medium and electronic device Pending CN116527503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310315951.7A CN116527503A (en) 2023-03-28 2023-03-28 Method and device for determining upgrade strategy, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310315951.7A CN116527503A (en) 2023-03-28 2023-03-28 Method and device for determining upgrade strategy, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN116527503A true CN116527503A (en) 2023-08-01

Family

ID=87403726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310315951.7A Pending CN116527503A (en) 2023-03-28 2023-03-28 Method and device for determining upgrade strategy, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN116527503A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117573172A (en) * 2024-01-15 2024-02-20 天津异乡好居网络科技股份有限公司 Client updating method, device, equipment and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117573172A (en) * 2024-01-15 2024-02-20 天津异乡好居网络科技股份有限公司 Client updating method, device, equipment and medium
CN117573172B (en) * 2024-01-15 2024-04-12 天津异乡好居网络科技股份有限公司 Client updating method, device, equipment and medium

Similar Documents

Publication Publication Date Title
EP3032841B1 (en) Indoor device, home system, control method, and program
CN116527503A (en) Method and device for determining upgrade strategy, storage medium and electronic device
CN115296977B (en) Fault information processing method and device, storage medium and electronic device
CN111130867B (en) Intelligent household equipment alarm method and device based on Internet of things
KR20170043895A (en) Method, system and computer-readable recording medium for security operation using internet of thing gateway
CN105843675B (en) Thread exit method and device
JP6664343B2 (en) Software update management system and program
CN115826553A (en) Fault removing method and electronic device
CN110986291A (en) Equipment management method and device and air conditioner
CN111324504A (en) Method and device for monitoring running state of power communication network
US11348447B2 (en) Alarm management system and alarm management method
WO2019036915A1 (en) Machine room security monitoring method and apparatus based on internet of things, and storage medium
CN113961385A (en) Intelligent equipment exception handling method and device and computer readable storage medium
CN108933963A (en) Method for upgrading software and device
CN117749843A (en) Scene triggering method and device, storage medium and electronic device
CN115174297B (en) Method and device for updating attribute information, storage medium and electronic device
CN118377235A (en) Method and device for judging execution of operation instruction, storage medium and electronic device
CN116170344A (en) Message monitoring method and device, storage medium and electronic device
CN115174382B (en) Equipment upgrading method, storage medium and electronic device
CN116483449A (en) Equipment awakening method and device, storage medium and electronic device
CN114189424B (en) Intelligent device control method, intelligent device control device, electronic device, medium and program product
CN116185466A (en) Method and device for sending upgrading result, storage medium and electronic device
US9170575B2 (en) Facilities control system and operating method of the same
CN115390467A (en) Voice interaction method and device, storage medium and electronic device
CN117591346A (en) Method and device for determining log current limiting value, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination