WO2018076769A1 - Information processing method and apparatus - Google Patents

Information processing method and apparatus Download PDF

Info

Publication number
WO2018076769A1
WO2018076769A1 PCT/CN2017/091492 CN2017091492W WO2018076769A1 WO 2018076769 A1 WO2018076769 A1 WO 2018076769A1 CN 2017091492 W CN2017091492 W CN 2017091492W WO 2018076769 A1 WO2018076769 A1 WO 2018076769A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
upgrade
log data
failure
upgrade failure
Prior art date
Application number
PCT/CN2017/091492
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
Priority to CN201610947094.2 priority Critical
Priority to CN201610947094.2A priority patent/CN107992374A/en
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018076769A1 publication Critical patent/WO2018076769A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates

Abstract

Provided are an information processing method and an apparatus. The method comprises: obtaining log data generated by a system of a terminal during an upgrading process thereof (101); determining whether the system of the terminal is upgraded successfully (102); if the system upgrade of the terminal fails, then sending the log data and the result of the system upgrade failure of the terminal to a server, the log data and the result of the system upgrade failure of the terminal being used to determine the reason for the system upgrade failure of the terminal (103).

Description

一种信息处理方法和装置Information processing method and device 技术领域Technical field
本文涉及但不限于通信领域中的信息处理技术,尤其涉及一种信息处理方法和装置。This document relates to, but is not limited to, information processing technology in the field of communications, and in particular, to an information processing method and apparatus.
背景技术Background technique
随着科学技术的发展和互联网的普遍应用,智能手机、智能电视、平板电脑、机顶盒等终端得到了迅猛的发展。为了给用户提供更好的体验服务,通常终端的生产厂商会对终端的系统进行改进或者漏洞修复。当生产厂商对系统进行相关的改进或者漏洞修复后,将最新版本的系统安装包发布到服务器上,以便于终端通过服务器获得最新版本的系统或者漏洞补丁,并对终端的系统进行对应的升级或者修复处理。目前终端常用的系统升级技术为空中下载(Over The Air Technology,OTA)差分升级技术。在OTA差分升级技术中,终端的系统升级结束后,会向服务器上传终端的系统升级结果,包括升级成功和升级失败。With the development of science and technology and the universal application of the Internet, terminals such as smart phones, smart TVs, tablet computers, and set-top boxes have developed rapidly. In order to provide users with a better experience service, the manufacturer of the terminal usually improves or repairs the system of the terminal. After the manufacturer makes related improvements or bug fixes, release the latest version of the system installation package to the server, so that the terminal can obtain the latest version of the system or vulnerability patch through the server, and upgrade the terminal system or Repair processing. At present, the system upgrade technology commonly used by terminals is the Over The Air Technology (OTA) differential upgrade technology. In the OTA differential upgrade technology, after the system upgrade of the terminal is completed, the system upgrade result of the terminal is uploaded to the server, including the upgrade success and the upgrade failure.
但是,在OTA差分升级技术方案中,服务器接收到终端发送的系统升级失败的结果时,只能确定该终端的系统升级失败,而不能确定该终端的系统升级失败的具体原因。而且,由于用户的终端系统升级失败,可能导致终端后续的OTA差分升级也无法执行,造成终端中一些固件的Bug始终无法修复,用户的体验效果较差,影响终端的使用质量。However, in the OTA differential upgrade solution, when the server receives the result of the system upgrade failure sent by the terminal, the server can only determine that the system upgrade of the terminal fails, and the specific reason for the system upgrade failure of the terminal cannot be determined. Moreover, the upgrade of the user's terminal system fails, and the subsequent OTA differential upgrade of the terminal cannot be performed. As a result, some firmware bugs in the terminal cannot be repaired at all, and the user experience is poor, which affects the quality of the terminal.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种信息处理方法和装置,能够对终端的系统升级失败的原因进行分析,提高了终端的系统升级成功率,降低系统升级对终端的 使用质量的影响,提高了用户的体验效果。The embodiment of the invention provides an information processing method and device, which can analyze the reason for the system upgrade failure of the terminal, improve the system upgrade success rate of the terminal, and reduce the system upgrade to the terminal. The impact of quality is used to improve the user experience.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:
一种信息处理方法,所述方法包括:An information processing method, the method comprising:
获取终端的系统在升级过程中产生的日志数据;Obtaining log data generated by the system of the terminal during the upgrade process;
判断所述终端的系统是否升级成功;Determining whether the system of the terminal is successfully upgraded;
若所述终端的系统升级失败,则发送所述日志数据和所述终端的系统升级失败的结果至服务器,所述日志数据和所述终端的系统升级失败的结果用于确定所述终端的系统升级失败的原因。If the system upgrade of the terminal fails, sending the log data and the result of the system upgrade failure of the terminal to the server, and the result of the log data and the system upgrade failure of the terminal is used to determine the system of the terminal. The reason for the upgrade failure.
可选的,所述若所述终端的系统升级失败,则发送所述日志数据和所述终端的系统升级失败的结果至服务器,包括:Optionally, if the system upgrade of the terminal fails, sending the log data and the result of the system upgrade failure of the terminal to the server, including:
若所述终端的系统升级失败,基于预设规则对所述日志数据进行压缩处理,得到所述日志数据的压缩数据包;If the system upgrade of the terminal fails, the log data is compressed according to a preset rule to obtain a compressed data packet of the log data.
发送所述日志数据的压缩数据包和所述终端的系统的升级失败的结果至所述服务器。Sending the compressed data packet of the log data and the result of the upgrade failure of the system of the terminal to the server.
一种信息处理方法,所述方法包括:An information processing method, the method comprising:
接收终端发送的日志数据的压缩数据和所述终端的系统升级失败的结果;Receiving compressed data of log data sent by the terminal and a system upgrade failure result of the terminal;
基于预设规则对所述日志数据的压缩数据包进行解析处理,得到日志数据;Parsing the compressed data packet of the log data according to a preset rule to obtain log data;
基于所述终端的系统的升级失败的结果对所述日志数据进行分析处理,获得所述终端的系统升级失败的原因。The log data is analyzed and processed based on a result of the upgrade failure of the system of the terminal, and the reason why the system upgrade of the terminal fails is obtained.
可选的,所述方法还包括:Optionally, the method further includes:
根据所述终端的系统升级失败的原因与预设升级失败类型之间的关系,执行所述预设升级失败类型对应的操作。The operation corresponding to the preset upgrade failure type is performed according to the relationship between the failure of the system upgrade of the terminal and the preset upgrade failure type.
可选的,所述根据所述终端的系统升级失败的原因与预设升级失败类型之间的关系,执行所述预设升级失败类型对应的操作,包括:Optionally, the performing, according to the relationship between the failure of the system upgrade of the terminal and the preset upgrade failure type, performing the operation corresponding to the preset upgrade failure type, including:
判断所述终端的系统升级失败的原因与所述预设升级失败类型之间的 关系;Determining between the reason that the system upgrade of the terminal fails and the type of the preset upgrade failure relationship;
若所述终端的系统升级失败的原因属于所述预设升级失败类型中的第一类型,则基于所述终端的第一类型对应的解决方案更新升级安装包。If the reason for the system upgrade failure of the terminal belongs to the first type of the preset upgrade failure type, the upgrade installation package is updated based on the solution corresponding to the first type of the terminal.
可选的,所述方法还包括:Optionally, the method further includes:
若所述终端的系统升级失败的原因属于所述预设升级失败类型中的第二类型,则统计所述第二类型对应的终端的硬件信息。If the reason for the system upgrade failure of the terminal belongs to the second type of the preset upgrade failure type, the hardware information of the terminal corresponding to the second type is collected.
一种信息处理装置,所述装置包括:获取单元、判断单元和发送单元;其中:An information processing apparatus, the apparatus comprising: an acquisition unit, a determination unit, and a transmission unit; wherein:
所述获取单元,设置为获取终端的系统在升级过程中产生的日志数据;The obtaining unit is configured to acquire log data generated by the system of the terminal during the upgrading process;
所述判断单元,设置为判断所述终端的系统是否升级成功;The determining unit is configured to determine whether the system of the terminal is successfully upgraded;
所述发送单元,设置为若所述终端的系统升级失败,则发送所述日志数据和所述终端的系统升级失败的结果至服务器,所述日志数据和所述终端的系统升级失败的结果用于确定所述终端的系统升级失败的原因。The sending unit is configured to: if the system upgrade of the terminal fails, send the log data and a result of a system upgrade failure of the terminal to a server, where the log data and the system upgrade result of the terminal fail The reason for determining that the system upgrade of the terminal fails.
可选的,所述发送单元包括:第一处理模块和发送模块;其中:Optionally, the sending unit includes: a first processing module and a sending module; wherein:
所述第一处理模块,设置为若所述终端的系统升级失败,基于预设规则对所述日志数据进行压缩处理,得到所述日志数据的压缩数据包;The first processing module is configured to perform compression processing on the log data according to a preset rule, if the system upgrade of the terminal fails, to obtain a compressed data packet of the log data;
所述发送模块,设置为发送所述日志数据的压缩数据包和所述终端的系统的升级失败的结果至所述服务器。The sending module is configured to send a compressed data packet of the log data and a result of an upgrade failure of the system of the terminal to the server.
一种信息处理装置,所述装置包括:接收单元、第一处理单元和第二处理单元;其中:An information processing apparatus, the apparatus comprising: a receiving unit, a first processing unit, and a second processing unit; wherein:
所述接收单元,设置为接收终端发送的日志数据的压缩数据和所述终端的系统升级失败的结果;The receiving unit is configured to receive compressed data of log data sent by the terminal and a system upgrade failure result of the terminal;
所述第一处理单元,设置为基于预设规则对所述日志数据的压缩数据包进行解析处理,得到日志数据;The first processing unit is configured to parse the compressed data packet of the log data according to a preset rule to obtain log data;
所述第二处理单元,设置为基于所述终端的系统的升级失败的结果对所述日志数据进行分析处理,获得所述终端的系统升级失败的原因。The second processing unit is configured to perform analysis processing on the log data based on a result of the upgrade failure of the system of the terminal, and obtain a reason why the system upgrade of the terminal fails.
可选的,所述装置还包括:第三处理单元;其中: Optionally, the device further includes: a third processing unit; wherein:
所述第三处理单元,设置为根据所述终端的系统升级失败的原因与预设升级失败类型之间的关系,执行所述预设升级失败类型对应的操作。The third processing unit is configured to perform an operation corresponding to the preset upgrade failure type according to a relationship between a reason for the system upgrade failure of the terminal and a preset upgrade failure type.
可选的,所述第三处理单元包括:判断模块和第二处理模块;其中:Optionally, the third processing unit includes: a determining module and a second processing module; wherein:
所述判断模块,设置为判断所述终端的系统升级失败的原因与所述预设升级失败类型之间的关系;The determining module is configured to determine a relationship between a reason for the system upgrade failure of the terminal and a preset upgrade failure type;
所述第二处理模块,设置为若所述终端的系统升级失败的原因属于所述预设升级失败类型中的第一类型,则基于所述终端的第一类型对应的解决方案更新升级安装包。And the second processing module is configured to update the upgrade installation package according to the solution corresponding to the first type of the terminal, if the reason for the system upgrade failure of the terminal belongs to the first type of the preset upgrade failure type .
可选的,所述第三处理单元还包括:第三处理模块;其中:Optionally, the third processing unit further includes: a third processing module; wherein:
所述第三处理模块,设置为若所述终端的系统升级失败的原因属于所述预设升级失败类型中的第二类型,则统计所述第二类型对应的终端的硬件信息。And the third processing module is configured to collect hardware information of the terminal corresponding to the second type, if the reason for the system upgrade failure of the terminal belongs to the second type of the preset upgrade failure type.
本发明的实施例所提供的信息处理方法和装置,通过获取终端的系统在升级过程中产生的日志数据,并判断终端的系统是否升级成功,若终端的系统升级失败,则发送日志数据和终端的升级失败的结果至服务器,服务器接收终端发送的日志数据的压缩数据和终端的系统升级失败的结果,然后基于预设规则对日志数据的压缩数据包进行解析处理,得到日志数据,最后基于终端的系统升级失败的结果对日志数据进行分析处理,获得终端的系统升级失败的原因;这样,终端将系统升级失败的日志数据发送至服务器,服务器接收终端发送的系统升级失败的日志数据并进行分析处理,能够确定终端的系统升级失败的原因,提高了终端的系统升级成功率,降低系统升级对终端的使用质量的影响;进而,提高了用户的体验效果。The information processing method and device provided by the embodiment of the present invention obtains the log data generated by the system of the terminal during the upgrade process, and determines whether the system of the terminal is upgraded successfully. If the system upgrade of the terminal fails, the log data and the terminal are sent. The result of the upgrade failure is to the server. The server receives the compressed data of the log data sent by the terminal and the system upgrade failure result of the terminal, and then parses the compressed data packet of the log data according to a preset rule to obtain log data, and finally based on the terminal. As a result of the system upgrade failure, the log data is analyzed and processed, and the reason for the system upgrade failure of the terminal is obtained; thus, the terminal sends the log data of the system upgrade failure to the server, and the server receives the log data of the system upgrade failure sent by the terminal and analyzes the log data. The processing can determine the cause of the system upgrade failure of the terminal, improve the system upgrade success rate of the terminal, and reduce the impact of the system upgrade on the quality of the terminal; and further improve the user experience.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本发明实施例提供的一种信息处理方法的流程示意图;1 is a schematic flowchart of an information processing method according to an embodiment of the present invention;
图2为本发明实施例提供的另一种信息处理方法的流程示意图;FIG. 2 is a schematic flowchart diagram of another information processing method according to an embodiment of the present disclosure;
图3为本发明实施例提供的又一种信息处理方法的流程示意图; FIG. 3 is a schematic flowchart diagram of still another information processing method according to an embodiment of the present disclosure;
图4为本发明另一实施例提供的一种信息处理方法的流程示意图;FIG. 4 is a schematic flowchart diagram of an information processing method according to another embodiment of the present invention;
图5为本发明实施例提供的一种信息处理装置的结构示意图;FIG. 5 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present disclosure;
图6为本发明实施例提供的另一种信息处理装置的结构示意图;FIG. 6 is a schematic structural diagram of another information processing apparatus according to an embodiment of the present disclosure;
图7为本发明实施例提供的又一种信息处理装置的结构示意图;FIG. 7 is a schematic structural diagram of still another information processing apparatus according to an embodiment of the present disclosure;
图8为本发明另一实施例提供的一种信息处理装置的结构示意图;FIG. 8 is a schematic structural diagram of an information processing apparatus according to another embodiment of the present invention;
图9为本发明另一实施例提供的另一种信息处理装置的结构示意图;FIG. 9 is a schematic structural diagram of another information processing apparatus according to another embodiment of the present invention;
图10为本发明另一实施例提供的又一种信息处理装置的结构示意图。FIG. 10 is a schematic structural diagram of still another information processing apparatus according to another embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings.
本发明实施例提供一种信息处理方法,参照图1所示,该方法包括以下步骤:An embodiment of the present invention provides an information processing method. Referring to FIG. 1, the method includes the following steps:
步骤101、获取终端的系统在升级过程中产生的日志数据。Step 101: Acquire log data generated by the system of the terminal during the upgrade process.
可选的,步骤101获取终端的系统在升级过程中产生的日志数据可以由终端来实现。终端可以通过OTA差分升级技术获取系统升级需要的差分升级包,终端将差分升级包下载到终端后进行差分升级,获取在差分升级过程中产生的日志数据,并存储在对应的存储单元中。Optionally, the log data generated by the system for obtaining the terminal in the step 101 during the upgrade process may be implemented by the terminal. The terminal can obtain the differential upgrade package required for the system upgrade through the OTA differential upgrade technology. The terminal downloads the differential upgrade package to the terminal and performs differential upgrade to obtain the log data generated during the differential upgrade process and store the data in the corresponding storage unit.
步骤102、判断终端的系统是否升级成功。Step 102: Determine whether the system of the terminal is successfully upgraded.
可选的,步骤102判断终端的系统是否升级成功可以由终端来实现。终端可以根据系统升级后终端每个部件的运行状态来确定终端的系统是否升级成功。Optionally, in step 102, determining whether the system of the terminal is successfully upgraded may be implemented by the terminal. The terminal can determine whether the system of the terminal is successfully upgraded according to the running status of each component of the terminal after the system is upgraded.
步骤103、若终端的系统升级失败,则发送日志数据和终端系统升级失败的结果至服务器。Step 103: If the system upgrade of the terminal fails, the log data and the result of the terminal system upgrade failure are sent to the server.
可选的,步骤103若终端的系统升级失败,则发送日志数据和终端系统升级失败的结果至服务器可以由终端来实现。Optionally, in step 103, if the system upgrade of the terminal fails, sending the log data and the result of the terminal system upgrade failure to the server may be implemented by the terminal.
本发明实施例所提供的信息处理方法,通过获取终端的系统在升级过程 中产生的日志数据,并判断终端的系统是否升级成功,若终端的系统升级失败,则发送日志数据和终端的升级失败的结果至服务器;这样,终端可以将系统升级失败的日志数据发送至服务器,方便对终端系统升级失败的原因进行分析,提高了终端的系统升级成功率,降低系统升级对终端的使用质量的影响;进而,提高了用户的体验效果。The information processing method provided by the embodiment of the present invention is obtained by acquiring the system of the terminal in the upgrade process. If the system upgrade of the terminal fails, the log data and the result of the upgrade failure of the terminal are sent to the server; thus, the terminal can send the log data of the system upgrade failure to the server. It is convenient to analyze the reasons for the failure of the terminal system upgrade, improve the system upgrade success rate of the terminal, and reduce the impact of the system upgrade on the quality of the terminal; and further improve the user experience.
本发明实施例提供一种信息处理方法,参照图2所示,该方法包括以下步骤:An embodiment of the present invention provides an information processing method. Referring to FIG. 2, the method includes the following steps:
步骤201、接收终端发送的日志数据压缩数据包和终端系统升级失败的结果。Step 201: Receive a log data compression data packet sent by the terminal and a result of the upgrade failure of the terminal system.
可选的,步骤201接收终端发送的日志数据的压缩数据和终端的系统升级失败的结果可以由服务器来实现。需说明的是,终端向服务器发送日志数据的压缩数据包和终端的系统升级失败的结果的同时,可以发送终端的标识信息至服务器,以便于服务器识别是哪一个终端的系统升级失败,以及可以针对该终端进行对应的后续处理。其中,终端的标识信息可以是生产厂商在终端出厂时对终端进行标注的序列号。Optionally, the step 201 receives the compressed data of the log data sent by the terminal and the result of the system upgrade failure of the terminal may be implemented by the server. It should be noted that, when the terminal sends the compressed data packet of the log data to the server and the system upgrade failure result of the terminal, the identifier information of the terminal may be sent to the server, so that the server identifies which terminal the system upgrade fails, and Corresponding subsequent processing is performed for the terminal. The identification information of the terminal may be a serial number that the manufacturer labels the terminal when the terminal leaves the factory.
步骤202、基于预设规则对日志数据的压缩数据包进行解析处理,得到日志数据。Step 202: Perform parsing processing on the compressed data packet of the log data according to a preset rule to obtain log data.
可选的,步骤202基于预设规则对日志数据的压缩数据包进行解析处理,得到日志数据可以由服务器来实现。预设规则可以是服务器对日志数据的压缩数据包进行解析处理的方法,其中,服务器对日志数据的压缩数据包进行解析处理的方法与终端对日志数据进行压缩处理的方法是服务器与终端提前进行约定好的,解析处理的方法与压缩处理方法相匹配。Optionally, in step 202, the compressed data packet of the log data is parsed based on the preset rule, and the obtained log data may be implemented by the server. The preset rule may be a method for the server to parse the compressed data packet of the log data, wherein the method for parsing the compressed data packet of the log data by the server and the method for compressing the log data by the terminal are performed by the server and the terminal in advance As agreed, the method of parsing processing matches the compression processing method.
步骤203、基于终端系统的升级失败的结果对日志数据进行分析处理,获得终端的系统升级失败的原因。Step 203: Perform analysis and processing on the log data based on the result of the upgrade failure of the terminal system, and obtain the reason for the system upgrade failure of the terminal.
可选的,步骤203基于终端的系统的升级失败的结果对日志数据进行分析处理,获得终端的系统升级失败的原因可以由服务器来实现。服务器接收到的系统升级结果是终端的系统升级失败,因此服务器可以确定该终端当前的系统升级失败,进而对终端的日志数据进行相应的分析处理,确定终端的系统升级失败的原因。 Optionally, in step 203, the log data is analyzed and processed based on the result of the upgrade failure of the system of the terminal, and the reason for obtaining the system upgrade failure of the terminal may be implemented by the server. The system upgrade result received by the server is that the system upgrade of the terminal fails. Therefore, the server can determine that the current system upgrade of the terminal fails, and then perform corresponding analysis and processing on the log data of the terminal to determine the reason for the system upgrade failure of the terminal.
本发明实施例所提供的信息处理方法,通过接收终端发送的日志数据的压缩数据和终端的系统升级失败的结果,然后基于预设规则对日志数据的压缩数据包进行解析处理,得到日志数据,最后基于终端的系统升级失败的结果对日志数据进行分析处理,获得终端的系统升级失败的原因;这样,服务器可以对接收到的系统升级失败的日志数据进行分析处理,确定终端的系统升级失败的原因,实现了对终端的系统升级失败的原因进行分析,提高了终端的系统升级成功率,降低系统升级对终端的使用质量的影响;进而,提高了用户的体验效果。The information processing method provided by the embodiment of the present invention receives the compressed data of the log data sent by the terminal and the system upgrade failure result of the terminal, and then parses and processes the compressed data packet of the log data according to a preset rule to obtain log data. Finally, the log data is analyzed and processed based on the result of the system upgrade failure of the terminal, and the reason for the system upgrade failure of the terminal is obtained; thus, the server can analyze and process the received log data of the system upgrade failure, and determine that the system upgrade of the terminal fails. The reason is that the reason for the system upgrade failure of the terminal is analyzed, the success rate of the system upgrade of the terminal is improved, and the influence of the system upgrade on the quality of the terminal is reduced; thereby, the user experience is improved.
本发明实施例提供一种信息处理方法,参照图3所示,该方法包括以下步骤:An embodiment of the present invention provides an information processing method. Referring to FIG. 3, the method includes the following steps:
步骤301、终端获取终端的系统在升级过程中产生的日志数据。Step 301: The terminal acquires log data generated by the system of the terminal during the upgrade process.
以用户获得终端最高权限(root)后卸载了终端中的一些预置应用程序为例进行说明,终端被root且卸载了一些预置应用程序后可以向服务器主动发送系统升级的请求,服务器接收到请求后向该终端发送差分升级包,或者服务器可以主动向该终端发送差分升级包,该终端获得对应的差分升级包后,该终端准备系统升级环境进行升级,并存储系统在升级过程中产生的日志数据。After the user obtains the highest authority (root) of the terminal and uninstalls some preset applications in the terminal as an example, the terminal is rooted and uninstalls some preset applications, and can actively send a system upgrade request to the server, and the server receives the request. After the request is sent to the terminal, the differential upgrade package is sent, or the server can send a differential upgrade package to the terminal. After the terminal obtains the corresponding differential upgrade package, the terminal prepares the system upgrade environment for upgrade, and the storage system is generated during the upgrade process. Log data.
步骤302、终端判断终端的系统是否升级成功。Step 302: The terminal determines whether the system of the terminal is successfully upgraded.
步骤303、若终端的系统升级失败,终端基于预设规则对日志数据进行压缩处理,得到日志数据的压缩数据包。Step 303: If the system upgrade of the terminal fails, the terminal performs compression processing on the log data according to the preset rule to obtain a compressed data packet of the log data.
可选的,当终端的系统升级失败时,终端可以采用加密算法对终端升级过程中产生的日志数据进行加密压缩处理,得到加密的日志数据的压缩数据包。Optionally, when the system upgrade of the terminal fails, the terminal may perform an encryption and compression process on the log data generated during the terminal upgrade process by using an encryption algorithm to obtain a compressed data packet of the encrypted log data.
步骤304、终端发送日志数据的压缩数据包和终端的系统的升级失败的结果至服务器。Step 304: The terminal sends the compressed data packet of the log data and the result of the upgrade failure of the system of the terminal to the server.
可选的,若终端的系统升级成功,终端只需要向服务器发送终端的系统升级成功的结果,不用发送终端系统升级过程中产生的日志数据。Optionally, if the system upgrade of the terminal is successful, the terminal only needs to send the result of successful system upgrade of the terminal to the server, and does not need to send log data generated during the upgrade process of the terminal system.
步骤305、服务器接收终端发送的日志数据的压缩数据包和终端的系统 升级失败的结果。Step 305: The server receives the compressed data packet of the log data sent by the terminal, and the system of the terminal The result of the upgrade failure.
步骤306、服务器基于预设规则对日志数据的压缩数据包进行解析处理,得到日志数据。Step 306: The server parses the compressed data packet of the log data according to a preset rule to obtain log data.
可选的,服务器可以采用与终端使用的加密算法对应的解密算法对日志数据的压缩数据包进行解压和解密处理,得到日志数据。Optionally, the server may decompress and decrypt the compressed data packet of the log data by using a decryption algorithm corresponding to the encryption algorithm used by the terminal to obtain log data.
步骤307、服务器基于终端的系统的升级失败的结果对日志数据进行分析处理,获得终端的系统升级失败的原因。Step 307: The server analyzes and processes the log data based on the result of the upgrade failure of the terminal-based system, and obtains a reason for the system upgrade failure of the terminal.
可选的,终端可以对系统升级失败的日志数据进行统计分析,确定终端的系统升级失败的原因。示例性的,服务器对被root后且卸载了一些预置应用程序的终端发送的日志数据进行统计分析,确定终端的系统升级失败的原因是终端被root且卸载了一些预置应用程序时,终端的系统数据被更改或者清除,导致终端从服务器处获得的差分升级包的数据资源与被root后的终端的系统数据资源不匹配。Optionally, the terminal can perform statistical analysis on the log data of the system upgrade failure to determine the cause of the system upgrade failure of the terminal. Exemplarily, the server performs statistical analysis on the log data sent by the terminal after being rooted and uninstalling some preset applications, and determines that the system upgrade failure of the terminal is caused by the terminal being rooted and some preset applications are uninstalled. The system data is changed or cleared, so that the data resource of the differential upgrade package obtained by the terminal from the server does not match the system data resource of the terminal after the root.
需要说明的是,本实施例中与其它实施例中相同步骤或者概念的解释,可以参照其它实施例中的描述,此处不再赘述。It should be noted that the description of the same steps or concepts in the other embodiments may be referred to in other embodiments, and details are not described herein again.
本发明实施例所提供的信息处理方法,通过获取终端的系统在升级过程中产生的日志数据,并判断终端的系统是否升级成功,若终端的系统升级失败,则发送日志数据和终端的升级失败的结果至服务器,服务器接收终端发送的日志数据的压缩数据和终端的系统升级失败的结果,然后基于预设规则对日志数据的压缩数据包进行解析处理,得到日志数据,最后基于终端的系统升级失败的结果对日志数据进行分析处理,获得终端的系统升级失败的原因;这样,终端将系统升级失败的日志数据发送至服务器,服务器接收终端的系统升级失败的日志数据并进行分析处理,能够确定终端的系统升级失败的原因,实现了对终端的系统升级失败的原因进行分析,提高了终端的系统升级成功率,降低系统升级对终端的使用质量的影响;进而,提高了用户的体验效果。The information processing method provided by the embodiment of the present invention obtains the log data generated by the system of the terminal during the upgrade process, and determines whether the system of the terminal is successfully upgraded. If the system upgrade of the terminal fails, the log data and the upgrade of the terminal fail to be sent. The result is sent to the server, the server receives the compressed data of the log data sent by the terminal, and the result of the system upgrade failure of the terminal, and then parses the compressed data packet of the log data according to a preset rule to obtain log data, and finally the system upgrade based on the terminal The result of the failure analyzes and processes the log data to obtain the reason for the system upgrade failure of the terminal. In this way, the terminal sends the log data of the system upgrade failure to the server, and the server receives the log data of the system upgrade failure of the terminal and performs analysis and processing, and can determine The reason for the system upgrade failure of the terminal is to analyze the reason for the system upgrade failure of the terminal, improve the system upgrade success rate of the terminal, and reduce the impact of the system upgrade on the quality of the terminal; and further improve the user experience.
本发明实施例提供一种信息处理方法,参照图4所示,该方法包括以下步骤: An embodiment of the present invention provides an information processing method. Referring to FIG. 4, the method includes the following steps:
步骤401、终端获取终端的系统在升级过程中产生的日志数据。Step 401: The terminal acquires log data generated by the system of the terminal during the upgrade process.
步骤402、终端判断终端的系统是否升级成功。Step 402: The terminal determines whether the system of the terminal is successfully upgraded.
步骤403、若终端的系统升级失败,终端基于预设规则对日志数据进行压缩处理,得到日志数据的压缩数据包。Step 403: If the system upgrade of the terminal fails, the terminal compresses the log data according to a preset rule to obtain a compressed data packet of the log data.
步骤404、终端发送日志数据的压缩数据包和终端的系统的升级失败的结果至服务器。Step 404: The terminal sends the compressed data packet of the log data and the result of the upgrade failure of the system of the terminal to the server.
步骤405、服务器接收终端发送的日志数据的压缩数据包和终端的系统升级失败的结果。Step 405: The server receives the compressed data packet of the log data sent by the terminal, and the result of the system upgrade failure of the terminal.
步骤406、服务器基于预设规则对日志数据的压缩数据包进行解析处理,得到日志数据。Step 406: The server parses the compressed data packet of the log data according to a preset rule to obtain log data.
步骤407、服务器基于终端的系统的升级失败的结果对日志数据进行分析处理,获得终端的系统升级失败的原因。Step 407: The server analyzes and processes the log data based on the result of the upgrade failure of the system of the terminal, and obtains a reason for the system upgrade failure of the terminal.
步骤408、根据终端的系统升级失败的原因与预设升级失败类型之间的关系,服务器执行预设升级失败类型对应的操作。Step 408: The server performs an operation corresponding to the preset upgrade failure type according to the relationship between the reason for the system upgrade failure of the terminal and the preset upgrade failure type.
可选的,预设升级失败类型可以是通过长期对大量终端的系统升级失败的原因进行统计分析,获得对应的系统升级失败的原因特征来进行分类确定获得的,这些预设升级失败类型以及对应的解决方案均可以存储在服务器中,以便于用于确定终端的系统升级失败的原因。例如,预设升级失败类型可以包括系统软件导致系统升级失败或者是终端内部硬件导致系统升级失败等。Optionally, the preset upgrade failure type may be obtained by performing statistical analysis on the reason that the system upgrade failure of a large number of terminals is long-term, and obtaining the corresponding reason for the failure of the system upgrade to obtain the classification and determination, and the preset upgrade failure types and corresponding The solution can be stored in the server to facilitate the determination of the reason for the system upgrade failure of the terminal. For example, the preset upgrade failure type may include the system software causing the system upgrade failure or the terminal internal hardware to cause the system upgrade to fail.
其中,步骤408根据终端的系统升级失败的原因与预设升级失败类型之间的关系,服务器执行预设升级失败类型对应的操作可以通过以下步骤来实现:The step 408 is performed according to the relationship between the reason that the system upgrade fails and the preset upgrade failure type, and the operation corresponding to the preset upgrade failure type of the server may be implemented by the following steps:
步骤408a、服务器判断终端的系统升级失败的原因与预设升级失败类型之间的关系。Step 408a: The server determines a relationship between a reason for the system upgrade failure of the terminal and a preset upgrade failure type.
可选的,终端的系统升级失败的原因与预设升级失败类型之间的关系包括终端的系统升级失败的原因与预设升级失败类型完全一致、或者终端的系统升级失败的原因是预设升级失败类型中的一个因素等。 Optionally, the relationship between the system upgrade failure of the terminal and the default upgrade failure type includes the reason that the system upgrade failure of the terminal is the same as the default upgrade failure type, or the system upgrade failure of the terminal is a preset upgrade. A factor in the type of failure, etc.
需说明的是,步骤408a服务器判断终端的系统升级失败的原因与预设升级失败类型之间的关系之后,可以选择执行步骤408b或者步骤408c,若终端的系统升级失败的原因属于预设升级失败类型中的第一类型执行步骤408b,若终端的系统升级失败的原因属于预设升级失败类型中的第二类型执行步骤408c;It should be noted that after the server 408a determines the relationship between the reason for the system upgrade failure of the terminal and the preset upgrade failure type, step 408b or step 408c may be selected, and the reason for the system upgrade failure of the terminal belongs to the preset upgrade failure. The first type of the type performs step 408b, if the reason for the system upgrade failure of the terminal belongs to the second type of the preset upgrade failure type, step 408c is performed;
步骤408b、若终端的系统升级失败的原因属于预设升级失败类型中的第一类型,则服务器基于终端的第一类型对应的解决方案更新升级安装包。Step 408b: If the reason for the system upgrade failure of the terminal belongs to the first type in the preset upgrade failure type, the server updates the upgrade installation package based on the solution corresponding to the first type of the terminal.
可选的,预设升级失败类型中的第一类型可以是系统软件原因导致终端升级失败的。例如,当终端被用户root后,确定导致终端升级失败的原因可能是终端得到的差分升级包资源与root后终端的系统数据不匹配,与预设升级失败类型为差分升级包资源不匹配相同,在服务器中存储的对应预设升级失败类型为差分升级包资源不匹配的解决方案可以是服务器向差分升级包资源不匹配的终端推送全版本的系统升级安装包,而不是差分升级安装包。这样,差分升级包资源不匹配的终端利用全版本系统升级安装包进行系统升级时,终端不需要对系统升级安装包与终端中旧版本的系统进行校验,因此终端的系统可以升级到最新版本。其中,服务器可以向差分升级包资源不匹配的终端再次推送与差分升级包对应的全版本系统升级安装包,也可以在下一次生产厂商对系统的升级版本进行更新后,服务器向差分升级包资源不匹配的终端推送全版本系统升级安装包。Optionally, the first type of the preset upgrade failure type may be caused by the system software cause the terminal upgrade fails. For example, after the terminal is rooted by the user, the cause of the terminal upgrade failure may be that the differential upgrade package resource obtained by the terminal does not match the system data of the terminal after the root, and the default upgrade failure type is the same as the differential upgrade package resource. The solution that the corresponding preset upgrade failure type stored in the server is that the differential upgrade package resource does not match may be that the server pushes the full version of the system upgrade installation package to the terminal that does not match the differential upgrade package resource, instead of the differential upgrade installation package. In this way, when the terminal with the differential upgrade package resource mismatch uses the full-version system upgrade installation package for system upgrade, the terminal does not need to verify the system upgrade installation package and the old version of the system in the terminal, so the terminal system can be upgraded to the latest version. . The server may push the full version system upgrade installation package corresponding to the differential upgrade package to the terminal that does not match the differential upgrade package resource, or the server may upgrade the differential upgrade package resource after the next manufacturer updates the upgrade version of the system. The matching terminal pushes the full version of the system upgrade installation package.
例如,系统升级失败的原因还可以是终端在使用过程中缓存(cache)分区内的缓存数据太多,导致缓存分区太小达不到系统升级模式下系统升级所需的缓存分区,因此,可以确定预设升级失败类型为缓存分区太小。当服务器对终端升级失败的日志数据进行分析处理后,确定终端的系统升级失败的原因为缓存分区太小,判断获得的终端系统升级失败的原因与预设升级失败类型之间的关系,确定终端系统升级失败的原因与预设升级失败类型缓存分区太小一致,因此可以采用预设升级失败类型缓存分区变小的解决方案来解决该终端的系统升级失败的问题。其中,预设升级失败类型为缓存分区变小的解决方案可以是对差分升级包继续进行模块划分,划分为多个模块,然后根据模块对终端系统升级功能的影响程度按先后顺序进行模块化的系统升 级。示例性的,可以将差分升级包进行模块划分,划分为基带芯片(Baseband Processor,BP)升级包和应用芯片(Application Processor,AP)升级包,在服务器向终端推送系统升级安装包时,可以向终端先推送BP升级包进行升级,再推送AP升级包进行升级,通过减小每次升级的升级包的大小,降低对缓存区域的要求,实现终端的系统的升级。For example, the reason why the system upgrade fails may be that the cache data in the cache partition is too much during the use of the terminal, and the cache partition is too small to reach the cache partition required for the system upgrade in the system upgrade mode. Therefore, Make sure the default upgrade failure type is too small for the cache partition. After the server analyzes the log data of the terminal upgrade failure, the system determines that the system upgrade fails because the cache partition is too small, and the relationship between the failed upgrade of the terminal system and the preset upgrade failure type is determined. The system upgrade fails because the default upgrade failure type cache partition is too small. Therefore, you can use the default upgrade failure type cache partition to reduce the system upgrade failure. The solution that the default upgrade failure type is that the cache partition becomes smaller may be that the differential upgrade package continues to be divided into modules, and then modularized according to the degree of influence of the module on the upgrade function of the terminal system. System liter level. For example, the differential upgrade package can be divided into a baseband processor (BP) upgrade package and an application processor (AP) upgrade package. When the server pushes the system upgrade installation package to the terminal, The terminal first pushes the BP upgrade package to upgrade, and then pushes the AP upgrade package to upgrade. By reducing the size of the upgrade package for each upgrade, the requirements of the cache area are reduced, and the system upgrade of the terminal is implemented.
步骤408c、若终端的系统升级失败的原因属于预设升级失败类型中的第二类型,则服务器统计第二类型对应的终端的硬件信息。Step 408c: If the reason for the system upgrade failure of the terminal belongs to the second type of the preset upgrade failure type, the server collects hardware information of the terminal corresponding to the second type.
可选的,预设升级失败类型中的第二类型可以是终端在使用过程中终端内部的硬件系统损坏导致终端的系统差分升级失败,第二类型对应的解决方案可以是服务器统计导致系统差分升级失败的硬件系统信息,以便于生产厂商在后续终端的设计生产过程中对这些硬件的质量进行严格的管控。例如,当终端的系统差分升级失败后,服务器对获得的系统升级失败的日志数据进行分析,得出终端的系统升级失败的原因是终端的固态存储器与动画编辑器(flash)损坏造成的,此时,不能通过软件方法来解决硬件系统导致的升级失败的问题,因此,服务器可以统计flash信息,当因为flash损坏造成的系统升级失败的终端的数量超过一定预设数量值后,生产厂商可以在后续终端生产中更换该类型的flash,使用其他类型的flash。Optionally, the second type of the preset upgrade failure type may be that the hardware system of the terminal is damaged during the use of the terminal, and the system differential upgrade of the terminal fails. The solution corresponding to the second type may be that the server statistics cause the system to be differentially upgraded. Failed hardware system information, so that manufacturers can strictly control the quality of these hardware in the design and production process of subsequent terminals. For example, after the system differential upgrade of the terminal fails, the server analyzes the obtained log data of the system upgrade failure, and concludes that the system upgrade failure of the terminal is caused by the damage of the solid state memory and the animation editor (flash) of the terminal. When the software system fails to solve the upgrade failure caused by the hardware system, the server can count the flash information. When the number of terminals that fail to upgrade the system due to flash corruption exceeds a certain preset value, the manufacturer can Replace this type of flash in subsequent terminal production, using other types of flash.
可选的,终端与服务器可以通过数据流量或者无线网络进行通信。Optionally, the terminal and the server can communicate through data traffic or a wireless network.
需要说明的是,本实施例中与其它实施例中相同步骤或者概念的解释,可以参照其它实施例中的描述,此处不再赘述。It should be noted that the description of the same steps or concepts in the other embodiments may be referred to in other embodiments, and details are not described herein again.
本发明实施例所提供的信息处理方法,通过获取终端的系统在升级过程中产生的日志数据,并判断终端的系统是否升级成功,若终端的系统升级失败,则发送日志数据和终端的升级失败的结果至服务器,服务器接收终端发送的日志数据的压缩数据和终端的系统升级失败的结果,然后基于预设规则对日志数据的压缩数据包进行解析处理,得到日志数据,最后基于终端的系统升级失败的结果对日志数据进行分析处理,获得终端的系统升级失败的原因;这样,终端将系统升级失败的日志数据发送至服务器,服务器接收终端的系统升级失败的日志数据并进行分析处理,能够确定终端的系统升级失败的原因,实现了对终端的系统升级失败的原因进行分析,提高了终端的系统 升级成功率,降低系统升级对终端的使用质量的影响;进而,提高了用户的体验效果;进一步的,还实现了终端的系统升级失败后可以进行后续的系统升级。The information processing method provided by the embodiment of the present invention obtains the log data generated by the system of the terminal during the upgrade process, and determines whether the system of the terminal is successfully upgraded. If the system upgrade of the terminal fails, the log data and the upgrade of the terminal fail to be sent. The result is sent to the server, the server receives the compressed data of the log data sent by the terminal, and the result of the system upgrade failure of the terminal, and then parses the compressed data packet of the log data according to a preset rule to obtain log data, and finally the system upgrade based on the terminal The result of the failure analyzes and processes the log data to obtain the reason for the system upgrade failure of the terminal. In this way, the terminal sends the log data of the system upgrade failure to the server, and the server receives the log data of the system upgrade failure of the terminal and performs analysis and processing, and can determine The reason for the system upgrade failure of the terminal is to analyze the cause of the system upgrade failure of the terminal, and improve the system of the terminal. The success rate of the upgrade reduces the impact of the system upgrade on the quality of the terminal; furthermore, the user experience is improved; further, the subsequent system upgrade can be performed after the system upgrade of the terminal fails.
本发明实施例提供了一种信息处理装置5,可应用于图1、3~4对应的实施例提供的一种信息处理方法中,参照图5所示,该装置包括:获取单元51、判断单元52和发送单元53,其中:The embodiment of the present invention provides an information processing apparatus 5, which can be applied to an information processing method provided by the embodiment corresponding to FIG. 1 and FIG. 3 to FIG. 4, and the apparatus includes: an obtaining unit 51, and a judgment Unit 52 and transmitting unit 53, wherein:
获取单元51,设置为获取终端的系统在升级过程中产生的日志数据。The obtaining unit 51 is configured to acquire log data generated by the system of the terminal during the upgrading process.
判断单元52,设置为判断终端的系统是否升级成功。The determining unit 52 is configured to determine whether the system of the terminal is successfully upgraded.
发送单元53,设置为若终端的系统升级失败,则发送日志数据和终端的系统升级失败的结果至服务器。The sending unit 53 is configured to send the log data and the result of the system upgrade failure of the terminal to the server if the system upgrade of the terminal fails.
本发明的实施例所提供的信息处理装置,通过获取终端的系统在升级过程中产生的日志数据,并判断终端的系统是否升级成功,若终端的系统升级失败,则发送日志数据和终端的升级失败的结果至服务器;这样,终端可以将系统升级失败的日志数据发送至服务器,使服务器能够对终端的系统升级失败的原因进行分析,提高了终端的系统升级成功率,降低系统升级对终端的使用质量的影响;进而,提高了用户的体验效果。The information processing apparatus provided by the embodiment of the present invention obtains the log data generated by the system of the terminal during the upgrade process, and determines whether the system of the terminal is upgraded successfully. If the system upgrade of the terminal fails, the log data and the upgrade of the terminal are sent. The result of the failure is sent to the server; in this way, the terminal can send the log data of the system upgrade failure to the server, so that the server can analyze the reason for the system upgrade failure of the terminal, improve the system upgrade success rate of the terminal, and reduce the system upgrade to the terminal. The impact of quality is used; in turn, the user experience is improved.
可选的,参照图6所示,发送单元53包括:第一处理模块531和发送模块532,其中:Optionally, referring to FIG. 6, the sending unit 53 includes: a first processing module 531 and a sending module 532, where:
第一处理模块531,设置为若终端的系统升级失败,基于预设规则对日志数据进行压缩处理,得到日志数据的压缩数据包。The first processing module 531 is configured to compress the log data according to a preset rule to obtain a compressed data packet of the log data if the system upgrade of the terminal fails.
发送模块532,设置为发送日志数据的压缩数据包和终端的系统的升级失败的结果至服务器。The sending module 532 is configured to send the compressed data packet of the log data and the result of the upgrade failure of the system of the terminal to the server.
需要说明的是,本实施例中每个单元和模块之间的交互过程,可以参照图1、3~4对应的实施例提供的一种信息处理方法中的交互过程,此处不再赘述。It should be noted that, in the interaction process between each unit and the module in this embodiment, reference may be made to the interaction process in an information processing method provided by the embodiment corresponding to FIG. 1 and FIG. 3 to FIG. 4, and details are not described herein again.
本发明的实施例所提供的信息处理装置,通过获取终端的系统在升级过程中产生的日志数据,并判断终端的系统是否升级成功,若终端的系统升级失败,则发送日志数据和终端的升级失败的结果至服务器;这样,终端将系 统升级失败的日志数据发送至服务器,使服务器能够对终端的系统升级失败的原因进行分析,提高了终端的系统升级成功率,降低系统升级对终端的使用质量的影响;进而,提高了用户的体验效果。The information processing apparatus provided by the embodiment of the present invention obtains the log data generated by the system of the terminal during the upgrade process, and determines whether the system of the terminal is upgraded successfully. If the system upgrade of the terminal fails, the log data and the upgrade of the terminal are sent. The result of the failure to the server; thus, the terminal will be The log data of the system upgrade failure is sent to the server, so that the server can analyze the reason for the system upgrade failure of the terminal, improve the system upgrade success rate of the terminal, and reduce the impact of the system upgrade on the quality of the terminal; and further improve the user's Experience the effect.
本发明实施例提供了一种信息处理装置6,可应用于图2~4对应的实施例提供的一种信息处理方法中,参照图7所示,该装置包括:接收单元61、第一处理单元62和第二处理单元63,其中:An embodiment of the present invention provides an information processing apparatus 6 that can be applied to an information processing method provided by the embodiment corresponding to FIG. 2 to FIG. 4, and the apparatus includes: a receiving unit 61, and a first processing. Unit 62 and second processing unit 63, wherein:
接收单元61,设置为接收终端发送的日志数据的压缩数据和终端的系统升级失败的结果。The receiving unit 61 is configured to receive the compressed data of the log data sent by the terminal and the result of the system upgrade failure of the terminal.
第一处理单元62,设置为基于预设规则对日志数据的压缩数据包进行解析处理,得到日志数据。The first processing unit 62 is configured to parse the compressed data packet of the log data based on the preset rule to obtain log data.
第二处理单元63,设置为基于终端的系统的升级失败的结果对日志数据进行分析处理,获得终端的系统升级失败的原因。The second processing unit 63 is configured to analyze and process the log data based on the result of the upgrade failure of the system of the terminal, and obtain the reason for the system upgrade failure of the terminal.
本发明实施例所提供的信息处理装置,通过接收终端发送的日志数据的压缩数据和终端的系统升级失败的结果,然后基于预设规则对日志数据的压缩数据包进行解析处理,得到日志数据,最后基于终端的系统升级失败的结果对日志数据进行分析处理,获得终端的系统升级失败的原因;这样,服务器接收终端发送的系统升级失败的日志数据,并对日志数据进行分析处理,确定了终端的系统升级失败的原因,能够对终端的系统升级失败的原因进行分析,提高了终端的系统升级成功率,降低系统升级对终端的使用质量的影响;进而,提高了用户的体验效果。The information processing apparatus provided by the embodiment of the present invention receives the compressed data of the log data sent by the terminal and the result of the system upgrade failure of the terminal, and then parses and processes the compressed data packet of the log data according to a preset rule to obtain log data. Finally, based on the result of the system upgrade failure of the terminal, the log data is analyzed and processed, and the reason for the system upgrade failure of the terminal is obtained; thus, the server receives the log data of the system upgrade failure sent by the terminal, analyzes and processes the log data, and determines the terminal. The reason for the system upgrade failure is that the system upgrade failure of the terminal can be analyzed, the system upgrade success rate of the terminal is improved, and the impact of the system upgrade on the quality of the terminal is reduced; thereby, the user experience is improved.
可选的,参照图8所示,该装置还包括:第三处理单元64,其中:Optionally, referring to FIG. 8, the apparatus further includes: a third processing unit 64, wherein:
第三处理单元64,设置为根据终端的系统升级失败的原因与预设升级失败类型之间的关系,执行预设升级失败类型对应的操作。The third processing unit 64 is configured to perform an operation corresponding to the preset upgrade failure type according to the relationship between the cause of the system upgrade failure of the terminal and the preset upgrade failure type.
可选的,参照图9所示,第三处理单元64包括:判断模块641和第二处理模块642,其中:Optionally, referring to FIG. 9, the third processing unit 64 includes: a determining module 641 and a second processing module 642, where:
判断模块641,设置为判断终端的系统升级失败的原因与预设升级失败类型之间的关系。The determining module 641 is configured to determine a relationship between a reason for the system upgrade failure of the terminal and a preset upgrade failure type.
第二处理模块642,设置为若终端的系统升级失败的原因属于预设升级 失败类型中的第一类型,则基于终端的第一类型对应的解决方案更新升级安装包。The second processing module 642 is configured to be a preset upgrade if the system upgrade of the terminal fails. The first type of the failure type updates the upgrade installation package based on the solution corresponding to the first type of the terminal.
可选的,参照图10所示,第三处理单元64还包括:第三处理模块643,其中:Optionally, referring to FIG. 10, the third processing unit 64 further includes: a third processing module 643, where:
第三处理模块643,设置为若终端的系统升级失败的原因属于预设升级失败类型中的第二类型,则统计第二类型对应的终端的硬件信息。The third processing module 643 is configured to collect hardware information of the terminal corresponding to the second type, if the reason for the system upgrade failure of the terminal belongs to the second type in the preset upgrade failure type.
需要说明的是,本实施例中每个单元和模块之间的交互过程,可以参照图2~4对应的实施例提供的一种信息处理方法中的交互过程,此处不再赘述。It should be noted that, in the interaction process between each unit and the module in this embodiment, reference may be made to the interaction process in an information processing method provided by the embodiment corresponding to FIG. 2 to FIG. 4, and details are not described herein again.
本发明实施例所提供的信息处理装置,通过获取终端的系统在升级过程中产生的日志数据,并判断终端的系统是否升级成功,若终端的系统升级失败,则发送日志数据和终端的升级失败的结果至服务器,服务器接收终端发送的日志数据的压缩数据和终端的系统升级失败的结果,然后基于预设规则对日志数据的压缩数据包进行解析处理,得到日志数据,最后基于终端的系统升级失败的结果对日志数据进行分析处理,获得终端的系统升级失败的原因;这样,服务器接收终端发送的系统升级失败的日志数据,并对日志数据进行分析处理,确定了终端的系统升级失败的原因,能够对终端的系统升级失败的原因进行分析,提高了终端的系统升级成功率,降低系统升级对终端的使用质量的影响;进而,提高了用户的体验效果;进一步的,还实现了终端的系统升级失败后可以进行后续的系统升级。The information processing apparatus provided by the embodiment of the present invention obtains the log data generated by the system of the terminal during the upgrade process, and determines whether the system of the terminal is upgraded successfully. If the system upgrade of the terminal fails, the log data and the upgrade of the terminal fail to be sent. The result is sent to the server, the server receives the compressed data of the log data sent by the terminal, and the result of the system upgrade failure of the terminal, and then parses the compressed data packet of the log data according to a preset rule to obtain log data, and finally the system upgrade based on the terminal The result of the failure analyzes and processes the log data to obtain the reason for the system upgrade failure of the terminal; thus, the server receives the log data of the system upgrade failure sent by the terminal, and analyzes and processes the log data to determine the reason for the system upgrade failure of the terminal. It can analyze the reasons for the system upgrade failure of the terminal, improve the system upgrade success rate of the terminal, and reduce the impact of the system upgrade on the quality of the terminal; further, improve the user experience; further, the terminal is also implemented. System liter After subsequent failure can upgrade.
在实际应用中,获取单元51、判断单元52、发送单元53、第一处理模块531、发送模块532、接收单元61、第一处理单元62、第二处理单元63、第三处理单元64、判断模块641、第二处理模块642和第三处理模块643均可由位于无线数据发送设备中的中央处理器(Central Processing Unit,CPU)、微处理器(Micro Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。In an actual application, the obtaining unit 51, the determining unit 52, the sending unit 53, the first processing module 531, the sending module 532, the receiving unit 61, the first processing unit 62, the second processing unit 63, the third processing unit 64, and the determining The module 641, the second processing module 642, and the third processing module 643 may each be a Central Processing Unit (CPU), a Micro Processor Unit (MPU), and a digital signal processor located in the wireless data transmitting device ( Digital Signal Processor (DSP) or Field Programmable Gate Array (FPGA) implementation.
本发明实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现上述实施例所述的方法。 The embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which are implemented by the processor to implement the method described in the foregoing embodiments.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
工业实用性 Industrial applicability
上述技术方案能使服务器确定终端的系统升级失败的原因,提高了终端的系统升级成功率,降低系统升级对终端的使用质量的影响;进而,提高了用户的体验效果。 The foregoing technical solution can enable the server to determine the cause of the system upgrade failure of the terminal, improve the system upgrade success rate of the terminal, and reduce the impact of the system upgrade on the use quality of the terminal; and further improve the user experience.

Claims (14)

  1. 一种信息处理方法,所述方法包括:An information processing method, the method comprising:
    获取终端的系统在升级过程中产生的日志数据(101);Obtaining log data generated by the system of the terminal during the upgrade process (101);
    判断所述终端的系统是否升级成功(102);Determining whether the system of the terminal is successfully upgraded (102);
    若所述终端的系统升级失败,则发送所述日志数据和所述终端的系统升级失败的结果至服务器,所述日志数据和所述终端的系统升级失败的结果用于确定所述终端的系统升级失败的原因(103)。If the system upgrade of the terminal fails, sending the log data and the result of the system upgrade failure of the terminal to the server, and the result of the log data and the system upgrade failure of the terminal is used to determine the system of the terminal. The reason for the upgrade failure (103).
  2. 根据权利要求1所述的方法,其中,所述若所述终端的系统升级失败,则发送所述日志数据和所述终端的系统升级失败的结果至服务器(103),包括:The method according to claim 1, wherein if the system upgrade of the terminal fails, sending the log data and the result of the system upgrade failure of the terminal to the server (103), including:
    若所述终端的系统升级失败,基于预设规则对所述日志数据进行压缩处理,得到所述日志数据的压缩数据包(303);If the system upgrade of the terminal fails, the log data is compressed according to a preset rule, and the compressed data packet of the log data is obtained (303);
    发送所述日志数据的压缩数据包和所述终端的系统的升级失败的结果至所述服务器(304)。The compressed data packet of the log data and the result of the upgrade failure of the system of the terminal are sent to the server (304).
  3. 一种信息处理方法,所述方法包括:An information processing method, the method comprising:
    接收终端发送的日志数据的压缩数据和所述终端的系统升级失败的结果(201);Receiving compressed data of log data sent by the terminal and a result of system upgrade failure of the terminal (201);
    基于预设规则对所述日志数据的压缩数据包进行解析处理,得到日志数据(202);Parsing the compressed data packet of the log data based on a preset rule to obtain log data (202);
    基于所述终端的系统的升级失败的结果对所述日志数据进行分析处理,获得所述终端的系统升级失败的原因(203)。The log data is analyzed and processed based on the result of the upgrade failure of the system of the terminal, and the reason for the system upgrade failure of the terminal is obtained (203).
  4. 根据权利要求3所述的方法,所述方法还包括:The method of claim 3, further comprising:
    根据所述终端的系统升级失败的原因与预设升级失败类型之间的关系,执行所述预设升级失败类型对应的操作。The operation corresponding to the preset upgrade failure type is performed according to the relationship between the failure of the system upgrade of the terminal and the preset upgrade failure type.
  5. 根据权利要求4所述的方法,其中,所述根据所述终端的系统升级失败的原因与预设升级失败类型之间的关系,执行所述预设升级失败类型对应的操作,包括: The method according to claim 4, wherein the performing the operation corresponding to the preset upgrade failure type according to the relationship between the reason for the system upgrade failure of the terminal and the preset upgrade failure type includes:
    判断所述终端的系统升级失败的原因与所述预设升级失败类型之间的关系(408a);Determining a relationship between a reason for the system upgrade failure of the terminal and the preset upgrade failure type (408a);
    若所述终端的系统升级失败的原因属于所述预设升级失败类型中的第一类型,则基于所述终端的第一类型对应的解决方案更新升级安装包(408b)。If the reason for the system upgrade failure of the terminal belongs to the first type of the preset upgrade failure type, the upgrade installation package is updated based on the solution corresponding to the first type of the terminal (408b).
  6. 根据权利要求5所述的方法,所述方法还包括:The method of claim 5, the method further comprising:
    若所述终端的系统升级失败的原因属于所述预设升级失败类型中的第二类型,则统计所述第二类型对应的终端的硬件信息(408b)。If the reason for the system upgrade failure of the terminal belongs to the second type of the preset upgrade failure type, the hardware information of the terminal corresponding to the second type is counted (408b).
  7. 一种信息处理装置(5),包括:获取单元(51)、判断单元(52)和发送单元(53);其中:An information processing apparatus (5) comprising: an obtaining unit (51), a determining unit (52), and a transmitting unit (53); wherein:
    所述获取单元(51),设置为获取终端的系统在升级过程中产生的日志数据;The obtaining unit (51) is configured to acquire log data generated by the system of the terminal during the upgrading process;
    所述判断单元(52),设置为判断所述终端的系统是否升级成功;The determining unit (52) is configured to determine whether the system of the terminal is successfully upgraded;
    所述发送单元(53),设置为若所述终端的系统升级失败,则发送所述日志数据和所述终端的系统升级失败的结果至服务器,所述日志数据和所述终端的系统升级失败的结果用于确定所述终端的系统升级失败的原因。The sending unit (53) is configured to send the log data and the result of the system upgrade failure of the terminal to the server if the system upgrade of the terminal fails, and the log data and the system upgrade of the terminal fail. The result is used to determine the cause of the system upgrade failure of the terminal.
  8. 根据权利要求7所述的装置(5),其中,所述发送单元(53)包括:第一处理模块(531)和发送模块(532);其中:The apparatus (5) according to claim 7, wherein the transmitting unit (53) comprises: a first processing module (531) and a transmitting module (532); wherein:
    所述第一处理模块(531),设置为若所述终端的系统升级失败,基于预设规则对所述日志数据进行压缩处理,得到所述日志数据的压缩数据包;The first processing module (531) is configured to perform compression processing on the log data according to a preset rule to obtain a compressed data packet of the log data if the system upgrade of the terminal fails;
    所述发送模块(532),设置为发送所述日志数据的压缩数据包和所述终端的系统的升级失败的结果至所述服务器。The sending module (532) is configured to send the compressed data packet of the log data and the result of the upgrade failure of the system of the terminal to the server.
  9. 一种信息处理装置(6),包括:接收单元(61)、第一处理单元(62)和第二处理单元(63);其中:An information processing apparatus (6) comprising: a receiving unit (61), a first processing unit (62), and a second processing unit (63); wherein:
    所述接收单元(61),设置为接收终端发送的日志数据的压缩数据和所述终端的系统升级失败的结果;The receiving unit (61) is configured to receive compressed data of log data sent by the terminal and a system upgrade failure result of the terminal;
    所述第一处理单元(62),设置为基于预设规则对所述日志数据的压缩 数据包进行解析处理,得到日志数据;The first processing unit (62) is configured to compress the log data based on a preset rule The data packet is parsed and processed to obtain log data.
    所述第二处理单元(63),设置为基于所述终端的系统的升级失败的结果对所述日志数据进行分析处理,获得所述终端的系统升级失败的原因。The second processing unit (63) is configured to perform analysis processing on the log data based on a result of the upgrade failure of the system of the terminal, and obtain a reason for the system upgrade failure of the terminal.
  10. 根据权利要求9所述的装置(6),还包括:第三处理单元(64);其中:The apparatus (6) according to claim 9, further comprising: a third processing unit (64); wherein:
    所述第三处理单元(64),设置为根据所述终端的系统升级失败的原因与预设升级失败类型之间的关系,执行所述预设升级失败类型对应的操作。The third processing unit (64) is configured to perform an operation corresponding to the preset upgrade failure type according to a relationship between a reason for the system upgrade failure of the terminal and a preset upgrade failure type.
  11. 根据权利要求10所述的装置(6),其中,所述第三处理单元(64)包括:判断模块(641)和第二处理模块(642);The device (6) according to claim 10, wherein the third processing unit (64) comprises: a determining module (641) and a second processing module (642);
    所述判断模块(641),设置为判断所述终端的系统升级失败的原因与所述预设升级失败类型之间的关系;The determining module (641) is configured to determine a relationship between a reason for the system upgrade failure of the terminal and the preset upgrade failure type;
    所述第二处理模块(642),设置为若所述终端的系统升级失败的原因属于所述预设升级失败类型中的第一类型,则基于所述终端的第一类型对应的解决方案更新升级安装包。The second processing module (642) is configured to update the solution corresponding to the first type of the terminal if the reason for the system upgrade failure of the terminal belongs to the first type of the preset upgrade failure type Upgrade the installation package.
  12. 根据权利要求11所述的装置(6),所述第三处理单元(64)还包括:第三处理模块(643);The apparatus (6) according to claim 11, the third processing unit (64) further comprising: a third processing module (643);
    所述第三处理模块(643),设置为若所述终端的系统升级失败的原因属于所述预设升级失败类型中的第二类型,则统计所述第二类型对应的终端的硬件信息。The third processing module (643) is configured to collect hardware information of the terminal corresponding to the second type, if the reason for the system upgrade failure of the terminal belongs to the second type of the preset upgrade failure type.
  13. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现权利要求1或2所述的方法。A computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the method of claim 1 or 2.
  14. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现权利要求3至6中任一项所述的方法。 A computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the method of any one of claims 3 to 6.
PCT/CN2017/091492 2016-10-26 2017-07-03 Information processing method and apparatus WO2018076769A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610947094.2 2016-10-26
CN201610947094.2A CN107992374A (en) 2016-10-26 2016-10-26 A kind of information processing method and device

Publications (1)

Publication Number Publication Date
WO2018076769A1 true WO2018076769A1 (en) 2018-05-03

Family

ID=62024298

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/091492 WO2018076769A1 (en) 2016-10-26 2017-07-03 Information processing method and apparatus

Country Status (2)

Country Link
CN (1) CN107992374A (en)
WO (1) WO2018076769A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808009A (en) * 2010-03-08 2010-08-18 中兴通讯股份有限公司 Method and system for upgrading network equipment
CN103036706A (en) * 2012-11-26 2013-04-10 青岛海信传媒网络技术有限公司 Local processing method of application upgrading abnormity
US20130185548A1 (en) * 2012-01-12 2013-07-18 Gueorgui Djabarov Multiple System Images for Over-The-Air Updates
CN105955773A (en) * 2016-04-29 2016-09-21 乐视控股(北京)有限公司 System upgrading method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9027080B2 (en) * 2008-03-31 2015-05-05 Cleversafe, Inc. Proxy access to a dispersed storage network
CN101695162A (en) * 2009-10-22 2010-04-14 中兴通讯股份有限公司 Method and device for upgrading aerial firmware on mobile terminal
CN104461786B (en) * 2014-12-19 2018-07-13 上海斐讯数据通信技术有限公司 The restoration methods of android system and the recovery system of android system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808009A (en) * 2010-03-08 2010-08-18 中兴通讯股份有限公司 Method and system for upgrading network equipment
US20130185548A1 (en) * 2012-01-12 2013-07-18 Gueorgui Djabarov Multiple System Images for Over-The-Air Updates
CN103036706A (en) * 2012-11-26 2013-04-10 青岛海信传媒网络技术有限公司 Local processing method of application upgrading abnormity
CN105955773A (en) * 2016-04-29 2016-09-21 乐视控股(北京)有限公司 System upgrading method and device

Also Published As

Publication number Publication date
CN107992374A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
KR101490578B1 (en) Method, apparatus and system for processing firmware based on firmware over the air technology
JP2005209195A (en) Embedded system using binary position information and remote software downloading method therein
US10204108B2 (en) Method and apparatus for manufacturing file system update package, method and apparatus for updating file system update package, and terminal
US8774413B2 (en) Method and apparatus for processing entitlement control message packets
JP2015176601A (en) Software update method, software update system, and mobile device
US20130055238A1 (en) System and method for providing virus protection
CN107391143B (en) T-Box remote upgrading method
CN106843957A (en) System firmware upgrade method and device
CN106648766B (en) Method and device for generating patch upgrade patch based on folder and differentially upgrading patch based on folder
CN106484453B (en) Method and device for realizing system upgrading
CN104866307A (en) Application repairing method and apparatus
CN105786549B (en) Smart machine and its upgrade method
WO2018045958A1 (en) Method and system for upgrading wireless fidelity (wi-fi) device
WO2018086478A1 (en) Method and device for upgrading wifi module in set top box, set top box and system
CN105897461A (en) Multi-system OTA upgrading method and multi-system device
CN105549995A (en) Audio device upgrading method and apparatus
WO2018076769A1 (en) Information processing method and apparatus
CN108650287B (en) Upgrading method and device for terminal device in Internet of things and computer readable medium
CN104125503A (en) Set top box upgrading method and digital television terminal
KR20080083512A (en) Firmware over the air system
US20210019418A1 (en) Technique for authentication and prerequisite checks for software updates
CN111857790A (en) Firmware upgrading method and device and computer equipment
CN111459524A (en) Software upgrading method, device and system
US9104520B2 (en) Method and apparatus for upgrading application
CN104486687A (en) Data processing method, digital television terminal and server

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: 17865174

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase in:

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17865174

Country of ref document: EP

Kind code of ref document: A1