WO2016045202A1 - 电子设备复位处理方法及装置 - Google Patents

电子设备复位处理方法及装置 Download PDF

Info

Publication number
WO2016045202A1
WO2016045202A1 PCT/CN2014/093777 CN2014093777W WO2016045202A1 WO 2016045202 A1 WO2016045202 A1 WO 2016045202A1 CN 2014093777 W CN2014093777 W CN 2014093777W WO 2016045202 A1 WO2016045202 A1 WO 2016045202A1
Authority
WO
WIPO (PCT)
Prior art keywords
reset
electronic device
reset processing
preset
file
Prior art date
Application number
PCT/CN2014/093777
Other languages
English (en)
French (fr)
Inventor
詹翠丹
Original Assignee
深圳Tcl数字技术有限公司
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 深圳Tcl数字技术有限公司 filed Critical 深圳Tcl数字技术有限公司
Publication of WO2016045202A1 publication Critical patent/WO2016045202A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements

Definitions

  • the present invention relates to the field of terminal technologies, and in particular, to an electronic device reset processing method and apparatus.
  • the work efficiency greatly reduces the reset time, resulting in the reset not completing the direct power-off package processing. Therefore, the electronic product is not normally reset, and the stability of the system operation is poor when the user uses it or
  • the main purpose of the present invention is to improve the success rate of resetting and improve the stability of system operation.
  • an electronic device reset processing method provided by the present invention includes the following steps:
  • the preset reset program is called to reset the data
  • the record file is stored in a preset storage area, and when the reset is successful, the record file is deleted;
  • step D when the electronic device is started again, detecting whether the record file exists in the preset storage area; if yes, step E is performed, and if not, step F is performed;
  • the method further includes:
  • step G judge whether the reset is successful; if yes, execute step H, otherwise perform step E;
  • the method further includes:
  • step H It is determined whether the reset number reaches the preset value; if yes, step H is performed, otherwise step E is performed.
  • the method further includes:
  • the log file is sent to the server.
  • the method further includes:
  • the number of resets is obtained according to reset processing status information recorded in the log file.
  • the electronic device is a television set.
  • the present invention further provides an electronic device reset processing apparatus, including:
  • the calling module is configured to call a preset reset program to reset the data when receiving the reset request;
  • a file creation module configured to create a record file for recording reset processing status information according to the reset request
  • a storage module configured to store the record file into a preset storage area, and delete the record file when the reset is successful
  • a file detecting module configured to detect whether the record file exists in the preset storage area when the electronic device is started again;
  • the calling module is further configured to: when the recording file exists in the preset storage area, call the preset reset program to reset data;
  • a startup module configured to directly start the electronic device when the recording file does not exist in the preset storage area.
  • the electronic device reset processing device further includes:
  • a first determining module configured to determine whether the reset is successful again
  • control module configured to: when the reset is successful again, control the electronic device to start, and modify the name of the record file
  • the calling module is further configured to: when the reset is unsuccessful, call the preset reset program again to perform reset processing on the data.
  • the electronic device reset processing device further includes:
  • a second determining module configured to determine whether the reset number reaches a preset value
  • the control module is further configured to: when the reset times reach a preset value, control the electronic device to start, and modify a name of the record file;
  • the calling module is further configured to: when the number of resets does not reach the preset value, call the preset reset program to reset the data.
  • the electronic device reset processing device further includes:
  • a network detection module configured to detect a network connection status of the electronic device
  • a sending module configured to send the log file to the server after the electronic device establishes a connection with the network.
  • the electronic device reset processing device further includes:
  • an obtaining module configured to acquire the reset times according to the reset processing state information recorded in the log file.
  • the electronic device is a television set.
  • the embodiment of the present invention records a reset processing state information by creating a log file, and deletes the log file when the reset is completed, and retains the log file when the reset is not completed. Detected by starting again
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for resetting an electronic device according to the present invention
  • FIG. 2 is a schematic flowchart of a second embodiment of a method for resetting an electronic device according to the present invention
  • FIG. 3 is a schematic flowchart of a third embodiment of an electronic device reset processing method according to the present invention.
  • FIG. 4 is a schematic flowchart of a fourth embodiment of an electronic device reset processing method according to the present invention.
  • FIG. 5 is a schematic diagram of functional modules of a first embodiment of an electronic device reset processing apparatus according to the present invention.
  • FIG. 6 is a schematic diagram of functional modules of a second embodiment of an electronic device reset processing apparatus according to the present invention.
  • FIG. 7 is a schematic diagram of functional modules of a third embodiment of an electronic device reset processing apparatus according to the present invention.
  • FIG. 8 is a schematic diagram of functional modules of a fourth embodiment of an electronic device reset processing apparatus according to the present invention.
  • the electronic device reset processing method includes:
  • Step S10 when receiving the reset request, calling a preset reset program to reset the data
  • the electronic device reset processing method provided by the embodiment of the invention is mainly applied to the electronic device factory reset process, so that the test data needs to be reset before the electronic device leaves the factory.
  • the electronic device can
  • any of the terminal devices having a reset function such as a mobile phone, a television, a PC, etc.; in the embodiment, the electronic device is preferably a mobile phone or a television. Factory reset program is set in the electronic device
  • the factory operator can manually input the reset request; after the electronic device receives the reset request, the pre-stored reset program is called according to the reset request to reset the data, that is, the number of tests
  • Step S11 creating a record file for recording reset processing state information according to the reset request
  • the foregoing record file includes txt, xml, and the like, and the specific format may be set according to actual needs, and is not further limited herein. Specifically, after receiving a reset request input by the user
  • the file creation is performed by calling the create file command in the programming languages such as C, C++, Android, etc., and the record file is obtained; and the program language such as C, C++, Android, etc. can be called.
  • the written and modified program language in the statement edits the information recorded in the log file.
  • Step S12 storing the record file into a preset storage area, and deleting the record file when the reset is successful;
  • the preset storage area is a partition that is not covered by the deletion in the electronic device, and prevents the record file from being deleted directly during the reset process. During the reset process, the information of the reset processing is stored to the record.
  • the log file records the number of factory resets, the file information for each reset, and the device information (for example, a television device number).
  • Step S13 when the electronic device is started again, detecting whether the record file exists in the preset storage area; if yes, executing step S14, and if not, executing step S15;
  • Step S14 calling the preset reset program again to reset the data
  • step S15 the electronic device is directly activated.
  • the reset process is monitored in real time. Before the factory reset is completed, there is no power failure. After the factory reset is completed normally, the factory reset program will be deleted directly by the command to delete the file.
  • the electronic device After the electronic device is shipped from the factory, when the user starts the electronic device for the first time, it first detects whether the record file exists in the preset storage area, and when there is no record file, it indicates that the last factory reset has been completed.
  • the embodiment of the present invention records a reset processing state information by creating a log file, and deletes the log file when the reset is completed, and retains the log file when the reset is not completed. Detected by starting again
  • the method further includes:
  • Step S16 it is determined whether the reset is successful; if yes, step S17 is performed, otherwise step S14 is performed;
  • Step S17 controlling the electronic device to start, and modifying the name of the record file.
  • the method before the step S14, the method further includes:
  • step S18 it is determined whether the number of resets reaches a preset value; if yes, step S17 is performed, otherwise step S14 is performed.
  • the number of resets may be acquired according to the reset processing state information recorded in the record file before step S18; the preset value may be set according to actual needs.
  • the preset value may be set according to actual needs.
  • the control electronic device After the reset is failed again, it is first determined whether the current reset number is greater than a preset value. When the reset count is greater than the preset value, the control electronic device is started; and the name of the record file is modified to prevent the next startup.
  • the reset processing state information in the log file is acquired, and according to the reset processing state information, it is determined whether the reset of the electronic device is successful, when the reset is not
  • the output prompt message prompts the user that the currently used electronic device has failed to reset. It is recommended to replace the electronic device.
  • the method further includes:
  • Step S19 detecting a network connection status of the electronic device.
  • Step S20 After the electronic device establishes a connection with the network, the record file is sent to the server.
  • the network of the electronic device is monitored in real time.
  • the record file is sent to the server through an HTTP request, so that the server can
  • the present invention further provides an electronic device reset processing device.
  • the electronic device reset processing device provided by the present invention includes:
  • the calling module 100 is configured to call a preset reset program to reset data when receiving the reset request;
  • the electronic device reset processing method provided by the embodiment of the invention is mainly applied to the electronic device factory reset process, so that the test data needs to be reset before the electronic device leaves the factory.
  • the electronic device can
  • Any terminal device having a reset function such as a mobile phone, a television, a PC, etc.; in the embodiment, the electronic device is preferably a television.
  • a factory reset program is set in the electronic device, which is shipped from the factory.
  • the factory operator can manually input the reset request; after the electronic device receives the reset request, the pre-stored reset program is called according to the reset request to reset the data, that is, the test data is deleted.
  • a file creation module 110 configured to create a record file for recording reset process status information according to the reset request
  • the foregoing record file includes txt, xml, and the like, and the specific format may be set according to actual needs, and is not further limited herein. Specifically, after receiving a reset request input by the user
  • the file creation is performed by calling the create file command in the programming languages such as C, C++, Android, etc., and the record file is obtained; and the program language such as C, C++, Android, etc. can be called.
  • the written and modified program language in the statement edits the information recorded in the log file.
  • the storage module 120 is configured to store the record file into a preset storage area, and delete the record file when the reset is successful;
  • the preset storage area is a partition that is not covered by the deletion in the electronic device, and prevents the record file from being deleted directly during the reset process. During the reset process, the information of the reset processing is stored to the record.
  • the log file records the number of factory resets, the file information for each reset, and the device information (for example, a television device number).
  • the file detection module 130 is configured to detect whether the record file exists in the preset storage area when the electronic device is started again;
  • the calling module 100 is further configured to: when the recording file exists in the preset storage area, call the preset reset program to reset data;
  • the startup module 140 is configured to directly start the electronic device when the recording file does not exist in the preset storage area.
  • the reset process is monitored in real time. Before the factory reset is completed, there is no power failure. After the factory reset is completed normally, the factory reset program will be deleted directly by the command to delete the file.
  • the electronic device After the electronic device is shipped from the factory, when the user starts the electronic device for the first time, it first detects whether the record file exists in the preset storage area, and when there is no record file, it indicates that the last factory reset has been completed.
  • the embodiment of the present invention records a reset processing state information by creating a log file, and deletes the log file when the reset is completed, and retains the log file when the reset is not completed. Detected by starting again
  • the electronic device reset processing apparatus further includes:
  • the first determining module 150 is configured to determine whether the reset is successful again;
  • the control module 160 is configured to, when the reset is successful again, control the electronic device to start, and modify the name of the record file;
  • the calling module 100 is further configured to: when the reset is unsuccessful, the preset reset program is called again to perform reset processing on the data.
  • the electronic device reset processing apparatus further includes:
  • the second determining module 170 is configured to determine whether the reset number reaches a preset value
  • the control module 160 is further configured to: when the reset times reach a preset value, control the electronic device to start, and modify a name of the record file;
  • the calling module 100 is further configured to: when the number of resets does not reach the preset value, call the preset reset program again to perform reset processing on the data.
  • an obtaining module may be configured to acquire the reset times according to the reset processing state information recorded in the log file; the preset value may be set according to actual needs.
  • the preset value may be set according to actual needs.
  • the control electronic device After the reset is failed again, it is first determined whether the current reset number is greater than a preset value. When the reset count is greater than the preset value, the control electronic device is started; and the name of the record file is modified to prevent the next startup.
  • the reset processing state information in the log file is acquired, and according to the reset processing state information, it is determined whether the reset of the electronic device is successful, when the reset is not
  • the output prompt message prompts the user that the currently used electronic device has failed to reset. It is recommended to replace the electronic device.
  • the electronic device reset processing apparatus further includes:
  • the network detection module 180 is configured to detect a network connection status of the electronic device.
  • the sending module 190 is configured to send the log file to the server after the electronic device establishes a connection with the network.
  • the network of the electronic device is monitored in real time.
  • the record file is sent to the server through an HTTP request, so that the server can

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

一种电子设备复位处理方法,包括:A、接收到复位请求时,调用预置的复位程序对数据进行复位处理(S10);B、根据所述复位请求创建一用于记录复位处理状态信息的记录文件(S11);C、将所述记录文件储存至预置的储存区域内,并当成功复位时,删除所述记录文件(S12);D、当所述电子设备再次启动时,检测所述预置存储区域内是否存在所述记录文件(S13);若是,则执行步骤E,若否,则执行步骤F;E、再次调用所述预置的复位程序对数据进行复位处理(S14);F、直接启动所述电子设备(S15)。提高了复位成功率,进而提高了系统运行的稳定性。

Description

电子设备复位处理方法及装置
技术领域
本发明涉及终端技术领域,尤其涉及电子设备复位处理方法及装置。
背景技术
由于电子设备在生产的时候,都需要对每个电子产品的功能进行验证,这样就需要在流向市场的时候,需要对生产的电子设备数据的清空或者恢复到原
始状态。也往往是在生产的最后一个卡位上,电子产品进行数据清空和数据恢复的操作,紧跟着就是断电打包装机。作业人员在作业时,往往为了提高
工作效率,极大程度的降低了复位时间,导致复位未完成直接断电打包处理。从而使得电子产品未正常复位,在用户使用时,系统运行的稳定性较差或
者有使用痕迹。
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。
发明内容
本发明的主要目的在于提高复位成功率,提高系统运行的稳定性。
为实现上述目的,本发明提供的一种电子设备复位处理方法包括以下步骤:
A、接收到复位请求时,调用预置的复位程序对数据进行复位处理;
B、根据所述复位请求创建一用于记录复位处理状态信息的记录文件;
C、将所述记录文件储存至预置的储存区域内,并当成功复位时,删除所述记录文件;
D、当所述电子设备再次启动时,检测所述预置存储区域内是否存在所述记录文件;若是,则执行步骤E,若否,则执行步骤F;
E、再次调用所述预置的复位程序对数据进行复位处理;
F、直接启动所述电子设备。
优选地,所述步骤E之后还包括:
G、判断再次复位是否成功;若是,则执行步骤H,否则执行步骤E;
H、控制所述电子设备启动,并修改所述记录文件的名称。
优选地,所述步骤E之前还包括:
判断复位次数是否达到预设值;若是,则执行步骤H,否则执行步骤E。
优选地,所述步骤H之后还包括:
检测所述电子设备的网络连接状态;
当所述电子设备与网络建立连接后,将所述记录文件发送至服务器。
优选地,所述判断复位次数是否达到预设值之前还包括:
根据所述记录文件中记录的复位处理状态信息获取所述复位次数。
优选地,所述电子设备为电视机。
此外,为实现上述目的,本发明还提供一种电子设备复位处理装置包括:
调用模块,用于接收到复位请求时,调用预置的复位程序对数据进行复位处理;
文件创建模块,用于根据所述复位请求创建一用于记录复位处理状态信息的记录文件;
存储模块,用于将所述记录文件储存至预置的储存区域内,并当成功复位时,删除所述记录文件;
文件检测模块,用于当所述电子设备再次启动时,检测所述预置存储区域内是否存在所述记录文件;
所述调用模块,还用于当所述预置存储区域内存在所述记录文件时,再次调用所述预置的复位程序对数据进行复位处理;
启动模块,用于当所述预置存储区域内不存在所述记录文件时,直接启动所述电子设备。
优选地,所述电子设备复位处理装置还包括:
第一判断模块,用于判断再次复位是否成功;
控制模块,用于当再次复位成功时,控制所述电子设备启动,并修改所述记录文件的名称;
所述调用模块,还用于当再次复位不成功时,再次调用所述预置的复位程序对数据进行复位处理。
优选地,所述电子设备复位处理装置还包括:
第二判断模块,用于判断复位次数是否达到预设值;
所述控制模块,还用于当复位次数达到预设值时,控制所述电子设备启动,并修改所述记录文件的名称;
所述调用模块,还用于当复位次数未达到预设值时,再次调用所述预置的复位程序对数据进行复位处理。
优选地,所述电子设备复位处理装置还包括:
网络检测模块,用于检测所述电子设备的网络连接状态;
发送模块,用于当所述电子设备与网络建立连接后,将所述记录文件发送至服务器。
优选地,所述电子设备复位处理装置还包括:
获取模块,用于根据所述记录文件中记录的复位处理状态信息获取所述复位次数。
优选地,所述电子设备为电视机。
本发明实施例通过创建一记录文件用于记录复位处理状态信息,并在复位完成时删除记录文件,在复位未完成时,保留记录文件。通过再次启动时检测
是否存在记录文件,从而确定上次复位是否成功,当复位不成功时,再次调用复位程序进行复位,从而提高了复位成功率,因此提高了系统运行的稳定
性。
附图说明
图1为本发明电子设备复位处理方法第一实施例的流程示意图;
图2为本发明电子设备复位处理方法第二实施例的流程示意图;
图3为本发明电子设备复位处理方法第三实施例的流程示意图;
图4为本发明电子设备复位处理方法第四实施例的流程示意图;
图5为本发明电子设备复位处理装置第一实施例的功能模块示意图;
图6为本发明电子设备复位处理装置第二实施例的功能模块示意图;
图7为本发明电子设备复位处理装置第三实施例的功能模块示意图;
图8为本发明电子设备复位处理装置第四实施例的功能模块示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明提供一种电子设备复位处理方法,参照图1,在一实施例中,该电子设备复位处理方法包括:
步骤S10,接收到复位请求时,调用预置的复位程序对数据进行复位处理;
本发明实施例提供的电子设备复位处理方法主要应用于电子设备工厂复位流程,以对电子设备出厂前都需要测试数据进行复位。具体地,该电子设备可
以为任一具有复位功能的终端设备,例如手机、电视机、PC等;本实施例中上述电子设备优选为手机或者电视机。在电子设备中均设置有工厂复位程序
,在出厂前,工厂作业人员可手动输入复位请求;在电子设备接收到该复位请求后,根据该复位请求调用预存的复位程序对数据进行复位,即将测试数
据进行删除或者恢复到原始状态。
步骤S11,根据所述复位请求创建一用于记录复位处理状态信息的记录文件;
本实施例中,上述记录文件包括txt、xml等,其具体格式可根据实际需要进行设置,在此不作进一步地限定。具体地,当接收到用户输入的复位请求后
,根据该复位请求,通过调用C、C++、Android等程序语言中的创建文件命令进行文件创建,得到记录文件;并可以通过调用C、C++、Android等程序语
言中的写入和修改程序语言对记录文件中记录的信息进行编辑。
步骤S12,将所述记录文件储存至预置的储存区域内,并当成功复位时,删除所述记录文件;
上述预置的存储区域为电子设备中不被删除覆盖的分区,防止在复位的过程中直接将该记录文件删除。在复位的过程中,将复位处理的信息储存至记录
文件中,形成记录详情。具体地,该记录文件记录的了进行工厂复位的次数,每一次复位删除的文件信息,以及设备信息(例如电视设备号)。
步骤S13,当所述电子设备再次启动时,检测所述预置存储区域内是否存在所述记录文件;若是,则执行步骤S14,若否,则执行步骤S15;
步骤S14,再次调用所述预置的复位程序对数据进行复位处理;
步骤S15,直接启动所述电子设备。
在进行工厂复位时,实时监测复位进程,当工厂复位完成前,未存在断电情况,工厂复位正常完成后,将通过删除文件的命令直接删除工厂复位程序。
当工厂复位完成前,产生断电现象,使得工厂复位未完成,未执行删除文件的命令,使得记录文件保留。
在电子设备出厂后,由用户第一次启动电子设备时,首先检测预置存储区域内是否存在所述记录文件,当不存在记录文件则表示上次工厂复位已经完成
可直接进入正常的启动程序。当存在记录文件时,则表示上次工厂复位异常,此时则再次调用所述预置的复位程序对数据进行复位处理,以完成工厂复
位。保证电子设备系统运行的稳定性。
本发明实施例通过创建一记录文件用于记录复位处理状态信息,并在复位完成时删除记录文件,在复位未完成时,保留记录文件。通过再次启动时检测
是否存在记录文件,从而确定上次复位是否成功,当复位不成功时,再次调用复位程序进行复位,从而提高了复位成功率,因此提高了系统运行的稳定
性。
进一步地,参照图2,基于上述实施例,本实施例中,上述步骤S14之后还包括:
步骤S16,判断再次复位是否成功;若是,则执行步骤S17,否则执行步骤S14;
步骤S17,控制所述电子设备启动,并修改所述记录文件的名称。
本实施例中,当再次调用所述预置的复位程序对数据进行复位处理后,实时监测复位是否成功,当复位成功后,修改记录文件的名称,从而防止在下一
次启动时,仍然检测到记录文件,导致再次运行复位程序。当复位未成功时,继续调用预置的复位程序对数据进行复位处理。
进一步地,参照图3,基于上述实施例,本实施例中,上述步骤S14之前还包括:
步骤S18,判断复位次数是否达到预设值;若是,则执行步骤S17,否则执行步骤S14。
具体地,可以在步骤S18之前根据所述记录文件中记录的复位处理状态信息获取所述复位次数;上述预设值可根据实际需要进行设置。本实施例中,在
再次复位失败后,首先判断当前复位的次数是否大于预设值,当复位次数大于预设值时,控制电子设备启动;并修改记录文件的名称,防止下次启动时
继续进入复位状态。
本实施例中由于对复位的次数进行限制,从而防止了多次复位无法正常启动。
进一步地,本实施例中,当电子设备启动后,获取记录文件中的复位处理状态信息,根据该复位处理状态信息判断电子设备的复位是否成功,当复位未
成功时,输出提示信息提示用户当前使用的电子设备复位失败,建议更换电子设备。
进一步地,参照图4,基于上述实施例,本实施例中,上述步骤S17之后还包括:
步骤S19,检测所述电子设备的网络连接状态;
步骤S20,当所述电子设备与网络建立连接后,将所述记录文件发送至服务器。
本实施例中,在电子设备开启后,实时监测电子设备的网络是否连接,当网络正常连接时,将记录文件通过HTTP请求发送给服务器,以供服务器根据该
记录文件的内容判断当前系统的稳定性,是否有bug修改等。然后将最新的系统或漏洞反馈给电子设备,以供电子设备进行升级,保证系统运行的稳定
性。
本发明还提供一种电子设备复位处理装置,参照图5,在一实施例中,本发明提供的电子设备复位处理装置包括:
调用模块100,用于接收到复位请求时,调用预置的复位程序对数据进行复位处理;
本发明实施例提供的电子设备复位处理方法主要应用于电子设备工厂复位流程,以对电子设备出厂前都需要测试数据进行复位。具体地,该电子设备可
以为任一具有复位功能的终端设备,例如手机、电视机、PC等;本实施例中上述电子设备优选为电视机。在电子设备中均设置有工厂复位程序,在出厂
前,工厂作业人员可手动输入复位请求;在电子设备接收到该复位请求后,根据该复位请求调用预存的复位程序对数据进行复位,即将测试数据进行删
除或者恢复到原始状态。
文件创建模块110,用于根据所述复位请求创建一用于记录复位处理状态信息的记录文件;
本实施例中,上述记录文件包括txt、xml等,其具体格式可根据实际需要进行设置,在此不作进一步地限定。具体地,当接收到用户输入的复位请求后
,根据该复位请求,通过调用C、C++、Android等程序语言中的创建文件命令进行文件创建,得到记录文件;并可以通过调用C、C++、Android等程序语
言中的写入和修改程序语言对记录文件中记录的信息进行编辑。
存储模块120,用于将所述记录文件储存至预置的储存区域内,并当成功复位时,删除所述记录文件;
上述预置的存储区域为电子设备中不被删除覆盖的分区,防止在复位的过程中直接将该记录文件删除。在复位的过程中,将复位处理的信息储存至记录
文件中,形成记录详情。具体地,该记录文件记录的了进行工厂复位的次数,每一次复位删除的文件信息,以及设备信息(例如电视设备号)。
文件检测模块130,用于当所述电子设备再次启动时,检测所述预置存储区域内是否存在所述记录文件;
所述调用模块100,还用于当所述预置存储区域内存在所述记录文件时,再次调用所述预置的复位程序对数据进行复位处理;
启动模块140,用于当所述预置存储区域内不存在所述记录文件时,直接启动所述电子设备。
在进行工厂复位时,实时监测复位进程,当工厂复位完成前,未存在断电情况,工厂复位正常完成后,将通过删除文件的命令直接删除工厂复位程序。
当工厂复位完成前,产生断电现象,使得工厂复位未完成,未执行删除文件的命令,使得记录文件保留。
在电子设备出厂后,由用户第一次启动电子设备时,首先检测预置存储区域内是否存在所述记录文件,当不存在记录文件则表示上次工厂复位已经完成
可直接进入正常的启动程序。当存在记录文件时,则表示上次工厂复位异常,此时则再次调用所述预置的复位程序对数据进行复位处理,以完成工厂复
位。保证电子设备系统运行的稳定性。
本发明实施例通过创建一记录文件用于记录复位处理状态信息,并在复位完成时删除记录文件,在复位未完成时,保留记录文件。通过再次启动时检测
是否存在记录文件,从而确定上次复位是否成功,当复位不成功时,再次调用复位程序进行复位,从而提高了复位成功率,因此提高了系统运行的稳定
性。
进一步地,参照图6,基于上述实施例,本实施例中,上述电子设备复位处理装置还包括:
第一判断模块150,用于判断再次复位是否成功;
控制模块160,用于当再次复位成功时,控制所述电子设备启动,并修改所述记录文件的名称;
所述调用模块100,还用于当再次复位不成功时,再次调用所述预置的复位程序对数据进行复位处理。
本实施例中,当再次调用所述预置的复位程序对数据进行复位处理后,实时监测复位是否成功,当复位成功后,修改记录文件的名称,从而防止在下一
次启动时,仍然检测到记录文件,导致再次运行复位程序。当复位未成功时,继续调用预置的复位程序对数据进行复位处理。
进一步地,参照图7,基于上述实施例,本实施例中,上述电子设备复位处理装置还包括:
第二判断模块170,用于判断复位次数是否达到预设值;
所述控制模块160,还用于当复位次数达到预设值时,控制所述电子设备启动,并修改所述记录文件的名称;
所述调用模块100,还用于当复位次数未达到预设值时,再次调用所述预置的复位程序对数据进行复位处理。
具体地,可以设置一获取模块根据所述记录文件中记录的复位处理状态信息获取所述复位次数;上述预设值可根据实际需要进行设置。本实施例中,在
再次复位失败后,首先判断当前复位的次数是否大于预设值,当复位次数大于预设值时,控制电子设备启动;并修改记录文件的名称,防止下次启动时
继续进入复位状态。
本实施例中由于对复位的次数进行限制,从而防止了多次复位无法正常启动。
进一步地,本实施例中,当电子设备启动后,获取记录文件中的复位处理状态信息,根据该复位处理状态信息判断电子设备的复位是否成功,当复位未
成功时,输出提示信息提示用户当前使用的电子设备复位失败,建议更换电子设备。
进一步地,参照图8,基于上述实施例,本实施例中,上述电子设备复位处理装置还包括:
网络检测模块180,用于检测所述电子设备的网络连接状态;
发送模块190,用于当所述电子设备与网络建立连接后,将所述记录文件发送至服务器。
本实施例中,在电子设备开启后,实时监测电子设备的网络是否连接,当网络正常连接时,将记录文件通过HTTP请求发送给服务器,以供服务器根据该
记录文件的内容判断当前系统的稳定性,是否有bug修改等。然后将最新的系统或漏洞反馈给电子设备,以供电子设备进行升级,保证系统运行的稳定
性。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运
用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (14)

  1. 一种电子设备复位处理方法,其特征在于,所述电子设备复位处理方法包括以下步骤:
    A、接收到复位请求时,调用预置的复位程序对数据进行复位处理;
    B、根据所述复位请求创建一用于记录复位处理状态信息的记录文件;
    C、将所述记录文件储存至预置的储存区域内,并当成功复位时,删除所述记录文件;
    D、当所述电子设备再次启动时,检测所述预置存储区域内是否存在所述记录文件;若是,则执行步骤E,若否,则执行步骤F;
    E、再次调用所述预置的复位程序对数据进行复位处理;
    F、直接启动所述电子设备。
  2. 如权利要求1所述的电子设备复位处理方法,其特征在于,所述步骤E之后还包括:
    G、判断再次复位是否成功;若是,则执行步骤H,否则执行步骤E;
    H、控制所述电子设备启动,并修改所述记录文件的名称。
  3. 如权利要求2所述的电子设备复位处理方法,其特征在于,所述步骤H之后还包括:
    检测所述电子设备的网络连接状态;
    当所述电子设备与网络建立连接后,将所述记录文件发送至服务器。
  4. 如权利要求2所述的电子设备复位处理方法,其特征在于,所述步骤E之前还包括:
    判断复位次数是否达到预设值;若是,则执行步骤H,否则执行步骤E。
  5. 如权利要求4所述的电子设备复位处理方法,其特征在于,所述步骤H之后还包括:
    检测所述电子设备的网络连接状态;
    当所述电子设备与网络建立连接后,将所述记录文件发送至服务器。
  6. 如权利要求4所述的电子设备复位处理方法,其特征在于,所述判断复位次数是否达到预设值之前还包括:
    根据所述记录文件中记录的复位处理状态信息获取所述复位次数。
  7. 如权利要求1所述的电子设备复位处理方法,其特征在于,所述电子设备为电视机。
  8. 一种电子设备复位处理装置,其特征在于,所述电子设备复位处理装置包括:
    调用模块,用于接收到复位请求时,调用预置的复位程序对数据进行复位处理;
    文件创建模块,用于根据所述复位请求创建一用于记录复位处理状态信息的记录文件;
    存储模块,用于将所述记录文件储存至预置的储存区域内,并当成功复位时,删除所述记录文件;
    文件检测模块,用于当所述电子设备再次启动时,检测所述预置存储区域内是否存在所述记录文件;
    所述调用模块,还用于当所述预置存储区域内存在所述记录文件时,再次调用所述预置的复位程序对数据进行复位处理;
    启动模块,用于当所述预置存储区域内不存在所述记录文件时,直接启动所述电子设备。
  9. 如权利要求8所述的电子设备复位处理装置,其特征在于,所述电子设备复位处理装置还包括:
    第一判断模块,用于判断再次复位是否成功;
    控制模块,用于当再次复位成功时,控制所述电子设备启动,并修改所述记录文件的名称;
    所述调用模块,还用于当再次复位不成功时,再次调用所述预置的复位程序对数据进行复位处理。
  10. 如权利要求9所述的电子设备复位处理装置,其特征在于,所述电子设备复位处理装置还包括:
    网络检测模块,用于检测所述电子设备的网络连接状态;
    发送模块,用于当所述电子设备与网络建立连接后,将所述记录文件发送至服务器。
  11. 如权利要求9所述的电子设备复位处理装置,其特征在于,所述电子设备复位处理装置还包括:
    第二判断模块,用于判断复位次数是否达到预设值;
    所述控制模块,还用于当复位次数达到预设值时,控制所述电子设备启动,并修改所述记录文件的名称;
    所述调用模块,还用于当复位次数未达到预设值时,再次调用所述预置的复位程序对数据进行复位处理。
  12. 如权利要求11所述的电子设备复位处理装置,其特征在于,所述电子设备复位处理装置还包括:
    网络检测模块,用于检测所述电子设备的网络连接状态;
    发送模块,用于当所述电子设备与网络建立连接后,将所述记录文件发送至服务器。
  13. 如权利要求11所述的电子设备复位处理装置,其特征在于,所述电子设备复位处理装置还包括:
    获取模块,用于根据所述记录文件中记录的复位处理状态信息获取所述复位次数。
  14. 如权利要求8所述的电子设备复位处理装置,其特征在于,所述电子设备为电视机。
PCT/CN2014/093777 2014-09-28 2014-12-13 电子设备复位处理方法及装置 WO2016045202A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410509961.5A CN105528221B (zh) 2014-09-28 2014-09-28 电子设备复位处理方法及装置
CN201410509961.5 2014-09-28

Publications (1)

Publication Number Publication Date
WO2016045202A1 true WO2016045202A1 (zh) 2016-03-31

Family

ID=55580191

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/093777 WO2016045202A1 (zh) 2014-09-28 2014-12-13 电子设备复位处理方法及装置

Country Status (2)

Country Link
CN (1) CN105528221B (zh)
WO (1) WO2016045202A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107454471A (zh) * 2017-07-07 2017-12-08 深圳Tcl数字技术有限公司 电视机开机方法、电视机和计算机可读存储介质
CN110366040B (zh) * 2019-07-26 2023-01-20 Tcl王牌电器(惠州)有限公司 电视出厂复位方法、装置、计算机可读存储介质及系统
CN113360202B (zh) * 2020-07-22 2024-06-04 广东华晟数据固态存储有限公司 一种文件记录设备的无线卸载方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1713139A (zh) * 2004-06-24 2005-12-28 华为技术有限公司 设备的保护运行模式实现方法及维护方法
US20090271780A1 (en) * 2008-04-24 2009-10-29 Moschip Semiconductor Technology Limited Automatic complete firmware upgrade
CN102256275A (zh) * 2010-05-18 2011-11-23 乐金电子(中国)研究开发中心有限公司 一种恢复出厂设置过程中掉电保护的方法和移动通信终端
US20120324161A1 (en) * 2011-06-16 2012-12-20 Hon Hai Precision Industry Co., Ltd. Electronic device and method for performing data backup and recovery
CN103927239A (zh) * 2014-03-28 2014-07-16 深圳市江波龙电子有限公司 一种终端设备的系统恢复方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1713139A (zh) * 2004-06-24 2005-12-28 华为技术有限公司 设备的保护运行模式实现方法及维护方法
US20090271780A1 (en) * 2008-04-24 2009-10-29 Moschip Semiconductor Technology Limited Automatic complete firmware upgrade
CN102256275A (zh) * 2010-05-18 2011-11-23 乐金电子(中国)研究开发中心有限公司 一种恢复出厂设置过程中掉电保护的方法和移动通信终端
US20120324161A1 (en) * 2011-06-16 2012-12-20 Hon Hai Precision Industry Co., Ltd. Electronic device and method for performing data backup and recovery
CN103927239A (zh) * 2014-03-28 2014-07-16 深圳市江波龙电子有限公司 一种终端设备的系统恢复方法及装置

Also Published As

Publication number Publication date
CN105528221B (zh) 2019-08-16
CN105528221A (zh) 2016-04-27

Similar Documents

Publication Publication Date Title
WO2019019374A1 (zh) 智能语音设备控制家电的方法、装置及系统
WO2015035777A1 (zh) 一种移动终端的软件升级方法和系统
WO2018120429A1 (zh) 一种资源更新的方法、终端、计算机可读存储介质及资源更新设备
WO2017107388A1 (zh) Hdmi版本切换方法及显示设备
WO2019019378A1 (zh) 业务处理方法、装置、适配器及计算机可读存储介质
WO2019114269A1 (zh) 一种节目续播方法、电视设备及计算机可读存储介质
WO2017032122A1 (zh) 数字电视机检测方法及装置
WO2018120457A1 (zh) 数据处理方法、装置、设备及计算机可读存储介质
WO2018082482A1 (zh) 一种网络共享方法、接入网络方法及系统
WO2018076569A1 (zh) 基于行车电脑的程序刷写方法及装置
WO2017084302A1 (zh) 显示终端开机播放视频的方法及显示终端
WO2018058919A1 (zh) 标识信息生成方法、装置、设备和计算机可读存储介质
WO2019114262A1 (zh) 加载用户界面的方法、智能电视及计算机可读存储介质
WO2018233367A1 (zh) 立案方法、装置、终端和计算机可读存储介质
WO2019000801A1 (zh) 数据同步方法、装置、设备及计算机可读存储介质
WO2019041851A1 (zh) 家电售后咨询方法、电子设备和计算机可读存储介质
WO2018032679A1 (zh) 电视定时开关机的设置方法和装置
WO2019024219A1 (zh) 文档自动生成方法、装置、文档自动生成器及介质
WO2018188342A1 (zh) 脚本文件生成方法、装置、设备和计算机可读存储介质
WO2017045441A1 (zh) 基于智能电视的音频播放方法及装置
WO2018000856A1 (zh) 一种实现SDN Overlay网络报文转发的方法、终端、设备及计算机可读存储介质
WO2017059687A1 (zh) 网页脚本异常处理方法及装置
WO2016045202A1 (zh) 电子设备复位处理方法及装置
WO2018201697A1 (zh) 文件生成方法、装置、设备以及计算机可读存储介质
WO2017185480A1 (zh) 多屏互动连接方法、装置及系统

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10.08.2017)

122 Ep: pct application non-entry in european phase

Ref document number: 14902337

Country of ref document: EP

Kind code of ref document: A1