Movatterモバイル変換


[0]ホーム

URL:


CN103309761B - A kind of method and system of automatic error-correcting based on online service - Google Patents

A kind of method and system of automatic error-correcting based on online service
Download PDF

Info

Publication number
CN103309761B
CN103309761BCN201310213110.1ACN201310213110ACN103309761BCN 103309761 BCN103309761 BCN 103309761BCN 201310213110 ACN201310213110 ACN 201310213110ACN 103309761 BCN103309761 BCN 103309761B
Authority
CN
China
Prior art keywords
application program
module
parameter information
abnormally
name
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.)
Expired - Fee Related
Application number
CN201310213110.1A
Other languages
Chinese (zh)
Other versions
CN103309761A (en
Inventor
赵敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth Digital Technology Co Ltd
Shenzhen Skyworth Software Co Ltd
Original Assignee
Shenzhen Skyworth Digital Technology Co Ltd
Shenzhen Skyworth Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth Digital Technology Co Ltd, Shenzhen Skyworth Software Co LtdfiledCriticalShenzhen Skyworth Digital Technology Co Ltd
Priority to CN201310213110.1ApriorityCriticalpatent/CN103309761B/en
Publication of CN103309761ApublicationCriticalpatent/CN103309761A/en
Application grantedgrantedCritical
Publication of CN103309761BpublicationCriticalpatent/CN103309761B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

Translated fromChinese

本发明实施例公开了一种基于在线服务的自动纠错的方法,包括通过预设的异常捕获机制捕获应用程序中运行异常的模块;根据所述捕获到的应用程序中运行异常的模块下载对应的更新文件;根据所述更新文件更新所述应用程序。本发明实施例还公开了一种终端设备。采用本发明,具有通过在线服务的方式,自动更新错误模块,达到自动纠错的优点。

The embodiment of the present invention discloses an online service-based automatic error correction method, which includes catching modules running abnormally in the application program through a preset exception capturing mechanism; downloading corresponding An update file; update the application program according to the update file. The embodiment of the invention also discloses a terminal device. Adopting the present invention has the advantage of automatically updating error modules through online service to achieve automatic error correction.

Description

Translated fromChinese
一种基于在线服务的自动纠错的方法和系统A method and system for automatic error correction based on online service

技术领域technical field

本发明涉及电子技术领域,尤其涉及一种基于在线服务的自动纠错的方法和系统。The invention relates to the field of electronic technology, in particular to an online service-based automatic error correction method and system.

背景技术Background technique

目前的技术是基于标准的浏览器,在系统启动后,打开本地网页,然后读取用户预设的数据来访问相应的服务网站,或者系统启动后直接访问设定的网站。通过在线网页的方式提供服务,如果有错误,只是修改服务器上的网页代码,终端装置内程序不做任何修改。The current technology is based on a standard browser. After the system starts, open the local web page, and then read the user's preset data to access the corresponding service website, or directly access the set website after the system starts. The service is provided through an online webpage. If there is an error, only the webpage code on the server is modified, and the program in the terminal device does not make any modification.

在一些IPTV的终端盒子中,采用基于W3C的标准,直接访问服务或者内容提供商的在线网站。通过下载设定的网页,在终端设备上呈现,来给终端用户提供各种在线服务。In some IPTV terminal boxes, W3C-based standards are adopted to directly access online websites of service or content providers. By downloading the set webpage and presenting it on the terminal device, various online services are provided to the terminal user.

这种解决方案只能对提供的服务或者呈现的内容有纠错能力。而对于终端内出现的程序逻辑错误和定义无法解决,这种技术的前提条件是必须保证系统内的现有程序稳定而正确的运行。This solution can only be error-correcting for the service provided or the content presented. As for the program logic errors and definitions that appear in the terminal cannot be resolved, the prerequisite for this technology is to ensure the stable and correct operation of the existing programs in the system.

发明内容Contents of the invention

本发明实施例所要解决的技术问题在于,提供一种基于在线服务的自动纠错的方法及装置。可通过在线服务的方式,自动更新错误模块,达到自动纠错的目的。The technical problem to be solved by the embodiments of the present invention is to provide an online service-based automatic error correction method and device. The error module can be updated automatically through online service to achieve the purpose of automatic error correction.

为了解决上述技术问题,本发明实施例提供了一种基于在线服务的自动纠错的方法,包括:In order to solve the above technical problems, an embodiment of the present invention provides an online service-based automatic error correction method, including:

通过预设的异常捕获机制捕获应用程序中运行异常的模块;Catch modules that run abnormally in the application through the preset exception capture mechanism;

根据所述捕获到的应用程序中运行异常的模块下载对应的更新文件;Downloading a corresponding update file according to the captured abnormally running modules in the application program;

根据所述更新文件更新所述应用程序。The application program is updated according to the update file.

进一步的,所述根据所述运行异常的模块下载对应的文件包括:Further, the downloading of corresponding files according to the abnormally running modules includes:

发送所述应用程序中运行异常的模块的参数信息到前端服务器;sending the parameter information of the abnormally running module in the application program to the front-end server;

从前端服务器下载所述应用程序中异常的模块的参数信息对应的更新文件。An update file corresponding to the parameter information of the abnormal module in the application program is downloaded from the front-end server.

进一步的,所述通过预设的异常捕获机制捕获应用程序中运行异常的模块之前还包括:Further, before the module that captures the exception running in the application through the preset exception capture mechanism, it also includes:

检测到当前运行的所述应用程序异常。An exception was detected for the application currently running.

进一步的,所述应用程序中运行异常的模块的参数信息包括名称、版本信息、编译时间中多种或任意一种。Further, the parameter information of the abnormally running module in the application program includes multiple or any one of name, version information, and compilation time.

进一步的,所述通过预设的异常捕获机制捕获应用程序中运行异常的模块具体包括:Further, the module that captures the abnormal operation in the application program through the preset exception capture mechanism specifically includes:

通过back trace分析出当前出错的所述应用程序名称和相关的动态链接库文件;Analyzing the name of the currently wrong application program and the relevant dynamic link library file by back trace;

或通过java的异常捕获机制,反向查看到所述应用程序名称和对应的字节码文件。Or through the exception capture mechanism of java, the application name and the corresponding bytecode file can be reversely viewed.

一种终端设备,包括:A terminal device comprising:

捕获模块,用于通过预设的异常捕获机制捕获应用程序中运行异常的模块;The capture module is used to capture the abnormal running module in the application through the preset exception capture mechanism;

下载模块,用于根据所述捕获到的应用程序中运行异常的模块下载对应的更新文件;A download module, configured to download a corresponding update file according to the captured abnormally running module in the application program;

更新模块,用于根据所述更新文件更新所述应用程序。An update module, configured to update the application program according to the update file.

进一步的,所述下载模块包括:Further, the download module includes:

发送单元,用于发送所述应用程序中运行异常的模块的参数信息到前端服务器;A sending unit, configured to send parameter information of a module running abnormally in the application program to the front-end server;

下载单元,用于从前端服务器下载所述应用程序中异常的模块的参数信息对应的更新文件。The downloading unit is configured to download from the front-end server the update file corresponding to the parameter information of the abnormal module in the application program.

进一步的,还包括:Further, it also includes:

报错模块,用于当检测到当前运行的所述应用程序异常时,触发所述捕获模块通过预设的异常捕获机制捕获应用程序中运行异常的模块。The error reporting module is used to trigger the capture module to capture the abnormality in the application program through the preset exception capture mechanism when detecting the abnormality of the currently running application program.

进一步的,所述运行异常的模块的参数信息包括名称、版本信息、编译时间中多种或任意一种。Further, the parameter information of the abnormally running module includes multiple or any one of name, version information, and compilation time.

进一步的,所述捕获模块具体包括:Further, the capture module specifically includes:

第一捕获单元,用于通过back trace分析出当前出错的所述应用程序名称和相关的动态链接库文件;The first capture unit is used to analyze the application program name and related dynamic link library files that are currently in error through back trace;

第二捕获单元,用于通过java的异常捕获机制,反向查看到所述应用程序名称和对应的字节码文件。The second capturing unit is configured to reversely view the application program name and the corresponding bytecode file through the exception capturing mechanism of java.

一种前端系统,包括:A front-end system comprising:

查询单元,用于根据所述参数信息比较版本库查询对应的更新文件;A query unit, configured to compare the version library according to the parameter information and query the corresponding update file;

发送单元,用于发送所述参数信息对应的更新文件。A sending unit, configured to send an update file corresponding to the parameter information.

一种基于在线服务的自动纠错的系统,包括如上所述的终端设备和如上所述的前端系统。An automatic error correction system based on online services, including the above-mentioned terminal equipment and the above-mentioned front-end system.

实施本发明实施例,具有如下有益效果:通过提供一种在线服务的方式,在终端设备中内嵌异常捕获的程序和机制,通过对系统程序异常的捕获,然后访问在线服务,通过比较相应的设定参数,自动下载并更新系统内相应的错误模块,对终端设备内系统错误和逻辑错误的自动纠正,达到自动纠错的目的,减少了系统全部升级的时间和功耗,以及节省了人工维护终端设备的成本。The implementation of the embodiment of the present invention has the following beneficial effects: by providing an online service, the program and mechanism of abnormal capture are embedded in the terminal device, and the system program is captured by the exception, and then the online service is accessed, and by comparing the corresponding Set parameters, automatically download and update the corresponding error modules in the system, automatically correct system errors and logic errors in the terminal equipment, achieve the purpose of automatic error correction, reduce the time and power consumption of all system upgrades, and save labor The cost of maintaining terminal equipment.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是本发明一种基于在线服务的自动纠错的第一实施例流程图;Fig. 1 is a kind of flow chart of the first embodiment of the automatic error correction based on the online service of the present invention;

图2是本发明一种基于在线服务的自动纠错的第二实施例流程图;Fig. 2 is a flow chart of the second embodiment of an online service-based automatic error correction of the present invention;

图3是本发明一种终端设备的实施例示意图;FIG. 3 is a schematic diagram of an embodiment of a terminal device according to the present invention;

图4是本发明一种终端设备的下载模块实施例示意图;4 is a schematic diagram of an embodiment of a download module of a terminal device according to the present invention;

图5是本发明一种终端设备的捕获模块实施例示意图;5 is a schematic diagram of an embodiment of a capture module of a terminal device according to the present invention;

图6是本发明一种前端系统的实施例示意图。Fig. 6 is a schematic diagram of an embodiment of a front-end system of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

本发明基于在线服务的自动纠错的方法第一实施例流程如图1所示,其可包括:The flow of the first embodiment of the online service-based automatic error correction method of the present invention is shown in Figure 1, which may include:

步骤101:通过预设的异常捕获机制捕获应用程序中运行异常的模块。终端设备上电启动之后,用户操作应用程序。当应用程序发生逻辑错误出现异常,或者出现系统级别的异常,都通过相应的异常捕获机制,分析出当前出现的错误的模块。比如当系统为linux,可以通过back trace分析出当前出错的所述应用程序名称和相关的动态链接库文件,back trace是一种在嵌入式系统中通用的堆栈回归技术,可以通过寄存器值,指针地址,回归查找到当前正在被使用的库名称、库里面函数的名称以及当前执行到当前函数的所在行。当系统为android,可以通过java的异常捕获机制,反向查看到所述应用程序名称和对应的字节码文件。Step 101: Catch modules running abnormally in the application program through a preset exception catching mechanism. After the terminal device is powered on and started, the user operates the application program. When a logic error occurs in the application program or an exception occurs at the system level, the corresponding exception capture mechanism is used to analyze the currently occurring error module. For example, when the system is linux, the name of the application program and the related dynamic link library file that is currently in error can be analyzed through back trace. Back trace is a common stack regression technology in embedded systems. Address, return to find the name of the library currently being used, the name of the function in the library, and the line where the current function is currently executed. When the system is android, the name of the application program and the corresponding bytecode file can be viewed in reverse through the exception capture mechanism of java.

步骤102:根据所述捕获到的应用程序中运行异常的模块下载对应的更新文件。具体实施中,可通过相应的异常捕获机制,分析出当前出现的错误的模块后,提取错误的模块的参数信息,比如名称,版本信息,编译时间等,再发送所述应用程序中运行异常的模块的参数信息到前端服务器,前端服务器接收到运行异常的模块的参数信息后,进行判断处理,如果有最新的版本,则通知终端设备,进行下载对应的更新文件,终端设备从前端服务器下载所述应用程序中异常的模块的参数信息对应的更新文件。具体实施中,还可以把分析结果错误的模块的参数信息存放在系统的数据文件内。系统第二次重启后,自动去读取这个数据文件里面错误的模块的参数信息,把这些错误的模块的参数信息发送给服务器。Step 102: Download a corresponding update file according to the captured abnormally running modules in the application program. In the specific implementation, after analyzing the currently occurring error module through the corresponding exception capture mechanism, extract the parameter information of the error module, such as name, version information, compilation time, etc. The parameter information of the module is sent to the front-end server. After receiving the parameter information of the abnormally running module, the front-end server will judge and process it. If there is the latest version, it will notify the terminal device to download the corresponding update file. The update file corresponding to the parameter information of the module that describes the exception in the application. In specific implementation, the parameter information of the module whose analysis result is wrong can also be stored in the data file of the system. After the system restarts for the second time, it will automatically read the parameter information of the wrong modules in the data file, and send the parameter information of these wrong modules to the server.

步骤103:根据所述更新文件更新所述应用程序。具体实施中,终端设备在接收完毕相应的更新文件后,可将系统中出错的模块替换成最新更新文件中的模块,系统更新纠错成功,然后系统重启。Step 103: Update the application program according to the update file. In specific implementation, after the terminal device has received the corresponding update file, it can replace the modules with errors in the system with the modules in the latest update file, and the system updates and corrects the errors successfully, and then the system restarts.

实施本发明实施例可通过在线服务的方式,自动更新错误模块,达到自动纠错的目的。Implementing the embodiment of the present invention can automatically update the error module through online service, so as to achieve the purpose of automatic error correction.

本发明基于在线服务的自动纠错的方法的第二实施例流程如图2所示:The process of the second embodiment of the method for automatic error correction based on online services in the present invention is shown in Figure 2:

步骤201:检测到当前运行的所述应用程序异常。终端设备上电启动之后,用户操作应用程序。检测应用程序是否发生逻辑错误出现异常,或者出现系统级别的异常。Step 201: Detect that the currently running application program is abnormal. After the terminal device is powered on and started, the user operates the application program. Detect whether the application has a logic error or an exception, or a system-level exception.

步骤202a:通过back trace分析出当前出错的所述应用程序名称和相关的动态链接库文件。比如当系统为linux,可以通过back trace分析出当前出错的所述应用程序名称和相关的动态链接库文件。例如,当运行应用程序mediaplay时发生逻辑错误出现异常,可以通过back trace分析出当前出错的所述应用程序名称为mediaplay,相关的动态链接库文件为Libaudio_demux.so。Step 202a: Analyzing the name of the currently error-prone application program and the related dynamic link library file through back trace. For example, when the system is linux, the name of the application program and the related dynamic link library file that is currently in error can be analyzed through the back trace. For example, when a logical error occurs when the application program mediaplay is running, it can be analyzed through the back trace that the name of the currently error-prone application program is mediaplay, and the related dynamic link library file is Libaudio_demux.so.

步骤202b:通过java的异常捕获机制,反向查看到所述应用程序名称和对应的字节码文件。当系统为android,可以通过java的异常捕获机制,反向查看到所述应用程序名称和对应的字节码文件,以捕获应用程序中运行异常的模块。Step 202b: View the application program name and the corresponding bytecode file in reverse through the java exception capture mechanism. When the system is android, the name of the application program and the corresponding bytecode file can be viewed in reverse through the exception capture mechanism of java, so as to capture the abnormally running modules in the application program.

步骤203:发送所述应用程序中运行异常的模块的参数信息到前端服务器。通过相应的异常捕获机制,分析出当前出现的错误的模块后,提取错误的模块的参数信息,比如名称,版本信息,编译时间等,再发送所述应用程序中运行异常的模块的参数信息到前端服务器。例如,当前出错的所述应用程序名称为mediaplay,相关的动态链接库文件为Libaudio_demux.so,版本为2.10.04,编译时间为2013年5月4日9:40,将这些运行异常的模块的参数信息发送到前端服务器。Step 203: Send the parameter information of the abnormally running module in the application program to the front-end server. Through the corresponding exception capture mechanism, after analyzing the current wrong module, extract the parameter information of the wrong module, such as name, version information, compilation time, etc., and then send the parameter information of the abnormally running module in the application to front-end server. For example, the name of the currently error-prone application program is mediaplay, the related dynamic link library file is Libaudio_demux.so, the version is 2.10.04, and the compilation time is 9:40 on May 4, 2013. Parameter information is sent to the front-end server.

步骤204:前端系统根据所述参数信息比较版本库查询对应的更新文件。前端服务器接收到运行异常的模块的参数信息后,进行判断处理,如果有最新的版本,则通知终端设备,进行下载对应的更新文件。例如,前端服务器查找到有最新的版本,版本为2.10.06,编译时间为2013年6月4日9:50的动态链接库文件Libaudio_demux.so。Step 204: The front-end system compares the version library and queries the corresponding update file according to the parameter information. After receiving the parameter information of the abnormally running module, the front-end server performs judgment processing, and if there is the latest version, it notifies the terminal device to download the corresponding update file. For example, the front-end server finds the latest version, the dynamic link library file Libaudio_demux.so whose version is 2.10.06 and whose compilation time is 9:50 on June 4, 2013.

步骤205:前端系统发送所述参数信息对应的更新文件。Step 205: the front-end system sends the update file corresponding to the parameter information.

步骤206:从前端服务器下载所述应用程序中异常的模块的参数信息对应的更新文件。,终端设备从前端服务器下载所述应用程序中异常的模块的参数信息对应的更新文件。例如,终端设备从前端服务器下载版本为2.10.06,编译时间为2013年6月4日9:50的动态链接库文件Libaudio_demux.so。Step 206: Download the update file corresponding to the parameter information of the abnormal module in the application program from the front-end server. The terminal device downloads the update file corresponding to the parameter information of the abnormal module in the application program from the front-end server. For example, the terminal device downloads from the front-end server the dynamic link library file Libaudio_demux.so whose version is 2.10.06 and whose compilation time is 9:50 on June 4, 2013.

步骤207:根据所述更新文件更新所述应用程序。与前文实施例中的S103相同,本实施例中不再赘述。Step 207: Update the application program according to the update file. It is the same as S103 in the previous embodiment, and will not be repeated in this embodiment.

具体实施中,步骤202a和步骤202b可执行其中一个。In a specific implementation, one of step 202a and step 202b may be performed.

实施本发明实施例,通过提供一种在线服务的方式,在终端设备中内嵌异常捕获的程序和机制,通过对系统程序异常的捕获,然后访问在线服务,通过比较相应的设定参数,自动下载并更新系统内相应的错误模块,对终端设备内系统错误和逻辑错误的自动纠正,达到自动纠错的目的,减少了系统全部升级的时间和功耗,以及节省了人工维护终端设备的成本。Implementing the embodiment of the present invention, by providing an online service mode, the program and mechanism of abnormal capture are embedded in the terminal device, through the capture of the system program exception, and then access to the online service, by comparing the corresponding setting parameters, automatically Download and update the corresponding error modules in the system, automatically correct the system errors and logic errors in the terminal equipment, achieve the purpose of automatic error correction, reduce the time and power consumption of all system upgrades, and save the cost of manual maintenance of terminal equipment .

与本发明基于在线服务的自动纠错的方法的实施例相对应,本发明还提供了终端设备实施例。Corresponding to the embodiments of the online service-based automatic error correction method of the present invention, the present invention also provides embodiments of terminal equipment.

本发明终端设备的第一实施例框图如图3所示,本发明实施例中的终端设备可以实现在平板电脑、数字电视、机顶盒、手机上,该装置至少可以包括:捕获模块310、下载模块320、更新模块330。其中:The block diagram of the first embodiment of the terminal device of the present invention is shown in Figure 3. The terminal device in the embodiment of the present invention can be implemented on a tablet computer, a digital TV, a set-top box, or a mobile phone, and the device can at least include: a capture module 310, a download module 320. Update the module 330. in:

捕获模块310,用于通过预设的异常捕获机制捕获应用程序中运行异常的模块。终端设备上电启动之后,用户操作应用程序。当应用程序发生逻辑错误出现异常,或者出现系统级别的异常,捕获模块310通过相应的异常捕获机制,分析出当前出现的错误的模块。比如当系统为linux,捕获模块310可以通过backtrace分析出当前出错的所述应用程序名称和相关的动态链接库文件;当系统为android,捕获模块310可以通过java的异常捕获机制,反向查看到所述应用程序名称和对应的字节码文件。The capture module 310 is configured to capture the exception running in the application program through a preset exception capture mechanism. After the terminal device is powered on and started, the user operates the application program. When the application program has a logical error and an exception occurs, or a system-level exception occurs, the capture module 310 analyzes the currently occurring error module through a corresponding exception capture mechanism. For example, when the system is linux, the capture module 310 can analyze the name of the currently wrong application program and the relevant dynamic link library file through backtrace; when the system is android, the capture module 310 can reversely check the The name of the application program and the corresponding bytecode file.

下载模块320,用于根据所述捕获到的应用程序中运行异常的模块下载对应的更新文件。通过相应的异常捕获机制,分析出当前出现的错误的模块后,提取错误的模块的参数信息,比如名称,版本信息,编译时间等,再发送所述应用程序中运行异常的模块的参数信息到前端服务器,前端服务器接收到运行异常的模块的参数信息后,进行判断处理,如果有最新的版本,则通知终端设备,进行下载对应的更新文件,下载模块320从前端服务器下载所述应用程序中异常的模块的参数信息对应的更新文件。具体实施中,下载模块320还可以把分析结果错误的模块的参数信息存放在系统的数据文件内。系统第二次重启后,自动去读取这个数据文件里面错误的模块的参数信息,把这些错误的模块的参数信息发送给服务器。The download module 320 is configured to download a corresponding update file according to the captured abnormally running modules in the application program. Through the corresponding exception capture mechanism, after analyzing the current wrong module, extract the parameter information of the wrong module, such as name, version information, compilation time, etc., and then send the parameter information of the abnormally running module in the application to The front-end server, after the front-end server receives the parameter information of the module with abnormal operation, it will judge and process, if there is the latest version, it will notify the terminal equipment to download the corresponding update file, and the download module 320 downloads the application program from the front-end server. The update file corresponding to the parameter information of the abnormal module. In a specific implementation, the download module 320 may also store the parameter information of the module whose analysis result is wrong in the data file of the system. After the system restarts for the second time, it will automatically read the parameter information of the wrong modules in the data file, and send the parameter information of these wrong modules to the server.

更新模块330,用于根据所述更新文件更新所述应用程序。终端设备在接收完毕相应的更新文件后,更新模块330将系统中出错的模块替换成最新更新文件中的模块,系统更新纠错成功,然后系统重启。An update module 330, configured to update the application program according to the update file. After the terminal device receives the corresponding update file, the update module 330 replaces the faulty module in the system with the module in the latest update file, the system updates and corrects the error successfully, and then the system restarts.

可选的,终端设备进一步还可以包括以下模块:Optionally, the terminal device may further include the following modules:

报错模块340,用于当检测到当前运行的所述应用程序异常时,触发所述捕获模块通过预设的异常捕获机制捕获应用程序中运行异常的模块。终端设备上电启动之后,用户操作应用程序。报错模块340检测应用程序是否发生逻辑错误出现异常,或者出现系统级别的异常。The error reporting module 340 is configured to trigger the capture module to capture the abnormality in the application program through the preset exception capture mechanism when detecting the abnormality of the currently running application program. After the terminal device is powered on and started, the user operates the application program. The error reporting module 340 detects whether the application program has a logic error or an exception, or an exception at the system level.

具体的,如图4所示,所述下载模块320至少包括:Specifically, as shown in Figure 4, the download module 320 at least includes:

发送单元321,用于发送所述应用程序中运行异常的模块的参数信息到前端服务器。通过相应的异常捕获机制,分析出当前出现的错误的模块后,提取错误的模块的参数信息,比如名称,版本信息,编译时间等,发送单元321再发送所述应用程序中运行异常的模块的参数信息到前端服务器。例如,当前出错的所述应用程序名称为mediaplay,相关的动态链接库文件为Libaudio_demux.so,版本为2.10.04,编译时间为2013年5月4日9:40,发送单元321将这些运行异常的模块的参数信息发送到前端服务器。The sending unit 321 is configured to send the parameter information of the abnormally running module in the application program to the front-end server. Through the corresponding exception capture mechanism, after analyzing the currently occurring wrong module, the parameter information of the wrong module, such as name, version information, compilation time, etc., is extracted, and the sending unit 321 sends the information of the abnormally running module in the application program. parameter information to the front-end server. For example, the name of the application program currently making an error is mediaplay, the relevant dynamic link library file is Libaudio_demux.so, the version is 2.10.04, and the compilation time is 9:40 on May 4, 2013, and the sending unit 321 will run these abnormally. The parameter information of the module is sent to the front-end server.

下载单元322,用于从前端服务器下载所述应用程序中异常的模块的参数信息对应的更新文件。下载单元322从前端服务器下载所述应用程序中异常的模块的参数信息对应的更新文件。例如,下载单元322从前端服务器下载版本为2.10.06,编译时间为2013年6月4日9:50的动态链接库文件Libaudio_demux.so。The downloading unit 322 is configured to download the update file corresponding to the parameter information of the abnormal module in the application program from the front-end server. The downloading unit 322 downloads the update file corresponding to the parameter information of the abnormal module in the application program from the front-end server. For example, the download unit 322 downloads the dynamic link library file Libaudio_demux.so whose version is 2.10.06 and whose compilation time is 9:50 on June 4, 2013, from the front-end server.

具体的,如图5所示,所述捕获模块310至少包括:Specifically, as shown in FIG. 5, the capturing module 310 at least includes:

第一捕获单元311a,用于通过back trace分析出当前出错的所述应用程序名称和相关的动态链接库文件。比如当系统为linux,第一捕获单元311a可以通过back trace分析出当前出错的所述应用程序名称和相关的动态链接库文件。例如,当运行应用程序mediaplay时发生逻辑错误出现异常,第一捕获单元311a可以通过back trace分析出当前出错的所述应用程序名称为mediaplay,相关的动态链接库文件为Libaudio_demux.so。The first capture unit 311a is configured to analyze the name of the application program that currently fails and the related dynamic link library file through back trace. For example, when the system is linux, the first capture unit 311a can analyze the name of the application program and the related dynamic link library file that is currently in error through back trace analysis. For example, when a logic error occurs when the application program mediaplay is running, the first capture unit 311a can analyze the name of the currently errored application program as mediaplay and the related dynamic link library file is Libaudio_demux.so through back trace analysis.

第二捕获单元311b,用于通过java的异常捕获机制,反向查看到所述应用程序名称和对应的字节码文件。当系统为android,第二捕获单元311b可以通过java的异常捕获机制,反向查看到所述应用程序名称和对应的字节码文件,以捕获应用程序中运行异常的模块。The second capturing unit 311b is configured to reversely view the application program name and the corresponding bytecode file through the exception capturing mechanism of java. When the system is android, the second capturing unit 311b can reversely view the application program name and the corresponding bytecode file through the exception capturing mechanism of java, so as to capture the abnormally running modules in the application program.

具体实施中,更新模块330可包括第一捕获单元311a和第二捕获单元311b中一个。In a specific implementation, the update module 330 may include one of the first capturing unit 311a and the second capturing unit 311b.

具体的,如图6所示,所述前端系统包括:Specifically, as shown in Figure 6, the front-end system includes:

查询单元410,用于根据所述参数信息比较版本库查询对应的更新文件。前端服务器接收到运行异常的模块的参数信息后,进行判断处理,是否有有最新的版本。例如,前端服务器查找到有最新的版本,版本为2.10.06,编译时间为2013年6月4日9:50的动态链接库文件Libaudio_demux.so。The query unit 410 is configured to compare the version library and query the corresponding update file according to the parameter information. After the front-end server receives the parameter information of the abnormally running module, it judges whether there is the latest version. For example, the front-end server finds the latest version, the dynamic link library file Libaudio_demux.so whose version is 2.10.06 and whose compilation time is 9:50 on June 4, 2013.

发送单元420,用于发送所述参数信息对应的更新文件。实施本发明实施例,通过提供一种在线服务的方式,在终端设备中内嵌异常捕获的程序和机制,通过对系统程序异常的捕获,然后访问在线服务,通过比较相应的设定参数,自动下载并更新系统内相应的错误模块,对终端设备内系统错误和逻辑错误的自动纠正,达到自动纠错的目的,减少了系统全部升级的时间和功耗,以及节省了人工维护终端设备的成本。The sending unit 420 is configured to send an update file corresponding to the parameter information. Implementing the embodiment of the present invention, by providing an online service mode, the program and mechanism of abnormal capture are embedded in the terminal device, through the capture of the system program exception, and then access to the online service, by comparing the corresponding setting parameters, automatically Download and update the corresponding error modules in the system, automatically correct the system errors and logic errors in the terminal equipment, achieve the purpose of automatic error correction, reduce the time and power consumption of all system upgrades, and save the cost of manual maintenance of terminal equipment .

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), and the like.

以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosures are only preferred embodiments of the present invention, and certainly cannot limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.

Claims (10)

Translated fromChinese
1.一种基于在线服务的自动纠错的方法,其特征在于,包括:1. A method for automatic error correction based on online services, comprising:通过预设的异常捕获机制捕获应用程序中运行异常的模块;Catch modules that run abnormally in the application through the preset exception capture mechanism;根据所述捕获到的应用程序中运行异常的模块下载所述运行异常的模块对应的更新文件;downloading an update file corresponding to the abnormally operating module in the captured application program;根据所述更新文件更新所述应用程序;updating the application program according to the update file;所述通过预设的异常捕获机制捕获应用程序中运行异常的模块具体包括:The module that captures the abnormal operation in the application program through the preset exception capture mechanism specifically includes:通过back trace分析出当前出错的所述应用程序名称和相关的动态链接库文件;Analyzing the name of the currently wrong application program and the relevant dynamic link library file by back trace;或通过java的异常捕获机制,反向查看到所述应用程序名称和对应的字节码文件。Or through the exception capture mechanism of java, the application name and the corresponding bytecode file can be reversely viewed.2.根据权利要求1所述的方法,其特征在于,所述根据所述运行异常的模块下载所述运行异常的模块对应的文件包括:2. The method according to claim 1, wherein the downloading of the file corresponding to the abnormally operating module according to the abnormally operating module comprises:发送所述应用程序中运行异常的模块的参数信息到前端服务器;前端系统根据所述参数信息比较版本库查询对应的更新文件;Send the parameter information of the abnormally running module in the application program to the front-end server; the front-end system compares the version library according to the parameter information and queries the corresponding update file;前端系统发送所述参数信息对应的更新文件;The front-end system sends an update file corresponding to the parameter information;从前端服务器下载所述应用程序中异常的模块的参数信息对应的更新文件。An update file corresponding to the parameter information of the abnormal module in the application program is downloaded from the front-end server.3.根据权利要求1所述的方法,其特征在于,所述通过预设的异常捕获机制捕获应用程序中运行异常的模块之前还包括:3. The method according to claim 1, characterized in that, before the module that captures the abnormal operation in the application program through the preset exception capture mechanism, it also includes:检测到当前运行的所述应用程序异常。An exception was detected for the application currently running.4.根据权利要求1所述的方法,其特征在于,所述应用程序中运行异常的模块的参数信息包括名称、版本信息、编译时间中多种或任意一种。4. The method according to claim 1, wherein the parameter information of the abnormally running module in the application program includes multiple or any one of name, version information, and compilation time.5.一种终端设备,其特征在于,包括:5. A terminal device, characterized in that, comprising:捕获模块,用于通过预设的异常捕获机制捕获应用程序中运行异常的模块;The capture module is used to capture the abnormal running module in the application through the preset exception capture mechanism;下载模块,用于根据所述捕获到的应用程序中运行异常的模块下载所述运行异常的模块对应的更新文件;A download module, configured to download an update file corresponding to the abnormally operating module in the captured application program;更新模块,用于根据所述更新文件更新所述应用程序;an update module, configured to update the application program according to the update file;所述捕获模块具体包括:The capture module specifically includes:第一捕获单元,用于通过back trace分析出当前出错的所述应用程序名称和相关的动态链接库文件;The first capture unit is used to analyze the application program name and related dynamic link library files that are currently in error through back trace;第二捕获单元,用于通过java的异常捕获机制,反向查看到所述应用程序名称和对应的字节码文件。The second capturing unit is configured to reversely view the application program name and the corresponding bytecode file through the exception capturing mechanism of java.6.根据权利要求5所述的终端设备,其特征在于,所述下载模块包括:6. The terminal device according to claim 5, wherein the download module comprises:发送单元,用于发送所述应用程序中运行异常的模块的参数信息到前端服务器;A sending unit, configured to send parameter information of a module running abnormally in the application program to the front-end server;下载单元,用于从前端服务器下载所述应用程序中异常的模块的参数信息对应的更新文件。The downloading unit is configured to download from the front-end server the update file corresponding to the parameter information of the abnormal module in the application program.7.根据权利要求5所述的终端设备,其特征在于,还包括:7. The terminal device according to claim 5, further comprising:报错模块,用于当检测到当前运行的所述应用程序异常时,触发所述捕获模块通过预设的异常捕获机制捕获应用程序中运行异常的模块。The error reporting module is used to trigger the capture module to capture the abnormality in the application program through the preset exception capture mechanism when detecting the abnormality of the currently running application program.8.根据权利要求5所述的终端设备,其特征在于,所述运行异常的模块的参数信息包括名称、版本信息、编译时间中多种或任意一种。8. The terminal device according to claim 5, wherein the parameter information of the abnormally running module includes multiple or any one of name, version information, and compilation time.9.一种前端系统,其特征在于,包括:9. A front-end system, characterized in that, comprising:查询单元,用于根据终端设备发送的应用程序中运行异常的模块的参数信息,比较版本库查询对应的更新文件,其中所述应用程序中运行异常的模块是所述终端设备通过back trace分析出当前出错的所述应用程序名称和相关的动态链接库文件或通过java的异常捕获机制反向查看到所述应用程序名称和对应的字节码文件;The query unit is configured to compare the version library and query the corresponding update file according to the parameter information of the abnormally running module in the application program sent by the terminal device, wherein the abnormally running module in the application program is analyzed by the terminal device through back trace The name of the application program and the relevant dynamic link library file that are currently in error or reversely view the name of the application program and the corresponding bytecode file through the exception capture mechanism of java;发送单元,用于发送所述参数信息对应的更新文件。A sending unit, configured to send an update file corresponding to the parameter information.10.一种基于在线服务的自动纠错的系统,其特征在于,包括如权利要求5-8任一项所述的终端设备和如权利要求9所述的前端系统。10. An online service-based automatic error correction system, characterized by comprising the terminal device according to any one of claims 5-8 and the front-end system according to claim 9.
CN201310213110.1A2013-05-312013-05-31A kind of method and system of automatic error-correcting based on online serviceExpired - Fee RelatedCN103309761B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201310213110.1ACN103309761B (en)2013-05-312013-05-31A kind of method and system of automatic error-correcting based on online service

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201310213110.1ACN103309761B (en)2013-05-312013-05-31A kind of method and system of automatic error-correcting based on online service

Publications (2)

Publication NumberPublication Date
CN103309761A CN103309761A (en)2013-09-18
CN103309761Btrue CN103309761B (en)2016-12-28

Family

ID=49135013

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201310213110.1AExpired - Fee RelatedCN103309761B (en)2013-05-312013-05-31A kind of method and system of automatic error-correcting based on online service

Country Status (1)

CountryLink
CN (1)CN103309761B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105511848B (en)*2014-09-262020-03-03腾讯科技(深圳)有限公司Detection method and device for dynamic link library
CN104572327A (en)*2014-12-242015-04-29北京奇虎科技有限公司Method, device and system for processing browser crash
CN106790895B (en)*2015-11-252020-07-24北京搜狗科技发展有限公司Fault processing method and device
CN107193597A (en)*2017-05-192017-09-22深圳市金立通信设备有限公司A kind of application program update method and terminal
CN107635001A (en)*2017-09-202018-01-26北京京东尚科信息技术有限公司Web scripts abnormality eliminating method and device
CN108829416A (en)*2018-05-302018-11-16维沃移动通信有限公司A kind of upgrading recommended method, server and terminal
CN112486533A (en)*2020-11-252021-03-12四川长虹电器股份有限公司Application program updating method and system of smart television
CN112783540A (en)*2020-12-312021-05-11北京百度网讯科技有限公司Method and device for updating service data in application program, electronic equipment and medium
WO2023272570A1 (en)*2021-06-302023-01-05华为技术有限公司Method for updating electronic control unit (ecu), ecu, and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JPH0830460A (en)*1994-07-131996-02-02Nec CorpApplication program switching system by downloading process
CN102855181B (en)*2011-07-012016-04-13腾讯科技(深圳)有限公司Software repair and system
CN103034560B (en)*2011-09-292015-11-11腾讯科技(深圳)有限公司A kind of method, Apparatus and system repairing application software
CN102810138B (en)*2012-06-192015-12-02北京奇虎科技有限公司A kind of restorative procedure of user side file and system

Also Published As

Publication numberPublication date
CN103309761A (en)2013-09-18

Similar Documents

PublicationPublication DateTitle
CN103309761B (en)A kind of method and system of automatic error-correcting based on online service
CN103530199B (en)A kind of method, Apparatus and system repairing running software mistake
CN110309029B (en)Abnormal data acquisition method and device, computer equipment and storage medium
CN106843957B (en)System firmware upgrading method and device
US9612936B2 (en)Correlation of source code with system dump information
CN105630682A (en)System and method for automatically collecting and analyzing collapse of mobile terminal
CN104461786B (en)The restoration methods of android system and the recovery system of android system
CN103428333B (en)Mobile terminal, server and errors repair method
CN110554962A (en)Regression testing process covering method, server and computer readable storage medium
CN104572327A (en)Method, device and system for processing browser crash
WO2015131643A1 (en)Software detection method and device
CN102306119A (en)System for capturing global exception and method
CN113037521B (en)Method for identifying state of communication equipment, communication system and storage medium
CN106897166B (en)Mobile terminal and repairing method thereof
CN107026865A (en)Anomalous event processing method and system, client and service end
CN110851339A (en)Method and device for reporting buried point data, storage medium and terminal equipment
CN104049999A (en)Automatic storage device repair system based on network and method thereof
US20180173607A1 (en)Software Defect Detection Tool
CN113934617A (en)Data processing method, device, equipment and storage medium
CN104182416A (en)File downloading system and method
CN103150223A (en)Method for preventing epon terminal equipment from being damaged and epon terminal equipment
CN106557379B (en)Method and device for generating silent installation package
CN116991724A (en)Interface testing method and device based on monitoring log, electronic equipment and storage medium
CN116302738A (en)Method, system, equipment and storage medium for testing chip
CN112328287B (en)Method, device, equipment and storage medium for updating embedded equipment system

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information

Address after:518000 Guangdong city of Shenzhen province Nanshan District Gao Xin Road Building A14, SKYWORTH

Applicant after:SHENZHEN SKYWORTH DIGITAL TECHNOLOGY Co.,Ltd.

Applicant after:SHENZHEN SKYWORTH SOFTWARE Co.,Ltd.

Address before:518000 Guangdong city of Shenzhen province Nanshan District Gao Xin Road Building A14, SKYWORTH

Applicant before:SHENZHEN SKYWORTH DIGITAL TECHNOLOGY Co.,Ltd.

Applicant before:SHENZHEN SKYWORTH SOFTWARE Co.,Ltd.

CORChange of bibliographic data
C14Grant of patent or utility model
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20161228


[8]ページ先頭

©2009-2025 Movatter.jp