CN115061752A - Terminal equipment restarting method and device - Google Patents

Terminal equipment restarting method and device Download PDF

Info

Publication number
CN115061752A
CN115061752A CN202210753483.7A CN202210753483A CN115061752A CN 115061752 A CN115061752 A CN 115061752A CN 202210753483 A CN202210753483 A CN 202210753483A CN 115061752 A CN115061752 A CN 115061752A
Authority
CN
China
Prior art keywords
instruction
flashing
terminal equipment
time threshold
terminal device
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.)
Pending
Application number
CN202210753483.7A
Other languages
Chinese (zh)
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.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai 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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN202210753483.7A priority Critical patent/CN115061752A/en
Publication of CN115061752A publication Critical patent/CN115061752A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present application relates to the field of terminal devices, and in particular, to a method and an apparatus for restarting a terminal device. A method for restarting a terminal device, the method being applied to the terminal device and comprising the following steps: receiving a first instruction sent by a host device, wherein the first instruction comprises a first time threshold value; responding to the first instruction to enter a flashing downloading mode and start timing; determining whether a second instruction sent by the host device is received within a timing range of the first time threshold; if the second instruction is received within the timing range of the first time threshold value, the flashing download mode is exited; and if the second instruction is not received within the timing range of the first time threshold, restarting the equipment. The problem that the terminal equipment can not be restarted in the flashing downloading mode under some special scenes is solved, and the terminal equipment can be recovered to be normally used.

Description

Terminal equipment restarting method and device
[ technical field ] A method for producing a semiconductor device
The present application relates to the field of terminal devices, and in particular, to a method and an apparatus for restarting a terminal device.
[ background of the invention ]
When the terminal device is connected to the host device and executes the flashing task, the flashing task may fail due to improper operation of the host device, and the terminal device may fail to exit the downloading mode, resulting in a dead halt or inoperability. The conventional method can only realize restarting by detaching the battery to electrify again or pressing a restarting combination key for a long time. However, most of the battery packs of the terminal equipment cannot be powered on or off, or the automatic downloading of the production line cannot be restarted by pressing a restart combination key for a long time, so that the brick of the terminal equipment is changed.
[ summary of the invention ]
In view of this, embodiments of the present invention provide a method and an apparatus for restarting a terminal device, where the terminal device determines whether a flashing task is completed by determining whether an instruction sent by a host device is received, and automatically executes a device restart in the event of incompletion, so as to solve the problem that a battery pack installed in the terminal device cannot be powered on or powered off, or a product line automatic download cannot be restarted by pressing a restart combination key for a long time.
In a first aspect, an embodiment of the present invention provides a method for restarting a terminal device, where the method is applied to a terminal device, and the method includes:
receiving a first instruction sent by a host device, wherein the first instruction comprises a first time threshold value;
responding to the first instruction to enter a flashing downloading mode and start timing;
determining whether a second instruction sent by the host device is received within a timing range of the first time threshold;
if the second instruction is received within the timing range of the first time threshold value, the flashing download mode is exited;
and if the second instruction is not received within the timing range of the first time threshold, restarting the equipment.
Optionally, the entering a flashing download mode in response to the first instruction includes:
and receiving the image file downloaded by the host equipment in the flashing downloading mode, and executing flashing operation according to the image file.
Optionally, the first instruction is an instruction for starting watchdog timing by the terminal device, and the second instruction is an instruction for closing watchdog timing by the terminal device.
In a second aspect, an embodiment of the present invention provides a method for restarting a terminal device, where the method is applied to a host device, and the method includes:
when the terminal equipment is determined to be subjected to the flashing operation, a first instruction is sent to the terminal equipment, wherein the first instruction comprises a first time threshold value, and the first instruction is used for the terminal equipment to enter a flashing downloading mode and start timing;
if the flashing operation of the terminal equipment is finished, sending a second instruction to the terminal equipment;
if the flashing operation on the terminal equipment is not finished, the second instruction is not sent to the terminal equipment;
and if the second instruction is sent to the terminal equipment at the first time threshold, the second instruction is used for indicating the terminal equipment to exit the flashing mode, otherwise, the terminal equipment executes equipment restarting.
Optionally, before determining to perform a flashing operation, the method includes:
and downloading a bootstrap program, wherein the bootstrap program is used for the host equipment to determine to execute the flashing operation on the terminal equipment.
Optionally, after the first instruction is sent to the terminal device, the method includes:
and downloading an image file, wherein the image file is used for receiving and executing the flashing operation of the terminal equipment in a flashing downloading mode.
Optionally, the first instruction is an instruction for starting watchdog timing by the terminal device, and the second instruction is an instruction for closing watchdog timing by the terminal device.
In a third aspect, an embodiment of the present invention provides a device for restarting a terminal device, including:
the receiving module is used for receiving a first instruction sent by the host equipment, wherein the first instruction comprises a first time threshold value;
the timing module responds to the first instruction, enters a flashing downloading mode and starts timing;
the determining module is used for determining whether a second instruction sent by the host device is received within the timing range of the first time threshold;
the exit module exits from the flashing download mode if the second instruction is received within the timing range of the first time threshold;
and the restarting module executes equipment restarting if the second instruction is not received within the timing range of the first time threshold.
In a fourth aspect, an embodiment of the present invention provides a device for restarting a terminal device, including:
the first sending module is used for sending a first instruction to the terminal equipment when the terminal equipment is determined to execute the flashing operation, wherein the first instruction comprises a first time threshold value, and the first instruction is used for the terminal equipment to enter a flashing downloading mode and start timing;
and the second sending module is used for sending a second instruction to the terminal equipment if the terminal equipment is finished with the flashing operation, wherein the second instruction is used for the terminal equipment to exit the flashing mode within a first time threshold value, and otherwise, the terminal equipment executes equipment restarting.
In a fifth aspect, an embodiment of the present invention provides a terminal device restarting device, including:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform a method according to any one of the first aspect or the second aspect.
By the scheme, the problem that the terminal equipment cannot be restarted in the flashing downloading mode under some special scenes is solved, and the terminal equipment can be recovered to be normally used.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a system for restarting a terminal device according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for restarting a terminal device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a device for restarting a terminal device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another apparatus for restarting a terminal device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
[ detailed description ] embodiments
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
And after the terminal equipment is connected with the host equipment, entering a flashing downloading mode to flash. However, due to various improper operations of the host device, the flush failure is likely to occur, and the terminal device cannot exit the flush downloading mode, so that the dead halt and other phenomena occur.
In order to realize automatic restart of a terminal device under the condition that the terminal device cannot exit a flashing downloading mode, the embodiment of the invention provides a terminal device restarting system. As shown in fig. 1, the terminal device restart system includes a host device 101 and a terminal device 102. Wherein the host device 101 and the terminal device 102 are connected through a data line and perform data interaction.
The host device 101 is configured to establish a connection with the terminal device 102, and perform a flash operation on the terminal device 102 through flash software on the host device 101. Meanwhile, the host device 101 is further configured to issue a first instruction and a second instruction to the terminal device 102 according to the completion condition of the flashing operation, so that the terminal device 102 can exit the flashing downloading mode or restart the device in time.
Specifically, during the flush process, the host device 101 downloads an image file necessary for the terminal device 102 to perform the flush through the flush software, and sends the image file to the terminal device 102 through the data line. Before and after the flashing is started, the host device 101 needs to respectively send a first instruction and a second instruction to the terminal device 102, so that the terminal device 102 determines whether the flashing operation is successful.
The first instruction is used for the terminal device 102 to start watchdog timing, and the second instruction is used for the terminal device 102 to end watchdog timing.
The terminal device 102 is configured to write the image file downloaded by the host device 101 into the read-only memory to complete the flash operation. The terminal device 102 further needs to determine whether the flashing operation is successful according to the first instruction and the second instruction sent by the host device 101, exit the flashing downloading mode to recover normal use when the flashing is successful, and execute device restart when the flashing fails.
Specifically, after receiving a first instruction sent by the host device 101, the terminal device 102 starts watchdog timing according to a first time threshold carried in the first instruction. And determining whether a second instruction which is sent by the host equipment 101 and is used for marking the completion of the flash is received within the set time when the timing reaches the first time threshold. If the second instruction is received, the watchdog timing is ended according to the second instruction, the machine-flushing downloading mode is exited, and the machine-flushing is completed, if the second instruction is not received, the machine-flushing task is determined to be failed, the terminal device 102 cannot exit the machine-flushing downloading mode, and the automatic execution device is restarted.
With reference to the system for restarting a terminal device shown in fig. 1, an embodiment of the present invention provides a method for restarting a terminal device, where the method includes:
201, when the host device determines to execute the flashing operation on the terminal device, the host device sends a first instruction to the terminal device.
Specifically, after the host device completes downloading the boot program in the flush software, the host device determines that a flush operation needs to be performed on the terminal device being connected, and sends a first instruction including a first time threshold to the terminal device.
The first time threshold is the time that the terminal device can complete the flash operation, and the bootstrap program may be FDL1 or FDL 2.
202, the terminal device enters a flashing download mode in response to the first instruction and starts a watchdog timer.
Specifically, the terminal device receives and identifies a first instruction sent by the host device, reads a first time threshold from a data area of the first instruction, and starts watchdog timing.
After the timing is started, the terminal equipment enters a flashing downloading mode and is ready for flashing.
And 203, the host device executes the flashing operation on the terminal device.
Specifically, the host device downloads an image file required by the flashing through the flashing software. And the mirror image file is used for sending to the terminal equipment, and the mirror image file is written into the read-only memory by the terminal equipment to complete the machine refreshing.
And 204, the host equipment sends a second instruction to the terminal equipment according to the flashing operation result.
Specifically, after the host device finishes downloading the mirror image file, a second instruction for exiting watchdog timing and exiting a flashing download mode is sent to the terminal device; and when the host equipment quits downloading the mirror image file midway in the downloading process or the downloading of the mirror image file fails to cause the failure of the flashing task, the host equipment does not send a second instruction to the terminal equipment any more.
The terminal device determines whether a second instruction sent by the host device is received within a timing range of the first time threshold 205.
Specifically, within the timing range of the first time threshold, the terminal device determines at any time whether the second instruction sent by the host device is received. And after receiving a second instruction sent by the host equipment, writing the image file downloaded by the host equipment into the read-only memory, determining that the flashing is finished and exiting the flashing downloading mode, thereby realizing the normal use of the terminal equipment.
And if the second instruction sent by the host equipment is not received within the first time threshold, determining that the flashing task has failed, and executing restarting.
The reason why the terminal device does not receive the second instruction sent by the host device may include that the host device fails to download the image file and the second instruction is not sent all the time; or the time range specified by the first time threshold value is exceeded when the host device downloads the image file and sends the second instruction after the time of downloading the image file is over. However, for any reason, the terminal device performs a restart as soon as it has not received the second instruction within the first time threshold.
In the embodiment of the invention, the terminal equipment judges whether the flashing task is successful or not through two instructions sent by the host equipment. The method and the device have the advantages that when the flashing task fails, the device is automatically restarted, excessive operation on the device is avoided, meanwhile, the terminal device can be restarted under the situation of inconvenient operation, and the terminal device can be recovered to be normally used or continuously execute the flashing task after being restarted.
In some embodiments, due to the limitation of the performance of the host device, the host device may send the second instruction to the terminal device beyond the preset first time threshold because the time for downloading the image file is too long. At this time, the terminal device still determines that the task fails because the second instruction is not received within the first time threshold, and performs restart on its own. If the terminal device performs the restart at this time and re-executes the flashing task after the restart, a large waste of time and resources is caused.
In the embodiment of the present invention, to solve the problem, the host device may send a third start instruction or a fourth start instruction to the terminal device during the flush process, so as to prolong the time for the terminal device to receive the second instruction.
Specifically, the third start instruction sent by the host device includes a second time threshold, and after the terminal device receives the third start instruction, the preset first time threshold needs to be updated, and the device is restarted after the timing reaches the second time threshold.
The fourth starting instruction sent by the host device comprises a reset instruction for timing the terminal device. After receiving the fourth start instruction sent by the host device, the terminal device needs to reset the ongoing timing to zero, and restart the timing until reaching the first time threshold, and then execute the device restart.
In one embodiment, the first time threshold preset by the user is 30 minutes. When the flashing task is executed for 20 minutes, it is found that 15 minutes may be needed to complete the downloading of the image file, and the terminal device may execute a device restart when the first time threshold is reached after 10 minutes.
And the host equipment sends a third starting instruction to the terminal equipment. Wherein the data area of the third start instruction includes a second time threshold reset to 40 minutes.
And after receiving the third starting instruction, the terminal equipment updates the preset first time threshold value through the second time threshold value. And if the second instruction is not received when the time reaches 40 minutes, restarting the equipment.
Corresponding to the method for restarting the terminal equipment, the embodiment of the invention also provides a device for restarting the terminal equipment. Fig. 3 is a schematic structural diagram of a terminal device restarting apparatus according to an embodiment of the present invention. As shown in fig. 3, the apparatus is configured to be deployed in a terminal device, and may include: a receiving module 301, a timing module 302, a determining module 303, an exiting module 304 and a restarting module 305.
A receiving module 301, configured to receive a first instruction sent by a host device, where the first instruction includes a first time threshold;
the timing module 302, responding to the first instruction, entering a flashing downloading mode and starting timing;
the determining module 303 is configured to determine whether a second instruction sent by the host device is received within a timing range of the first time threshold;
an exit module 304, configured to exit the flashing download mode if the second instruction is received within the timing range of the first time threshold;
and the restarting module 305 executes equipment restarting if the second instruction is not received within the timing range of the first time threshold.
Referring to fig. 4, a schematic structural diagram of another apparatus for restarting a terminal device according to an embodiment of the present invention is shown. As shown in fig. 4, the apparatus for deployment in a host device includes: a first transmission module 401, and a second transmission module 402.
The first sending module 401 is configured to send a first instruction to the terminal device when determining that the terminal device is to be executed with the flashing operation, where the first instruction includes a first time threshold, and the first instruction is used for the terminal device to enter a flashing downloading mode and start timing;
a second sending module 402, configured to send a second instruction to the terminal device if the terminal device completes the flashing operation on the terminal device, where the second instruction is used for the terminal device to exit the flashing mode within a first time threshold, and otherwise, the terminal device executes device restart.
Fig. 5 is a schematic structural diagram of an embodiment of an electronic device in this specification, where the electronic device may be a host device or a terminal device in the embodiment of the present invention. As shown in fig. 5, the electronic device may include at least one processor; and at least one memory communicatively coupled to the processing unit, wherein: the memory stores program instructions executable by the processing unit, and the processor calls the program instructions to execute the terminal device restarting method provided by the embodiment.
The electronic device may be a device capable of performing an intelligent conversation with a user, and the specific form of the electronic device is not limited in the embodiments of the present specification. It is understood that the electronic device herein is a machine as mentioned in the method embodiments.
FIG. 5 illustrates a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present specification. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present specification.
As shown in fig. 5, the electronic device is in the form of a general purpose computing device. Components of the electronic device may include, but are not limited to: one or more processors 510, a communication interface 520, a memory 530, and a communication bus 540 that couples various system components including the memory 530, the communication interface 520, and the processors 510.
Communication bus 540 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. These architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus, to name a few.
Electronic devices typically include a variety of computer system readable media. Such media may be any available media that is accessible by the electronic device and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 530 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) and/or cache Memory. The electronic device may further include other removable/non-removable, volatile/nonvolatile computer system storage media. Memory 530 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the specification.
A program/utility having a set (at least one) of program modules, including but not limited to an operating system, one or more application programs, other program modules, and program data, may be stored in memory 530, each of which examples or some combination may include an implementation of a network environment. The program modules generally perform the functions and/or methodologies of the embodiments described herein.
The processor 510 executes various functional applications and data processing by executing programs stored in the memory 530, for example, implementing the terminal device restart method provided by the embodiments shown in this specification.
The embodiment of the specification provides a non-transitory computer readable storage medium, which stores computer instructions, and the computer instructions cause the computer to execute the terminal device restarting method provided by the embodiment shown in the specification.
The non-transitory computer readable storage medium described above may take any combination of one or more computer readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a flash Memory, an optical fiber, a portable compact disc Read Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present specification may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of Network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present specification, "a plurality" means at least two, e.g., two, three, etc., unless explicitly defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present description in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present description.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It should be noted that the terminal referred to in the embodiments of the present disclosure may include, but is not limited to, a Personal Computer (Personal Computer; hereinafter, referred to as PC), a Personal Digital Assistant (Personal Digital Assistant; hereinafter, referred to as PDA), a wireless handheld device, a Tablet Computer (Tablet Computer), a mobile phone, an MP3 player, an MP4 player, and the like.
In the embodiments provided in the present specification, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present description may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the methods described in the embodiments of the present disclosure.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (10)

1. A method for restarting a terminal device is applied to the terminal device, and comprises the following steps:
receiving a first instruction sent by a host device, wherein the first instruction comprises a first time threshold value;
responding to the first instruction to enter a flashing downloading mode and start timing;
determining whether a second instruction sent by the host device is received within a timing range of the first time threshold;
if the second instruction is received within the timing range of the first time threshold value, the flashing download mode is exited;
and if the second instruction is not received within the timing range of the first time threshold, restarting the equipment.
2. The method of claim 1, wherein entering a flush download mode in response to the first instruction comprises:
and receiving the image file downloaded by the host equipment in the flashing downloading mode, and executing flashing operation according to the image file.
3. The method of claim 1, wherein the first instruction is an instruction of the terminal device to start watchdog timing, and the second instruction is an instruction of the terminal device to close watchdog timing.
4. A method for restarting a terminal device is applied to a host device, and comprises the following steps:
when the terminal equipment is determined to be subjected to the flashing operation, a first instruction is sent to the terminal equipment, wherein the first instruction comprises a first time threshold value, and the first instruction is used for the terminal equipment to enter a flashing downloading mode and start timing;
if the flashing operation of the terminal equipment is finished, sending a second instruction to the terminal equipment;
if the flashing operation on the terminal equipment is not finished, the second instruction is not sent to the terminal equipment;
and if the second instruction is sent to the terminal equipment at the first time threshold, the second instruction is used for indicating the terminal equipment to exit the flashing mode, otherwise, the terminal equipment executes equipment restarting.
5. The method of claim 4, wherein prior to determining to perform a flashing operation, the method comprises:
and downloading a bootstrap program, wherein the bootstrap program is used for the host equipment to determine to execute the flashing operation on the terminal equipment.
6. The method of claim 4, wherein after the sending the first instruction to the terminal device, the method comprises:
and downloading an image file, wherein the image file is used for receiving and executing the flashing operation of the terminal equipment in a flashing downloading mode.
7. The method of claim 4, wherein the first instruction is an instruction of the terminal device to start watchdog timing, and the second instruction is an instruction of the terminal device to close watchdog timing.
8. A device for restarting a terminal device, comprising:
the device comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving a first instruction sent by host equipment, and the first instruction comprises a first time threshold;
the timing module responds to the first instruction, enters a flashing downloading mode and starts timing;
the determining module is used for determining whether a second instruction sent by the host device is received within the timing range of the first time threshold;
the quitting module is used for quitting the flashing download mode if the second instruction is received within the timing range of the first time threshold value;
and the restarting module executes equipment restarting if the second instruction is not received within the timing range of the first time threshold.
9. A device for restarting a terminal device, comprising:
the first sending module is used for sending a first instruction to the terminal equipment when the terminal equipment is determined to execute the flashing operation, wherein the first instruction comprises a first time threshold value, and the first instruction is used for the terminal equipment to enter a flashing downloading mode and start timing;
and the second sending module is used for sending a second instruction to the terminal equipment if the terminal equipment is finished with the flashing operation, wherein the second instruction is used for the terminal equipment to exit the flashing mode within a first time threshold value, and otherwise, the terminal equipment executes equipment restarting.
10. A terminal device restart apparatus, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 3 or 4 to 7.
CN202210753483.7A 2022-06-28 2022-06-28 Terminal equipment restarting method and device Pending CN115061752A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210753483.7A CN115061752A (en) 2022-06-28 2022-06-28 Terminal equipment restarting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210753483.7A CN115061752A (en) 2022-06-28 2022-06-28 Terminal equipment restarting method and device

Publications (1)

Publication Number Publication Date
CN115061752A true CN115061752A (en) 2022-09-16

Family

ID=83203988

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210753483.7A Pending CN115061752A (en) 2022-06-28 2022-06-28 Terminal equipment restarting method and device

Country Status (1)

Country Link
CN (1) CN115061752A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104199677A (en) * 2014-07-25 2014-12-10 小米科技有限责任公司 System reinstalling method and device and corresponding device
CN106663016A (en) * 2015-05-15 2017-05-10 华为技术有限公司 Upgrade method, apparatus and device for terminal device
CN109032822A (en) * 2017-06-09 2018-12-18 中兴通讯股份有限公司 A kind of store method and device of computer crash information
CN109445994A (en) * 2018-11-12 2019-03-08 Oppo广东移动通信有限公司 Starting processing method, device, terminal device and storage medium
CN109783267A (en) * 2019-01-17 2019-05-21 广东小天才科技有限公司 A kind of method and system solving downloading mode exception
CN112506688A (en) * 2020-12-02 2021-03-16 北京握奇智能科技有限公司 Hardware watchdog control system and method of OBU
CN114116034A (en) * 2021-12-01 2022-03-01 展讯通信(天津)有限公司 Distributed flashing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104199677A (en) * 2014-07-25 2014-12-10 小米科技有限责任公司 System reinstalling method and device and corresponding device
CN106663016A (en) * 2015-05-15 2017-05-10 华为技术有限公司 Upgrade method, apparatus and device for terminal device
CN109032822A (en) * 2017-06-09 2018-12-18 中兴通讯股份有限公司 A kind of store method and device of computer crash information
CN109445994A (en) * 2018-11-12 2019-03-08 Oppo广东移动通信有限公司 Starting processing method, device, terminal device and storage medium
CN109783267A (en) * 2019-01-17 2019-05-21 广东小天才科技有限公司 A kind of method and system solving downloading mode exception
CN112506688A (en) * 2020-12-02 2021-03-16 北京握奇智能科技有限公司 Hardware watchdog control system and method of OBU
CN114116034A (en) * 2021-12-01 2022-03-01 展讯通信(天津)有限公司 Distributed flashing method and device

Similar Documents

Publication Publication Date Title
CN108920195B (en) Boot processing method and related product
CN104978231A (en) Multisystem device based on internal storage partitions and loading and switching method thereof
RU2020129947A (en) CLEANING A NON-OPERATING SYSTEM RESOURCE TO A TRUSTED STATE, SUITABLE FOR USE IN CLOUD COMPUTING
CN109375937A (en) Method for upgrading system, device, terminal device and storage medium
CN115328563B (en) System starting method and electronic equipment
CN112416411B (en) Upgrading method and device, equipment end, server and computer readable medium
CN112612498A (en) Embedded equipment upgrading method and embedded equipment
CN112214254A (en) Method and device for accelerating starting of application program and electronic equipment
CN115061752A (en) Terminal equipment restarting method and device
CN109634782B (en) Method and device for detecting system robustness, storage medium and terminal
CN105791514B (en) Application starting monitoring method and device
CN114116034B (en) Distributed brushing method and device
WO2023060893A1 (en) Storage space management method and apparatus, and device and storage medium
CN117389578A (en) Cloud terminal system upgrading method and device, cloud terminal and storage medium
CN112181467B (en) Method and device for upgrading memory firmware of terminal, terminal and storage medium
CN115827076A (en) Method and equipment for booting operating system storage medium and program product
CN115951949A (en) Recovery method and device for configuration parameters of BIOS (basic input output System) and computing equipment
CN115344289A (en) Client upgrading method and device, terminal equipment and storage medium
KR100626517B1 (en) Method for downloading for a operating system program in a mobile communication terminal
CN111176693B (en) Upgrading method of digital television system
CN113760631A (en) Page loading duration determination method, device, equipment and storage medium
CN104978208B (en) Hot restart method and device thereof
CN113747408A (en) Bluetooth connection method, device, storage medium and electronic equipment
CN114090104A (en) Applet starting control method and device
CN113515299A (en) Software development kit SDK hot upgrading method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination