CN109348472B - An OTA upgrade method and system based on single-point push - Google Patents
An OTA upgrade method and system based on single-point push Download PDFInfo
- Publication number
- CN109348472B CN109348472B CN201811101153.XA CN201811101153A CN109348472B CN 109348472 B CN109348472 B CN 109348472B CN 201811101153 A CN201811101153 A CN 201811101153A CN 109348472 B CN109348472 B CN 109348472B
- Authority
- CN
- China
- Prior art keywords
- mobile device
- serial number
- software
- ota upgrade
- upgrade
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/22—Processing or transfer of terminal data, e.g. status or physical capabilities
- H04W8/24—Transfer of terminal data
- H04W8/245—Transfer of terminal data from a network towards a terminal
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明实施例涉及移动通信技术领域,公开了一种基于单点推送的OTA升级方法及系统,该方法包括:移动设备向服务器发送移动设备的序列号;服务器在接收到上述序列号之后,获取推送信息,以及根据该序列号将推送信息推送给移动设备,该推送信息携带有用于指示下载目标OTA升级包的下载链接;移动设备根据推送信息所携带的下载链接,下载目标OTA升级包,以及在用户的升级操作下基于目标OTA升级包进行软件升级。实施本发明实施例,能在推送OTA升级包的时候避免影响其他移动设备,且能节省网络资源。
Embodiments of the present invention relate to the technical field of mobile communications, and disclose a single-point push-based OTA upgrade method and system. The method includes: a mobile device sends a serial number of the mobile device to a server; and the server obtains the serial number after receiving the serial number. push information, and push the push information to the mobile device according to the serial number, the push information carries a download link for instructing to download the target OTA upgrade package; the mobile device downloads the target OTA upgrade package according to the download link carried by the push information, and The software is upgraded based on the target OTA upgrade package under the user's upgrade operation. By implementing the embodiments of the present invention, other mobile devices can be avoided when the OTA upgrade package is pushed, and network resources can be saved.
Description
技术领域technical field
本发明涉及移动通信技术领域,尤其涉及一种基于单点推送的OTA升级方法及系统。The present invention relates to the technical field of mobile communications, and in particular, to a single-point push-based OTA upgrade method and system.
背景技术Background technique
移动设备批量上市之后,某些用户在使用过程中,会因为一些个人的误操作导致移动设备的软件(包括系统软件和应用软件)出现问题,这时用户一般选择到店里进行软件修复或者更换移动设备。但是,到店里进行软件修复是一个既费时间又麻烦的过程,而更换移动设备则成本较高,用户体验不佳。After the mobile devices are listed in batches, some users will have problems with the software (including system software and application software) of the mobile devices due to some personal misoperations during use. At this time, users generally choose to go to the store to repair or replace the software. Mobile devices. However, in-store software repair is a time-consuming and cumbersome process, while replacing mobile devices is costly and provides a poor user experience.
发明内容SUMMARY OF THE INVENTION
本发明实施例公开了一种基于单点推送的OTA升级方法及系统,使得OTA升级具有针对性,避免对不需要对软件进行升级的用户造成影响,且能够减少网络资源的浪费。The embodiment of the present invention discloses a single-point push-based OTA upgrade method and system, so that the OTA upgrade is targeted, avoids impact on users who do not need to upgrade software, and can reduce the waste of network resources.
本发明实施例第一方面公开一种基于单点推送的OTA升级方法,所述方法包括:A first aspect of the embodiments of the present invention discloses a single-point push-based OTA upgrade method, the method includes:
移动设备向服务器发送所述移动设备的序列号;The mobile device sends the serial number of the mobile device to the server;
所述服务器在接收到所述序列号之后,获取推送信息,以及根据所述序列号将所述推送信息推送给所述移动设备,所述推送信息携带有用于指示下载目标OTA升级包的下载链接;After receiving the serial number, the server obtains push information, and pushes the push information to the mobile device according to the serial number, where the push information carries a download link for indicating the download target OTA upgrade package ;
所述移动设备根据所述推送信息所携带的所述下载链接,下载所述目标OTA升级包,以及在用户的升级操作下基于所述目标OTA升级包进行软件升级。The mobile device downloads the target OTA upgrade package according to the download link carried in the push information, and performs software upgrade based on the target OTA upgrade package under the user's upgrade operation.
作为一种可选的实施方式,在本发明实施例第一方面中,所述移动设备向服务器发送所述移动设备的序列号之前,所述方法还包括:As an optional implementation manner, in the first aspect of the embodiment of the present invention, before the mobile device sends the serial number of the mobile device to the server, the method further includes:
所述移动设备向所述服务器发送软件升级请求信息,所述软件升级请求信息至少包括所述移动设备的当前软件版本序号;或者,The mobile device sends software upgrade request information to the server, where the software upgrade request information at least includes the current software version serial number of the mobile device; or,
当所述服务器检测到所述当前软件版本序号低于预设软件版本序号阈值时,所述服务器向所述移动设备推送软件升级通知信息,所述软件升级通知信息用于通知所述移动设备进行软件升级。When the server detects that the current software version serial number is lower than the preset software version serial number threshold, the server pushes software upgrade notification information to the mobile device, and the software upgrade notification information is used to notify the mobile device to perform a software upgrade. software upgrade.
作为一种可选的实施方式,在本发明实施例第一方面中,所述服务器配置有若干个OTA升级包,一个所述OTA升级包对应一个软件版本序号,所述OTA升级包至少包括差分文件,所述差分文件为从某一个历史软件版本序号对应的软件升级至所述OTA升级包对应的软件版本序号对应的软件时所需的文件,所述历史软件版本序号为生成时间位于所述OTA升级包对应的软件版本序号之前的软件版本序号;As an optional implementation manner, in the first aspect of the embodiment of the present invention, the server is configured with several OTA upgrade packages, one of the OTA upgrade packages corresponds to a software version serial number, and the OTA upgrade packages at least include differential file, the difference file is a file required when upgrading from the software corresponding to a certain historical software version serial number to the software corresponding to the software version serial number corresponding to the OTA upgrade package, and the historical software version serial number is that the generation time is located in the The serial number of the software version before the serial number of the software version corresponding to the OTA upgrade package;
所述服务器在接收到所述序列号之后,获取推送信息,以及根据所述序列号将所述推送信息推送给所述移动设备,包括:After receiving the serial number, the server obtains push information, and pushes the push information to the mobile device according to the serial number, including:
所述服务器在接收到所述序列号之后,根据所述当前软件版本序号,从所述若干个OTA升级包中获取所述目标OTA升级包,根据所述目标OTA升级包生成推送信息,以及根据所述序列号将所述推送信息推送给所述移动设备。After receiving the serial number, the server obtains the target OTA upgrade package from the several OTA upgrade packages according to the current software version serial number, generates push information according to the target OTA upgrade package, and The serial number pushes the push information to the mobile device.
作为一种可选的实施方式,在本发明实施例第一方面中,所述移动设备根据所述推送信息所携带的所述下载链接,下载所述目标OTA升级包,以及在用户的升级操作下基于所述目标OTA升级包进行软件升级之后,所述方法还包括:As an optional implementation manner, in the first aspect of the embodiment of the present invention, the mobile device downloads the target OTA upgrade package according to the download link carried in the push information, and downloads the target OTA upgrade package in the user's upgrade operation. After the software is upgraded based on the target OTA upgrade package, the method further includes:
所述移动设备对基于所述目标OTA升级包完成升级的软件进行缺陷检测,获取检测结果并将所述检测结果发送给所述服务器;The mobile device performs defect detection on the software upgraded based on the target OTA upgrade package, acquires a detection result and sends the detection result to the server;
当所述检测结果指示所述基于所述目标OTA升级包完成升级的软件存在缺陷时,所述服务器根据所述检测结果生成OTA升级补充包,并根据所述序列号将所述OTA升级补充包推送给所述移动设备;When the detection result indicates that the software upgraded based on the target OTA update package is defective, the server generates an OTA update supplementary package according to the detection result, and generates the OTA update supplementary package according to the serial number push to the mobile device;
所述移动设备接收所述OTA升级补充包,并根据所述OTA升级补充包对所述基于所述目标OTA升级包完成升级的软件进行补充升级。The mobile device receives the OTA upgrade supplementary package, and supplements and upgrades the software upgraded based on the target OTA upgrade package according to the OTA upgrade supplementary package.
作为一种可选的实施方式,在本发明实施例第一方面中,所述服务器在接收到所述序列号之后,所述方法还包括:As an optional implementation manner, in the first aspect of the embodiment of the present invention, after the server receives the serial number, the method further includes:
所述服务器建立一个OTA升级列表,所述OTA升级列表根据软件的不同版本序号被分为若干个OTA升级子列表;The server establishes an OTA upgrade list, and the OTA upgrade list is divided into several OTA upgrade sublists according to different version serial numbers of the software;
所述服务器根据所述当前软件版本序号,将所述序列号加入所述OTA升级列表中对应的目标OTA升级子列表中;The server adds the serial number to the corresponding target OTA upgrade sublist in the OTA upgrade list according to the current software version serial number;
所述服务器统计所述目标OTA升级子列表中所述序列号的总数,当所述总数大于预设总数阈值,向目标移动设备推送所述软件升级通知信息和所述当前软件版本序号对应的软件的下架通知信息,其中,所述目标移动设备为安装有所述当前软件版本序号对应的软件的移动设备。The server counts the total number of the serial numbers in the target OTA upgrade sublist, and when the total number is greater than the preset total number threshold, pushes the software upgrade notification information and the software corresponding to the current software version serial number to the target mobile device , wherein the target mobile device is a mobile device installed with the software corresponding to the current software version serial number.
本发明实施例第二方面公开一种基于单点推送的OTA升级系统,所述OTA升级系统包括移动设备和服务器,其中:A second aspect of the embodiments of the present invention discloses a single-point push-based OTA upgrade system, the OTA upgrade system includes a mobile device and a server, wherein:
所述移动设备,用于向所述服务器发送所述移动设备的序列号;the mobile device, configured to send the serial number of the mobile device to the server;
所述服务器,用于在接收到所述序列号之后,获取推送信息,以及根据所述序列号将所述推送信息推送给所述移动设备,所述推送信息携带有用于指示下载目标OTA升级包的下载链接;The server is configured to, after receiving the serial number, obtain push information, and push the push information to the mobile device according to the serial number, where the push information carries an instruction to download the target OTA upgrade package 's download link;
所述移动设备,还用于根据所述推送信息所携带的所述下载链接,下载所述目标OTA升级包,以及在用户的升级操作下基于所述目标OTA升级包进行软件升级。The mobile device is further configured to download the target OTA upgrade package according to the download link carried in the push information, and perform software upgrade based on the target OTA upgrade package under the user's upgrade operation.
作为一种可选的实施方式,在本发明实施例第二方面中,As an optional implementation manner, in the second aspect of the embodiment of the present invention,
所述移动设备,还用于在所述移动设备向服务器发送所述移动设备的序列号之前,向所述服务器发送软件升级请求信息,所述软件升级请求信息至少包括所述移动设备的当前软件版本序号;或者,The mobile device is further configured to send software upgrade request information to the server before the mobile device sends the serial number of the mobile device to the server, where the software upgrade request information at least includes the current software of the mobile device version number; or,
所述服务器,还用于在所述移动设备向服务器发送所述移动设备的序列号之前,当检测到所述当前软件版本序号低于预设软件版本序号阈值时,向所述移动设备推送软件升级通知信息,所述软件升级通知信息用于通知所述移动设备进行软件升级。The server is further configured to, before the mobile device sends the serial number of the mobile device to the server, when it is detected that the current software version serial number is lower than a preset software version serial number threshold, push software to the mobile device Upgrade notification information, where the software upgrade notification information is used to notify the mobile device to perform software upgrade.
作为一种可选的实施方式,在本发明实施例第二方面中,所述服务器配置有若干个OTA升级包,一个所述OTA升级包对应一个软件版本序号,所述OTA升级包至少包括差分文件,所述差分文件为从某一个历史软件版本序号对应的软件升级至所述OTA升级包对应的软件版本序号对应的软件时所需的文件,所述历史软件版本序号为生成时间位于所述OTA升级包对应的软件版本序号之前的软件版本序号;As an optional implementation manner, in the second aspect of the embodiment of the present invention, the server is configured with several OTA upgrade packages, one of the OTA upgrade packages corresponds to a software version serial number, and the OTA upgrade packages at least include differential file, the difference file is a file required when upgrading from the software corresponding to a certain historical software version serial number to the software corresponding to the software version serial number corresponding to the OTA upgrade package, and the historical software version serial number is that the generation time is located in the The serial number of the software version before the serial number of the software version corresponding to the OTA upgrade package;
所述服务器用于在接收到所述序列号之后,获取推送信息,以及根据所述序列号将所述推送信息推送给所述移动设备的方式具体为:The manner in which the server is configured to acquire push information after receiving the serial number, and push the push information to the mobile device according to the serial number is specifically:
所述服务器,用于在接收到所述序列号之后,根据所述当前软件版本序号,从所述若干个OTA升级包中获取所述目标OTA升级包,根据所述目标OTA升级包生成推送信息,以及根据所述序列号将所述推送信息推送给所述移动设备。The server is configured to, after receiving the serial number, obtain the target OTA upgrade package from the several OTA upgrade packages according to the current software version serial number, and generate push information according to the target OTA upgrade package , and push the push information to the mobile device according to the serial number.
作为一种可选的实施方式,在本发明实施例第二方面中,As an optional implementation manner, in the second aspect of the embodiment of the present invention,
所述移动设备,还用于在所述移动设备根据所述推送信息所携带的所述下载链接,下载所述目标OTA升级包,以及在用户的升级操作下基于所述目标OTA升级包进行软件升级之后,对基于所述目标OTA升级包完成升级的软件进行缺陷检测,获取检测结果并将所述检测结果发送给所述服务器;The mobile device is further configured to download the target OTA upgrade package on the mobile device according to the download link carried by the push information, and perform software based on the target OTA upgrade package under the user's upgrade operation. After the upgrade, perform defect detection on the software upgraded based on the target OTA upgrade package, acquire a detection result and send the detection result to the server;
所述服务器,还用于当所述检测结果指示所述基于所述目标OTA升级包完成升级的软件存在缺陷时,根据所述检测结果生成OTA升级补充包,并根据所述序列号将所述OTA升级补充包推送给所述移动设备;The server is further configured to generate an OTA upgrade supplementary package according to the detection result when the detection result indicates that the software upgraded based on the target OTA upgrade package is defective, and update the software according to the serial number. The OTA upgrade supplementary package is pushed to the mobile device;
所述移动设备,还用于接收所述OTA升级补充包,并根据所述OTA升级补充包对所述基于所述目标OTA升级包完成升级的软件进行补充升级。The mobile device is further configured to receive the OTA upgrade supplement package, and supplement and upgrade the software upgraded based on the target OTA upgrade package according to the OTA upgrade supplement package.
作为一种可选的实施方式,在本发明实施例第二方面中,As an optional implementation manner, in the second aspect of the embodiment of the present invention,
所述服务器,还用于在接收到所述序列号之后,建立一个OTA升级列表,所述OTA升级列表根据软件的不同版本序号被分为若干个OTA升级子列表;以及,根据所述当前软件版本序号,将所述序列号加入所述OTA升级列表中对应的目标OTA升级子列表中;以及,统计所述目标OTA升级子列表中所述序列号的总数,当所述总数大于预设总数阈值,向目标移动设备推送所述软件升级通知信息和所述当前软件版本序号对应的软件的下架通知信息,其中,所述目标移动设备为安装有所述当前软件版本序号对应的软件的移动设备。The server is further configured to establish an OTA upgrade list after receiving the serial number, and the OTA upgrade list is divided into several OTA upgrade sub-lists according to different version serial numbers of the software; and, according to the current software Version serial number, adding the serial number to the corresponding target OTA upgrade sub-list in the OTA upgrade list; and, counting the total number of the serial numbers in the target OTA upgrade sub-list, when the total number is greater than the preset total number Threshold, push the software upgrade notification information and the software removal notification information corresponding to the current software version serial number to the target mobile device, wherein the target mobile device is a mobile device with the software corresponding to the current software version serial number installed equipment.
本发明实施例第三方面公开一种移动设备,包括:A third aspect of the embodiments of the present invention discloses a mobile device, including:
存储有可执行程序代码的存储器;a memory in which executable program code is stored;
与所述存储器耦合的处理器;a processor coupled to the memory;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行本发明实施例第一方面公开的一种基于单点推送的OTA升级方法。The processor invokes the executable program code stored in the memory to execute the single-point push-based OTA upgrade method disclosed in the first aspect of the embodiments of the present invention.
本发明实施例第四方面公开一种服务器,包括:A fourth aspect of the embodiments of the present invention discloses a server, including:
存储有可执行程序代码的存储器;a memory in which executable program code is stored;
与所述存储器耦合的处理器;a processor coupled to the memory;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行本发明实施例第一方面公开的一种基于单点推送的OTA升级方法。The processor invokes the executable program code stored in the memory to execute the single-point push-based OTA upgrade method disclosed in the first aspect of the embodiments of the present invention.
本发明实施例第五方面公开一种计算机可读存储介质,其存储计算机程序,其中,所述计算机程序使得计算机执行本发明实施例第一方面公开的一种基于单点推送的OTA升级方法。A fifth aspect of the embodiments of the present invention discloses a computer-readable storage medium storing a computer program, wherein the computer program causes a computer to execute the single-point push-based OTA upgrade method disclosed in the first aspect of the embodiments of the present invention.
本发明实施例第六方面公开一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行第一方面的任意一种方法的部分或全部步骤。A sixth aspect of the embodiments of the present invention discloses a computer program product, which, when the computer program product runs on a computer, causes the computer to execute part or all of the steps of any one of the methods of the first aspect.
本发明实施例第七方面公开一种应用发布平台,所述应用发布平台用于发布计算机程序产品,其中,当所述计算机程序产品在计算机上运行时,使得所述计算机执行第一方面的任意一种方法的部分或全部步骤。A seventh aspect of the embodiments of the present invention discloses an application publishing platform, the application publishing platform is used for publishing a computer program product, wherein, when the computer program product runs on a computer, the computer is made to execute any of the first aspect. Some or all of the steps of a method.
与现有技术相比,本发明实施例具有以下有益效果:Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
本发明实施例中,移动设备向服务器发送移动设备的序列号;服务器在接收到序列号之后,获取推送信息,以及根据该序列号将该推送信息推送给移动设备,该推送信息携带有用于指示下载目标OTA升级包的下载链接;进一步地,移动设备根据推送信息所携带的下载链接,下载目标OTA升级包,以及在用户的升级操作下基于该目标OTA升级包进行软件升级。可见,实施本发明实施例,在移动设备软件出现问题或者其它需要(如升级需要)下,移动设备能够将自己的序列号发送给服务器,服务器能够根据移动设备的序列号,单点推送目标OTA升级包给移动设备,进而使该移动设备完成软件升级,无需到店里进行软件修复或者升级,同时不会给其他移动设备造成软件推送影响,且能节省网络资源。In this embodiment of the present invention, the mobile device sends the serial number of the mobile device to the server; after receiving the serial number, the server obtains push information, and pushes the push information to the mobile device according to the serial number, where the push information carries an instruction for indicating Download the download link of the target OTA upgrade package; further, the mobile device downloads the target OTA upgrade package according to the download link carried by the push information, and performs software upgrade based on the target OTA upgrade package under the user's upgrade operation. It can be seen that, in the implementation of the embodiment of the present invention, when there is a problem with the mobile device software or other needs (such as upgrade needs), the mobile device can send its own serial number to the server, and the server can push the target OTA according to the serial number of the mobile device. The upgrade package is sent to the mobile device, so that the mobile device can complete the software upgrade without having to go to the store for software repair or upgrade, and at the same time, it will not affect the software push to other mobile devices, and can save network resources.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the drawings required in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1是本发明实施例公开的一种基于单点推送的OTA升级方法的流程示意图;1 is a schematic flowchart of a single-point push-based OTA upgrade method disclosed in an embodiment of the present invention;
图2是本发明实施例公开的另一种基于单点推送的OTA升级方法的流程示意图;2 is a schematic flowchart of another single-point push-based OTA upgrade method disclosed in an embodiment of the present invention;
图3是本发明实施例公开的另一种基于单点推送的OTA升级方法的流程示意图;3 is a schematic flowchart of another single-point push-based OTA upgrade method disclosed in an embodiment of the present invention;
图4是本发明实施例公开的一种基于单点推送的OTA升级系统的结构示意图;4 is a schematic structural diagram of a single-point push-based OTA upgrade system disclosed in an embodiment of the present invention;
图5是本发明实施例公开的一种移动设备的结构示意图;5 is a schematic structural diagram of a mobile device disclosed in an embodiment of the present invention;
图6是本发明实施例公开的一种服务器的结构示意图。FIG. 6 is a schematic structural diagram of a server disclosed in an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
需要说明的是,本发明实施例的术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "comprising" and "having" and any modifications thereof in the embodiments of the present invention are intended to cover non-exclusive inclusion, for example, a process, method, system, product or process including a series of steps or units. The apparatus is not necessarily limited to those steps or units expressly listed, but may include other steps or units not expressly listed or inherent to the process, method, product or apparatus.
本发明实施例公开了一种基于单点推送的OTA升级方法及系统,使得OTA升级具有针对性,避免对不需要对软件进行升级的用户造成影响,且能够减少网络资源的浪费。以下进行结合附图进行详细描述。The embodiment of the present invention discloses a single-point push-based OTA upgrade method and system, so that the OTA upgrade is targeted, avoids impact on users who do not need to upgrade software, and can reduce the waste of network resources. A detailed description will be given below with reference to the accompanying drawings.
实施例一Example 1
请参阅图1,图1是本发明实施例公开的一种基于单点推送的OTA升级方法的流程示意图。如图1所示,该OTA升级方法可以包括以下步骤。Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a single-point push-based OTA upgrade method disclosed in an embodiment of the present invention. As shown in FIG. 1 , the OTA upgrade method may include the following steps.
101、移动设备向服务器发送该移动设备的序列号。101. The mobile device sends the serial number of the mobile device to the server.
本发明实施例中,移动设备可以包括智能手机、智能手表(如电话手表)以及平板电脑等移动设备,本发明实施例不作限定。In the embodiment of the present invention, the mobile device may include mobile devices such as a smart phone, a smart watch (such as a phone watch), and a tablet computer, which is not limited in the embodiment of the present invention.
作为一种可选的实施方式,移动设备向服务器发送该移动设备的序列号之前,移动设备可以输出用户身份验证界面,对用户的操作权限进行认证,认证的方式可以包括账号密码验证、指纹验证和声音识别验证等。举例来说,用户可以在购买移动设备后,对一些涉及隐私安全的操作(如向服务器发送移动设备的序列号)通过指纹加密的方式加以限制,移动设备录入用户的指纹信息并保存在预设文件夹中;移动设备在向服务器发送该移动设备的序列号之前,输出用户身份验证界面,该用户身份验证界面至少包括指纹录入框和用于提示用户进行指纹录入以验证操作权限的提示信息;将接收到的指纹信息与预设文件夹中保存的指纹信息进行匹配;若匹配成功,执行向服务器发送该移动设备的序列号的操作;若匹配失败,输出提示用户不具备向服务器发送该移动设备的序列号的权限的提示信息。实施本实施方式,可以避免移动设备被无关人员操作,恶意发送移动设备的序列号,加强了安全性。As an optional implementation manner, before the mobile device sends the serial number of the mobile device to the server, the mobile device may output a user identity verification interface to authenticate the user's operation authority, and the authentication methods may include account password verification, fingerprint verification and voice recognition verification, etc. For example, after purchasing a mobile device, the user can restrict some operations involving privacy and security (such as sending the serial number of the mobile device to the server) through fingerprint encryption. The mobile device records the user's fingerprint information and saves it in a preset. folder; before the mobile device sends the serial number of the mobile device to the server, it outputs a user identity verification interface, and the user identity verification interface at least includes a fingerprint entry box and a prompt message for prompting the user to perform fingerprint entry to verify the operation authority; Match the received fingerprint information with the fingerprint information stored in the preset folder; if the matching is successful, the operation of sending the serial number of the mobile device to the server is performed; if the matching fails, the output prompts that the user does not have the ability to send the mobile device to the server. Prompt information about the permissions for the serial number of the device. Implementing this embodiment can prevent the mobile device from being operated by an unrelated person and maliciously send the serial number of the mobile device, thereby enhancing security.
作为一种可选的实施方式,在移动设备向服务器发送该移动设备的序列号之前,移动设备按照预设序列号生成规则生成一个预设序列号并显示于显示屏;在接收到用户的确认信息后,将该预设序列号设置为移动设备的序列号。As an optional implementation, before the mobile device sends the serial number of the mobile device to the server, the mobile device generates a preset serial number according to the preset serial number generation rule and displays it on the display screen; after receiving the confirmation from the user information, set the preset serial number to the serial number of the mobile device.
作为一种可选的实施方式,在将某一预设序列号设置为移动设备的序列号之后,以及在移动设备向服务器发送该移动设备的序列号之前,移动设备输出一个序列号属性编辑界面以供用户对该序列号的升级属性进行编辑,该序列号属性编辑界面至少包括系统软件升级属性和应用软件升级属性(如微信应用程序升级属性和支付宝应用程序升级属性),其中,应用软件升级属性可以以分支的形式包括移动设备所安装的所有应用程序的升级属性。实施本实施方式,基于序列号的升级属性,可以对通过移动设备的序列号发送至移动设备的内容进行限制,从而避免接收到不必要的安装包、垃圾信息或者病毒软件。As an optional implementation manner, after a preset serial number is set as the serial number of the mobile device, and before the mobile device sends the serial number of the mobile device to the server, the mobile device outputs a serial number attribute editing interface For users to edit the upgrade attributes of the serial number, the serial number attribute editing interface includes at least system software upgrade attributes and application software upgrade attributes (such as WeChat application upgrade attributes and Alipay application upgrade attributes), wherein, the application software upgrade attribute The properties can include the upgrade properties of all applications installed by the mobile device in the form of branches. Implementing this embodiment, based on the upgrade attribute of the serial number, the content sent to the mobile device through the serial number of the mobile device can be restricted, so as to avoid receiving unnecessary installation packages, spam information or virus software.
作为另一种可选的实施方式,在将某一预设序列号设置为移动设备的序列号之后,以及在移动设备向服务器发送该移动设备的序列号之前,移动设备输出一个序列号有效期限编辑界面以供用户对该序列号的有效期限进行编辑;移动设备接收用户在序列号生效时间编辑框输入的序列号生效时间,或者,上述序列号有效期限编辑界面包括序列号生效时间编辑框和序列号失效时间编辑框,序列号生效时间编辑框附带日期图标和时间点图标,当检测到用户点击日期图标时,调用日历以供用户选择序列号生效日期,当检测到用户点击时间图标,调用时钟以供用户选择序列号生效时间点,序列号生效日期和序列号生效时间点组成序列号生效时间;同理,移动设备可获取序列号失效时间;进一步地,移动设备可获得序列号的有效期限。进一步地,在移动设备向服务器发送该移动设备的序列号之后,若服务器检测到序列号的有效期限未能满足发送OTA升级包的时间要求,服务器发送序列号有效期限更改请求信息给移动设备,以提示移动设备更改序列号的有效期限。实施本实施方式,移动设备可以设置序列号的有效期限,在满足用户的软件升级需求的情况下,减少移动设备的序列号对应的网络链路的开放时间,更具安全性。As another optional implementation manner, after a preset serial number is set as the serial number of the mobile device, and before the mobile device sends the serial number of the mobile device to the server, the mobile device outputs a serial number valid period The editing interface is for the user to edit the validity period of the serial number; the mobile device receives the serial number effective time entered by the user in the serial number effective time edit box, or, the above serial number validity period editing interface includes the serial number effective time edit box and Serial number expiration time edit box, serial number effective time edit box with date icon and time point icon. When it is detected that the user clicks the date icon, the calendar is called for the user to select the serial number effective date. When it is detected that the user clicks the time icon, the call The clock is used for the user to select the effective time of the serial number. The effective date of the serial number and the effective time of the serial number constitute the effective time of the serial number; in the same way, the mobile device can obtain the expiry time of the serial number; further, the mobile device can obtain the effective time of the serial number. the term. Further, after the mobile device sends the serial number of the mobile device to the server, if the server detects that the validity period of the serial number fails to meet the time requirement for sending the OTA upgrade package, the server sends the serial number validity period change request message to the mobile device, to prompt the mobile device to change the expiration date of the serial number. Implementing this embodiment, the mobile device can set the validity period of the serial number, and under the condition that the user's software upgrade requirements are met, the open time of the network link corresponding to the serial number of the mobile device is reduced, which is more secure.
102、服务器在接收到序列号之后,获取推送信息,以及根据序列号将该推送信息推送给移动设备,该推送信息携带有用于指示下载目标OTA升级包的下载链接。102. After receiving the serial number, the server obtains push information, and pushes the push information to the mobile device according to the serial number, where the push information carries a download link for instructing to download the target OTA upgrade package.
103、移动设备根据推送信息所携带的下载链接,下载目标OTA升级包,以及在用户的升级操作下基于该目标OTA升级包进行软件升级。103. The mobile device downloads the target OTA upgrade package according to the download link carried in the push information, and performs software upgrade based on the target OTA upgrade package under the user's upgrade operation.
作为一种可选的实施方式,移动设备根据推送信息所携带的下载链接,下载目标OTA升级包,以及在用户的升级操作下基于该目标OTA升级包进行软件升级之后,移动设备可以向服务器发送升级反馈信息,该升级反馈信息由用户根据使用体验编辑,可以包括优点描述和缺点描述等。实施本实施方式,可以使服务器获取用户体验信息,进而可以在后续针对用户体验信息对软件进行优化。As an optional implementation manner, the mobile device downloads the target OTA upgrade package according to the download link carried in the push information, and after the software upgrade is performed based on the target OTA upgrade package under the user's upgrade operation, the mobile device may send a message to the server. The upgrade feedback information, which is edited by the user according to the use experience, may include a description of advantages and disadvantages, and the like. By implementing this embodiment, the server can obtain the user experience information, and then the software can be optimized for the user experience information subsequently.
作为一种可选的实施方式,移动设备可以将上述推送信息发送给关联移动设备以使关联移动设备根据推送信息所携带的下载链接,下载目标OTA升级包,以及在用户的升级操作下基于该目标OTA升级包进行软件升级,其中,发送方式可以是通过微信、QQ等社交平台发送,也可以是通过蓝牙发送,本发明实施方式不作限制。实施本实施方式,可以满足用户的共享需求。As an optional implementation manner, the mobile device may send the above push information to the associated mobile device, so that the associated mobile device downloads the target OTA upgrade package according to the download link carried by the push information, and based on the user's upgrade operation based on the The target OTA upgrade package performs software upgrade, wherein the sending method can be sent through social platforms such as WeChat and QQ, or sent through Bluetooth, which is not limited by the embodiment of the present invention. By implementing this embodiment, the sharing requirements of users can be met.
可见,实施图1所描述的方法,在移动设备软件出现问题或者其它需要(如升级需要)下,移动设备能够将自己的序列号发送给服务器,服务器能够根据移动设备的序列号,单点推送目标OTA升级包给移动设备,进而使该移动设备完成软件升级,无需到店里进行软件修复或者升级,同时不会给其他移动设备造成软件推送影响,且能节省网络资源。It can be seen that, by implementing the method described in FIG. 1, when there is a problem with the mobile device software or other needs (such as upgrade needs), the mobile device can send its own serial number to the server, and the server can push a single point of push according to the serial number of the mobile device The target OTA upgrade package is sent to the mobile device, so that the mobile device can complete the software upgrade without having to go to the store for software repair or upgrade.
实施例二Embodiment 2
请参阅图2,图2是本发明实施例公开的另一种基于单点推送的OTA升级方法的流程示意图。如图2所示,该OTA升级方法可以包括以下步骤。Please refer to FIG. 2. FIG. 2 is a schematic flowchart of another single-point push-based OTA upgrade method disclosed in an embodiment of the present invention. As shown in FIG. 2 , the OTA upgrade method may include the following steps.
201、移动设备向服务器发送软件升级请求信息,该软件升级请求信息至少包括移动设备的当前软件版本序号;或者,当服务器检测到当前软件版本序号低于预设软件版本序号阈值时,服务器向移动设备推送软件升级通知信息,该软件升级通知信息用于通知移动设备进行软件升级。201. The mobile device sends software upgrade request information to the server, where the software upgrade request information at least includes the current software version serial number of the mobile device; or, when the server detects that the current software version serial number is lower than the preset software version serial number threshold, the server sends the mobile device to the mobile device. The device pushes software upgrade notification information, which is used to notify the mobile device to perform software upgrade.
可以理解,步骤201存在两种情形。第一种情形,当用户存在软件升级需求时,移动设备能够直接向服务器发送软件升级请求信息,以请求服务器根据该软件升级请求信息发送OTA升级包。第二种情形,综合考虑多方面因素(如由于用户忙而造成移动设备长时间未进行软件升级,或者服务器计划淘汰软件版本序号低于某一预设值的软件版本等),当服务器检测到移动设备所安装的软件的当前软件版本序号低于预设软件版本序号阈值时,由服务器主动向移动设备推送软件升级通知信息,以通知移动设备进行软件升级,避免由于软件版本过低而影响用户使用体验。It can be understood that there are two situations in
202、移动设备向服务器发送该移动设备的序列号。202. The mobile device sends the serial number of the mobile device to the server.
203、服务器在接收到序列号之后,获取推送信息,以及根据序列号将该推送信息推送给移动设备,该推送信息携带有用于指示下载目标OTA升级包的下载链接。203. After receiving the serial number, the server obtains push information, and pushes the push information to the mobile device according to the serial number, where the push information carries a download link for instructing to download the target OTA upgrade package.
作为一种可选的实施方式,服务器在接收到序列号之后,还建立一个OTA升级列表,该OTA升级列表根据软件的不同版本序号被分为若干个OTA升级子列表;服务器根据当前软件版本序号,将该序列号加入OTA升级列表中对应的目标OTA升级子列表中;服务器统计目标OTA升级子列表中序列号的总数,当该总数大于预设总数阈值,向目标移动设备推送软件升级通知信息和当前软件版本序号对应的软件的下架通知信息,其中,目标移动设备为安装有当前软件版本序号对应的软件的移动设备。实施本实施方式,可以通过OTA升级列表对移动设备的序列号进行系统的管理,可以通过OTA升级子列表统计对某一软件版本进行升级的用户数,进而作为是否下架该软件版本的标准之一。As an optional implementation manner, after receiving the serial number, the server also establishes an OTA upgrade list, and the OTA upgrade list is divided into several OTA upgrade sub-lists according to different version serial numbers of the software; , add the serial number to the corresponding target OTA upgrade sublist in the OTA upgrade list; the server counts the total number of serial numbers in the target OTA upgrade sublist, and when the total number is greater than the preset total threshold, pushes the software upgrade notification information to the target mobile device The notification information of the software corresponding to the current software version serial number, wherein the target mobile device is a mobile device installed with the software corresponding to the current software version serial number. Implementing this embodiment, the serial number of the mobile device can be systematically managed through the OTA upgrade list, and the number of users who upgrade a certain software version can be counted through the OTA upgrade sublist, which is then used as a criterion for whether to remove the software version. one.
204、移动设备根据推送信息所携带的下载链接,下载目标OTA升级包,以及在用户的升级操作下基于该目标OTA升级包进行软件升级。204. The mobile device downloads the target OTA upgrade package according to the download link carried in the push information, and performs software upgrade based on the target OTA upgrade package under the user's upgrade operation.
本发明实施例中,服务器可以向所有移动设备发送软件升级内测邀请信息,该软件升级内测邀请信息至少包括内测邀请信息和序列号获取请求信息。进一步地,移动设备向服务器发送该移动设备的序列号的方式可以具体为:当用户同意进行软件升级版本的内部测试时,移动设备向服务器发送同意内测信息,该同意内测信息包括移动设备的序列号。进一步地,服务器获取推送信息,以及根据序列号将该推送信息推送给移动设备,该推送信息携带有用于指示下载目标OTA升级包的下载链接的方式可以具体为:服务器在接收到同意内测信息之后,建立一个OTA升级内测列表,将同意进行软件升级版本的内部测试的移动设备的序列号加入该OTA升级内测列表,当OTA升级内测列表中的序列号总数等于预设内测用户数时,服务器获取推送信息,以及根据OTA升级内测列表中的序列号将该推送信息推送给同意进行软件升级版本的内部测试的移动设备,该推送信息携带有用于指示下载目标OTA升级包的下载链接,该目标OTA升级包包括内测的软件版本。再进一步地,移动设备根据推送信息所携带的下载链接,下载目标OTA升级包,以及在用户的升级操作下基于该目标OTA升级包进行软件升级后,移动设备可以向服务器发送内测反馈信息,该内测反馈信息至少包括兼容性评价、流畅度评价、实用性评价和好感度等。实施本实施方式,可以在软件升级的版本测试中,寻找自愿进行内部测试的用户,将内测的软件版本根据序列号发送到对应的移动设备,具有针对性。In this embodiment of the present invention, the server may send software upgrade internal testing invitation information to all mobile devices, where the software upgrade internal testing invitation information at least includes internal testing invitation information and serial number acquisition request information. Further, the way in which the mobile device sends the serial number of the mobile device to the server may be specifically: when the user agrees to perform the internal test of the software upgrade version, the mobile device sends the server consent to the internal test information, and the consent to the internal test information includes the mobile device. serial number. Further, the server obtains the push information, and pushes the push information to the mobile device according to the serial number, and the push information carries the download link for instructing to download the target OTA upgrade package. After that, establish an OTA upgrade internal test list, and add the serial numbers of mobile devices that agree to the internal test of the software upgrade version to the OTA upgrade internal test list. When the total number of serial numbers in the OTA upgrade internal test list is equal to the preset internal test users After several hours, the server obtains the push information, and pushes the push information to the mobile device that agrees to perform the internal test of the software upgrade version according to the serial number in the OTA upgrade internal test list. Download link, the target OTA upgrade package includes the software version of the internal test. Still further, the mobile device downloads the target OTA upgrade package according to the download link carried by the push information, and after the software upgrade is performed based on the target OTA upgrade package under the user's upgrade operation, the mobile device can send the internal testing feedback information to the server, The internal test feedback information includes at least compatibility evaluation, fluency evaluation, practicality evaluation, favorability, and the like. By implementing this embodiment, users who voluntarily conduct internal testing can be found in the version test of software upgrade, and the software version of the internal test can be sent to the corresponding mobile device according to the serial number, which is targeted.
可见,实施图2所描述的方法,在移动设备软件出现问题或者其它需要(如升级需要)下,移动设备能够将自己的序列号发送给服务器,服务器能够根据移动设备的序列号,单点推送目标OTA升级包给目标移动设备,进而使该目标移动设备完成软件升级,无需到店里进行软件修复或者升级,同时不会给其他移动设备造成软件推送影响,且能节省网络资源。此外,实施图2所描述的方法,服务器建立OTA升级列表,可以通过OTA升级列表对移动设备的序列号进行系统的管理,可以通过OTA升级子列表统计对某一软件版本进行升级的用户数,进而作为是否下架该软件版本的标准之一。It can be seen that, by implementing the method described in FIG. 2, when there is a problem with the mobile device software or other needs (such as upgrade needs), the mobile device can send its own serial number to the server, and the server can push a single point of push according to the serial number of the mobile device The target OTA upgrade package is sent to the target mobile device, so that the target mobile device can complete the software upgrade without having to go to the store for software repair or upgrade, and at the same time, it will not cause software push effects to other mobile devices, and can save network resources. In addition, implementing the method described in Figure 2, the server establishes an OTA upgrade list, and can systematically manage the serial number of the mobile device through the OTA upgrade list, and can count the number of users who upgrade a certain software version through the OTA upgrade sublist, This is then used as one of the criteria for whether to remove the software version.
实施例三Embodiment 3
请参阅图3,图3是本发明实施例公开的另一种基于单点推送的OTA升级方法的流程示意图。如图3所示,该OTA升级方法可以包括以下步骤。Please refer to FIG. 3 , which is a schematic flowchart of another single-point push-based OTA upgrade method disclosed in an embodiment of the present invention. As shown in FIG. 3 , the OTA upgrade method may include the following steps.
301、移动设备向服务器发送软件升级请求信息,该软件升级请求信息至少包括移动设备的当前软件版本序号;或者,当服务器检测到上述当前软件版本序号低于预设软件版本序号阈值时,服务器向移动设备推送软件升级通知信息,该软件升级通知信息用于通知移动设备进行软件升级。301. The mobile device sends software upgrade request information to the server, where the software upgrade request information at least includes the current software version serial number of the mobile device; or, when the server detects that the current software version serial number is lower than the preset software version serial number threshold, the server sends the information to the server. The mobile device pushes software upgrade notification information, and the software upgrade notification information is used to notify the mobile device to perform software upgrade.
302、移动设备向服务器发送该移动设备的序列号。302. The mobile device sends the serial number of the mobile device to the server.
303、服务器在接收到序列号之后,根据上述当前软件版本序号,从若干个OTA升级包中获取目标OTA升级包,根据目标OTA升级包生成推送信息,以及根据序列号将该推送信息推送给移动设备,该推送信息携带有用于指示下载目标OTA升级包的下载链接。303. After receiving the serial number, the server obtains the target OTA upgrade package from several OTA upgrade packages according to the above-mentioned current software version serial number, generates push information according to the target OTA upgrade package, and pushes the push information to the mobile phone according to the serial number. device, the push information carries a download link for instructing to download the target OTA upgrade package.
可以理解,服务器配置有若干个OTA升级包,一个OTA升级包对应一个软件版本序号,OTA升级包至少包括差分文件,该差分文件为从某一个历史软件版本序号对应的软件升级至OTA升级包对应的软件版本序号对应的软件时所需的文件,该历史软件版本序号为生成时间位于OTA升级包对应的软件版本序号之前的软件版本序号。It can be understood that the server is configured with several OTA upgrade packages, one OTA upgrade package corresponds to a software version serial number, and the OTA upgrade package at least includes a differential file, which is a software upgrade from a software corresponding to a certain historical software version serial number to an OTA upgrade package. The file required for the software corresponding to the software version serial number of the OTA upgrade package, and the historical software version serial number is the software version serial number whose generation time is located before the software version serial number corresponding to the OTA upgrade package.
304、移动设备根据推送信息所携带的下载链接,下载目标OTA升级包,以及在用户的升级操作下基于该目标OTA升级包进行软件升级。304. The mobile device downloads the target OTA upgrade package according to the download link carried in the push information, and performs software upgrade based on the target OTA upgrade package under the user's upgrade operation.
305、移动设备对基于目标OTA升级包完成升级的软件进行缺陷检测,获取检测结果并将检测结果发送给服务器。305. The mobile device performs defect detection on the software upgraded based on the target OTA upgrade package, obtains the detection result, and sends the detection result to the server.
本发明实施例中,移动设备对基于目标OTA升级包完成升级的软件进行缺陷检测,获取检测结果并将检测结果发送给服务器的方式可以具体为:In the embodiment of the present invention, the mobile device performs defect detection on the software that is upgraded based on the target OTA upgrade package, and acquires the detection result and sends the detection result to the server in a specific manner as follows:
移动设备对基于目标OTA升级包完成升级的软件进行响应时间的缺陷检测,判断响应时间是否超过预设响应时间阈值,获取响应时间检测结果;移动设备对基于目标OTA升级包完成升级的软件进行并发用户数的缺陷检测,判断并发用户数是否超过并发用户数时间阈值,获取并发用户数检测结果;移动设备对基于目标OTA升级包完成升级的软件进行吞吐量的缺陷检测,判断吞吐量是否超过预设吞吐量阈值,获取吞吐量检测结果;移动设备对基于目标OTA升级包完成升级的软件进行资源利用率的缺陷检测,判断资源利用率是否超过预设资源利用率阈值,获取资源利用率检测结果;移动设备将上述响应时间检测结果、并发用户数检测结果、吞吐量检测结果以及资源利用检测结果汇总,获取检测结果并将检测结果发送给服务器。实施本实施方式,可以获取基于目标OTA升级包完成升级的软件的性能数据。The mobile device performs defect detection on the response time of the software upgraded based on the target OTA upgrade package, determines whether the response time exceeds the preset response time threshold, and obtains the response time detection result; Defect detection of the number of users, to determine whether the number of concurrent users exceeds the time threshold of the number of concurrent users, and obtain the detection result of the number of concurrent users; the mobile device performs throughput defect detection on the software upgraded based on the target OTA upgrade package, and determines whether the throughput exceeds the expected throughput. Set a throughput threshold to obtain the throughput detection result; the mobile device performs resource utilization defect detection on the software upgraded based on the target OTA upgrade package, determines whether the resource utilization exceeds the preset resource utilization threshold, and obtains the resource utilization detection result The mobile device summarizes the above response time detection results, concurrent user number detection results, throughput detection results and resource utilization detection results, obtains the detection results, and sends the detection results to the server. By implementing this embodiment, the performance data of the software upgraded based on the target OTA upgrade package can be acquired.
306、当上述检测结果指示基于目标OTA升级包完成升级的软件存在缺陷时,服务器根据该检测结果生成OTA升级补充包,并根据序列号将OTA升级补充包推送给移动设备。306. When the above detection result indicates that the software upgraded based on the target OTA upgrade package is defective, the server generates an OTA upgrade supplementary package according to the detection result, and pushes the OTA upgrade supplementary package to the mobile device according to the serial number.
307、移动设备接收OTA升级补充包,并根据OTA升级补充包对基于目标OTA升级包完成升级的软件进行补充升级。307. The mobile device receives the OTA upgrade supplement package, and supplements and upgrades the software that has been upgraded based on the target OTA upgrade package according to the OTA upgrade supplement package.
可见,实施图3所描述的方法,在移动设备软件出现问题或者其它需要(如升级需要)下,移动设备能够将自己的序列号发送给服务器,服务器能够根据移动设备的序列号,单点推送目标OTA升级包给目标移动设备,进而使该目标移动设备完成软件升级,无需到店里进行软件修复或者升级,同时不会给其他移动设备造成软件推送影响,且能节省网络资源。此外,实施图3所描述的方法,当基于目标OTA升级包完成升级的软件存在缺陷时,可对其进行补充升级,能够提升用户体验。It can be seen that, by implementing the method described in FIG. 3, when there is a problem with the mobile device software or other needs (such as upgrade needs), the mobile device can send its own serial number to the server, and the server can push a single point of push according to the serial number of the mobile device The target OTA upgrade package is sent to the target mobile device, so that the target mobile device can complete the software upgrade without having to go to the store for software repair or upgrade, and at the same time, it will not cause software push effects to other mobile devices, and can save network resources. In addition, when the method described in FIG. 3 is implemented, when the software upgraded based on the target OTA upgrade package has defects, it can be supplemented and upgraded, which can improve user experience.
实施例四Embodiment 4
请参阅图4,图4是本发明实施例公开的一种基于单点推送的OTA升级系统的结构示意图。如图4所示,该OTA升级系统包括移动设备401和服务器402,其中:Please refer to FIG. 4. FIG. 4 is a schematic structural diagram of a single-point push-based OTA upgrade system disclosed in an embodiment of the present invention. As shown in Figure 4, the OTA upgrade system includes a
移动设备401,用于向服务器402发送移动设备401的序列号;The
服务器402,用于在接收到上述序列号之后,获取推送信息,以及根据该序列号将该推送信息推送给移动设备401,该推送信息携带有用于指示下载目标OTA升级包的下载链接;The
移动设备401,还用于根据上述推送信息所携带的下载链接,下载目标OTA升级包,以及在用户的升级操作下基于该目标OTA升级包进行软件升级。The
作为一种可选的实施方式,在图4所示的OTA升级系统中:As an optional implementation manner, in the OTA upgrade system shown in Figure 4:
移动设备401,还用于在移动设备401向服务器402发送移动设备401的序列号之前,向服务器402发送软件升级请求信息,该软件升级请求信息至少包括移动设备401的当前软件版本序号。The
服务器402,还用于在移动设备401向服务器402发送移动设备401的序列号之前,当检测到上述当前软件版本序号低于预设软件版本序号阈值时,向移动设备401推送软件升级通知信息,该软件升级通知信息用于通知移动设备401进行软件升级。The
作为一种可选的实施方式,在图4所示的OTA升级系统中,服务器402配置有若干个OTA升级包,一个OTA升级包对应一个软件版本序号,OTA升级包至少包括差分文件,该差分文件为从某一个历史软件版本序号对应的软件升级至OTA升级包对应的软件版本序号对应的软件时所需的文件,上述历史软件版本序号为生成时间位于OTA升级包对应的软件版本序号之前的软件版本序号;As an optional implementation, in the OTA upgrade system shown in FIG. 4 , the
服务器402,用于在接收到上述序列号之后,获取推送信息,以及根据该序列号将该推送信息推送给移动设备401的方式具体为:The
服务器402,用于在接收到序列号之后,根据当前软件版本序号,从上述若干个OTA升级包中获取目标OTA升级包,根据该目标OTA升级包生成推送信息,以及根据序列号将该推送信息推送给移动设备401。The
作为一种可选的实施方式,在图4所示的OTA升级系统中:As an optional implementation manner, in the OTA upgrade system shown in Figure 4:
移动设备401,还用于移动设备401根据上述推送信息所携带的下载链接,下载目标OTA升级包,以及在用户的升级操作下基于该目标OTA升级包进行软件升级之后,对基于目标OTA升级包完成升级的软件进行缺陷检测,获取检测结果并将该检测结果发送给服务器402;The
服务器402,还用于当上述检测结果指示基于目标OTA升级包完成升级的软件存在缺陷时,根据该检测结果生成OTA升级补充包,并根据序列号将该OTA升级补充包推送给移动设备401;The
移动设备401,还用于接收上述OTA升级补充包,并根据该OTA升级补充包对基于目标OTA升级包完成升级的软件进行补充升级。The
作为一种可选的实施方式,在图4所示的OTA升级系统中:As an optional implementation manner, in the OTA upgrade system shown in Figure 4:
服务器402,还用于在接收到序列号之后,建立一个OTA升级列表,该OTA升级列表根据软件的不同版本序号被分为若干个OTA升级子列表;以及,根据上述当前软件版本序号,将序列号加入OTA升级列表中对应的目标OTA升级子列表中;以及,统计目标OTA升级子列表中序列号的总数,当该总数大于预设总数阈值,向目标移动设备推送软件升级通知信息和当前软件版本序号对应的软件的下架通知信息,其中,目标移动设备为安装有当前软件版本序号对应的软件的移动设备。The
作为一种可选的实施方式,移动设备401,还可以用于向服务器402发送该移动设备401的序列号之前,输出用户身份验证界面,对用户的操作权限进行认证,认证的方式可以包括账号密码验证、指纹验证和声音识别验证等。举例来说,用户可以在购买移动设备401后,对一些涉及隐私安全的操作(如向服务器402发送移动设备401的序列号)通过指纹加密的方式加以限制,移动设备401录入用户的指纹信息并保存在预设文件夹中;移动设备401在向服务器402发送该移动设备401的序列号之前,输出用户身份验证界面,该用户身份验证界面至少包括指纹录入框和用于提示用户进行指纹录入以验证操作权限的提示信息;将接收到的指纹信息与预设文件夹中保存的指纹信息进行匹配;若匹配成功,执行向服务器402发送该移动设备401的序列号的操作;若匹配失败,输出提示用户不具备向服务器402发送移动设备401的序列号的权限的提示信息。实施本实施方式,可以避免移动设备401被无关人员操作,恶意发送移动设备401的序列号,加强了安全性。As an optional implementation manner, the
作为一种可选的实施方式,移动设备401,还可以用于在移动设备401向服务器402发送移动设备401的序列号之前,按照预设序列号生成规则生成一个预设序列号并显示于显示屏;在接收到用户的确认信息后,将该预设序列号设置为移动设备401的序列号。As an optional implementation manner, the
作为一种可选的实施方式,移动设备401,还用于在将某一预设序列号设置为移动设备401的序列号之后,以及在移动设备401向服务器402发送移动设备401的序列号之前,输出一个序列号属性编辑界面以供用户对该序列号的升级属性进行编辑,该序列号属性编辑界面至少包括系统软件升级属性和应用软件升级属性如微信应用程序升级属性和支付宝应用程序升级属性),其中,应用软件升级属性可以以分支的形式包括移动设备401所安装的所有应用程序的升级属性。实施本实施方式,基于序列号的升级属性,可以对通过移动设备401的序列号发送至移动设备401的内容进行限制,从而避免接收到不必要的安装包、垃圾信息或者病毒软件。As an optional implementation manner, the
作为另一种可选的实施方式,移动设备401,还可以用于在将某一预设序列号设置为移动设备401的序列号之后,以及在移动设备401向服务器402发送移动设备401的序列号之前,输出一个序列号有效期限编辑界面以供用户对该序列号的有效期限进行编辑;移动设备401接收用户在序列号生效时间编辑框输入的序列号生效时间,或者,上述序列号有效期限编辑界面包括序列号生效时间编辑框和序列号失效时间编辑框,序列号生效时间编辑框附带日期图标和时间点图标,当检测到用户点击日期图标时,调用日历以供用户选择序列号生效日期,当检测到用户点击时间图标,调用时钟以供用户选择序列号生效时间点,序列号生效日期和序列号生效时间点组成序列号生效时间;同理,移动设备401可获取序列号失效时间;进一步地,移动设备401可获得序列号的有效期限。进一步地,在移动设备401向服务器402发送移动设备401的序列号之后,若服务器402检测到序列号的有效期限未能满足发送OTA升级包的时间要求,服务器402发送序列号有效期限更改请求信息给移动设备401,以提示移动设备401更改序列号的有效期限。实施本发明实施方式,移动设备401可以设置序列号的有效期限,在满足用户的软件升级需求的情况下,减少移动设备401的序列号对应的网络链路的开放时间,更具安全性。As another optional implementation manner, the
作为一种可选的实施方式,移动设备401,还可以用于移动设备401根据推送信息所携带的下载链接,下载目标OTA升级包,以及在用户的升级操作下基于该目标OTA升级包进行软件升级之后,可以向服务器402发送升级反馈信息,该升级反馈信息由用户根据使用体验编辑,可以包括优点描述和缺点描述等。实施本实施方式,可以使服务器402获取用户体验信息,进而可以在后续针对用户体验信息对软件进行优化。As an optional implementation manner, the
作为一种可选的实施方式,移动设备401,还可以用于将上述推送信息发送给关联移动设备以使关联移动设备根据推送信息所携带的下载链接,下载目标OTA升级包,以及在用户的升级操作下基于该目标OTA升级包进行软件升级,其中,发送方式可以是通过微信、QQ等社交平台发送,也可以是通过蓝牙发送,本发明实施方式不作限制。实施本发明实施方式,可以满足用户的共享需求。As an optional implementation manner, the
本发明实施例中,服务器402,还可以用于向所有移动设备发送软件升级内测邀请信息,该软件升级内测邀请信息至少包括内测邀请信息和序列号获取请求信息。进一步地,移动设备401,用于向服务器发送移动设备401的序列号的方式可以具体为:当用户同意进行软件升级版本的内部测试时,移动设备401向服务器402发送同意内测信息,该同意内测信息包括移动设备401的序列号。进一步地,服务器402,用于获取推送信息,以及根据序列号将该推送信息推送给移动设备401,该推送信息携带有用于指示下载目标OTA升级包的下载链接的方式可以具体为:服务器402在接收到同意内测信息之后,建立一个OTA升级内测列表,将同意进行软件升级版本的内部测试的移动设备的序列号加入该OTA升级内测列表,当OTA升级内测列表中的序列号总数等于预设内测用户数时,服务器402获取推送信息,以及根据OTA升级内测列表中的序列号将该推送信息推送给同意进行软件升级版本的内部测试的移动设备,该推送信息携带有用于指示下载目标OTA升级包的下载链接,该目标OTA升级包包括内测的软件版本。再进一步地,移动设备401,还可以在移动设备401用于根据推送信息所携带的下载链接,下载目标OTA升级包,以及在用户的升级操作下基于该目标OTA升级包进行软件升级后,向服务器402发送内测反馈信息,该内测反馈信息至少包括兼容性评价、流畅度评价、实用性评价和好感度等。实施本实施方式,可以在软件升级的版本测试中,寻找自愿进行内部测试的用户,将内测的软件版本根据序列号发送到对应的移动设备,具有针对性。In this embodiment of the present invention, the
本发明实施例中,移动设备401用于对基于目标OTA升级包完成升级的软件进行缺陷检测,获取检测结果并将检测结果发送给服务器402的方式可以具体为:In the embodiment of the present invention, the
移动设备401对基于目标OTA升级包完成升级的软件进行响应时间的缺陷检测,判断响应时间是否超过预设响应时间阈值,获取响应时间检测结果;移动设备401对基于目标OTA升级包完成升级的软件进行并发用户数的缺陷检测,判断并发用户数是否超过并发用户数时间阈值,获取并发用户数检测结果;移动设备401对基于目标OTA升级包完成升级的软件进行吞吐量的缺陷检测,判断吞吐量是否超过预设吞吐量阈值,获取吞吐量检测结果;移动设备401对基于目标OTA升级包完成升级的软件进行资源利用率的缺陷检测,判断资源利用率是否超过预设资源利用率阈值,获取资源利用率检测结果;移动设备401将上述响应时间检测结果、并发用户数检测结果、吞吐量检测结果以及资源利用检测结果汇总,获取检测结果并将检测结果发送给服务器402。实施本实施方式,可以获取基于目标OTA升级包完成升级的软件的性能数据。The
可见,实施图4所描述的系统,在移动设备401软件出现问题或者其它需要(如升级需要)下,移动设备401能够将自己的序列号发送给服务器402,服务器402能够根据移动设备401的序列号,单点推送目标OTA升级包给移动设备401,进而使该移动设备401完成软件升级,无需到店里进行软件修复或者升级,同时不会给其他移动设备造成软件推送影响,且能节省网络资源。此外,实施图4所描述的系统,服务器402建立OTA升级列表,可以通过OTA升级列表对移动设备的序列号进行系统的管理,可以通过OTA升级子列表统计对某一软件版本进行升级的用户数,进而作为是否下架该软件版本的标准之一。此外,实施图4所描述的系统,当基于目标OTA升级包完成升级的软件存在缺陷时,可对其进行补充升级,能够提升用户体验。It can be seen that, when the system described in FIG. 4 is implemented, when there is a problem with the software of the
实施例五Embodiment 5
请参阅图5,图5是本发明实施例公开的一种移动设备的结构示意图。如图5所示,该移动设备可以包括:Please refer to FIG. 5, which is a schematic structural diagram of a mobile device disclosed in an embodiment of the present invention. As shown in Figure 5, the mobile device may include:
存储有可执行程序代码的存储器501;a
与存储器501耦合的处理器502;a
其中,处理器502调用存储器501中存储的可执行程序代码,执行图1~图3任意一种基于单点推送的OTA升级方法。The
本发明实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序使得计算机执行图1~图3任意一种基于单点推送的OTA升级方法。An embodiment of the present invention discloses a computer-readable storage medium, which stores a computer program, wherein the computer program enables a computer to execute any one of the single-point push-based OTA upgrade methods in FIG. 1 to FIG. 3 .
本发明实施例还公开一种计算机程序产品,其中,当计算机程序产品在计算机上运行时,使得计算机执行如以上各方法实施例中的方法的部分或全部步骤。The embodiment of the present invention also discloses a computer program product, wherein when the computer program product runs on the computer, the computer is caused to execute some or all of the steps of the methods in the above method embodiments.
本发明实施例还公开一种应用发布平台,该应用发布平台用于发布计算机程序产品,其中,当上述计算机程序产品在计算机上运行时,使得计算机执行如以上各方法实施例中的方法的部分或全部步骤。The embodiment of the present invention also discloses an application publishing platform, the application publishing platform is used for publishing a computer program product, wherein, when the above-mentioned computer program product runs on a computer, the computer is made to execute parts of the methods in the above method embodiments or all steps.
实施例六Embodiment 6
请参阅图6,图6是本发明实施例公开的一种服务器的结构示意图。如图6所示,该服务器可以包括:Please refer to FIG. 6, which is a schematic structural diagram of a server disclosed in an embodiment of the present invention. As shown in Figure 6, the server may include:
存储有可执行程序代码的存储器601;a
与存储器601耦合的处理器602;a
其中,处理器602调用存储器601中存储的可执行程序代码,执行图1~图3任意一种基于单点推送的OTA升级方法。The
本发明实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序使得计算机执行图1~图3任意一种基于单点推送的OTA升级方法。An embodiment of the present invention discloses a computer-readable storage medium, which stores a computer program, wherein the computer program enables a computer to execute any one of the single-point push-based OTA upgrade methods in FIG. 1 to FIG. 3 .
本发明实施例还公开一种计算机程序产品,其中,当计算机程序产品在计算机上运行时,使得计算机执行如以上各方法实施例中的方法的部分或全部步骤。The embodiment of the present invention also discloses a computer program product, wherein when the computer program product runs on the computer, the computer is caused to execute some or all of the steps of the methods in the above method embodiments.
本发明实施例还公开一种应用发布平台,该应用发布平台用于发布计算机程序产品,其中,当上述计算机程序产品在计算机上运行时,使得计算机执行如以上各方法实施例中的方法的部分或全部步骤。The embodiment of the present invention also discloses an application publishing platform, the application publishing platform is used for publishing a computer program product, wherein, when the above-mentioned computer program product runs on a computer, the computer is made to execute parts of the methods in the above method embodiments or all steps.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(CompactDisc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only storage medium. Memory (Read-Only Memory, ROM), Random Access Memory (Random Access Memory, RAM), Programmable Read-only Memory (PROM), Erasable Programmable Read Only Memory (Erasable Programmable Read Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), Electronically-Erasable Programmable Read-Only Memory (EEPROM), CompactDisc Read -Only Memory, CD-ROM) or other optical disk storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
以上对本发明实施例公开的一种基于单点推送的OTA升级方法及系统进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The single-point push-based OTA upgrade method and system disclosed in the embodiments of the present invention have been described above in detail. The principles and implementations of the present invention are described by using specific examples in this paper. The descriptions of the above embodiments are only used for Help to understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In summary, the content of this specification It should not be construed as a limitation of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811101153.XA CN109348472B (en) | 2018-09-20 | 2018-09-20 | An OTA upgrade method and system based on single-point push |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811101153.XA CN109348472B (en) | 2018-09-20 | 2018-09-20 | An OTA upgrade method and system based on single-point push |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109348472A CN109348472A (en) | 2019-02-15 |
CN109348472B true CN109348472B (en) | 2021-11-05 |
Family
ID=65305878
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811101153.XA Active CN109348472B (en) | 2018-09-20 | 2018-09-20 | An OTA upgrade method and system based on single-point push |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109348472B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110290223A (en) * | 2019-07-18 | 2019-09-27 | 上海擎感智能科技有限公司 | Active upgrade method and system |
CN113504925B (en) * | 2021-06-28 | 2024-09-24 | 中汽创智科技有限公司 | Over-the-air upgrading method, upgrading system and electronic equipment |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6321369B1 (en) * | 1996-10-28 | 2001-11-20 | Altera Corporation | Interface for compiling project variations in electronic design environments |
US20060229772A1 (en) * | 2005-04-08 | 2006-10-12 | Honeywell International Inc. | Systems and methods for avionics software delivery |
CN101959179B (en) * | 2009-07-17 | 2014-08-20 | 华为技术有限公司 | Method for providing mobile terminal application program, and server and mobile terminal |
CN101908017B (en) * | 2010-06-01 | 2012-10-03 | 南京大学 | Regression test case screening method based on partial multi-coverage |
CN101909084A (en) * | 2010-07-28 | 2010-12-08 | 中兴通讯股份有限公司 | Method and system for upgrading terminal software and service platform system |
US9589129B2 (en) * | 2012-06-05 | 2017-03-07 | Lookout, Inc. | Determining source of side-loaded software |
CN103559065B (en) * | 2013-11-13 | 2017-02-01 | 广东欧珀移动通信有限公司 | Method and system for OTA (Over-the-Air Technology) upgrade |
CN105530630B (en) * | 2015-12-16 | 2019-06-04 | 青岛海信移动通信技术股份有限公司 | A kind of OTA upgrade method and equipment |
CN106603311A (en) * | 2017-01-18 | 2017-04-26 | 北京洋浦伟业科技发展有限公司 | OTA upgrade method, client, server and system |
CN108182075A (en) * | 2017-12-29 | 2018-06-19 | 成都三零凯天通信实业有限公司 | A kind of program by the automatic escalation target software of socket communication modes |
-
2018
- 2018-09-20 CN CN201811101153.XA patent/CN109348472B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN109348472A (en) | 2019-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108305072B (en) | Method, apparatus and computer storage medium for deploying a blockchain network | |
KR102204733B1 (en) | Method, device, and server for account login | |
CN108460273B (en) | A terminal application management method, application server and terminal | |
WO2019199465A1 (en) | TRUSTED PLATFORM MODULE-BASED PREPAID ACCESS TOKEN FOR COMMERCIAL IoT ONLINE SERVICES | |
CN110895603B (en) | Multi-system account information integration method and device | |
CN109348472B (en) | An OTA upgrade method and system based on single-point push | |
CN111885043B (en) | Internet account login method, system, device and storage medium | |
CN114048003A (en) | Vulnerability repair method, apparatus, computer device, and computer-readable storage medium | |
CN116401649A (en) | Verification method and system | |
CN110597662A (en) | Backup data automatic verification method and device, user equipment and storage medium | |
US20120231763A1 (en) | Method and system for antivirus on a mobile device by sim card | |
CN112636954B (en) | Server upgrading method and device | |
US11263109B2 (en) | Virtual environment system for validating executable data using accelerated time-based process execution | |
CN111045725B (en) | Control method and device of code management system and storage medium | |
CN113497735B (en) | Management method of open interface, electronic device and storage medium | |
CN112732676A (en) | Data migration method, device, equipment and storage medium based on block chain | |
CN109684026B (en) | APP skin replacement method and device, electronic equipment and storage medium | |
CN116701470B (en) | Method and device for reproducing customer problems under medium rack, electronic equipment and medium | |
US11757976B2 (en) | Unified application management for heterogeneous application delivery | |
JP7445017B2 (en) | Mobile application forgery/alteration detection method using user identifier and signature collection, computer program, computer readable recording medium, and computer device | |
CN114450992B (en) | Systems, methods and computer programs for preventing unintentional removal of an ESIM from a mobile device | |
CN111680279B (en) | Login verification method, device and system | |
CN114756248A (en) | Application control method, device, electronic device and storage medium | |
CN111401672B (en) | A legality verification method, equipment and system based on blockchain | |
CN112837019A (en) | Method, device and device for pushing express track data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |