CN114115445B - Method and device for detecting precision of real-time clock RTC - Google Patents

Method and device for detecting precision of real-time clock RTC Download PDF

Info

Publication number
CN114115445B
CN114115445B CN202111381836.7A CN202111381836A CN114115445B CN 114115445 B CN114115445 B CN 114115445B CN 202111381836 A CN202111381836 A CN 202111381836A CN 114115445 B CN114115445 B CN 114115445B
Authority
CN
China
Prior art keywords
rtc
time
module
precision
time difference
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
CN202111381836.7A
Other languages
Chinese (zh)
Other versions
CN114115445A (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.)
Quectel Wireless Solutions Co Ltd
Original Assignee
Quectel Wireless Solutions 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 Quectel Wireless Solutions Co Ltd filed Critical Quectel Wireless Solutions Co Ltd
Priority to CN202111381836.7A priority Critical patent/CN114115445B/en
Publication of CN114115445A publication Critical patent/CN114115445A/en
Application granted granted Critical
Publication of CN114115445B publication Critical patent/CN114115445B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/24Acquisition or tracking or demodulation of signals transmitted by the system
    • G01S19/25Acquisition or tracking or demodulation of signals transmitted by the system involving aiding data received from a cooperating element, e.g. assisted GPS
    • G01S19/256Acquisition or tracking or demodulation of signals transmitted by the system involving aiding data received from a cooperating element, e.g. assisted GPS relating to timing, e.g. time of week, code phase, timing offset
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO

Abstract

The application provides a method and a device for detecting precision of a real-time clock RTC. The controller obtains a first time difference between RTC time and system time of a first RTC at a first time, sleeps or closes a first module corresponding to the first RTC after the first time, and restarts the first module after a first time interval from the first time. After restarting the first module, a second time difference between the RTC time of the first RTC and the system time is obtained. Finally, the accuracy of the first RTC is determined according to the first time difference and the second time difference. That is, the controller detects a change in the time difference before and after the restart, and determines the accuracy of the RTC from the change in the time difference. Thus, the precision of manually calculating the RTC is avoided, and the occupation of resources such as manpower or time is reduced.

Description

Method and device for detecting precision of real-time clock RTC
Technical Field
The present application relates to the field of communications, and more particularly, to a method and apparatus for detecting Real Time Clock (RTC) accuracy.
Background
In the conventional scheme, the terminal device can realize clock synchronization and time calibration through network time service or global positioning system (Global Position System, GPS) time service. However, in the case that there is no network module and no GPS module, or the network module and the GPS module fail, the terminal device has a high requirement for RTC accuracy. RTC is mainly used to provide accurate time reference, and the value of RTC with inaccurate timing is low, and even brings huge loss to users. For example, the battery runs out in advance, works without time set by the customer, and the like, which brings poor experience to the customer. Thus, the RTC accuracy of the communication module needs to be strictly tested, but this requires huge manpower and resources.
Therefore, how to detect RTC accuracy is needed to be solved.
Disclosure of Invention
The application provides a method and a device for detecting the precision of a real-time clock (RTC), which can help to determine the precision of the RTC, so that the precision of the RTC is prevented from being calculated manually, and the occupation of resources such as manpower or time is reduced.
In a first aspect, a method for detecting accuracy of a real time clock RTC is provided, comprising:
acquiring a first time difference between RTC time and system time of a first RTC at a first time;
after the first moment, dormancy or closing a first module corresponding to the first RTC;
restarting the first module after a first period of time from the first time;
after restarting the first module, acquiring a second time difference between the RTC time of the first RTC and the system time;
and determining the precision of the first RTC according to the first time difference and the second time difference.
In a second aspect, an apparatus for detecting accuracy of a real time clock RTC is provided, which may be a terminal device or a chip usable for the terminal device. The apparatus has the functionality to implement the terminal device in the first aspect and various possible implementations. The functions can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
In one possible design, the apparatus includes: the transceiver module and the processing module can be at least one of a transceiver, a receiver and a transmitter, for example. Alternatively, the transceiver module may include a radio frequency circuit or antenna. The processing module may be a processor. Optionally, the apparatus further comprises a storage module, which may be a memory, for example. When included, the memory module is used to store instructions or data. In one possible implementation manner, the processing module is connected to the storage module, and the processing module may execute the instructions stored in the storage module or originate from other instructions, so that the apparatus performs the communication method of the first aspect and the various possible implementation manners.
In another possible design, when the device is a chip, the chip includes: the transceiver module and the processing module, the transceiver module can be an input/output interface, a pin, a circuit or the like on the chip. The processing module may be, for example, a processor. Optionally, the processing module causes the chip to implement the method of the first aspect and any possible implementation. Alternatively, the processing module may execute instructions in a memory module or call information such as data in the memory module, where the memory module may be an on-chip memory module, such as a register, a cache, or the like. The memory module may also be a static memory device, random access memory (random access memory, RAM) or the like, located within the communication device, but external to the chip, such as read-only memory (ROM) or other type of static memory device that may store static information and instructions.
The processor referred to in any of the above may be a general purpose Central Processing Unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to control program execution in the first aspect and various possible implementations.
In a third aspect, a computer storage medium is provided, in which a program code is stored for instructing the execution of the instructions of the method of the first aspect and any possible implementation of the first aspect.
In a fourth aspect, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method of the first aspect and any possible implementation of the first aspect.
In the embodiment of the application, the controller acquires a first time difference between the RTC time of the first RTC and the system time at a first time, sleeps or closes a first module corresponding to the first RTC after the first time, and restarts the first module after a first time interval from the first time. After restarting the first module, a second time difference between the RTC time of the first RTC and the system time is obtained. Finally, the accuracy of the first RTC is determined according to the first time difference and the second time difference. That is, the controller detects a change in the time difference before and after the restart, and determines the accuracy of the RTC from the change in the time difference. Thus, the precision of manually calculating the RTC is avoided, and the occupation of resources such as manpower or time is reduced.
Drawings
FIG. 1 is a schematic diagram of a communication system suitable for use with embodiments of the present application;
FIG. 2 is another schematic diagram of a communication system suitable for use with embodiments of the present application;
FIG. 3 is a schematic diagram of an RTC accuracy detection system;
FIG. 4 is a schematic flow chart of a method for detecting accuracy of a real time clock, RTC, of an embodiment of the present application;
FIG. 5 is a schematic diagram of a specific method for detecting accuracy of a real time clock, RTC, according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an apparatus for detecting accuracy of a real time clock, RTC, in accordance with an embodiment of the present application;
fig. 7 is a schematic structural diagram of a communication apparatus according to an embodiment of the present application.
Detailed Description
The technical scheme of the application will be described below with reference to the accompanying drawings.
In order to facilitate understanding of the embodiments of the present application, the following description will first be given by way of brief description of the terms involved in the present application.
1. RTC: the RTC is an integrated circuit, commonly referred to as a clock chip. RTC provides accurate real-time for people or provides accurate time reference for electronic system, and the current real-time clock chip mostly adopts crystal oscillator with higher precision as clock source. The RTC integrated inside the chip is generally referred to as an on-chip RTC, and the RTC extended outside the chip is generally referred to as an external RTC.
For a real-time clock, the accuracy of the running time of the real-time clock is directly affected by the stability of the frequency of the crystal oscillator. Parameters used to describe the frequency characteristics of a crystal are mainly frequency tolerance, frequency temperature characteristics and frequency voltage characteristics, and generally describe the change in crystal oscillation frequency with the influence of external factors, expressed in ppm and ppm/V. The crystal oscillator frequency is generally in MHz, the nominal frequency is 10MHz, and the frequency deviation is just 1ppm at 10 Hz.
It can be understood that if the precision of the crystal oscillator is 10PPM, we can calculate the time error of one day of a watch as follows:
10 (ppm) ×24 (24 hours a day) ×60 (60 minutes a day) ×60 (60 seconds a minute) =860001/1000000=0.864 s
I.e. the daily error does not exceed 0.864 seconds, the error has been calculated to be large, and so on, the larger the accuracy value, the larger the time error.
2. Clock synchronization
Clock synchronization includes phase synchronization and frequency synchronization. Frequency synchronization, among other things, means that a certain strict specific relationship is maintained in frequency between signals, which appear at the same average rate at their corresponding effective instants, so as to maintain all devices in the communication network operating at the same rate, i.e. the signal fixtures maintain a constant phase difference. Phase synchronization means that both the frequency and phase between signals remain consistent, i.e., the phase difference between the signals is constant at zero.
In the traditional scheme, the detection of the RTC precision error can only be obtained through manual calculation, so that how to detect the RTC precision error is needed to be solved.
The technical scheme of the embodiment of the application can be applied to various communication systems, such as: global system for mobile communications (global system for mobile communications, GSM), code division multiple access (code division multiple access, CDMA) system, wideband code division multiple access (wideband code division multiple access, WCDMA) system, general packet radio service (general packet radio service, GPRS), long term evolution (long term evolution, LTE) system, LTE frequency division duplex (frequency division duplex, FDD) system, LTE time division duplex (time division duplex, TDD), universal mobile telecommunications system (universal mobile telecommunication system, UMTS), worldwide interoperability for microwave access (worldwide interoperability for microwave access, wiMAX) communication system, future fifth generation (5th generation,5G) system, or New Radio (NR), etc.
To facilitate an understanding of embodiments of the present application, a communication system suitable for use with embodiments of the present application will be described in detail with reference to fig. 1 and 2.
Fig. 1 shows a schematic diagram of a communication system 100 suitable for use in methods and apparatus of embodiments of the present application. As shown in fig. 1, the communication system 100 may include a network device, such as the network device 110 shown in fig. 1; the communication system 100 may also include at least one terminal device, such as the terminal device 120 shown in fig. 1. Network device 110 and terminal device 120 may communicate via a wireless link.
Fig. 2 shows another schematic diagram of a communication system 200 suitable for use in the methods and apparatus for transmitting and receiving signals of embodiments of the present application. As shown, the communication system 200 may include at least two network devices, such as network devices 210 and 220 shown in fig. 2; the communication system 200 may also include at least one terminal device, such as the terminal device 230 shown in fig. 2. The terminal device 230 may establish a wireless link with the network device 210 and the network device 220 through a dual connection (dual connectivity, DC) technology or a multiple connection technology. The network device 210 may be, for example, a primary base station, and the network device 220 may be, for example, a secondary base station. In this case, the network device 210 is a network device when the terminal device 230 is initially accessed, and is responsible for radio resource control (radio resource control, RRC) communication with the terminal device 230, and the network device 220 may be added when RRC reconfiguration to provide additional radio resources.
Of course, the network device 220 may also be a primary base station, and the network device 210 may also be a secondary base station, which is not limited in this disclosure. In addition, fig. 2 shows a case of wireless connection between two network devices and a terminal device for easy understanding only, but this should not constitute any limitation on the scenario in which the present application is applied. The terminal device may also establish wireless links with more network devices.
Each communication device, such as network device 110 or terminal device 120 in fig. 1, or network device 210, network device 220, or terminal device 230 in fig. 2, may be configured with multiple antennas. The plurality of antennas may include at least one transmitting antenna for transmitting signals and at least one receiving antenna for receiving signals. In addition, each communication device may additionally include a transmitter chain and a receiver chain, each of which may include a plurality of components (e.g., processors, modulators, multiplexers, demodulators, demultiplexers, antennas, etc.) associated with the transmission and reception of signals, as will be appreciated by one skilled in the art. Thus, communication between the network device and the terminal device may be via multiple antenna technology.
It should be understood that the technical solution of the present application may be applied to a network device in the wireless communication system, where the network device may be any device having a wireless transceiver function. The apparatus includes, but is not limited to: an evolved Node B (eNB), a radio network controller (Radio Network Controller, RNC), a Node B (Node B, NB), a base station controller (Base Station Controller, BSC), a base transceiver station (Base Transceiver Station, BTS), a Home base station (e.g., home evolved NodeB, or Home Node B, HNB), a baseband unit (BaseBandUnit, BBU), an Access Point (AP), a wireless relay Node, a wireless backhaul Node, a transmission Point (transmission Point, TP), or a transmission reception Point (transmissionand reception Point, TRP) in a wireless fidelity (Wireless Fidelity, WIFI) system, etc., may also be 5G, e.g., NR, a gNB in a system, or a transmission Point (TRP or TP), one or a group of antenna panels (including multiple antenna panels) of a base station in a 5G system, or may also be a network Node constituting a gNB or transmission Point, e.g., a baseband unit (BBU), or a Distributed Unit (DU), etc.
In some deployments, the gNB may include a Centralized Unit (CU) and DUs. The gNB may also include a Radio Unit (RU). The CU implements part of the functions of the gNB, the DU implements part of the functions of the gNB, for example, the CU implements functions of a radio resource control (radio resource control, RRC), a packet data convergence layer protocol (packet data convergence protocol, PDCP) layer, and the DU implements functions of a radio link control (radio linkcontrol, RLC), a medium access control (media access control, MAC), and a Physical (PHY) layer. Since the information of the RRC layer may eventually become information of the PHY layer or be converted from the information of the PHY layer, under this architecture, higher layer signaling, such as RRC layer signaling, may also be considered to be transmitted by the DU or by the du+cu. It is understood that the network device may be a CU node, or a DU node, or a device comprising a CU node and a DU node. In addition, the CU may be divided into network devices in an access network (radio access network, RAN), or may be divided into network devices in a Core Network (CN), which is not limited by the present application.
It should also be understood that the technical solution of the present application may be applied to a terminal device in the wireless communication system, which may also be referred to as a User Equipment (UE), an access terminal, a subscriber unit, a subscriber station, a mobile station, a remote terminal, a mobile device, a user terminal, a wireless communication device, a user agent or a user equipment. The terminal device in the embodiment of the present application may be a mobile phone (mobile phone), a tablet computer (pad), a computer with a wireless transceiving function, a Virtual Reality (VR) terminal device, an Augmented Reality (AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in self driving (self driving), a wireless terminal in remote medical (remote medical), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation security (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), or the like. The embodiment of the application does not limit the application scene.
It should be understood that in the embodiments shown below, the first, second and various numerical numbers are merely for convenience of description and are not intended to limit the scope of the embodiments of the present application.
Fig. 3 shows a schematic diagram of an RTC accuracy detection system in accordance with an embodiment of the application. As shown in fig. 3, the RTC accuracy detection system includes a controller, a communication module, and an RTC module.
FIG. 4 shows a schematic flow chart of a method for detecting RTC accuracy according to an embodiment of the present application. It will be appreciated that the execution body of the embodiment shown in fig. 4 may be a terminal device, and in particular may be a control module (e.g., a controller) in the terminal device. The following examples illustrate the controller, but the application is not limited thereto.
A first time difference between RTC time and system time of a first RTC is acquired at a first time 401.
Specifically, the first time may be any time after the time of the first RTC and the system time are synchronized. That is, the controller acquires the time of the RTC display and the time of the system display at the first time, and determines the time difference between the time of the RTC display and the time of the system display.
Optionally, the controller may also obtain a third time difference between the RTC time of the second RTC and the system time at the first time.
Specifically, the controller may simultaneously acquire time differences between RTC times and system times of a plurality of different RTCs, respectively, at the same time. The embodiment of the present application is described by taking the controller to acquire two RTCs (i.e., the first RTC and the second RTC) at the same time as an example, but the present application is not limited thereto.
It can be understood that different RTCs may correspond to different working modules, respectively, and different working modules may correspond to different chips, and may also be understood as corresponding to different terminal devices or working platforms. For example, the work platform may be a moving core, RDA, MTK, or HiSi.
402, after the first time, dormancy or turning off the first module corresponding to the first RTC.
Specifically, after the first time, the first module corresponding to the first RTC is dormant or turned off.
Optionally, after the first time, the first module is dormant. If the first module needs to be restarted, the controller sends a wakeup message to the first module, and considers the first module to wake up after receiving a wakeup response message fed back by the first module.
Alternatively, after the first time, the first module may be turned off.
403, restarting the first module after a first period of time from the first time.
Alternatively, the first period may be a preset 2 hours or 3 hours, or 24 hours, 48 hours, which the present application is not limited to.
Optionally, after a second period of time from the first time, restarting the second module.
Specifically, the controller may detect the restart of the first module and the second module simultaneously. The restarting of the second module may be performed after the second module is turned off or after the second module is dormant. In addition, the restarting mode after the dormancy of the second module may be the same as that of the first module, which is not limited in the present application.
It is understood that the first period of time and the second period of time may be the same or different. The specific time period may be different RTC presets.
404, after restarting the first module, obtaining a second time difference between the RTC time of the first RTC and the system time.
Specifically, the first module is restarted after being turned off or dormant. The controller detects a change in the time difference before and after the restart, which helps determine the accuracy of the first RTC.
And 405, determining the precision of the first RTC according to the first time difference and the second time difference.
Specifically, the controller detects a change in the time difference before and after the restart, and determines the difference between the first time difference and the second time difference as the accuracy of the first RTC. Thus, the precision of manually calculating the RTC is avoided, and the occupation of resources such as manpower or time is reduced.
It will be appreciated that the smaller the difference between the first time difference and the second time difference, the higher the accuracy; the greater the difference, the lower the accuracy.
Optionally, after step 405, if it is determined that the accuracy of the first RTC is less than the first preset accuracy threshold, the first RTC is a qualified RTC, that is, a pass test; if the precision of the first RTC is determined to be greater than the first preset precision threshold, the first RTC is a failed RTC, namely the test fails (fail).
It will be appreciated that if the accuracy of the first RTC is equal to the first predetermined accuracy threshold, the first RTC may be pre-agreed to be calculated as a qualified RTC, or may be pre-agreed to be determined as a failed RTC.
Optionally, after step 405, if it is determined that the accuracy of the second RTC is less than the second preset accuracy threshold, the second RTC is a qualified RTC, that is, a pass of test (pass); if the precision of the second RTC is determined to be greater than the second preset precision threshold, the second RTC is a failed RTC, i.e. a failed test (fail).
It will be appreciated that if the accuracy of the second RTC is equal to the second predetermined accuracy threshold, the second RTC may be pre-agreed to be calculated as a qualified RTC, or may be pre-agreed to be determined as a failed RTC.
The first preset precision threshold value and the second precision threshold value may be the same value or different values, which is not limited in the present application. For example, if the first preset precision threshold and the second precision threshold respectively correspond to the requirements of different modules for precision, different values are set.
Optionally, the controller may further sort the plurality of RTCs according to the precision, and control the display to display the module corresponding to each RTC according to the sorting. Therefore, the modules are jointly displayed, the accuracy gap of the modules can be intuitively obtained, and further, the appropriate modules are selected according to the requirements of users, so that the user experience is improved.
Specifically, the order by the precision size may be calculated by precision at the same intervals. If the precision values of different RTCs are calculated by time intervals different from each other, the precision values can be converted into the precision of the same time interval during sequencing.
Therefore, the controller obtains a first time difference between the RTC time and the system time of the first RTC at a first time, sleeps or closes a first module corresponding to the first RTC after the first time, and restarts the first module after a first time interval from the first time. After restarting the first module, a second time difference between the RTC time of the first RTC and the system time is obtained. Finally, the accuracy of the first RTC is determined according to the first time difference and the second time difference. That is, the controller detects a change in the time difference before and after the restart, and determines the accuracy of the RTC from the change in the time difference. Thus, the precision of manually calculating the RTC is avoided, and the occupation of resources such as manpower or time is reduced.
Fig. 5 shows a schematic flow chart of one specific embodiment of the present application. The execution body of the embodiment shown in fig. 4 may be a controller.
501, the controller obtains a first time difference between an RTC time of a first RTC and a system time at a first time.
502, after the first time, the controller sleeps or turns off the first module corresponding to the first RTC.
At 503, the controller obtains a third time difference between the RTC time of the second RTC and the system time at the first time.
504, after the first time, the controller sleeps or turns off the second module corresponding to the second RTC.
505, the controller restarting the first module after a first period of time from the first time.
506, the controller restarts the second module after a second period of time from the first time.
507, the controller obtains a second time difference between the RTC time of the first RTC and the system time after restarting the first module.
508, the controller obtains a fourth time difference between the RTC time and the system time of the second RTC after restarting the second module.
509, the controller determines the accuracy of the first RTC based on the first time difference and the second time difference.
510, the controller determines the accuracy of the second RTC based on the third time difference and the fourth time difference.
511, the controller determines whether the RTC is qualified according to the relationship between the RTC accuracy and a preset accuracy threshold.
512, if the RTC is acceptable, the test passes.
The controller controls the display to display the first module and the second module in the order of accuracy 513.
514, if the RTC fails, the test fails.
515, the test ends.
As shown in fig. 6, an apparatus 600 for detecting accuracy of a real time clock RTC includes a processing unit 610. Optionally, the apparatus 600 further comprises a transceiver unit 620 and a display unit 630. The communication device 600 is configured to implement the functions of the terminal device or the network device in the embodiment of the method shown in fig. 4.
When the apparatus 600 for detecting the accuracy of the real time clock RTC is used to implement the functionality of the terminal device in the method embodiment shown in fig. 4:
a processing unit 610, configured to obtain a first time difference between an RTC time of a first RTC and a system time at a first time;
the processing unit 610 is further configured to sleep or close the first module corresponding to the first RTC after the first time;
the processing unit 610 is further configured to restart the first module after a first period of time is spaced from the first time;
the processing unit 610 is further configured to obtain a second time difference between the RTC time and the system time of the first RTC after restarting the first module;
the processing unit 610 is further configured to determine an accuracy of the first RTC according to the first time difference and the second time difference.
Optionally, the processing unit 610 is further configured to determine that the first RTC is a qualified RTC if the accuracy of the first RTC is greater than a first preset accuracy threshold; and determining that the first RTC is a disqualified RTC under the condition that the precision of the first RTC is smaller than or equal to a first preset precision threshold value.
Optionally, the processing unit 610 is further configured to:
acquiring a third time difference between RTC time and system time of a second RTC at the first time;
after the first moment, dormancy or closing a second module corresponding to the second RTC;
restarting the second module after a second period of time from the first time;
after restarting the second module, acquiring a fourth time difference between the RTC time of the second RTC and the system time;
the controller determines the accuracy of the second RTC according to the third time difference and the fourth time difference.
Optionally, the processing unit 610 is further configured to:
determining that the second RTC is a qualified RTC under the condition that the precision of the second RTC is smaller than a second preset precision threshold;
and determining that the second RTC is a disqualified RTC under the condition that the precision of the second RTC is greater than or equal to a second preset precision threshold.
Optionally, the first period of time is different from the second period of time.
Optionally, the first preset precision threshold is different from the second preset precision threshold.
Optionally, the processing unit 610 is further configured to sort the first RTC and the second RTC according to a precision size;
and a display unit 630, configured to display the first module and the second module according to the ranking.
The above-mentioned more detailed descriptions of the processing unit 610 and the transceiver unit 620 may be directly obtained by referring to the related descriptions in the method embodiment shown in fig. 4, which are not repeated herein.
As shown in fig. 7, the communication device 700 includes a processor 710 and an interface circuit 720. Processor 710 and interface circuit 720 are coupled to each other. It is understood that the interface circuit 720 may be a transceiver or an input-output interface. Optionally, the communication device 700 may further comprise a memory 730 for storing instructions to be executed by the processor 710 or for storing input data required by the processor 710 to execute instructions or for storing data generated after the processor 710 executes instructions.
When the communication device 700 is used to implement the method shown in fig. 4, the processor 710 is configured to perform the functions of the processing unit 710, and the interface circuit 720 is configured to perform the functions of the transceiver unit 720.
When the communication device is a chip applied to the terminal equipment, the terminal equipment chip realizes the functions of the terminal equipment in the embodiment of the method. The terminal device chip receives information from other modules (such as a radio frequency module or an antenna) in the terminal device, and the information is sent to the terminal device by the network device; alternatively, the terminal device chip sends information to other modules (e.g., radio frequency modules or antennas) in the terminal device, which is sent by the terminal device to the network device.
When the communication device is a chip applied to the network equipment, the network equipment chip realizes the functions of the network equipment in the embodiment of the method. The network device chip receives information from other modules (such as a radio frequency module or an antenna) in the network device, and the information is sent to the network device by the terminal device; alternatively, the network device chip sends information to other modules (e.g., radio frequency modules or antennas) in the network device, which the network device sends to the terminal device.
It is to be appreciated that the processor in embodiments of the application may be a central processing unit (central processing unit, CPU), other general purpose processor, digital signal processor (digital signal processor, DSP), application specific integrated circuit (application specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or other programmable logic device, transistor logic device, hardware components, or any combination thereof. The general purpose processor may be a microprocessor, but in the alternative, it may be any conventional processor.
The method steps in the embodiments of the present application may be implemented by hardware, or may be implemented by executing software instructions by a processor. The software instructions may be comprised of corresponding software modules that may be stored in random access memory (random access memory, RAM), flash memory, read-only memory (ROM), programmable ROM (PROM), erasable Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. In addition, the ASIC may reside in a network device or terminal device. The processor and the storage medium may reside as discrete components in a network device or terminal device.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are performed in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer program or instructions may be stored in or transmitted across a computer-readable storage medium. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server that integrates one or more available media. The usable medium may be a magnetic medium, e.g., floppy disk, hard disk, tape; but also optical media such as DVD; but also semiconductor media such as Solid State Disks (SSDs).
In various embodiments of the application, where no special description or logic conflict exists, terms and/or descriptions between the various embodiments are consistent and may reference each other, and features of the various embodiments may be combined to form new embodiments based on their inherent logic.
In the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. In the text description of the present application, the character "/", generally indicates that the associated objects are an or relationship; .
It will be appreciated that the various numerical numbers referred to in the embodiments of the present application are merely for ease of description and are not intended to limit the scope of the embodiments of the present application. The sequence number of each process does not mean the sequence of the execution sequence, and the execution sequence of each process should be determined according to the function and the internal logic.

Claims (11)

1. A method for detecting accuracy of a real time clock, RTC, comprising:
acquiring a first time difference between RTC time and system time of a first RTC at a first time;
after the first moment, dormancy or closing a first module corresponding to the first RTC;
restarting the first module after a first period of time from the first time;
after restarting the first module, acquiring a second time difference between the RTC time of the first RTC and the system time;
and determining the precision of the first RTC according to the first time difference and the second time difference.
2. The method according to claim 1, wherein the method further comprises:
determining that the first RTC is a qualified RTC under the condition that the precision of the first RTC is smaller than a first preset precision threshold;
and determining that the first RTC is a disqualified RTC under the condition that the precision of the first RTC is greater than or equal to a first preset precision threshold value.
3. The method according to claim 2, wherein the method further comprises:
acquiring a third time difference between RTC time and system time of a second RTC at the first time;
after the first moment, dormancy or closing a second module corresponding to the second RTC;
restarting the second module after a second period of time from the first time;
after restarting the second module, acquiring a fourth time difference between the RTC time of the second RTC and the system time;
and determining the precision of the second RTC according to the third time difference and the fourth time difference.
4. A method according to claim 3, characterized in that the method further comprises:
determining that the second RTC is a qualified RTC under the condition that the precision of the second RTC is smaller than a second preset precision threshold;
and determining that the second RTC is a disqualified RTC under the condition that the precision of the second RTC is greater than or equal to a second preset precision threshold.
5. The method of claim 4, wherein the first period of time is different from the second period of time.
6. The method of claim 4, wherein the first preset precision threshold is different from the second preset precision threshold.
7. The method according to any one of claims 3 to 6, further comprising:
ordering the first RTC and the second RTC according to the precision;
and displaying the first module and the second module according to the sequence.
8. An apparatus for detecting the accuracy of a real time clock RTC, comprising means for performing the method of any one of claims 1 to 7.
9. An electronic device comprising a processor and a memory, the memory having instructions stored therein that when executed by the processor cause the processor to perform the method of any of claims 1 to 7.
10. A computer readable storage medium, characterized in that the storage medium has stored therein a computer program or instructions which, when executed by a communication device, implement the method of any of claims 1 to 7.
11. A computer program product comprising computer program code which, when run by an electronic device, causes the electronic device to perform the method of any of claims 1-7.
CN202111381836.7A 2021-11-19 2021-11-19 Method and device for detecting precision of real-time clock RTC Active CN114115445B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111381836.7A CN114115445B (en) 2021-11-19 2021-11-19 Method and device for detecting precision of real-time clock RTC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111381836.7A CN114115445B (en) 2021-11-19 2021-11-19 Method and device for detecting precision of real-time clock RTC

Publications (2)

Publication Number Publication Date
CN114115445A CN114115445A (en) 2022-03-01
CN114115445B true CN114115445B (en) 2023-10-17

Family

ID=80396927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111381836.7A Active CN114115445B (en) 2021-11-19 2021-11-19 Method and device for detecting precision of real-time clock RTC

Country Status (1)

Country Link
CN (1) CN114115445B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007058705A (en) * 2005-08-26 2007-03-08 Daikin Ind Ltd Equipment management device
JP2017020852A (en) * 2015-07-09 2017-01-26 株式会社タムラ製作所 Embedded device
CN111781987A (en) * 2020-07-08 2020-10-16 Oppo广东移动通信有限公司 Real-time clock calibration method and related device
CN112929122A (en) * 2021-04-26 2021-06-08 新石器慧通(北京)科技有限公司 Time synchronization method and device, terminal equipment and computer readable storage medium
CN113157046A (en) * 2021-03-25 2021-07-23 山东英信计算机技术有限公司 Method, device and system for managing server BMC time

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7362263B2 (en) * 2003-09-04 2008-04-22 Seiko Epson Corporation Keeping accurate time for a hybrid GPS receiver and mobile phone when powered off
CN101373390B (en) * 2007-08-20 2010-04-14 鸿富锦精密工业(深圳)有限公司 System and method for verifying instant clock accuracy
JP5381843B2 (en) * 2010-03-19 2014-01-08 富士通株式会社 Information processing apparatus and information processing apparatus activation method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007058705A (en) * 2005-08-26 2007-03-08 Daikin Ind Ltd Equipment management device
JP2017020852A (en) * 2015-07-09 2017-01-26 株式会社タムラ製作所 Embedded device
CN111781987A (en) * 2020-07-08 2020-10-16 Oppo广东移动通信有限公司 Real-time clock calibration method and related device
CN113157046A (en) * 2021-03-25 2021-07-23 山东英信计算机技术有限公司 Method, device and system for managing server BMC time
CN112929122A (en) * 2021-04-26 2021-06-08 新石器慧通(北京)科技有限公司 Time synchronization method and device, terminal equipment and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"RFID based attendance system";T.S.Lim等;《2009 IEEE Symposium on Industrial Electronic & Applications》;全文 *
"UTC(HUST)本地时的建立及时间同步研究";周书玉;《中国优秀硕士学位论文全文数据库》;全文 *

Also Published As

Publication number Publication date
CN114115445A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
US20230261829A1 (en) Wireless communication method and apparatus, device, and storage medium
JP2015181226A (en) Improved synchronization beacon detection method
US20210218516A1 (en) Information processing method, communications device, system, and storage medium
US20210195527A1 (en) Discontinuous Reception Method, Terminal Device and Network Device
CN103580848A (en) Reference clock calibration
US20220353844A1 (en) Paging Method and Communication Apparatus
KR20220065007A (en) Connected Discontinuous Receive for Carrier Aggregation
EP4156852A1 (en) Capability reporting and processing method, device and apparatus, and medium
CN112585892B (en) Public alert system duplicate message detection
CN114115445B (en) Method and device for detecting precision of real-time clock RTC
CN116368939A (en) Communication method and communication device
CN112399497A (en) Communication method and communication device
TWI495378B (en) Method and device for reducing time away from packet switched operation in a single radio solution
WO2024031612A1 (en) Multi-rtt estimation for sidelink positioning
WO2024031634A1 (en) Systems for rtt based sidelink positioning
WO2024031627A1 (en) Resource allocation for sidelink positioning
US20240007991A1 (en) Positioning method and apparatus, and communication device
WO2023193684A1 (en) Method for verifying position of terminal, and terminal and network side device
US20220256484A1 (en) Timing Alignment Handling for Configured Grant Based Small Data Transmissions in Inactive Mode
WO2023065216A1 (en) Cssf design for ue with needforgap capability
WO2023044635A1 (en) Time domain window determination for wireless communication
US20240089898A1 (en) Communication method and apparatus
US20240073748A1 (en) Method and apparatus for measurement configuration updates for inter-cell mobility
WO2023115453A1 (en) Nr ssb measurements with cca for 60ghz range
WO2023151020A1 (en) Improved reference signal measurement mechanisms during secondary cell activation in new radio

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