CN111007916B - Terminal device time setting method and system, storage medium and terminal device - Google Patents

Terminal device time setting method and system, storage medium and terminal device Download PDF

Info

Publication number
CN111007916B
CN111007916B CN201911198471.7A CN201911198471A CN111007916B CN 111007916 B CN111007916 B CN 111007916B CN 201911198471 A CN201911198471 A CN 201911198471A CN 111007916 B CN111007916 B CN 111007916B
Authority
CN
China
Prior art keywords
time
terminal device
terminal equipment
setting
restart instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911198471.7A
Other languages
Chinese (zh)
Other versions
CN111007916A (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.)
Hefei Guiqian Information Technology Co ltd
Original Assignee
TCL Mobile Communication Technology Ningbo 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 TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN201911198471.7A priority Critical patent/CN111007916B/en
Publication of CN111007916A publication Critical patent/CN111007916A/en
Application granted granted Critical
Publication of CN111007916B publication Critical patent/CN111007916B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/14Time supervision arrangements, e.g. real time clock

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a terminal equipment time setting method and a system thereof, a storage medium and terminal equipment, wherein the method comprises the following steps: acquiring time interval information from a timing detector, and setting the time interval information as first time; detecting whether a terminal device executes a restart instruction; when the terminal device is detected to execute the restart instruction, saving the current time of the terminal device, and setting the current time as a second time; and calculating the sum of the first time and the second time to obtain a third time, and setting the third time as the current time of the terminal equipment. The invention can ensure that the time in the terminal equipment can still be kept correct when the terminal equipment is restarted, and particularly, when the terminal equipment is continuously and repeatedly restarted with problems, the invention avoids the obvious error of the time of the terminal equipment caused by continuously accumulating errors.

Description

Terminal device time setting method and system, storage medium and terminal device
Technical Field
The invention relates to the technical field of computers, in particular to a time setting method and system of terminal equipment, a storage medium and the terminal equipment.
Background
RTC (Real Time Clock) is a pulse generated by a Clock circuit composed of a crystal oscillator and related circuits on a main board of a mobile terminal, and the pulse period is usually very small, and generally the period is below microsecond. The RTC is used to provide stable clock signals to the modules and subsequent circuits of the mobile terminal to maintain their functions.
On the other hand, the RTC also has a function of setting the time of the mobile terminal, for example, the time module of the mobile terminal obtains the current time according to an accurate reference time plus the product of the number of RTC pulses after the reference time and the pulse period. In the prior art, when the mobile terminal is restarted, the RTC stops working during a very short time (usually less than 1 millisecond) from the time when the mobile terminal system is turned off to the time when the mobile terminal system is turned on again, and at this time, a plurality of RTC pulses may be missing, so that a small error exists in the time after the restart. Although the time error is very little (usually the error is below 1 millisecond) in actual use, the normal use of the user cannot be influenced, and the mobile terminal can automatically correct the time error through the network in the use process, when the mobile terminal is continuously and repeatedly restarted, the time error can be continuously accumulated, and the time error of the mobile terminal is obvious, so that the use of the user is influenced, and the inconvenience is brought to the user.
Therefore, the prior art has defects and needs to be improved and developed.
Disclosure of Invention
In order to solve the above problems, embodiments of the present invention provide a method and a system for setting a time of a terminal device, a storage medium, and a terminal device, which can effectively solve the problem that when an existing mobile terminal is continuously and repeatedly restarted, errors are continuously accumulated and a significant error exists in the time of the mobile terminal.
According to an aspect of the present invention, an embodiment of the present invention provides a terminal device time setting method and a system thereof, a storage medium, and a terminal device, where the terminal device time setting method includes the steps of: acquiring time interval information from a timing detector, and setting the time interval information as first time; storing the first time in a memory; detecting whether a terminal device executes a restart instruction; when the terminal device is detected to execute the restart instruction, saving the current time of the terminal device, and setting the current time as a second time; and calculating the sum of the first time and the second time to obtain a third time, and setting the third time as the current time of the terminal equipment.
Further, after detecting whether the terminal device has executed the restart instruction step, the terminal device time setting method further includes; and when detecting that the terminal equipment does not execute the restart instruction, continuously detecting whether the terminal equipment executes the restart instruction or not.
Further, before the step of obtaining time interval information from a timing detector and setting the time interval information as the first time, the terminal device time setting method further includes the steps of: and setting the time required by the timing detector for detecting the restart process of the terminal equipment as the time interval information.
Further, the precision of the timing detector is nanosecond level.
According to another aspect of the present invention, an embodiment of the present invention further provides a system for setting a time of an end device, including: the time acquisition device comprises a timing detector, a first time acquisition module and a first time storage module, wherein the timing detector is used for acquiring time interval information from the timing detector and setting the time interval information as first time; the restart instruction detection module is connected with the first time storage module and is used for detecting whether the terminal equipment executes a restart instruction or not; the second time acquisition module is connected with the restart instruction detection module and used for saving the current time of the terminal equipment and setting the current time as the second time when the terminal equipment is detected to execute the restart instruction; and the third time acquisition module is connected with the second time acquisition module and used for calculating the sum of the first time and the second time to obtain a third time, and the third time is set as the current time of the terminal equipment.
Further, the terminal device time setting system further includes: and the restart instruction cycle detection module is connected with the restart instruction detection module and used for calling the restart instruction detection module when detecting that the terminal equipment does not execute the restart instruction.
Further, the memory is a power-down memory which is not easy to lose.
Further, the precision of the timing detector is nanosecond level.
According to another aspect of the present invention, an embodiment of the present invention further provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions are adapted to be loaded by a processor to execute any of the above-mentioned terminal device time setting methods.
According to another aspect of the present invention, there is also provided a terminal device, including a processor and a memory, where the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing any of the steps in the terminal device time setting method. The method has the advantages that the first time (the time consumed by restarting the terminal equipment) is stored in the terminal equipment in advance, and when the terminal equipment is detected to execute the restarting instruction, the current time is saved as the second time. And when the terminal equipment is started, summing the second time and the first time to obtain a third time. The third time is used as the current time of the terminal equipment, so that the time in the terminal equipment can still be kept correct when the terminal equipment is restarted, and particularly when the terminal equipment is continuously and repeatedly restarted, the problem that the time of the terminal equipment has obvious errors due to continuous error accumulation is avoided, so that the terminal equipment is convenient for a user to use, and the user experience is improved.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating steps of a method for setting time of a terminal device according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a terminal device time setting system according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Fig. 4 is another schematic structural diagram of the terminal device according to the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, rather than all embodiments, and all other embodiments obtained by those skilled in the art without any inventive work based on the embodiments of the present invention belong to the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", and the like, indicate orientations and positional relationships based on those shown in the drawings, and are used only for convenience of description and simplicity of description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered as limiting the present invention.
Furthermore, the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated, whereby features defined as "first", "second" may explicitly or implicitly include one or more of those features, in the description of the invention "plurality" means two or more unless explicitly defined otherwise.
As shown in fig. 1, a flowchart of a method for setting time of a terminal device according to an embodiment of the present invention is shown, where the method includes the following steps:
step S110: and setting the time required by the timing detector for detecting the restart process of the terminal equipment as the time interval information.
Specifically, when the terminal device is produced, the third-party timing detector 7 (shown in fig. 2) detects the time required for the restart process of the terminal device. In other words, the time interval from the time when the terminal device receives the restart instruction to the time when the terminal device is turned on is theoretically a relatively fixed time, for example, the time interval information is 2 seconds. The time interval information may also be obtained by performing a plurality of restart operations on the terminal device, detecting the restart time of the terminal device a plurality of times, calculating an average value of the plurality of times, and setting the average value as the time interval information.
Wherein the accuracy of the timing detector 7 is in nanoseconds.
Step S120: the method comprises the steps of obtaining time interval information from a timing detector and setting the time interval information as first time.
Step S130: storing the first time in a memory.
The first time is stored in a memory of the terminal device. In this embodiment, the memory is a power-down nonvolatile memory, and the power-down nonvolatile memory is a charged erasable programmable read only memory or a flash memory, but is not limited thereto.
Step S140: whether a terminal device executes a restart instruction is detected.
Step S150: and saving the current time of the terminal equipment, and setting the current time as a second time.
Specifically, when it is detected that the terminal device has executed the restart instruction, the current time of the terminal device is saved, and the current time is set as a second time.
Step S160: calculating the sum of the first time and the second time to obtain a third time, and setting the third time as the current time of the terminal equipment.
The first time is the time consumed by the terminal equipment in the restarting process, and the second time is the current time after the terminal equipment receives the restarting instruction. Therefore, the sum of the first time and the second time is the current time after the terminal device is started. So set up, make the time in the terminal equipment still keep correct when the terminal equipment restarts, especially when the terminal equipment appears restarting repeatedly in succession, avoid accumulating the time of terminal equipment that the error arouses constantly and have more obvious error problem to convenience of customers uses, promote user experience.
Step S141: and continuously detecting whether the terminal equipment executes a restart instruction.
And when detecting that the terminal equipment does not execute the restart instruction, continuously detecting whether the terminal equipment executes the restart instruction or not.
As shown in fig. 2, an embodiment of the present invention further provides a terminal device time setting system. The system comprises: a first time obtaining module 1, a first time storing module 2, a restarting instruction detecting module 3, a second time obtaining module 4, a third time obtaining module 5 and a restarting instruction circulation detecting module 6.
The first time obtaining module 1 is configured to obtain time interval information from the timing detector 7, and set the time interval information as a first time. Specifically, when the terminal device is produced, the time required by the restarting process of the terminal device is detected by the third-party timing detector. In other words, the time interval from the time when the terminal device receives the restart instruction to the time when the terminal device is turned on is theoretically a relatively fixed time, for example, the time interval information is 2 seconds. The time interval information may also be obtained by performing a plurality of restart operations on the terminal device, detecting the restart time of the terminal device a plurality of times, calculating an average value of the plurality of times, and setting the average value as the time interval information.
The first time storage module 2 is connected to the first time obtaining module 1, the first time storage module 2 is configured to store the first time in a memory, and the memory is a specific device in a terminal device. The first time is stored in a memory of the terminal device. The memory is a power-down nonvolatile memory, and the power-down nonvolatile memory is a charged erasable programmable read only memory or a flash memory, but is not limited thereto.
The restart instruction detection module 3 is connected to the first time storage module 2, and the restart instruction detection module 2 is configured to detect whether the terminal device has executed a restart instruction.
The second time obtaining module 4 is connected to the restart instruction detecting module 3, and the second time obtaining module 4 is configured to, when it is detected that the restart instruction has been executed by the terminal device, save the current time of the terminal device, and set the current time as the second time.
The third time obtaining module 5 is connected to the second time obtaining module 4, and the third time obtaining module 5 is configured to calculate a sum of the first time and the second time to obtain a third time, and set the third time as a current time of the terminal device. The first time is the time consumed by the terminal equipment in the restarting process, and the second time is the current time after the terminal equipment receives the restarting instruction. Therefore, the sum of the first time and the second time is the current time after the terminal device is started. So set up, make the time in the terminal equipment still keep correct when the terminal equipment restarts, especially when the terminal equipment appears restarting repeatedly in succession, avoid accumulating the terminal equipment time that the error arouses constantly and have more obvious error problem to convenience of customers uses, promote user experience.
The restart instruction cycle detection module 6 is connected to the restart instruction detection module 3, and the restart instruction cycle detection module 6 is configured to call the restart instruction detection module when detecting that the terminal device does not execute the restart instruction.
The method has the advantages that the first time (the time consumed by restarting the terminal equipment) is stored in the terminal equipment in advance, and when the terminal equipment is detected to execute the restarting instruction, the current time is saved as the second time. And when the terminal equipment is started, summing the second time and the first time to obtain a third time. The third time is used as the current time of the terminal equipment, so that the time in the terminal equipment can still be kept correct when the terminal equipment is restarted, and particularly when the terminal equipment is continuously and repeatedly restarted due to problems, the problem that the time of the terminal equipment has obvious errors due to continuous error accumulation is solved, the use by a user is facilitated, and the user experience is improved.
In addition, the embodiment of the invention also provides terminal equipment, and the terminal equipment can be equipment such as a smart phone and a tablet personal computer. Specifically, as shown in fig. 3, the terminal device 200 includes a processor 201 and a memory 202. The processor 201 is electrically connected to the memory 202.
The processor 201 is a control center of the terminal device 200, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or loading an application program stored in the memory 202 and calling data stored in the memory 202, thereby performing overall monitoring of the terminal device.
In this embodiment, the terminal device 200 is provided with a plurality of memory partitions, the plurality of memory partitions includes a system partition and a target partition, the processor 201 in the terminal device 200 loads instructions corresponding to processes of one or more application programs into the memory 202 according to the following steps, and the processor 201 runs the application programs stored in the memory 202, so as to implement various functions:
acquiring time interval information from a timing detector, and setting the time interval information as first time;
storing the first time in a memory;
detecting whether a terminal device executes a restart instruction;
when the terminal device is detected to execute the restart instruction, saving the current time of the terminal device, and setting the current time as a second time; and
calculating the sum of the first time and the second time to obtain a third time, and setting the third time as the current time of the terminal equipment.
Fig. 4 shows a specific structural block diagram of a terminal device provided in an embodiment of the present invention, where the terminal device may be used to implement the terminal device time setting method provided in the foregoing embodiment. The terminal device 300 may be a smart phone or a tablet computer.
The RF circuit 310 is used for receiving and transmitting electromagnetic waves, and performing interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuitry 310 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. RF circuit 310 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE802.11 a, IEEE802.11 b, IEEE802.11g, and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide mail Access (Microwave Access for micro), wimax-1, other suitable short message protocols, and any other suitable Protocol for instant messaging, and may even include those protocols that have not yet been developed.
The memory 320 may be used to store software programs and modules, such as program instructions/modules corresponding to the terminal device time setting method in the above-mentioned embodiment, and the processor 380 executes various functional applications and data processing by running the software programs and modules stored in the memory 320, that is, the function of setting the terminal device time is realized. The memory 320 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 320 may further include memory located remotely from processor 380, which may be connected to terminal device 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 330 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 331 (e.g., operations by a user on or near the touch-sensitive surface 331 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 380, and can receive and execute commands sent by the processor 380. In addition, the touch-sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 330 may comprise other input devices 332 in addition to the touch sensitive surface 331. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by or provided to the user and various graphic user interfaces of the terminal apparatus 300, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 331 may overlay display panel 341, and when touch-sensitive surface 331 detects a touch operation thereon or thereabout, communicate to processor 380 to determine the type of touch event, and processor 380 then provides a corresponding visual output on display panel 341 in accordance with the type of touch event. Although in FIG. 4, touch-sensitive surface 331 and display panel 341 are implemented as two separate components for input and output functions, in some embodiments, touch-sensitive surface 331 and display panel 341 may be integrated for input and output functions.
The terminal device 300 may also include at least one sensor 350, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the terminal device 300 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal device 300, detailed descriptions thereof are omitted.
Audio circuitry 360, speaker 361, microphone 362 may provide an audio interface between a user and terminal device 300. The audio circuit 360 may transmit the electrical signal converted from the received audio data to the speaker 361, and the audio signal is converted by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is received by the audio circuit 360 and converted into audio data, which is then processed by the audio data output processor 380 and then transmitted to, for example, another terminal via the RF circuit 310, or the audio data is output to the memory 320 for further processing. The audio circuit 360 may also include an earbud jack to provide communication of peripheral headphones with the terminal device 300.
The terminal device 300 may assist the user in e-mail, web browsing, streaming media access, etc. through the transmission module 370 (e.g., a Wi-Fi module), which provides the user with wireless broadband internet access. Although fig. 4 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the terminal device 300 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 380 is a control center of the terminal device 300, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal device 300 and processes data by running or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320, thereby performing overall monitoring of the mobile phone. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 380.
Terminal device 300 also includes a power supply 390 (e.g., a battery) for powering the various components, which may be logically coupled to processor 380 via a power management system in some embodiments to manage charging, discharging, and power consumption management functions via the power management system. The power supply 390 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 300 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit of the terminal device is a touch screen display, the terminal device further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
acquiring time interval information from a timing detector, and setting the time interval information as first time;
storing the first time in a memory;
detecting whether a terminal device executes a restart instruction;
when the terminal device is detected to execute the restart instruction, saving the current time of the terminal device, and setting the current time as a second time; and
calculating the sum of the first time and the second time to obtain a third time, and setting the third time as the current time of the terminal equipment.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present invention provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the terminal device time setting methods provided by the embodiments of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in the terminal device time setting method provided in the embodiment of the present invention, beneficial effects that can be achieved by the terminal device time setting method provided in the embodiment of the present invention can be achieved, for details, see the foregoing embodiments, and are not described herein again.
In summary, although the present invention has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, therefore, the scope of the present invention shall be determined by the appended claims.

Claims (9)

1. A terminal device time setting method is characterized by comprising the following steps:
setting time required by the timing detector for detecting the restarting process of the terminal equipment as time interval information;
acquiring the time interval information from the timing detector, and setting the time interval information as first time;
storing the first time in a memory;
detecting whether a terminal device executes a restart instruction;
when the terminal device is detected to execute the restart instruction, saving the current time of the terminal device, and setting the current time as a second time; and
calculating the sum of the first time and the second time to obtain a third time, and setting the third time as the current time of the terminal equipment.
2. The terminal device time setting method of claim 1, wherein after the step of detecting whether the terminal device has executed a restart instruction, the terminal device time setting method further comprises;
and when detecting that the terminal equipment does not execute the restart instruction, continuously detecting whether the terminal equipment executes the restart instruction or not.
3. The terminal device time setting method according to claim 1, wherein the accuracy of the timing detector is in nanoseconds.
4. A terminal device time setting system, comprising:
the first time obtaining module is used for obtaining time interval information from the timing detector and setting the time interval information as first time, wherein the time interval information is time required by the timing detector for detecting a restarting process of the terminal equipment.
The first time storage module is connected with the first time acquisition module and is used for storing the first time in a memory;
the restart instruction detection module is connected with the first time storage module and is used for detecting whether the terminal equipment executes a restart instruction or not;
the second time acquisition module is connected with the restart instruction detection module and used for saving the current time of the terminal equipment and setting the current time as the second time when the terminal equipment is detected to execute the restart instruction; and
and the third time acquisition module is connected with the second time acquisition module and used for calculating the sum of the first time and the second time to obtain a third time, and the third time is set as the current time of the terminal equipment.
5. The terminal device time setting system according to claim 4, wherein the terminal device time setting system further comprises:
and the restart instruction cycle detection module is connected with the restart instruction detection module and used for calling the restart instruction detection module when detecting that the terminal equipment does not execute the restart instruction.
6. The terminal device time setting system of claim 4,
the memory is a power-down memory which is not easy to lose.
7. The terminal device time setting system according to claim 4, wherein the accuracy of the timing detector is in nanoseconds.
8. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the terminal device time setting method of any of claims 1 to 3.
9. A terminal device, comprising a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps of the terminal device time setting method according to any one of claims 1 to 3.
CN201911198471.7A 2019-11-29 2019-11-29 Terminal device time setting method and system, storage medium and terminal device Active CN111007916B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911198471.7A CN111007916B (en) 2019-11-29 2019-11-29 Terminal device time setting method and system, storage medium and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911198471.7A CN111007916B (en) 2019-11-29 2019-11-29 Terminal device time setting method and system, storage medium and terminal device

Publications (2)

Publication Number Publication Date
CN111007916A CN111007916A (en) 2020-04-14
CN111007916B true CN111007916B (en) 2021-07-06

Family

ID=70112180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911198471.7A Active CN111007916B (en) 2019-11-29 2019-11-29 Terminal device time setting method and system, storage medium and terminal device

Country Status (1)

Country Link
CN (1) CN111007916B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108196617A (en) * 2018-01-25 2018-06-22 郑州云海信息技术有限公司 BMC time setting methods, device, system and readable storage medium storing program for executing
CN109752947A (en) * 2013-09-17 2019-05-14 索尼公司 System is arranged in electronic device, time setting method and time

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355744A (en) * 2007-07-24 2009-01-28 上海晨兴电子科技有限公司 Method for preserving clock record content unit for short time current failure of mobile phone
CN101770404B (en) * 2008-12-31 2012-08-15 环旭电子股份有限公司 Watchdog circuit capable of keeping status and method for keeping restart status thereof
US8290094B2 (en) * 2010-01-18 2012-10-16 Infineon Technologies Ag Methods and systems for measuring data pulses
CN102736512B (en) * 2011-04-15 2014-04-30 国基电子(上海)有限公司 Electronic device and system time setting method thereof
CN102497665B (en) * 2011-12-28 2014-12-03 深圳市五巨科技有限公司 Mobile terminal time correction method and apparatus thereof
CN104915269B (en) * 2015-07-09 2018-07-03 广东欧珀移动通信有限公司 A kind of mobile terminal time and date information setting method, device and mobile terminal
CN105490768B (en) * 2015-11-18 2018-11-30 积成电子股份有限公司 A kind of automatic calibrating method of concentrator clock chip
CN106527112A (en) * 2016-11-11 2017-03-22 重庆微标科技股份有限公司 High precision time acquisition method and device
CN106873968A (en) * 2016-12-28 2017-06-20 深圳天珑无线科技有限公司 A kind of terminal shows the method and system of time
CN108152706A (en) * 2017-12-18 2018-06-12 Tcl移动通信科技(宁波)有限公司 Mobile terminal and power management chip restart detection process method and storage medium
CN108415817A (en) * 2018-03-01 2018-08-17 郑州云海信息技术有限公司 BMC obtains the method, apparatus of time, equipment and can storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109752947A (en) * 2013-09-17 2019-05-14 索尼公司 System is arranged in electronic device, time setting method and time
CN108196617A (en) * 2018-01-25 2018-06-22 郑州云海信息技术有限公司 BMC time setting methods, device, system and readable storage medium storing program for executing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"用铷原子钟对PC进行时间校准及其误差分析";伍贻威;《宇航计测技术》;20110815;第31卷(第4期);第52-55页 *

Also Published As

Publication number Publication date
CN111007916A (en) 2020-04-14

Similar Documents

Publication Publication Date Title
US11868604B2 (en) Display processing method and apparatus
US10564694B2 (en) Power management method and power management apparatus for user equipment
CN110830127B (en) Radio frequency parameter processing method and device, mobile terminal and storage medium
CN111104012B (en) Distance measuring method and device, storage medium and terminal equipment
CN111596793B (en) Anti-misoperation method and system, storage medium and terminal equipment
CN110851014B (en) Touch recognition method and device, storage medium and terminal equipment
CN111007916B (en) Terminal device time setting method and system, storage medium and terminal device
CN112486350B (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN115623557A (en) Network finding frequency determining method, network finding frequency determining device and electronic equipment
CN112312542B (en) Ephemeris information collection method, device, storage medium and mobile terminal
CN112511692A (en) Anti-interference method and device, storage medium and mobile terminal
CN110995324B (en) Bluetooth communication method, device, storage medium and terminal equipment
CN111651299A (en) Wireless chip reset control method and device, storage medium and mobile terminal
CN111132282B (en) Application processor awakening method and device applied to mobile terminal
CN113613310A (en) WIFI connection method and device, storage medium and mobile terminal
CN111273774A (en) Terminal device display screen control method and system, storage medium and terminal device
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN112199050A (en) Storage method, device, storage medium and terminal equipment
CN109995441B (en) Communication information processing method, device and storage medium
CN111026259A (en) Control method and device of mobile terminal and storage medium
CN109660664B (en) Event processing method, device and storage medium
CN111026486B (en) Application sorting method, application sorting device and computer readable storage medium
CN111651313B (en) Conversion method and system of identification card, storage medium and terminal equipment
CN111010477B (en) Audio signal calling method and system, storage medium and terminal equipment
CN109561415B (en) NFC function detection method and device, storage medium and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230803

Address after: 230000 Room 403, building 2, Laojie library, Dianbu Town, Feidong County, Hefei City, Anhui Province

Patentee after: Hefei guiqian Information Technology Co.,Ltd.

Address before: 10 / F, No.5 Lane 999, Yangfan Road, high tech Zone, Ningbo City, Zhejiang Province

Patentee before: TCL mobile communication technology (Ningbo) Co.,Ltd.