WO2015169028A1 - On-line upgrade method and device for terminal software - Google Patents

On-line upgrade method and device for terminal software Download PDF

Info

Publication number
WO2015169028A1
WO2015169028A1 PCT/CN2014/086979 CN2014086979W WO2015169028A1 WO 2015169028 A1 WO2015169028 A1 WO 2015169028A1 CN 2014086979 W CN2014086979 W CN 2014086979W WO 2015169028 A1 WO2015169028 A1 WO 2015169028A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
software
upgrade
online
identifier
Prior art date
Application number
PCT/CN2014/086979
Other languages
French (fr)
Chinese (zh)
Inventor
孙漠舟
惠文武
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015169028A1 publication Critical patent/WO2015169028A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • the present invention relates to the field of terminal software processing technologies, and in particular, to an online upgrade method and apparatus for terminal software.
  • Cloud terminal products can be used not only for cloud desktops, but also for individual use. It can be widely applied to basic office in the communications industry, government and enterprise industries, financial industry, etc., and can also meet the needs of professionals and home users for learning and leisure.
  • a cloud terminal management software can manage hundreds of cloud terminals.
  • the software upgrade process is initiated.
  • the cloud terminal management software sends the URL and upgrade information of the upgrade server to the terminal, and the cloud terminal downloads a new version of the software data to be upgraded from the download server/upgrade server for upgrading.
  • This type of technology has certain drawbacks: if a cloud terminal suddenly fails during the upgrade process, such as: a crash or a power outage. After the fault is rectified, the subsequent upgrade process of the cloud terminal cannot be completed.
  • the terminal downloads the software to be upgraded from the server to perform online upgrade of the software, the terminal is faulty and disconnects from the server (when the terminal is offline), and the terminal cannot be completed.
  • the upgrade process will cause the software upgrade of the terminal to fail.
  • the main purpose of the embodiment of the present invention is to provide an online upgrade method and device for the terminal software, which is to achieve the follow-up upgrade process of the terminal when the terminal is re-online, and effectively avoid the softness of the terminal.
  • the upgrade fails, improving the efficiency and success rate of the terminal software upgrade.
  • An online upgrade method for terminal software comprising the following steps:
  • the subsequent upgrade operation of the terminal software is continued according to the obtained software upgrade identifier.
  • the step of continuing the subsequent upgrade operation of the terminal software according to the obtained software upgrade identifier includes:
  • the method further includes:
  • the subsequent upgrade operations of each terminal software are continued according to the software upgrade identifiers corresponding to the obtained terminals, in order from the first to the last, until all terminal software upgrades are completed.
  • the method further includes:
  • the subsequent upgrade operations of each terminal software are continued according to the software upgrade identifiers corresponding to the acquired terminals, in order from the first to the last, until all terminal software upgrades are completed.
  • the method further includes:
  • the step of continuing the subsequent upgrade operation of the terminal software according to the acquired software upgrade identifier is performed.
  • An online upgrading device for terminal software comprising a receiving module, a processing module and an upgrading module, wherein:
  • the receiving module is configured to: receive status information of the software upgrade reported by the terminal during an online upgrade process of the terminal software;
  • the processing module is configured to: set a corresponding software upgrade identifier for the terminal according to the status information of the software upgrade and save the file; and when detecting that the terminal is offline, from the saved software upgrade identifier of the terminal, Obtain the software upgrade identifier whose save time is closest to the current time;
  • the upgrade module is configured to continue the subsequent upgrade operation of the terminal software according to the obtained software upgrade identifier when detecting that the terminal is online again.
  • the upgrading module is configured to continue the subsequent upgrade operation of the terminal software according to the obtained software upgrade identifier as follows:
  • the processing module is further configured to: when determining that multiple terminals simultaneously perform online upgrade of the software, obtain network status information of each terminal, and sort each terminal according to a network status;
  • the upgrade module is further configured to: sequentially follow the order from the first to the last, and continue to perform subsequent upgrade operations of each terminal software according to the acquired software upgrade identifiers of the terminals until all terminal software upgrades are completed.
  • the processing module is further configured to: when a plurality of terminals simultaneously perform online upgrade of the software, obtain a current upgrade progress of each terminal software, and sort each terminal according to a current upgrade progress;
  • the upgrade module is further configured to: continue the subsequent upgrade operations of the terminal software according to the acquired software upgrade identifiers of each terminal according to the order of the first to last order, until all the terminal software upgrades are completed.
  • the device further includes an analysis module,
  • the analyzing module is configured to: when detecting that the terminal is online again, determine whether it is necessary to continue the software upgrade operation of the terminal;
  • the upgrade module is further configured to: end the software upgrade operation of the terminal when the software upgrade operation of the terminal is not required to be continued; when the software upgrade operation of the terminal needs to be continued, continue according to the obtained software upgrade identifier The subsequent upgrade operation of the terminal software.
  • the embodiment of the present invention reports the status information of the software upgrade in the software upgrade process by the terminal, and sets the corresponding software upgrade identifier according to the reported software upgrade status information.
  • the upgrade after the identifier of the software upgrade is continued according to the identifier of the software upgrade, so that the terminal is faulty and the communication is disconnected from the server (when the terminal is offline), and the subsequent upgrade process of the terminal is continued, thereby effectively preventing the software upgrade of the terminal from failing.
  • Situation improve the efficiency and success rate of terminal software upgrades.
  • FIG. 1 is a schematic flowchart of an online upgrade method of a terminal software according to a first embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for online upgrading of terminal software according to a second embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a method for online upgrading of terminal software according to a third embodiment of the present invention.
  • FIG. 4 is a schematic diagram of functional modules of an online upgrading apparatus for terminal software according to an alternative embodiment of the present invention.
  • FIG. 1 is a schematic flowchart diagram of an online upgrade method of a terminal software according to a first embodiment of the present invention.
  • step S10 in the online upgrade process of the terminal software, the status information of the software upgrade reported by the terminal is received, and the corresponding software upgrade identifier is set and saved according to the status information of the software upgrade.
  • the terminal detects that the software version number stored locally is different from the latest software version number, the terminal initiates an online upgrade process of the software.
  • the terminal sends an online upgrade request of the software to the server where the terminal management software is located, and the server where the terminal management software is located sends the URL and upgrade information of the upgrade server to the terminal, and the terminal downloads the new version of the software to be upgraded from the download server/upgrade server. upgrade.
  • the main body in which the technical solution of the present invention is implemented in the embodiment of the present invention may be a server where the terminal management software is located, an upgrade server, or the like.
  • the server where the terminal management software is located is preferably used as the execution subject, and the server where the terminal management software is located is described by the A server.
  • the A server manages each terminal connected to it, for example, online upgrade management of the terminal software, terminal offline, online status monitoring, terminal data forwarding control, and the like.
  • the A server receives the software upgrade reported by the terminal.
  • the status information is set and the corresponding software upgrade identifier is set and saved according to the status information of the software upgrade.
  • the status information of the software upgrade includes, but is not limited to, the progress of the terminal software upgrade, the speed of the software upgrade, and the like.
  • the terminal may report the status information of the software upgrade once a preset time interval.
  • the preset time may be a default time interval of the system, or may be a time interval set by the user according to the needs of the user, for example, may be 10s, 20s, or the like.
  • Step S20 When detecting that the terminal is offline, obtain a software upgrade identifier whose save time is closest to the current time from the saved software upgrade identifier of the terminal.
  • the terminal When the terminal is in an abnormal state, such as a fault or a power failure, the terminal is offline for the upgrade server and the A server, and cannot receive the data to be upgraded sent by the upgrade server. For example, in the interaction between the cloud terminal and the cloud server, when the cloud terminal logs out of the cloud server, it is determined that the cloud terminal is offline.
  • the A server detects the online status of the terminal.
  • the terminal determines that the terminal is offline, and obtains the save time from the saved software upgrade identifier of the terminal.
  • the most recent software upgrade identifier That is, the latest upgrade point that the terminal has recorded is obtained.
  • the method for determining the offline state of the terminal may be: the terminal sends a heartbeat packet to the A server in real time or periodically, and the A server does not receive the heartbeat packet within a certain time (5s, 8s, etc.). When the heartbeat packet is sent by the terminal, it is determined that the terminal is offline.
  • Step S30 when detecting that the terminal is online again, continue the subsequent upgrade operation of the terminal software according to the obtained software upgrade identifier.
  • the cloud terminal When the terminal is re-powered or re-powered, that is, when the terminal is re-online, the cloud terminal is considered to be in the interaction between the cloud terminal and the cloud server, that is, when the cloud terminal logs in to the cloud server through the login account. Go online again.
  • the subsequent upgrade operation of the terminal software is continued according to the obtained software upgrade identifier.
  • the part that is not upgraded in the data to be upgraded is obtained according to the obtained software upgrade identifier.
  • the unupgraded part of the data to be upgraded is sent to the terminal, and the software upgrade operation of the terminal is continued.
  • the software upgrade part after the software upgrade logo is performed.
  • the A server determines whether it needs to continue.
  • the software upgrade operation of the terminal is performed; when the software upgrade operation of the terminal is not required to be continued, the software upgrade operation of the terminal is ended; when the software upgrade operation of the terminal needs to be continued, the software upgrade identifier is continued according to the acquired software upgrade identifier. Subsequent upgrade operations of the terminal software.
  • the terminal may be one terminal or multiple terminals.
  • the software upgrade operation of the terminal needs to be continued, the software upgrade of the terminal is continued. Avoid escalation operations that interfere with other operations by the user through the terminal. Improve the flexibility of terminal software upgrades, thereby improving the user experience.
  • the status information of the software upgrade in the software upgrade process is reported by the terminal, and the corresponding software upgrade identifier is set according to the status information of the reported software upgrade, and when the terminal is offline and online again, according to the The upgrade of the software upgrade continues the upgrade after the identifier of the software upgrade, and the terminal is faulty, causing the communication to be disconnected from the server (when the terminal is offline), and the subsequent upgrade process of the terminal is completed, thereby effectively preventing the software upgrade failure of the terminal and improving.
  • the efficiency and success rate of terminal software upgrades is performed by the terminal, and the corresponding software upgrade identifier is set according to the status information of the reported software upgrade, and when the terminal is offline and online again, according to the The upgrade of the software upgrade continues the upgrade after the identifier of the software upgrade, and the terminal is faulty, causing the communication to be disconnected from the server (when the terminal is offline), and the subsequent upgrade process of the terminal is completed, thereby effectively preventing the software upgrade failure of the terminal and improving.
  • FIG. 2 is a schematic flowchart diagram of an online upgrade method of terminal software according to a second embodiment of the present invention. Based on the foregoing first embodiment, when multiple terminals simultaneously perform online upgrade of software, the method further includes the steps of:
  • Step S40 Obtain network state information of each terminal, and sort each terminal according to a network state
  • step S50 the preset number of terminals are selected in order from the first to the last, and the subsequent upgrade operations of the software are continued according to the corresponding software upgrade identifiers until all terminal software upgrades are completed.
  • the A server obtains network status information of each terminal, and the network status information includes but is not limited to information such as download speed and allocated bandwidth of each terminal.
  • the A server sorts the terminals according to the network status, that is, the terminals with good network status (for example, fast download speed) are ranked first. According to the order from the first to the last, the preset number of terminals are selected, and the subsequent upgrade operations of the software are continued according to the corresponding software upgrade identifiers until all terminal software upgrades are completed.
  • the preset number may be 2, 3, etc., and may be set according to the bandwidth of the upgrade server.
  • the process of controlling the software upgrade of each terminal by the A server is: selecting a preset number of terminals to perform software upgrade operations (subsequent software upgrade operations according to the corresponding software upgrade identifiers corresponding to the current time), in the selected After the software upgrade operation of each terminal is completed, the software that performs the software upgrade operation is selected according to the preset preset number of terminals from the remaining terminals that have not completed the upgrade operation (the subsequent software is performed according to the corresponding software upgrade identifier corresponding to the current time). Upgrade operation), after the software upgrade operation of each selected terminal is completed, select the preset preset number of terminals to perform software upgrade operations from the remaining terminals that have not completed the upgrade operation, and so on, until all terminal software upgrades Finished.
  • the terminal that exits the online upgrade is cleared from the terminal to be upgraded, that is, it is no longer used as the terminal to be upgraded. Similarly, the network status of the terminals that exit the online upgrade is not sorted.
  • the network status of each terminal to be upgraded is sorted, so that the terminal with good network status preferentially upgrades the software, thereby effectively avoiding excessive software upgrade at the same time, thereby greatly increasing the system overhead of upgrading the server.
  • Reduce technical issues with upgrading server performance While improving the efficiency of terminal upgrades, it also improves the performance of the upgraded server system.
  • FIG. 3 is a schematic flowchart diagram of an online upgrade method of terminal software according to a third embodiment of the present invention. Based on the first and second embodiments described above, the step S30 includes:
  • Step S301 When detecting that multiple terminals are online again, obtain the current upgrade progress of each terminal software, and sort each terminal according to the current upgrade progress;
  • step S302 the preset number of terminals are selected in order from the first to the last, and the subsequent upgrade operations of the software are continued according to the corresponding software upgrade identifiers until all terminal software upgrades are completed.
  • the A server obtains the current upgrade progress of each terminal. For example, a terminal upgrade is 70%, b terminal upgrade is 50%, c terminal upgrade is 80%, and so on.
  • the A server sorts the terminals according to the current upgrade progress, and the terminals with more upgrade progress are ranked first. For example, the a terminal, the b terminal, and the c terminal are used as an example, and the order is c terminal>a terminal>b terminal. Sort by successively from first to last In order, select a preset number of terminals, and continue the subsequent upgrade operation of the software according to the corresponding software upgrade identifiers until all terminal software upgrades are completed.
  • the preset number may be 2, 3, etc., and may be set according to the bandwidth of the upgrade server.
  • the process of controlling the software upgrade of each terminal by the A server is: selecting a preset number of terminals to perform software upgrade operations (subsequent software upgrade operations according to the corresponding software upgrade identifiers corresponding to the current time), in the selected After the software upgrade operation of each terminal is completed, the software that performs the software upgrade operation is selected according to the preset preset number of terminals from the remaining terminals that have not completed the upgrade operation (the subsequent software is performed according to the corresponding software upgrade identifier corresponding to the current time). Upgrade operation), after the software upgrade operation of each selected terminal is completed, select the preset preset number of terminals to perform software upgrade operations from the remaining terminals that have not completed the upgrade operation, and so on, until all terminal software upgrades Finished.
  • the upgrade progress of each terminal to be upgraded is sorted, so that the terminal with fast upgrade progress preferentially upgrades the software, thereby effectively avoiding too many terminals simultaneously performing software upgrades, thereby greatly increasing the system overhead of upgrading the server.
  • Reduce technical issues with upgrading server performance While improving the efficiency of terminal upgrades, it also improves the performance of the upgraded server system.
  • FIG. 4 is a schematic diagram of functional modules of an online upgrade device of a terminal software according to an alternative embodiment of the present invention.
  • the device includes a receiving module 10, a processing module 20, an upgrade module 30, and an analysis module 40.
  • the receiving module 10 is configured to: receive status information of the software upgrade reported by the terminal during an online upgrade process of the terminal software;
  • the terminal detects that the software version number stored locally is different from the latest software version number, the terminal initiates an online upgrade process of the software.
  • the terminal sends an online upgrade request of the software to the server where the terminal management software is located, and the server where the terminal management software is located sends the URL and upgrade information of the upgrade server to the terminal, and the terminal downloads the new version of the software to be upgraded from the download server/upgrade server. upgrade.
  • the main body in which the technical solution of the present invention is implemented in the embodiment of the present invention may be a server where the terminal management software is located, an upgrade server, or the like.
  • the server where the terminal management software is located is preferably used as the execution subject, and the server where the terminal management software is located is described by the A server.
  • the A server manages each terminal connected to it, for example, the online software of the terminal Upgrade management, terminal offline, online status monitoring, terminal data forwarding control, etc.
  • the A server receives the status information of the software upgrade reported by the terminal, and sets a corresponding software upgrade identifier for the terminal according to the status information of the software upgrade and saves.
  • the status information of the software upgrade includes, but is not limited to, the progress of the terminal software upgrade, the speed of the software upgrade, and the like.
  • the terminal may report the status information of the software upgrade once a preset time interval.
  • the preset time may be a default time interval of the system, or may be a time interval set by the user according to the needs of the user, for example, may be 10s, 20s, or the like.
  • the processing module 20 is configured to: set a corresponding software upgrade identifier for the terminal according to the status information of the software upgrade and save the file; and when detecting that the terminal is offline, from the saved software upgrade identifier of the terminal , obtain the software upgrade identifier whose save time is closest to the current time;
  • the terminal When the terminal is in an abnormal state, such as a fault or a power failure, the terminal is offline for the upgrade server and the A server, and cannot receive the data to be upgraded sent by the upgrade server. For example, in the interaction between the cloud terminal and the cloud server, when the cloud terminal logs out of the cloud server, it is determined that the cloud terminal is offline.
  • the A server detects the online status of the terminal.
  • the terminal determines that the terminal is offline, and obtains the save time from the saved software upgrade identifier of the terminal.
  • the most recent software upgrade identifier That is, the latest upgrade point that the terminal has recorded is obtained.
  • the method for determining the offline state of the terminal may be: the terminal sends a heartbeat packet to the A server in real time or periodically, and the A server does not receive the heartbeat packet within a certain time (5s, 8s, etc.). When the heartbeat packet is sent by the terminal, it is determined that the terminal is offline.
  • the upgrade module 30 is configured to continue the subsequent upgrade operation of the terminal software according to the acquired software upgrade identifier when detecting that the terminal is online again.
  • the cloud terminal When the terminal is re-powered or re-powered, that is, when the terminal is re-online, the cloud terminal is considered to be in the interaction between the cloud terminal and the cloud server, that is, when the cloud terminal logs in to the cloud server through the login account. Go online again.
  • the subsequent upgrade operation of the terminal software is performed according to the obtained software upgrade identifier, that is, the unupgraded part of the data to be upgraded by the terminal is obtained according to the obtained software upgrade identifier; and the unupgraded part of the obtained data to be upgraded is sent to the The terminal continues the upgrade operation of the software of the terminal.
  • the software upgrade part after the software upgrade logo is performed.
  • the analysis module 40 is configured to: determine whether it is necessary to continue the software upgrade operation of the terminal; the upgrade module 30 is further configured to: When the software upgrade operation is performed, the software upgrade operation of the terminal is ended; when the software upgrade operation of the terminal needs to be continued, the subsequent upgrade operation of the terminal software is continued according to the obtained software upgrade identifier.
  • the terminal may be one terminal or multiple terminals.
  • the software upgrade operation of the terminal needs to be continued, the software upgrade of the terminal is continued. Avoid escalation operations that interfere with other operations by the user through the terminal. Improve the flexibility of terminal software upgrades, thereby improving the user experience.
  • the status information of the software upgrade in the software upgrade process is reported by the terminal, and the corresponding software upgrade identifier is set according to the status information of the reported software upgrade, and when the terminal is offline and online again, according to the The upgrade of the software upgrade continues the upgrade after the identifier of the software upgrade, and the terminal is faulty, causing the communication to be disconnected from the server (when the terminal is offline), and the subsequent upgrade process of the terminal is completed, thereby effectively preventing the software upgrade failure of the terminal and improving.
  • the efficiency and success rate of terminal software upgrades is performed by the terminal, and the corresponding software upgrade identifier is set according to the status information of the reported software upgrade, and when the terminal is offline and online again, according to the The upgrade of the software upgrade continues the upgrade after the identifier of the software upgrade, and the terminal is faulty, causing the communication to be disconnected from the server (when the terminal is offline), and the subsequent upgrade process of the terminal is completed, thereby effectively preventing the software upgrade failure of the terminal and improving.
  • the processing module 20 is further configured to: obtain network state information of each terminal, and sort each terminal according to a network state;
  • the upgrade module 30 is further configured to: select a preset number of terminals in order from first to last, and continue to perform subsequent upgrade operations of the software according to the corresponding software upgrade identifiers until all terminal software upgrades are completed.
  • the A server obtains network status information of each terminal, and the network status information includes but is not limited to information such as download speed and allocated bandwidth of each terminal.
  • the A server sorts each terminal according to the quality of the network state, that is, the terminal with good network status (for example, fast download speed) is ranked first. Step by step by first, by first After the order, select a preset number of terminals, and continue the subsequent upgrade operation of the software according to the corresponding software upgrade identifiers until all terminal software upgrades are completed.
  • the preset number may be 2, 3, etc., and may be set according to the bandwidth of the upgrade server.
  • the process of controlling the software upgrade of each terminal by the A server is: selecting a preset number of terminals to perform software upgrade operations (subsequent software upgrade operations according to the corresponding software upgrade identifiers corresponding to the current time), in the selected After the software upgrade operation of each terminal is completed, the software that performs the software upgrade operation is selected according to the preset preset number of terminals from the remaining terminals that have not completed the upgrade operation (the subsequent software is performed according to the corresponding software upgrade identifier corresponding to the current time). Upgrade operation), after the software upgrade operation of each selected terminal is completed, select the preset preset number of terminals to perform software upgrade operations from the remaining terminals that have not completed the upgrade operation, and so on, until all terminal software upgrades Finished.
  • the terminal that exits the online upgrade is cleared from the terminal to be upgraded, that is, it is no longer used as the terminal to be upgraded. Similarly, the network status of the terminals that exit the online upgrade is not sorted.
  • the network status of each terminal to be upgraded is sorted, so that the terminal with good network status preferentially upgrades the software, thereby effectively avoiding excessive software upgrade at the same time, thereby greatly increasing the system overhead of upgrading the server.
  • Reduce technical issues with upgrading server performance While improving the efficiency of terminal upgrades, it also improves the performance of the upgraded server system.
  • the processing module 20 is further configured to: when detecting that multiple terminals are online again, obtain a current upgrade progress of each terminal software, and sort each terminal according to a current upgrade progress;
  • the upgrade module 30 is further configured to: select a preset number of terminals in order from first to last, and continue the subsequent upgrade operation of the software according to the corresponding software upgrade identifiers until all terminal software upgrades are completed.
  • the A server obtains the current upgrade progress of each terminal. For example, a terminal upgrade is 70%, b terminal upgrade is 50%, c terminal upgrade is 80%, and so on. A server will follow each terminal The pre-upgrade progress is sorted, and the terminal with more upgrade progress is ranked first. For example, taking a terminal, b terminal, and c terminal as an example, the order is c terminal>a terminal>b terminal. According to the order of the first to the last, the preset number of terminals are selected, and the subsequent upgrade operations of the software are continued according to the corresponding software upgrade identifiers until all terminal software upgrades are completed.
  • the process of controlling the software upgrade of each terminal by the A server is: selecting a preset number of terminals to perform software upgrade operations (subsequent software upgrade operations according to the corresponding software upgrade identifiers corresponding to the current time), in the selected After the software upgrade operation of each terminal is completed, the software that performs the software upgrade operation is selected according to the preset preset number of terminals from the remaining terminals that have not completed the upgrade operation (the subsequent software is performed according to the corresponding software upgrade identifier corresponding to the current time). Upgrade operation), after the software upgrade operation of each selected terminal is completed, select the preset preset number of terminals to perform software upgrade operations from the remaining terminals that have not completed the upgrade operation, and so on, until all terminal software upgrades Finished.
  • the upgrade progress of each terminal to be upgraded is sorted, so that the terminal with fast upgrade progress preferentially upgrades the software, thereby effectively avoiding too many terminals simultaneously performing software upgrades, thereby greatly increasing the system overhead of upgrading the server.
  • Reduce technical issues with upgrading server performance While improving the efficiency of terminal upgrades, it also improves the performance of the upgraded server system.
  • the embodiment of the present invention reports the status information of the software upgrade in the software upgrade process by the terminal, and sets the corresponding software upgrade identifier according to the reported software upgrade status information.
  • the software may be The upgraded identifier continues the upgrade after the identifier of the software upgrade, and the terminal is faulty, causing the communication to be disconnected from the server (when the terminal is offline), and the subsequent upgrade process of the terminal is continued, thereby effectively preventing the software upgrade failure of the terminal and improving the terminal.
  • the efficiency and success rate of software upgrades. Therefore, the present invention has strong industrial applicability.

Abstract

An on-line upgrade method and device for terminal software. The method comprises the steps of: in the on-line upgrade process of terminal software, receiving state information about a software upgrade reported by a terminal, and setting a corresponding software upgrade identifier for the terminal according to the state information about the software upgrade and saving same; when it is detected that the terminal is off-line, acquiring, from the saved software upgrade identifier of the terminal, a software upgrade identifier, the saving time of which is closest to the current time; and when it is detected that the terminal is on-line again, continuing to conduct a subsequent upgrade operation on the terminal software according to the acquired software upgrade identifier. The technical solution aims to continue completing a subsequent upgrade flow of a terminal when the terminal is on-line again, thereby effectively avoiding the case where the software upgrade of the terminal fails, and improving the efficiency and success rate of the software upgrade of the terminal.

Description

终端软件的在线升级方法及装置Online upgrade method and device for terminal software 技术领域Technical field
本发明涉及终端软件处理技术领域,尤其涉及终端软件的在线升级方法及装置。The present invention relates to the field of terminal software processing technologies, and in particular, to an online upgrade method and apparatus for terminal software.
背景技术Background technique
随着科学技术的不断发展,越来越多的电子终端进入到人们的日常生活和工作当中。以下描述终端以云终端为例。随着云计算及相关技术的快速发展,满足不同应用场景的云终端产品也相继出现。云终端产品不仅可以配套云桌面使用,也可以单独使用,可广泛应用到通讯行业、政企行业、金融行业等领域的基本办公,也可以满足专业人员以及家庭用户的学习及休闲等需求。With the continuous development of science and technology, more and more electronic terminals have entered people's daily life and work. The following describes a terminal using a cloud terminal as an example. With the rapid development of cloud computing and related technologies, cloud terminal products that meet different application scenarios have also appeared. Cloud terminal products can be used not only for cloud desktops, but also for individual use. It can be widely applied to basic office in the communications industry, government and enterprise industries, financial industry, etc., and can also meet the needs of professionals and home users for learning and leisure.
目前,一个云终端管理软件可以管理数百台云终端,当云终端侦测到本地存储的软件版本号与最新的软件版本号不同时,即发起软件升级流程。云终端管理软件将升级服务器的URL和升级信息发给终端,云终端从下载服务器/升级服务器上下载新版本的待升级软件数据进行升级。该类技术有一定的缺陷:若某个云终端在升级过程中突然出现故障,比如:死机或停电。故障恢复后,无法完成云终端后续的升级流程。因此,目前的终端软件的在线升级方式中,在终端从服务器端下载软件的待升级数据进行软件的在线升级时,终端出现故障导致与服务器断开通信(终端离线时),无法完成终端后续的升级流程,进而会导致终端的软件升级失败。Currently, a cloud terminal management software can manage hundreds of cloud terminals. When the cloud terminal detects that the locally stored software version number is different from the latest software version number, the software upgrade process is initiated. The cloud terminal management software sends the URL and upgrade information of the upgrade server to the terminal, and the cloud terminal downloads a new version of the software data to be upgraded from the download server/upgrade server for upgrading. This type of technology has certain drawbacks: if a cloud terminal suddenly fails during the upgrade process, such as: a crash or a power outage. After the fault is rectified, the subsequent upgrade process of the cloud terminal cannot be completed. Therefore, in the online upgrade mode of the current terminal software, when the terminal downloads the software to be upgraded from the server to perform online upgrade of the software, the terminal is faulty and disconnects from the server (when the terminal is offline), and the terminal cannot be completed. The upgrade process will cause the software upgrade of the terminal to fail.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solutions of the present invention, and does not constitute an admission that the above is prior art.
发明内容Summary of the invention
本发明实施例的主要目的为提供终端软件的在线升级方法及装置,旨在实现在终端重新上线时,继续完成终端后续的升级流程,有效避免终端的软 件升级失败的情况,提高终端软件升级的效率和成功率。The main purpose of the embodiment of the present invention is to provide an online upgrade method and device for the terminal software, which is to achieve the follow-up upgrade process of the terminal when the terminal is re-online, and effectively avoid the softness of the terminal. The upgrade fails, improving the efficiency and success rate of the terminal software upgrade.
为解决上述技术问题,采用如下技术方案:In order to solve the above technical problems, the following technical solutions are adopted:
一种终端软件的在线升级方法,该方法包括如下步骤:An online upgrade method for terminal software, the method comprising the following steps:
在终端软件的在线升级过程中,接收所述终端上报的软件升级的状态信息,根据所述软件升级的状态信息为所述终端设置与所述状态信息对应的软件升级标识并保存;Receiving, in the online upgrade process of the terminal software, status information of the software upgrade reported by the terminal, and setting a software upgrade identifier corresponding to the status information for the terminal according to the status information of the software upgrade and saving;
在侦测到所述终端离线时,从保存的所述终端的软件升级标识中,获取保存时间距当前时间最近的软件升级标识;When detecting that the terminal is offline, obtaining, from the saved software upgrade identifier of the terminal, a software upgrade identifier whose save time is closest to the current time;
在侦测到所述终端重新在线时,根据获取的软件升级标识继续所述终端软件的后续升级操作。After detecting that the terminal is online again, the subsequent upgrade operation of the terminal software is continued according to the obtained software upgrade identifier.
可选地,所述根据获取的软件升级标识继续所述终端软件的后续升级操作的步骤包括:Optionally, the step of continuing the subsequent upgrade operation of the terminal software according to the obtained software upgrade identifier includes:
根据获取的软件升级标识,确定所述终端待升级数据中未升级的部分;Determining, according to the obtained software upgrade identifier, a portion of the terminal to be upgraded that is not upgraded;
将确定的待升级数据中未升级的部分发送给所述终端,继续所述终端的软件的升级操作。Sending the unupgraded portion of the determined data to be upgraded to the terminal, and continuing the software upgrade operation of the terminal.
可选地,当有多个终端同时进行软件的在线升级时,该方法还包括:Optionally, when multiple terminals simultaneously perform online upgrade of the software, the method further includes:
获取各个终端的网络状态信息,并将各个终端按照网络状态进行排序;Obtain network status information of each terminal, and sort each terminal according to network status;
逐次按照排序由先至后的顺序,根据所获取的各终端对应的软件升级标识继续进行各终端软件的后续升级操作,直至所有终端软件升级完毕。The subsequent upgrade operations of each terminal software are continued according to the software upgrade identifiers corresponding to the obtained terminals, in order from the first to the last, until all terminal software upgrades are completed.
可选地,当有多个终端同时进行软件的在线升级时,该方法还包括:Optionally, when multiple terminals simultaneously perform online upgrade of the software, the method further includes:
获取各个终端软件的当前升级进度,并将各个终端按照当前升级进度进行排序;Obtain the current upgrade progress of each terminal software, and sort each terminal according to the current upgrade progress;
逐次按照排序由先至后的顺序,根据所获取的各终端对应的软件升级标识继续各终端软件的后续升级操作,直至所有终端软件升级完毕。The subsequent upgrade operations of each terminal software are continued according to the software upgrade identifiers corresponding to the acquired terminals, in order from the first to the last, until all terminal software upgrades are completed.
可选地,该方法还包括:Optionally, the method further includes:
在侦测到所述终端重新在线时,判断是否需要继续所述终端的软件升级操作; When detecting that the terminal is online again, determining whether it is necessary to continue the software upgrade operation of the terminal;
在不需要继续所述终端的软件升级操作时,结束所述终端的软件升级操作;Ending the software upgrade operation of the terminal when it is not required to continue the software upgrade operation of the terminal;
在需要继续所述终端的软件升级操作时,执行所述根据获取的软件升级标识继续所述终端软件的后续升级操作的步骤。When the software upgrade operation of the terminal needs to be continued, the step of continuing the subsequent upgrade operation of the terminal software according to the acquired software upgrade identifier is performed.
一种终端软件的在线升级装置,该装置包括接收模块、处理模块和升级模块,其中:An online upgrading device for terminal software, the device comprising a receiving module, a processing module and an upgrading module, wherein:
所述接收模块设置成:在终端软件的在线升级过程中,接收所述终端上报的软件升级的状态信息;The receiving module is configured to: receive status information of the software upgrade reported by the terminal during an online upgrade process of the terminal software;
所述处理模块设置成:根据所述软件升级的状态信息为所述终端设置对应的软件升级标识并保存;在侦测到所述终端离线时,从保存的所述终端的软件升级标识中,获取保存时间距当前时间最近的软件升级标识;The processing module is configured to: set a corresponding software upgrade identifier for the terminal according to the status information of the software upgrade and save the file; and when detecting that the terminal is offline, from the saved software upgrade identifier of the terminal, Obtain the software upgrade identifier whose save time is closest to the current time;
所述升级模块设置成:在侦测到所述终端重新在线时,根据获取的软件升级标识继续所述终端软件的后续升级操作。The upgrade module is configured to continue the subsequent upgrade operation of the terminal software according to the obtained software upgrade identifier when detecting that the terminal is online again.
可选地,所述升级模块设置成按照如下方式根据获取的软件升级标识继续所述终端软件的后续升级操作:Optionally, the upgrading module is configured to continue the subsequent upgrade operation of the terminal software according to the obtained software upgrade identifier as follows:
根据获取的软件升级标识,确定所述终端待升级数据中未升级的部分;Determining, according to the obtained software upgrade identifier, a portion of the terminal to be upgraded that is not upgraded;
将确定的待升级数据中未升级的部分发送给所述终端,继续所述终端的软件的升级操作。Sending the unupgraded portion of the determined data to be upgraded to the terminal, and continuing the software upgrade operation of the terminal.
可选地,所述处理模块还设置成:当确定有多个终端同时进行软件的在线升级时,获取各个终端的网络状态信息,并将各个终端按照网络状态进行排序;Optionally, the processing module is further configured to: when determining that multiple terminals simultaneously perform online upgrade of the software, obtain network status information of each terminal, and sort each terminal according to a network status;
所述升级模块还设置成:逐次按照排序由先至后的顺序,并根据所获取的各终端对应的软件升级标识继续进行各终端软件的后续升级操作,直至所有终端软件升级完毕。The upgrade module is further configured to: sequentially follow the order from the first to the last, and continue to perform subsequent upgrade operations of each terminal software according to the acquired software upgrade identifiers of the terminals until all terminal software upgrades are completed.
可选地,所述处理模块还设置成:在有多个终端同时进行软件的在线升级时,获取各个终端软件的当前升级进度,并将各个终端按照当前升级进度进行排序; Optionally, the processing module is further configured to: when a plurality of terminals simultaneously perform online upgrade of the software, obtain a current upgrade progress of each terminal software, and sort each terminal according to a current upgrade progress;
所述升级模块还设置成:逐次按照排序由先至后的顺序,根据所获取的各终端对应的软件升级标识继续各终端软件的后续升级操作,直至所有终端软件升级完毕。The upgrade module is further configured to: continue the subsequent upgrade operations of the terminal software according to the acquired software upgrade identifiers of each terminal according to the order of the first to last order, until all the terminal software upgrades are completed.
可选地,该装置还包括分析模块,Optionally, the device further includes an analysis module,
所述分析模块设置成:在侦测到所述终端重新在线时,判断是否需要继续所述终端的软件升级操作;The analyzing module is configured to: when detecting that the terminal is online again, determine whether it is necessary to continue the software upgrade operation of the terminal;
所述升级模块还设置成:在不需要继续所述终端的软件升级操作时,结束所述终端的软件升级操作;在需要继续所述终端的软件升级操作时,根据获取的软件升级标识继续所述终端软件的后续升级操作。The upgrade module is further configured to: end the software upgrade operation of the terminal when the software upgrade operation of the terminal is not required to be continued; when the software upgrade operation of the terminal needs to be continued, continue according to the obtained software upgrade identifier The subsequent upgrade operation of the terminal software.
相对相关技术,本发明实施例通过终端上报其在软件升级过程中软件升级的状态信息,并根据上报的软件升级的状态信息设置对应的软件升级的标识,在终端离线,又重新在线时,可以根据所述软件升级的标识继续所述软件升级的标识之后的升级,实现终端出现故障导致与服务器断开通信(终端离线时),继续完成终端后续的升级流程,有效避免终端的软件升级失败的情况,提高终端软件升级的效率和成功率。With respect to related technologies, the embodiment of the present invention reports the status information of the software upgrade in the software upgrade process by the terminal, and sets the corresponding software upgrade identifier according to the reported software upgrade status information. When the terminal is offline and online again, The upgrade after the identifier of the software upgrade is continued according to the identifier of the software upgrade, so that the terminal is faulty and the communication is disconnected from the server (when the terminal is offline), and the subsequent upgrade process of the terminal is continued, thereby effectively preventing the software upgrade of the terminal from failing. Situation, improve the efficiency and success rate of terminal software upgrades.
附图概述BRIEF abstract
图1为本发明第一实施例的终端软件的在线升级方法流程示意图;1 is a schematic flowchart of an online upgrade method of a terminal software according to a first embodiment of the present invention;
图2为本发明第二实施例的终端软件的在线升级方法流程示意图;2 is a schematic flowchart of a method for online upgrading of terminal software according to a second embodiment of the present invention;
图3为本发明第三实施例的终端软件的在线升级方法流程示意图;3 is a schematic flowchart of a method for online upgrading of terminal software according to a third embodiment of the present invention;
图4为本发明可选实施例的终端软件的在线升级装置的功能模块示意图。FIG. 4 is a schematic diagram of functional modules of an online upgrading apparatus for terminal software according to an alternative embodiment of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。 The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
本发明的较佳实施方式Preferred embodiment of the invention
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
如图1所示,为本发明第一实施例的终端软件的在线升级方法流程示意图。FIG. 1 is a schematic flowchart diagram of an online upgrade method of a terminal software according to a first embodiment of the present invention.
需要强调的是:图1所示流程图仅为一个可选实施例,本领域的技术人员当知,任何围绕本发明思想构建的实施例都不应脱离于如下技术方案涵盖的范围:It should be emphasized that the flowchart shown in FIG. 1 is only an optional embodiment, and those skilled in the art will understand that any embodiment constructed around the inventive concept should not be separated from the scope of the following technical solutions:
在终端软件的在线升级过程中,接收所述终端上报的软件升级的状态信息,根据所述软件升级的状态信息为所述终端设置与所述状态信息对应的软件升级标识并保存;在侦测到所述终端离线时,从保存的所述终端的软件升级标识中,获取保存时间距当前时间最近的软件升级标识;在侦测到所述终端重新在线时,根据获取的软件升级标识继续所述终端软件的后续升级操作。Receiving, in the online upgrade process of the terminal software, status information of the software upgrade reported by the terminal, setting a software upgrade identifier corresponding to the status information to the terminal according to the status information of the software upgrade, and saving; When the terminal is offline, the software upgrade identifier of the saved terminal is obtained from the saved software upgrade identifier, and the software upgrade identifier is saved from the current time. When the terminal is detected to be online again, the software upgrade identifier is continued according to the acquired software upgrade identifier. The subsequent upgrade operation of the terminal software.
以下是本实施例逐步实现终端软件在线升级的具体步骤:The following are the specific steps for gradually implementing the online upgrade of the terminal software in this embodiment:
步骤S10,在终端软件的在线升级过程中,接收所述终端上报的软件升级的状态信息,根据所述软件升级的状态信息为所述终端设置对应的软件升级标识并保存;In step S10, in the online upgrade process of the terminal software, the status information of the software upgrade reported by the terminal is received, and the corresponding software upgrade identifier is set and saved according to the status information of the software upgrade.
随着科学技术的不断发展,越来越多的电子终端进入到人们的日常生活和工作当中。终端在侦测到本地存储的软件版本号与最新的软件版本号不同时,即发起软件的在线升级流程。终端向终端管理软件所在的服务器发送软件的在线升级请求,终端管理软件所在的服务器将升级服务器的URL和升级信息发送给终端,终端从下载服务器/升级服务器上下载新版本的待升级软件数据进行升级。本发明实施例中执行本发明技术方案的主体可以为终端管理软件所在的服务器、升级服务器等。在本实施例中,优选为终端管理软件所在的服务器作为执行主体,以下终端管理软件所在的服务器以A服务器来描述。A服务器对与其通信连接的各个终端进行管理,例如,终端软件的在线升级管理、终端离线、在线状态的监控、终端数据转发控制等。With the continuous development of science and technology, more and more electronic terminals have entered people's daily life and work. When the terminal detects that the software version number stored locally is different from the latest software version number, the terminal initiates an online upgrade process of the software. The terminal sends an online upgrade request of the software to the server where the terminal management software is located, and the server where the terminal management software is located sends the URL and upgrade information of the upgrade server to the terminal, and the terminal downloads the new version of the software to be upgraded from the download server/upgrade server. upgrade. The main body in which the technical solution of the present invention is implemented in the embodiment of the present invention may be a server where the terminal management software is located, an upgrade server, or the like. In this embodiment, the server where the terminal management software is located is preferably used as the execution subject, and the server where the terminal management software is located is described by the A server. The A server manages each terminal connected to it, for example, online upgrade management of the terminal software, terminal offline, online status monitoring, terminal data forwarding control, and the like.
在终端软件的在线升级过程中,A服务器接收所述终端上报的软件升级 的状态信息,根据所述软件升级的状态信息为所述终端设置对应的软件升级标识并保存。所述软件升级的状态信息包括但不限于终端软件升级的进度、软件升级的速度等信息。为了有效避免频繁接收各个终端上报的软件升级的状态信息,节省A服务器的系统开销,还可以是所述终端间隔一预设时间上报一次其软件升级的状态信息。所述预设时间可以是系统默认的一个时间间隔,也可以是用户根据自身需要提前设置的时间间隔,例如,可以是10s、20s等。In the online upgrade process of the terminal software, the A server receives the software upgrade reported by the terminal. The status information is set and the corresponding software upgrade identifier is set and saved according to the status information of the software upgrade. The status information of the software upgrade includes, but is not limited to, the progress of the terminal software upgrade, the speed of the software upgrade, and the like. In order to avoid frequently receiving the status information of the software upgrade reported by each terminal, and saving the system overhead of the A server, the terminal may report the status information of the software upgrade once a preset time interval. The preset time may be a default time interval of the system, or may be a time interval set by the user according to the needs of the user, for example, may be 10s, 20s, or the like.
步骤S20,在侦测到所述终端离线时,从保存的所述终端的软件升级标识中,获取保存时间距当前时间最近的软件升级标识;Step S20: When detecting that the terminal is offline, obtain a software upgrade identifier whose save time is closest to the current time from the saved software upgrade identifier of the terminal.
所述终端在发生故障或断电等导致通信异常时,即对于升级服务器和A服务器来说终端处于离线,无法接收升级服务器发送的待升级数据。例如,在云终端与云服务器的交互当中,在云终端退出云服务器的登录时,判定所述云终端离线。When the terminal is in an abnormal state, such as a fault or a power failure, the terminal is offline for the upgrade server and the A server, and cannot receive the data to be upgraded sent by the upgrade server. For example, in the interaction between the cloud terminal and the cloud server, when the cloud terminal logs out of the cloud server, it is determined that the cloud terminal is offline.
A服务器侦测终端的在线状态,在侦测到升级服务器无法将待升级数据发送给所述终端时,判定所述终端离线,从保存的所述终端的软件升级标识中,获取保存时间距当前时间最近的软件升级标识。即获取所述终端有记录的最近的升级点。在本发明其他实施例中,判断所述终端的离线状态的方式还可以是:终端实时或者定时向所述A服务器发送一个心跳包,A服务器在一定时间(5s、8s等)内未接收到所述终端发送的心跳包时,判定所述终端离线。The A server detects the online status of the terminal. When it is detected that the upgrade server cannot send the data to be upgraded to the terminal, the terminal determines that the terminal is offline, and obtains the save time from the saved software upgrade identifier of the terminal. The most recent software upgrade identifier. That is, the latest upgrade point that the terminal has recorded is obtained. In another embodiment of the present invention, the method for determining the offline state of the terminal may be: the terminal sends a heartbeat packet to the A server in real time or periodically, and the A server does not receive the heartbeat packet within a certain time (5s, 8s, etc.). When the heartbeat packet is sent by the terminal, it is determined that the terminal is offline.
步骤S30,在侦测到所述终端重新在线时,根据获取的软件升级标识继续所述终端软件的后续升级操作。Step S30, when detecting that the terminal is online again, continue the subsequent upgrade operation of the terminal software according to the obtained software upgrade identifier.
所述终端在故障恢复或重新供电时,即所述终端重新上线时,在云终端与云服务器的交互当中,即在所述云终端通过登录账号登录所述云服务器时,认为所述云终端重新上线。根据获取的软件升级标识继续所述终端软件的后续升级操作。即根据获取的软件升级标识获取所述终端待升级数据中未升级的部分;将获取的待升级数据中未升级的部分发送给所述终端,继续所述终端的软件的升级操作。进行所述软件升级标识之后的软件升级部分。When the terminal is re-powered or re-powered, that is, when the terminal is re-online, the cloud terminal is considered to be in the interaction between the cloud terminal and the cloud server, that is, when the cloud terminal logs in to the cloud server through the login account. Go online again. The subsequent upgrade operation of the terminal software is continued according to the obtained software upgrade identifier. The part that is not upgraded in the data to be upgraded is obtained according to the obtained software upgrade identifier. The unupgraded part of the data to be upgraded is sent to the terminal, and the software upgrade operation of the terminal is continued. The software upgrade part after the software upgrade logo is performed.
可以理解的是,在所述终端重新上线时,A服务器判断是否需要继续所 述终端的软件升级操作;在不需要继续所述终端的软件升级操作时,结束所述终端的软件升级操作;在需要继续所述终端的软件升级操作时,根据获取的软件升级标识继续所述终端软件的后续升级操作。所述终端可以是一个终端或者多个终端。通过在所述终端重新上线时,判断是否需要继续进行所述终端的在线升级操作,在需要继续所述终端的软件升级操作时,才继续进行所述终端的软件升级。避免升级操作干扰到用户通过所述终端其他操作。提高终端软件升级的灵活度,进而提高了用户的体验。It can be understood that when the terminal is back online, the A server determines whether it needs to continue. The software upgrade operation of the terminal is performed; when the software upgrade operation of the terminal is not required to be continued, the software upgrade operation of the terminal is ended; when the software upgrade operation of the terminal needs to be continued, the software upgrade identifier is continued according to the acquired software upgrade identifier. Subsequent upgrade operations of the terminal software. The terminal may be one terminal or multiple terminals. When the terminal is re-online, it is determined whether the online upgrade operation of the terminal needs to be continued. When the software upgrade operation of the terminal needs to be continued, the software upgrade of the terminal is continued. Avoid escalation operations that interfere with other operations by the user through the terminal. Improve the flexibility of terminal software upgrades, thereby improving the user experience.
在本发明实施例通过终端上报其在软件升级过程中软件升级的状态信息,并根据上报的软件升级的状态信息设置对应的软件升级的标识,在终端离线,又重新在线时,可以根据所述软件升级的标识继续所述软件升级的标识之后的升级,实现终端出现故障导致与服务器断开通信(终端离线时),继续完成终端后续的升级流程,有效避免终端的软件升级失败的情况,提高终端软件升级的效率和成功率。In the embodiment of the present invention, the status information of the software upgrade in the software upgrade process is reported by the terminal, and the corresponding software upgrade identifier is set according to the status information of the reported software upgrade, and when the terminal is offline and online again, according to the The upgrade of the software upgrade continues the upgrade after the identifier of the software upgrade, and the terminal is faulty, causing the communication to be disconnected from the server (when the terminal is offline), and the subsequent upgrade process of the terminal is completed, thereby effectively preventing the software upgrade failure of the terminal and improving. The efficiency and success rate of terminal software upgrades.
如图2所示,为本发明第二实施例的终端软件的在线升级方法流程示意图。基于上述第一实施例,当有多个终端同时进行软件的在线升级时,该方法还包括步骤:FIG. 2 is a schematic flowchart diagram of an online upgrade method of terminal software according to a second embodiment of the present invention. Based on the foregoing first embodiment, when multiple terminals simultaneously perform online upgrade of software, the method further includes the steps of:
步骤S40,获取各个终端的网络状态信息,并将各个终端按照网络状态进行排序;Step S40: Obtain network state information of each terminal, and sort each terminal according to a network state;
步骤S50,逐次按照排序由先至后的顺序,选择预设数量的终端,并根据各自对应的软件升级标识继续进行软件的后续升级操作,直至所有终端软件升级完毕。In step S50, the preset number of terminals are selected in order from the first to the last, and the subsequent upgrade operations of the software are continued according to the corresponding software upgrade identifiers until all terminal software upgrades are completed.
在有多个终端同时进行软件的在线升级时,A服务器获取各个终端的网络状态信息,所述网络状态信息包括但不限于各个终端的下载速度,分配的带宽等信息。A服务器将各个终端按照网络状态进行排序,即将网络状态好(例如,下载速度快)的终端排在前面。逐次按照排序由先至后的顺序,选择预设数量的终端,并根据各自对应的软件升级标识继续进行软件的后续升级操作,直至所有终端软件升级完毕。所述预设数量可以是2个、3个等,可以根据升级服务器的带宽来自由设置。 When the online upgrade of the software is performed by multiple terminals, the A server obtains network status information of each terminal, and the network status information includes but is not limited to information such as download speed and allocated bandwidth of each terminal. The A server sorts the terminals according to the network status, that is, the terminals with good network status (for example, fast download speed) are ranked first. According to the order from the first to the last, the preset number of terminals are selected, and the subsequent upgrade operations of the software are continued according to the corresponding software upgrade identifiers until all terminal software upgrades are completed. The preset number may be 2, 3, etc., and may be set according to the bandwidth of the upgrade server.
A服务器控制各个终端进行软件升级的过程为:选择排序在先的预设数量的终端进行软件升级操作(根据各自对应的距当前时间最近的软件升级标识进行后续的软件升级操作),在选择的各个终端的软件升级操作完成之后,从剩余的未完成升级操作的终端中选择排序在先的预设数量的终端进行软件升级操作(根据各自对应的距当前时间最近的软件升级标识进行后续的软件升级操作),在选择的各个终端的软件升级操作完成之后,再从剩余的未完成升级操作的终端中选择排序在先的预设数量的终端进行软件升级操作,依次类推,直至所有终端软件升级完毕。The process of controlling the software upgrade of each terminal by the A server is: selecting a preset number of terminals to perform software upgrade operations (subsequent software upgrade operations according to the corresponding software upgrade identifiers corresponding to the current time), in the selected After the software upgrade operation of each terminal is completed, the software that performs the software upgrade operation is selected according to the preset preset number of terminals from the remaining terminals that have not completed the upgrade operation (the subsequent software is performed according to the corresponding software upgrade identifier corresponding to the current time). Upgrade operation), after the software upgrade operation of each selected terminal is completed, select the preset preset number of terminals to perform software upgrade operations from the remaining terminals that have not completed the upgrade operation, and so on, until all terminal software upgrades Finished.
可以理解的是,在有终端退出软件的在线升级时,将退出在线升级的终端从待升级终端中清除,即不再作为待升级终端。同样,也不对退出在线升级的终端进行网络状态的排序。It can be understood that, when an online upgrade of the terminal exits the software, the terminal that exits the online upgrade is cleared from the terminal to be upgraded, that is, it is no longer used as the terminal to be upgraded. Similarly, the network status of the terminals that exit the online upgrade is not sorted.
在本发明实施例中,通过对各个待升级终端的网络状态进行排序,以供网络状态好的终端优先进行软件的升级,有效避免过多的终端同时进行软件升级大大增加升级服务器的系统开销,降低升级服务器性能的技术问题。提高终端升级的效率的同时,也提高了升级服务器系统的性能。In the embodiment of the present invention, the network status of each terminal to be upgraded is sorted, so that the terminal with good network status preferentially upgrades the software, thereby effectively avoiding excessive software upgrade at the same time, thereby greatly increasing the system overhead of upgrading the server. Reduce technical issues with upgrading server performance. While improving the efficiency of terminal upgrades, it also improves the performance of the upgraded server system.
如图3所示,为本发明第三实施例的终端软件的在线升级方法流程示意图。基于上述第一和第二实施例,所述步骤S30包括:FIG. 3 is a schematic flowchart diagram of an online upgrade method of terminal software according to a third embodiment of the present invention. Based on the first and second embodiments described above, the step S30 includes:
步骤S301,在侦测到多个终端重新在线时,获取各个终端软件的当前升级进度,并将各个终端按照当前升级进度进行排序;Step S301: When detecting that multiple terminals are online again, obtain the current upgrade progress of each terminal software, and sort each terminal according to the current upgrade progress;
步骤S302,逐次按照排序由先至后的顺序,选择预设数量的终端,并根据各自对应的软件升级标识继续软件的后续升级操作,直至所有终端软件升级完毕。In step S302, the preset number of terminals are selected in order from the first to the last, and the subsequent upgrade operations of the software are continued according to the corresponding software upgrade identifiers until all terminal software upgrades are completed.
在有多个终端重新在线时,即重新在线的多个终端需要同时进行软件的在线升级时,A服务器获取各个终端的当前升级进度。例如,a终端升级了70%、b终端升级了50%、c终端升级了80%等。A服务器将各个终端按照当前升级进度进行排序,即将升级进度多的终端排在前面,例如,以a终端、b终端和c终端为例,排序为c终端>a终端>b终端。逐次按照排序由先至后的 顺序,选择预设数量的终端,并根据各自对应的软件升级标识继续软件的后续升级操作,直至所有终端软件升级完毕。所述预设数量可以是2个、3个等,可以根据升级服务器的带宽来自由设置。When multiple terminals are re-online, that is, multiple terminals that are re-online need to perform online upgrade of the software at the same time, the A server obtains the current upgrade progress of each terminal. For example, a terminal upgrade is 70%, b terminal upgrade is 50%, c terminal upgrade is 80%, and so on. The A server sorts the terminals according to the current upgrade progress, and the terminals with more upgrade progress are ranked first. For example, the a terminal, the b terminal, and the c terminal are used as an example, and the order is c terminal>a terminal>b terminal. Sort by successively from first to last In order, select a preset number of terminals, and continue the subsequent upgrade operation of the software according to the corresponding software upgrade identifiers until all terminal software upgrades are completed. The preset number may be 2, 3, etc., and may be set according to the bandwidth of the upgrade server.
A服务器控制各个终端进行软件升级的过程为:选择排序在先的预设数量的终端进行软件升级操作(根据各自对应的距当前时间最近的软件升级标识进行后续的软件升级操作),在选择的各个终端的软件升级操作完成之后,从剩余的未完成升级操作的终端中选择排序在先的预设数量的终端进行软件升级操作(根据各自对应的距当前时间最近的软件升级标识进行后续的软件升级操作),在选择的各个终端的软件升级操作完成之后,再从剩余的未完成升级操作的终端中选择排序在先的预设数量的终端进行软件升级操作,依次类推,直至所有终端软件升级完毕。The process of controlling the software upgrade of each terminal by the A server is: selecting a preset number of terminals to perform software upgrade operations (subsequent software upgrade operations according to the corresponding software upgrade identifiers corresponding to the current time), in the selected After the software upgrade operation of each terminal is completed, the software that performs the software upgrade operation is selected according to the preset preset number of terminals from the remaining terminals that have not completed the upgrade operation (the subsequent software is performed according to the corresponding software upgrade identifier corresponding to the current time). Upgrade operation), after the software upgrade operation of each selected terminal is completed, select the preset preset number of terminals to perform software upgrade operations from the remaining terminals that have not completed the upgrade operation, and so on, until all terminal software upgrades Finished.
在本发明实施例中,通过对各个待升级终端的升级进度进行排序,以供升级进度快的终端优先进行软件的升级,有效避免过多的终端同时进行软件升级大大增加升级服务器的系统开销,降低升级服务器性能的技术问题。提高终端升级的效率的同时,也提高了升级服务器系统的性能。In the embodiment of the present invention, the upgrade progress of each terminal to be upgraded is sorted, so that the terminal with fast upgrade progress preferentially upgrades the software, thereby effectively avoiding too many terminals simultaneously performing software upgrades, thereby greatly increasing the system overhead of upgrading the server. Reduce technical issues with upgrading server performance. While improving the efficiency of terminal upgrades, it also improves the performance of the upgraded server system.
如图4所示,为本发明可选实施例的终端软件的在线升级装置功能模块示意图。该装置包括接收模块10,处理模块20、升级模块30及分析模块40。FIG. 4 is a schematic diagram of functional modules of an online upgrade device of a terminal software according to an alternative embodiment of the present invention. The device includes a receiving module 10, a processing module 20, an upgrade module 30, and an analysis module 40.
所述接收模块10设置成:在终端软件的在线升级过程中,接收所述终端上报的软件升级的状态信息;The receiving module 10 is configured to: receive status information of the software upgrade reported by the terminal during an online upgrade process of the terminal software;
随着科学技术的不断发展,越来越多的电子终端进入到人们的日常生活和工作当中。终端在侦测到本地存储的软件版本号与最新的软件版本号不同时,即发起软件的在线升级流程。终端向终端管理软件所在的服务器发送软件的在线升级请求,终端管理软件所在的服务器将升级服务器的URL和升级信息发送给终端,终端从下载服务器/升级服务器上下载新版本的待升级软件数据进行升级。本发明实施例中执行本发明技术方案的主体可以为终端管理软件所在的服务器、升级服务器等。在本实施例中,优选为终端管理软件所在的服务器作为执行主体,以下终端管理软件所在的服务器以A服务器来描述。A服务器对与其通信连接的各个终端进行管理,例如,终端软件的在线 升级管理、终端离线、在线状态的监控、终端数据转发控制等。With the continuous development of science and technology, more and more electronic terminals have entered people's daily life and work. When the terminal detects that the software version number stored locally is different from the latest software version number, the terminal initiates an online upgrade process of the software. The terminal sends an online upgrade request of the software to the server where the terminal management software is located, and the server where the terminal management software is located sends the URL and upgrade information of the upgrade server to the terminal, and the terminal downloads the new version of the software to be upgraded from the download server/upgrade server. upgrade. The main body in which the technical solution of the present invention is implemented in the embodiment of the present invention may be a server where the terminal management software is located, an upgrade server, or the like. In this embodiment, the server where the terminal management software is located is preferably used as the execution subject, and the server where the terminal management software is located is described by the A server. The A server manages each terminal connected to it, for example, the online software of the terminal Upgrade management, terminal offline, online status monitoring, terminal data forwarding control, etc.
在终端软件的在线升级过程中,A服务器接收所述终端上报的软件升级的状态信息,根据所述软件升级的状态信息为所述终端设置对应的软件升级标识并保存。所述软件升级的状态信息包括但不限于终端软件升级的进度、软件升级的速度等信息。为了有效避免频繁接收各个终端上报的软件升级的状态信息,节省A服务器的系统开销,还可以是所述终端间隔一预设时间上报一次其软件升级的状态信息。所述预设时间可以是系统默认的一个时间间隔,也可以是用户根据自身需要提前设置的时间间隔,例如,可以是10s、20s等。In the online upgrade process of the terminal software, the A server receives the status information of the software upgrade reported by the terminal, and sets a corresponding software upgrade identifier for the terminal according to the status information of the software upgrade and saves. The status information of the software upgrade includes, but is not limited to, the progress of the terminal software upgrade, the speed of the software upgrade, and the like. In order to avoid frequently receiving the status information of the software upgrade reported by each terminal, and saving the system overhead of the A server, the terminal may report the status information of the software upgrade once a preset time interval. The preset time may be a default time interval of the system, or may be a time interval set by the user according to the needs of the user, for example, may be 10s, 20s, or the like.
所述处理模块20设置成:根据所述软件升级的状态信息为所述终端设置对应的软件升级标识并保存;在侦测到所述终端离线时,从保存的所述终端的软件升级标识中,获取保存时间距当前时间最近的软件升级标识;The processing module 20 is configured to: set a corresponding software upgrade identifier for the terminal according to the status information of the software upgrade and save the file; and when detecting that the terminal is offline, from the saved software upgrade identifier of the terminal , obtain the software upgrade identifier whose save time is closest to the current time;
所述终端在发生故障或断电等导致通信异常时,即对于升级服务器和A服务器来说终端处于离线,无法接收升级服务器发送的待升级数据。例如,在云终端与云服务器的交互当中,在云终端退出云服务器的登录时,判定所述云终端离线。When the terminal is in an abnormal state, such as a fault or a power failure, the terminal is offline for the upgrade server and the A server, and cannot receive the data to be upgraded sent by the upgrade server. For example, in the interaction between the cloud terminal and the cloud server, when the cloud terminal logs out of the cloud server, it is determined that the cloud terminal is offline.
A服务器侦测终端的在线状态,在侦测到升级服务器无法将待升级数据发送给所述终端时,判定所述终端离线,从保存的所述终端的软件升级标识中,获取保存时间距当前时间最近的软件升级标识。即获取所述终端有记录的最近的升级点。在本发明其他实施例中,判断所述终端的离线状态的方式还可以是:终端实时或者定时向所述A服务器发送一个心跳包,A服务器在一定时间(5s、8s等)内未接收到所述终端发送的心跳包时,判定所述终端离线。The A server detects the online status of the terminal. When it is detected that the upgrade server cannot send the data to be upgraded to the terminal, the terminal determines that the terminal is offline, and obtains the save time from the saved software upgrade identifier of the terminal. The most recent software upgrade identifier. That is, the latest upgrade point that the terminal has recorded is obtained. In another embodiment of the present invention, the method for determining the offline state of the terminal may be: the terminal sends a heartbeat packet to the A server in real time or periodically, and the A server does not receive the heartbeat packet within a certain time (5s, 8s, etc.). When the heartbeat packet is sent by the terminal, it is determined that the terminal is offline.
所述升级模块30设置成:在侦测到所述终端重新在线时,根据获取的软件升级标识继续所述终端软件的后续升级操作。The upgrade module 30 is configured to continue the subsequent upgrade operation of the terminal software according to the acquired software upgrade identifier when detecting that the terminal is online again.
所述终端在故障恢复或重新供电时,即所述终端重新上线时,在云终端与云服务器的交互当中,即在所述云终端通过登录账号登录所述云服务器时,认为所述云终端重新上线。 When the terminal is re-powered or re-powered, that is, when the terminal is re-online, the cloud terminal is considered to be in the interaction between the cloud terminal and the cloud server, that is, when the cloud terminal logs in to the cloud server through the login account. Go online again.
根据获取的软件升级标识继续所述终端软件的后续升级操作,即根据获取的软件升级标识获取所述终端待升级数据中未升级的部分;将获取的待升级数据中未升级的部分发送给所述终端,继续所述终端的软件的升级操作。进行所述软件升级标识之后的软件升级部分。And the subsequent upgrade operation of the terminal software is performed according to the obtained software upgrade identifier, that is, the unupgraded part of the data to be upgraded by the terminal is obtained according to the obtained software upgrade identifier; and the unupgraded part of the obtained data to be upgraded is sent to the The terminal continues the upgrade operation of the software of the terminal. The software upgrade part after the software upgrade logo is performed.
可以理解的是,在所述终端重新上线时,所述分析模块40设置成:判断是否需要继续所述终端的软件升级操作;所述升级模块30,还设置成:在不需要继续所述终端的软件升级操作时,结束所述终端的软件升级操作;在需要继续所述终端的软件升级操作时,根据获取的软件升级标识继续所述终端软件的后续升级操作。所述终端可以是一个终端或者多个终端。通过在所述终端重新上线时,判断是否需要继续进行所述终端的在线升级操作,在需要继续所述终端的软件升级操作时,才继续进行所述终端的软件升级。避免升级操作干扰到用户通过所述终端其他操作。提高终端软件升级的灵活度,进而提高了用户的体验。It can be understood that, when the terminal is re-online, the analysis module 40 is configured to: determine whether it is necessary to continue the software upgrade operation of the terminal; the upgrade module 30 is further configured to: When the software upgrade operation is performed, the software upgrade operation of the terminal is ended; when the software upgrade operation of the terminal needs to be continued, the subsequent upgrade operation of the terminal software is continued according to the obtained software upgrade identifier. The terminal may be one terminal or multiple terminals. When the terminal is re-online, it is determined whether the online upgrade operation of the terminal needs to be continued. When the software upgrade operation of the terminal needs to be continued, the software upgrade of the terminal is continued. Avoid escalation operations that interfere with other operations by the user through the terminal. Improve the flexibility of terminal software upgrades, thereby improving the user experience.
在本发明实施例通过终端上报其在软件升级过程中软件升级的状态信息,并根据上报的软件升级的状态信息设置对应的软件升级的标识,在终端离线,又重新在线时,可以根据所述软件升级的标识继续所述软件升级的标识之后的升级,实现终端出现故障导致与服务器断开通信(终端离线时),继续完成终端后续的升级流程,有效避免终端的软件升级失败的情况,提高终端软件升级的效率和成功率。In the embodiment of the present invention, the status information of the software upgrade in the software upgrade process is reported by the terminal, and the corresponding software upgrade identifier is set according to the status information of the reported software upgrade, and when the terminal is offline and online again, according to the The upgrade of the software upgrade continues the upgrade after the identifier of the software upgrade, and the terminal is faulty, causing the communication to be disconnected from the server (when the terminal is offline), and the subsequent upgrade process of the terminal is completed, thereby effectively preventing the software upgrade failure of the terminal and improving. The efficiency and success rate of terminal software upgrades.
可选地,所述处理模块20,还设置成:获取各个终端的网络状态信息,并将各个终端按照网络状态进行排序;Optionally, the processing module 20 is further configured to: obtain network state information of each terminal, and sort each terminal according to a network state;
所述升级模块30,还设置成:逐次按照排序由先至后的顺序,选择预设数量的终端,并根据各自对应的软件升级标识继续进行软件的后续升级操作,直至所有终端软件升级完毕。The upgrade module 30 is further configured to: select a preset number of terminals in order from first to last, and continue to perform subsequent upgrade operations of the software according to the corresponding software upgrade identifiers until all terminal software upgrades are completed.
在有多个终端同时进行软件的在线升级时,A服务器获取各个终端的网络状态信息,所述网络状态信息包括但不限于各个终端的下载速度,分配的带宽等信息。A服务器将各个终端按照网络状态的好坏情况进行排序,即将网络状态好(例如,下载速度快)的终端排在前面。逐逐次按照排序由先至 后的顺序,选择预设数量的终端,并根据各自对应的软件升级标识继续进行软件的后续升级操作,直至所有终端软件升级完毕。所述预设数量可以是2个、3个等,可以根据升级服务器的带宽来自由设置。When the online upgrade of the software is performed by multiple terminals, the A server obtains network status information of each terminal, and the network status information includes but is not limited to information such as download speed and allocated bandwidth of each terminal. The A server sorts each terminal according to the quality of the network state, that is, the terminal with good network status (for example, fast download speed) is ranked first. Step by step by first, by first After the order, select a preset number of terminals, and continue the subsequent upgrade operation of the software according to the corresponding software upgrade identifiers until all terminal software upgrades are completed. The preset number may be 2, 3, etc., and may be set according to the bandwidth of the upgrade server.
A服务器控制各个终端进行软件升级的过程为:选择排序在先的预设数量的终端进行软件升级操作(根据各自对应的距当前时间最近的软件升级标识进行后续的软件升级操作),在选择的各个终端的软件升级操作完成之后,从剩余的未完成升级操作的终端中选择排序在先的预设数量的终端进行软件升级操作(根据各自对应的距当前时间最近的软件升级标识进行后续的软件升级操作),在选择的各个终端的软件升级操作完成之后,再从剩余的未完成升级操作的终端中选择排序在先的预设数量的终端进行软件升级操作,依次类推,直至所有终端软件升级完毕。The process of controlling the software upgrade of each terminal by the A server is: selecting a preset number of terminals to perform software upgrade operations (subsequent software upgrade operations according to the corresponding software upgrade identifiers corresponding to the current time), in the selected After the software upgrade operation of each terminal is completed, the software that performs the software upgrade operation is selected according to the preset preset number of terminals from the remaining terminals that have not completed the upgrade operation (the subsequent software is performed according to the corresponding software upgrade identifier corresponding to the current time). Upgrade operation), after the software upgrade operation of each selected terminal is completed, select the preset preset number of terminals to perform software upgrade operations from the remaining terminals that have not completed the upgrade operation, and so on, until all terminal software upgrades Finished.
可以理解的是,在有终端退出软件的在线升级时,将退出在线升级的终端从待升级终端中清除,即不再作为待升级终端。同样,也不对退出在线升级的终端进行网络状态的排序。It can be understood that, when an online upgrade of the terminal exits the software, the terminal that exits the online upgrade is cleared from the terminal to be upgraded, that is, it is no longer used as the terminal to be upgraded. Similarly, the network status of the terminals that exit the online upgrade is not sorted.
在本发明实施例中,通过对各个待升级终端的网络状态进行排序,以供网络状态好的终端优先进行软件的升级,有效避免过多的终端同时进行软件升级大大增加升级服务器的系统开销,降低升级服务器性能的技术问题。提高终端升级的效率的同时,也提高了升级服务器系统的性能。In the embodiment of the present invention, the network status of each terminal to be upgraded is sorted, so that the terminal with good network status preferentially upgrades the software, thereby effectively avoiding excessive software upgrade at the same time, thereby greatly increasing the system overhead of upgrading the server. Reduce technical issues with upgrading server performance. While improving the efficiency of terminal upgrades, it also improves the performance of the upgraded server system.
可选地,所述处理模块20,还设置成:在侦测到多个终端重新在线时,获取各个终端软件的当前升级进度,并将各个终端按照当前升级进度进行排序;Optionally, the processing module 20 is further configured to: when detecting that multiple terminals are online again, obtain a current upgrade progress of each terminal software, and sort each terminal according to a current upgrade progress;
所述升级模块30,还设置成:逐次按照排序由先至后的顺序,选择预设数量的终端,并根据各自对应的软件升级标识继续软件的后续升级操作,直至所有终端软件升级完毕。The upgrade module 30 is further configured to: select a preset number of terminals in order from first to last, and continue the subsequent upgrade operation of the software according to the corresponding software upgrade identifiers until all terminal software upgrades are completed.
在有多个终端重新在线时,即重新在线的多个终端需要同时进行软件的在线升级时,A服务器获取各个终端的当前升级进度。例如,a终端升级了70%、b终端升级了50%、c终端升级了80%等。A服务器将各个终端按照当 前升级进度进行排序,即将升级进度多的终端排在前面,例如,以a终端、b终端和c终端为例,排序为c终端>a终端>b终端。逐次按照排序由先至后的顺序,选择预设数量的终端,并根据各自对应的软件升级标识继续软件的后续升级操作,直至所有终端软件升级完毕。When multiple terminals are re-online, that is, multiple terminals that are re-online need to perform online upgrade of the software at the same time, the A server obtains the current upgrade progress of each terminal. For example, a terminal upgrade is 70%, b terminal upgrade is 50%, c terminal upgrade is 80%, and so on. A server will follow each terminal The pre-upgrade progress is sorted, and the terminal with more upgrade progress is ranked first. For example, taking a terminal, b terminal, and c terminal as an example, the order is c terminal>a terminal>b terminal. According to the order of the first to the last, the preset number of terminals are selected, and the subsequent upgrade operations of the software are continued according to the corresponding software upgrade identifiers until all terminal software upgrades are completed.
A服务器控制各个终端进行软件升级的过程为:选择排序在先的预设数量的终端进行软件升级操作(根据各自对应的距当前时间最近的软件升级标识进行后续的软件升级操作),在选择的各个终端的软件升级操作完成之后,从剩余的未完成升级操作的终端中选择排序在先的预设数量的终端进行软件升级操作(根据各自对应的距当前时间最近的软件升级标识进行后续的软件升级操作),在选择的各个终端的软件升级操作完成之后,再从剩余的未完成升级操作的终端中选择排序在先的预设数量的终端进行软件升级操作,依次类推,直至所有终端软件升级完毕。The process of controlling the software upgrade of each terminal by the A server is: selecting a preset number of terminals to perform software upgrade operations (subsequent software upgrade operations according to the corresponding software upgrade identifiers corresponding to the current time), in the selected After the software upgrade operation of each terminal is completed, the software that performs the software upgrade operation is selected according to the preset preset number of terminals from the remaining terminals that have not completed the upgrade operation (the subsequent software is performed according to the corresponding software upgrade identifier corresponding to the current time). Upgrade operation), after the software upgrade operation of each selected terminal is completed, select the preset preset number of terminals to perform software upgrade operations from the remaining terminals that have not completed the upgrade operation, and so on, until all terminal software upgrades Finished.
在本发明实施例中,通过对各个待升级终端的升级进度进行排序,以供升级进度快的终端优先进行软件的升级,有效避免过多的终端同时进行软件升级大大增加升级服务器的系统开销,降低升级服务器性能的技术问题。提高终端升级的效率的同时,也提高了升级服务器系统的性能。In the embodiment of the present invention, the upgrade progress of each terminal to be upgraded is sorted, so that the terminal with fast upgrade progress preferentially upgrades the software, thereby effectively avoiding too many terminals simultaneously performing software upgrades, thereby greatly increasing the system overhead of upgrading the server. Reduce technical issues with upgrading server performance. While improving the efficiency of terminal upgrades, it also improves the performance of the upgraded server system.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments. Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present invention in essence or the contribution to the related art can be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM). The instructions include a number of instructions for causing a terminal device (which may be a cell phone, computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention.
以上所述仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。 The above is only the preferred embodiment of the present invention, and is not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the invention and the drawings are directly or indirectly applied to other related The technical field is equally included in the scope of patent protection of the present invention.
工业实用性Industrial applicability
本发明实施例通过终端上报其在软件升级过程中软件升级的状态信息,并根据上报的软件升级的状态信息设置对应的软件升级的标识,在终端离线,又重新在线时,可以根据所述软件升级的标识继续所述软件升级的标识之后的升级,实现终端出现故障导致与服务器断开通信(终端离线时),继续完成终端后续的升级流程,有效避免终端的软件升级失败的情况,提高终端软件升级的效率和成功率。因此本发明具有很强的工业实用性。 The embodiment of the present invention reports the status information of the software upgrade in the software upgrade process by the terminal, and sets the corresponding software upgrade identifier according to the reported software upgrade status information. When the terminal is offline and online again, the software may be The upgraded identifier continues the upgrade after the identifier of the software upgrade, and the terminal is faulty, causing the communication to be disconnected from the server (when the terminal is offline), and the subsequent upgrade process of the terminal is continued, thereby effectively preventing the software upgrade failure of the terminal and improving the terminal. The efficiency and success rate of software upgrades. Therefore, the present invention has strong industrial applicability.

Claims (10)

  1. 一种终端软件的在线升级方法,该方法包括如下步骤:An online upgrade method for terminal software, the method comprising the following steps:
    在终端软件的在线升级过程中,接收所述终端上报的软件升级的状态信息,根据所述软件升级的状态信息为所述终端设置与所述状态信息对应的软件升级标识并保存;Receiving, in the online upgrade process of the terminal software, status information of the software upgrade reported by the terminal, and setting a software upgrade identifier corresponding to the status information for the terminal according to the status information of the software upgrade and saving;
    在侦测到所述终端离线时,从保存的所述终端的软件升级标识中,获取保存时间距当前时间最近的软件升级标识;When detecting that the terminal is offline, obtaining, from the saved software upgrade identifier of the terminal, a software upgrade identifier whose save time is closest to the current time;
    在侦测到所述终端重新在线时,根据获取的软件升级标识继续所述终端软件的后续升级操作。After detecting that the terminal is online again, the subsequent upgrade operation of the terminal software is continued according to the obtained software upgrade identifier.
  2. 如权利要求1所述的终端软件的在线升级方法,其中,所述根据获取的软件升级标识继续所述终端软件的后续升级操作的步骤包括:The online upgrade method of the terminal software according to claim 1, wherein the step of continuing the subsequent upgrade operation of the terminal software according to the acquired software upgrade identifier comprises:
    根据获取的软件升级标识,确定所述终端待升级数据中未升级的部分;Determining, according to the obtained software upgrade identifier, a portion of the terminal to be upgraded that is not upgraded;
    将确定的待升级数据中未升级的部分发送给所述终端,继续所述终端的软件的升级操作。Sending the unupgraded portion of the determined data to be upgraded to the terminal, and continuing the software upgrade operation of the terminal.
  3. 如权利要求1或2所述的终端软件的在线升级方法,其中,当有多个终端同时进行软件的在线升级时,该方法还包括:The online upgrade method of the terminal software according to claim 1 or 2, wherein when a plurality of terminals simultaneously perform online upgrade of the software, the method further includes:
    获取各个终端的网络状态信息,并将各个终端按照网络状态进行排序;Obtain network status information of each terminal, and sort each terminal according to network status;
    逐次按照排序由先至后的顺序,根据所获取的各终端对应的软件升级标识继续进行各终端软件的后续升级操作,直至所有终端软件升级完毕。The subsequent upgrade operations of each terminal software are continued according to the software upgrade identifiers corresponding to the obtained terminals, in order from the first to the last, until all terminal software upgrades are completed.
  4. 如权利要求1或2所述的终端软件的在线升级方法,其中,当有多个终端同时进行软件的在线升级时,该方法还包括:The online upgrade method of the terminal software according to claim 1 or 2, wherein when a plurality of terminals simultaneously perform online upgrade of the software, the method further includes:
    获取各个终端软件的当前升级进度,并将各个终端按照当前升级进度进行排序;Obtain the current upgrade progress of each terminal software, and sort each terminal according to the current upgrade progress;
    逐次按照排序由先至后的顺序,根据所获取的各终端对应的软件升级标 识继续各终端软件的后续升级操作,直至所有终端软件升级完毕。Sorting sequentially from first to last, according to the acquired software upgrade targets for each terminal Continue to continue the upgrade operation of each terminal software until all terminal software upgrades are completed.
  5. 如权利要求1或2所述的终端软件的在线升级方法,该方法还包括:The online upgrade method of the terminal software according to claim 1 or 2, further comprising:
    在侦测到所述终端重新在线时,判断是否需要继续所述终端的软件升级操作;When detecting that the terminal is online again, determining whether it is necessary to continue the software upgrade operation of the terminal;
    在不需要继续所述终端的软件升级操作时,结束所述终端的软件升级操作;Ending the software upgrade operation of the terminal when it is not required to continue the software upgrade operation of the terminal;
    在需要继续所述终端的软件升级操作时,执行所述根据获取的软件升级标识继续所述终端软件的后续升级操作的步骤。When the software upgrade operation of the terminal needs to be continued, the step of continuing the subsequent upgrade operation of the terminal software according to the acquired software upgrade identifier is performed.
  6. 一种终端软件的在线升级装置,该装置包括接收模块、处理模块和升级模块,其中:An online upgrading device for terminal software, the device comprising a receiving module, a processing module and an upgrading module, wherein:
    所述接收模块设置成:在终端软件的在线升级过程中,接收所述终端上报的软件升级的状态信息;The receiving module is configured to: receive status information of the software upgrade reported by the terminal during an online upgrade process of the terminal software;
    所述处理模块设置成:根据所述软件升级的状态信息为所述终端设置对应的软件升级标识并保存;在侦测到所述终端离线时,从保存的所述终端的软件升级标识中,获取保存时间距当前时间最近的软件升级标识;The processing module is configured to: set a corresponding software upgrade identifier for the terminal according to the status information of the software upgrade and save the file; and when detecting that the terminal is offline, from the saved software upgrade identifier of the terminal, Obtain the software upgrade identifier whose save time is closest to the current time;
    所述升级模块设置成:在侦测到所述终端重新在线时,根据获取的软件升级标识继续所述终端软件的后续升级操作。The upgrade module is configured to continue the subsequent upgrade operation of the terminal software according to the obtained software upgrade identifier when detecting that the terminal is online again.
  7. 如权利要求6所述的终端软件的在线升级装置,其中,所述升级模块设置成按照如下方式根据获取的软件升级标识继续所述终端软件的后续升级操作:The online upgrading device of the terminal software according to claim 6, wherein the upgrading module is configured to continue the subsequent upgrading operation of the terminal software according to the acquired software upgrade identifier as follows:
    根据获取的软件升级标识,确定所述终端待升级数据中未升级的部分;Determining, according to the obtained software upgrade identifier, a portion of the terminal to be upgraded that is not upgraded;
    将确定的待升级数据中未升级的部分发送给所述终端,继续所述终端的软件的升级操作。 Sending the unupgraded portion of the determined data to be upgraded to the terminal, and continuing the software upgrade operation of the terminal.
  8. 如权利要求6或7所述的终端软件的在线升级装置,其中,The online upgrading device of the terminal software according to claim 6 or 7, wherein
    所述处理模块还设置成:当确定有多个终端同时进行软件的在线升级时,获取各个终端的网络状态信息,并将各个终端按照网络状态进行排序;The processing module is further configured to: when it is determined that multiple terminals simultaneously perform online upgrade of the software, obtain network status information of each terminal, and sort each terminal according to the network status;
    所述升级模块还设置成:逐次按照排序由先至后的顺序,并根据所获取的各终端对应的软件升级标识继续进行各终端软件的后续升级操作,直至所有终端软件升级完毕。The upgrade module is further configured to: sequentially follow the order from the first to the last, and continue to perform subsequent upgrade operations of each terminal software according to the acquired software upgrade identifiers of the terminals until all terminal software upgrades are completed.
  9. 如权利要求6或7所述的终端软件的在线升级装置,其中,The online upgrading device of the terminal software according to claim 6 or 7, wherein
    所述处理模块还设置成:在有多个终端同时进行软件的在线升级时,获取各个终端软件的当前升级进度,并将各个终端按照当前升级进度进行排序;The processing module is further configured to: when a plurality of terminals simultaneously perform online upgrade of the software, obtain a current upgrade progress of each terminal software, and sort the terminals according to the current upgrade progress;
    所述升级模块还设置成:逐次按照排序由先至后的顺序,根据所获取的各终端对应的软件升级标识继续各终端软件的后续升级操作,直至所有终端软件升级完毕。The upgrade module is further configured to: continue the subsequent upgrade operations of the terminal software according to the acquired software upgrade identifiers of each terminal according to the order of the first to last order, until all the terminal software upgrades are completed.
  10. 如权利要求6或7所述的终端软件的在线升级装置,该装置还包括分析模块,The online upgrading device of the terminal software according to claim 6 or 7, further comprising an analysis module,
    所述分析模块设置成:在侦测到所述终端重新在线时,判断是否需要继续所述终端的软件升级操作;The analyzing module is configured to: when detecting that the terminal is online again, determine whether it is necessary to continue the software upgrade operation of the terminal;
    所述升级模块还设置成:在不需要继续所述终端的软件升级操作时,结束所述终端的软件升级操作;在需要继续所述终端的软件升级操作时,根据获取的软件升级标识继续所述终端软件的后续升级操作。 The upgrade module is further configured to: end the software upgrade operation of the terminal when the software upgrade operation of the terminal is not required to be continued; when the software upgrade operation of the terminal needs to be continued, continue according to the obtained software upgrade identifier The subsequent upgrade operation of the terminal software.
PCT/CN2014/086979 2014-05-05 2014-09-19 On-line upgrade method and device for terminal software WO2015169028A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410187129.8 2014-05-05
CN201410187129.8A CN105094860A (en) 2014-05-05 2014-05-05 Terminal software online upgrade method and device

Publications (1)

Publication Number Publication Date
WO2015169028A1 true WO2015169028A1 (en) 2015-11-12

Family

ID=54392069

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/086979 WO2015169028A1 (en) 2014-05-05 2014-09-19 On-line upgrade method and device for terminal software

Country Status (2)

Country Link
CN (1) CN105094860A (en)
WO (1) WO2015169028A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105404536B (en) * 2015-12-14 2019-05-24 Oppo广东移动通信有限公司 Method for updating terminal software and terminal software upgrading device
CN107450954A (en) * 2017-08-02 2017-12-08 成都虫洞奇迹科技有限公司 A kind of user's cloud terminal staging method based on cloud desktop
CN113204399A (en) * 2021-04-16 2021-08-03 广州朗国电子科技有限公司 Cloud desktop intelligent terminal management method, electronic equipment and storage medium
CN114827106A (en) * 2022-03-18 2022-07-29 中科晶上(苏州)信息技术有限公司 Electric vehicle remote upgrading method
CN114785688B (en) * 2022-06-21 2022-09-06 深圳市华曦达科技股份有限公司 Terminal equipment upgrading method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145973A (en) * 2007-10-23 2008-03-19 华为技术有限公司 Software upgrade method and device
US7574481B2 (en) * 2000-12-20 2009-08-11 Microsoft Corporation Method and system for enabling offline detection of software updates
CN103631622A (en) * 2013-11-29 2014-03-12 中达电通股份有限公司 Software online upgrade repairing method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132573A (en) * 2006-08-23 2008-02-27 中兴通讯股份有限公司 Method for implementing terminal batch upgrading
CN101795203B (en) * 2009-02-03 2012-08-15 华为软件技术有限公司 Method and device for downloading software upgrading data packet
US8516477B1 (en) * 2010-03-12 2013-08-20 Cellco Partnership Automated deployment tool for multiple server environment
CN103458523A (en) * 2012-06-01 2013-12-18 北京大学 Vehicle-mounted communication system wireless resource scheduling method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7574481B2 (en) * 2000-12-20 2009-08-11 Microsoft Corporation Method and system for enabling offline detection of software updates
CN101145973A (en) * 2007-10-23 2008-03-19 华为技术有限公司 Software upgrade method and device
CN103631622A (en) * 2013-11-29 2014-03-12 中达电通股份有限公司 Software online upgrade repairing method

Also Published As

Publication number Publication date
CN105094860A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
WO2015169028A1 (en) On-line upgrade method and device for terminal software
CN108768877B (en) Distribution method and device of burst traffic and proxy server
US9141491B2 (en) Highly available server system based on cloud computing
CN109714202B (en) Client off-line reason distinguishing method and cluster type safety management system
JP2019513246A (en) Training method of random forest model, electronic device and storage medium
CN104954478A (en) System and method for realizing automatic longitudinal scaling of server in cloud computing platform
WO2016023345A1 (en) Gated upgrade method and apparatus
CN110457176B (en) Monitoring method and device for distributed system, storage medium and electronic equipment
CN108268305A (en) For the system and method for virtual machine scalable appearance automatically
CN106657259B (en) Routing server and routing service method for server cluster
CN113946358A (en) Automatic driving vehicle software remote upgrading method based on vehicle management system
CN113051019A (en) Flow task execution control method, device and equipment
CN110691398B (en) Network interaction method, system, equipment and storage medium of intelligent equipment
US7434204B1 (en) Method and apparatus for managing software processes
CN110875838B (en) Resource deployment method, device and storage medium
CN105978938A (en) Service processing equipment service status determining method and scheduling equipment
CN111143031A (en) Method and device for changing capacity of virtual machine
CN108156024B (en) Method, system and storage medium for detecting availability based on distributed website
CN109918140A (en) A kind of cloud application method of controlling operation thereof and device
WO2017185631A1 (en) Data downloading method and device
CN107409427B (en) Data transmission method and device of data service
CN109343944A (en) Data processing method, device, terminal and the storage medium of eSIM card
CN109189415A (en) Device, method, system and the computer readable storage medium of deployment services device
CN105897487B (en) Equipment management method and device for operation and maintenance system
US10950328B2 (en) Method, apparatus and system for detecting structural variations

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14891357

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14891357

Country of ref document: EP

Kind code of ref document: A1