Nothing Special   »   [go: up one dir, main page]

CN107395311A - Clock synchronizing method, device and computer-readable recording medium - Google Patents

Clock synchronizing method, device and computer-readable recording medium Download PDF

Info

Publication number
CN107395311A
CN107395311A CN201710781022.XA CN201710781022A CN107395311A CN 107395311 A CN107395311 A CN 107395311A CN 201710781022 A CN201710781022 A CN 201710781022A CN 107395311 A CN107395311 A CN 107395311A
Authority
CN
China
Prior art keywords
network device
time
network equipment
reference time
clock synchronization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710781022.XA
Other languages
Chinese (zh)
Inventor
邓中亮
蒋卓勤
葛丽丽
张国龙
肖占蒙
莫君
贾步云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING SHOUKE SOFTWARE AND SYSTEM INTEGRATION Co Ltd
Beijing University of Posts and Telecommunications
Original Assignee
BEIJING SHOUKE SOFTWARE AND SYSTEM INTEGRATION Co Ltd
Beijing University of Posts and Telecommunications
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 BEIJING SHOUKE SOFTWARE AND SYSTEM INTEGRATION Co Ltd, Beijing University of Posts and Telecommunications filed Critical BEIJING SHOUKE SOFTWARE AND SYSTEM INTEGRATION Co Ltd
Priority to CN201710781022.XA priority Critical patent/CN107395311A/en
Publication of CN107395311A publication Critical patent/CN107395311A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Electric Clocks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention discloses a kind of clock synchronizing method, device and computer-readable recording medium, belong to wireless communication technology field.Methods described includes:During indoor positioning is carried out, the fiducial time that second network equipment is sent is received, the fiducial time is that second network equipment acquires from outdoor positioning signal, and the outdoor positioning signal is used to position indoor any network equipment;Determine the time difference between local zone time and the fiducial time;The local zone time is calibrated based on the time difference, to realize clock synchronization.The fiducial time that first network equipment of the present invention is sent by receiving second network equipment, and according to the time difference between local zone time and fiducial time, calibrate local zone time, so as to realize that the clock between first network equipment and second network equipment is synchronous, and then improve the follow-up accuracy for carrying out indoor positioning.

Description

Clock synchronization method, device and computer readable storage medium
Technical Field
The present invention relates to the field of wireless communication technologies, and in particular, to a clock synchronization method and apparatus, and a computer-readable storage medium.
Background
With the development of wireless communication technology, wireless indoor positioning technology is receiving more and more attention from people. The Wireless indoor positioning technology may include WiFi (Wireless Fidelity), ZigBee (ZigBee protocol), BlueTooth (BlueTooth), UWB (ultra wide band), and the like. The technologies are widely applied to various aspects of life such as offices, families, factories, malls and the like, for example, a certain shop of an indoor shopping mall is quickly found, the position of personnel is quickly positioned in a fire or earthquake, and the like, and the accurate and quick positioning is needed.
Currently, when indoor positioning is performed, a plurality of network devices are usually used to perform communication to determine the distance between the network devices, so as to achieve the purpose of positioning. And because the clocks among the network devices cannot achieve high-precision synchronization, the determined distance among the network devices is inaccurate, so that the positioning precision is not high, and the error is large. Therefore, a clock synchronization method is needed to improve the accuracy of indoor positioning.
Disclosure of Invention
The embodiment of the application provides a clock synchronization method, a clock synchronization device and a computer readable storage medium, which can be used for solving the problem of inaccurate positioning in indoor positioning. The technical scheme is as follows:
in a first aspect, a clock synchronization method is provided, which is applied to a first network device, and includes:
receiving reference time sent by second network equipment in the process of indoor positioning, wherein the reference time is obtained by the second network equipment from an outdoor positioning signal, and the outdoor positioning signal is used for positioning any indoor network equipment;
determining a time difference between a local time and the reference time;
and calibrating the local time based on the time difference value to realize clock synchronization.
Optionally, before the base station receives the reference time sent by the second network device, the method further includes:
pairing with the second network device;
and when the pairing with the second network equipment is successful, acquiring the round-trip flight time TOF between the second network equipment and the second network equipment.
Optionally, the calibrating the local time based on the time difference value includes:
subtracting the TOF from the time difference to obtain a clock adjustment value;
calibrating the local time based on the clock adjustment value.
Optionally, the obtaining of the round-trip time of flight TOF with the second network device includes:
communicating with the second network device for multiple times to obtain multiple message sending times and multiple message receiving times; determining the TOF based on the plurality of transmit message times and the plurality of receive message times; or,
and receiving the TOF sent by the second network equipment, wherein the TOF is determined by the second network equipment based on a plurality of message sending times and a plurality of message receiving times obtained after the second network equipment carries out a plurality of communications with the first network equipment and then is sent.
In a second aspect, a clock synchronization method is provided, and is applied to a second network device, where the method includes:
in the process of indoor positioning, reference time is obtained from an outdoor positioning signal, and the outdoor positioning signal is used for positioning any indoor network equipment;
and sending the reference time to a first network device so that the first network device determines a time difference value between a local time and the reference time, and calibrating the local time based on the time difference value to complete clock synchronization.
Optionally, after obtaining the reference time from the outdoor positioning signal, the method further includes:
and calibrating the local time as the reference time.
Optionally, before sending the reference time to the first network device, the method further includes:
communicating with the first network equipment for multiple times to obtain multiple message sending times and multiple message receiving times;
determining a TOF based on the plurality of transmit message times and the plurality of receive message times;
transmitting the TOF to the first network device.
In a third aspect, a clock synchronization apparatus is provided, which is applied to a first network device, and includes:
the receiving module is used for receiving reference time sent by second network equipment in the process of indoor positioning, wherein the reference time is obtained by the second network equipment from an outdoor positioning signal, and the outdoor positioning signal is used for positioning any indoor network equipment;
a determining module for determining a time difference between a local time and the reference time;
and the calibration module is used for calibrating the local time based on the time difference value so as to realize clock synchronization.
Optionally, the apparatus further comprises:
a pairing module for pairing with the second network device;
and the obtaining module is used for obtaining the round-trip flight time TOF between the second network device and the second network device after the pairing with the second network device is successful.
Optionally, the calibration module comprises:
the calculation submodule is used for subtracting the TOF from the time difference value to obtain a clock adjustment value;
a calibration submodule for calibrating the local time based on the clock adjustment value.
Optionally, the obtaining module includes:
the communication submodule is used for carrying out multiple communications with the second network equipment to obtain multiple message sending times and multiple message receiving times; determining the TOF based on the plurality of transmit message times and the plurality of receive message times; or,
and the receiving submodule is used for receiving the TOF sent by the second network equipment, and the TOF is sent after being determined by the second network equipment based on a plurality of message sending times and a plurality of message receiving times obtained after the second network equipment carries out a plurality of communications with the first network equipment.
In a fourth aspect, a clock synchronization apparatus is provided, which is applied in a second network device, and includes:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring reference time from an outdoor positioning signal in the process of indoor positioning, and the outdoor positioning signal is used for positioning any indoor network equipment;
and the first sending module is used for sending the reference time to first network equipment so that the first network equipment determines a time difference value between local time and the reference time, and calibrates the local time based on the time difference value to finish clock synchronization.
Optionally, the apparatus further comprises:
and the calibration module is used for calibrating the local time to be the reference time.
Optionally, the apparatus further comprises:
the communication module is used for carrying out multiple communications with the first network equipment to obtain multiple message sending times and multiple message receiving times;
a determining module to determine a TOF based on the plurality of transmit message times and the plurality of receive message times;
a second sending module, configured to send the TOF to the first network device.
In a fifth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, implements the steps of any of the methods provided in the first aspect.
In a sixth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, implements the steps of any of the methods provided in the second aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects: in the embodiment of the present invention, the first network device receives the reference time sent by the second network device, and calibrates the local time according to the time difference between the local time and the reference time, thereby implementing clock synchronization between the first network device and the second network device. After the clocks between the first network device and the second network device are synchronized, the accuracy of the distance determination is improved when the distance between the first network device and the second network device is determined subsequently, so that the distance error is reduced, and the accuracy of the subsequent indoor positioning is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1A is a schematic diagram of a clock synchronization system according to an embodiment of the present invention;
FIG. 1B is a schematic diagram of another clock synchronization system according to an embodiment of the present invention;
FIG. 2 is a flow chart of a clock synchronization method according to an embodiment of the present invention;
fig. 3A is a schematic structural diagram of a first clock synchronization apparatus according to an embodiment of the present invention;
fig. 3B is a schematic structural diagram of a second clock synchronization apparatus according to an embodiment of the present invention;
fig. 3C is a schematic structural diagram of a calibration module according to an embodiment of the present invention;
fig. 3D is a schematic structural diagram of an obtaining module according to an embodiment of the present invention;
FIG. 4A is a schematic structural diagram of a third clock synchronization apparatus according to an embodiment of the present invention;
FIG. 4B is a schematic structural diagram of a fourth clock synchronization apparatus according to an embodiment of the present invention;
fig. 4C is a schematic structural diagram of a fifth clock synchronization apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a network device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Before explaining the embodiments of the present invention in detail, an application scenario and a system architecture related to the embodiments of the present invention are explained separately.
First, an application scenario related to the embodiment of the present invention is described.
Currently, indoor positioning has been applied to various aspects of life, such as quickly finding a certain shop in an indoor mall, quickly positioning the position of a person in a fire or earthquake, and the like. However, when indoor positioning is performed, the accuracy of indoor positioning is low because clocks of network devices are not synchronized. Based on such a scenario, the embodiment of the present invention provides a method capable of implementing clock synchronization between each network device, so as to improve accuracy of indoor positioning.
Next, a system architecture according to an embodiment of the present invention will be described.
Fig. 1A is a schematic diagram of a clock synchronization system according to an embodiment of the present invention, and referring to fig. 1A, the system includes a first network device 1 and a second network device 2, where the first network device 1 may communicate with the second network device 2. The first network device 1 may be a base station or a terminal such as a smart phone or a tablet computer, and the second network device 2 may also be a base station or a terminal such as a smart phone or a tablet computer. However, when the first network device 1 is a terminal, the second network device 2 is not a terminal, and when the second network device 2 is a terminal, the first network device is not a terminal. In the drawings of the embodiments of the present invention, a first network device 1 is taken as a terminal, and a second network device 2 is taken as a base station for example.
It should be noted that, the second network device 2 may receive the outdoor positioning signal, obtain the reference time from the outdoor positioning signal, and then send the reference time to the first network device 1, and after receiving the reference time, the first network device 1 may determine a time difference between the local time and the reference time, and then calibrate the local time based on the time difference, so as to implement clock synchronization with the second network device.
Referring to fig. 1B, the first network device 1 may include a hardware counter 11, a first controller 12, a first UWB (ultra wide Band, carrierless communication technology) module 13, and a first antenna 14. The second network device 2 may include a radio frequency receiving module 21, a second controller 22, a second UWB module 23 and a second antenna 24. The hardware counter 11 may be connected to the first controller 12, the first controller 12 may be connected to the first UWB module 13, the first UWB module 13 is connected to the first antenna 14, the first antenna 14 is connected to the second antenna 24 through a network, the second antenna 24 is connected to the second UWB module 23, the second UWB module 23 is connected to the second controller 22, and the second controller 22 is connected to the radio frequency receiving module 21. The radio frequency receiving module 21 may receive the outdoor positioning signal and obtain the reference time from the outdoor positioning signal, the second controller 22 may send the reference time to the second UWB module 23, and the second UWB module 23 sends the reference time through the second antenna 24; the first antenna 14 may receive the reference time transmitted from the second antenna 24 under the control of the first UWB module 13 and transmit the reference time to the first controller 12, and the first controller 12 may acquire the local time from the hardware counter 11 and determine a time difference between the local time and the reference time, so as to calibrate the local time recorded in the hardware counter 11 according to the time difference.
It should be noted that the first network device may include not only the above modules, but also other modules, such as a voltage-controlled temperature compensation crystal oscillator, a radio frequency receiving module, a radio frequency transmitting module, and the like. The second network device may include not only the above modules, but also other modules, such as a hardware counter, a radio frequency transmission module, a piezo-air temperature compensation crystal oscillator, and the like.
After describing the application scenario and system architecture of the embodiment of the present invention, the clock synchronization method provided by the embodiment of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 2 is a flow chart illustrating a method of clock synchronization, see fig. 2, according to an exemplary embodiment, including the following steps.
Step 201: in the process of indoor positioning, the second network device obtains the reference time from an outdoor positioning signal, and the outdoor positioning signal is used for positioning any indoor network device.
When indoor positioning is performed, the outdoor positioning system may send an outdoor positioning signal to any indoor network device, and the outdoor positioning signal includes the reference time, so that the second network device may receive the outdoor positioning signal sent by the outdoor positioning system, and after receiving the outdoor positioning signal, may obtain the reference time from the outdoor positioning signal.
In addition, since clock synchronization refers to setting the time between the first network device and the second network device to be the same time as much as possible, the second network device may also calibrate the local time to the reference time after acquiring the reference time.
It is worth noting that, as shown in fig. 1B, the second network device may include a radio frequency receiving module and a hardware counter, the second network device may complete the operation of step 201 through the radio frequency receiving module, and the hardware counter may record the local time, that is, record the reference time through the hardware counter.
Step 202: the second network device transmits the reference time to the first network device.
It should be noted that, as shown in fig. 1B, the second network device may include a second controller and a second UWB module, and therefore, the second network device may control the second UWB module to transmit the reference time to the first network device through the second controller.
Step 203: the first network equipment receives the reference time sent by the second network equipment.
As can be seen from fig. 1B, the first network device includes the first antenna and the first UWB module, and therefore, in the first network device, the first antenna receives the reference time transmitted by the second network device under the control of the first UWB module.
Step 204: the first network device determines a time difference between the local time and the reference time.
In order to enable accurate time synchronization between the first network device and the second network device, the first network device may determine a time difference between the local time and the reference time.
It should be noted that, as shown in fig. 1B, the first network device includes a first controller and a hardware counter, and the hardware counter records a local time, so that the first network device may obtain the local time from the hardware counter through the first controller, and receive a reference time sent by the first UWB module, and the first controller may subtract the reference time from the local time to obtain a time difference. Or subtracting the local time from the reference time to obtain a time difference value.
Step 205: the first network device calibrates a local time based on the time difference value to achieve clock synchronization.
Wherein the first network device may calibrate the local time based directly on the time difference. Of course, as can be seen from fig. 1B, the first network device may include a vcxo and a hardware counter, and the hardware counter counts according to the frequency of the vcxo, so that when the first network device calibrates the local time, the frequency of the vcxo may also be calibrated.
In addition, since there is a transmission delay between the first network device and the second network device, when the first network device calibrates the local time by the time difference, if the transmission delay between the first network device and the second network device is large, the accuracy of clock synchronization after calibration is not high. Therefore, in order to improve the accuracy of clock synchronization between the first network device and the second network device, the first network device may further subtract the TOF from the time difference to obtain a clock adjustment value; and calibrating the local time based on the clock adjustment value.
It should be noted that the TOF may be obtained by the first network device from the second network device, or determined by the first network device, and the operation of the first network device determining the TOF may be: and communicating with the second network equipment for multiple times to obtain multiple message sending times and multiple message receiving times, and determining the TOF based on the multiple message sending times and the multiple message receiving times.
The operation of the first network device acquiring the TOF from the second network device may be: the second network device may communicate with the first network device multiple times to obtain multiple message sending times and multiple message receiving times, and determine the TOF based on the multiple message sending times and the multiple message receiving times; thereafter, transmitting the TOF to the first network device; the first network device receives the TOF.
Since, in a normal situation, before the second network device and the first network device perform communication, the second network device needs to be paired with the first network device, that is, the second network device may send an initialization message (ranging initialization message) to the first network device, and when the first network device receives the initialization message paired with the first network device, the first network device may perform pairing with the second network device and return a successful pairing message to the second network device.
In addition, in general, TOF can be determined by performing 3 times of communication between the second network device and the first network device. That is, the first network device may send a test message (poll) with a destination address to the second network device, then record a time when the test message is sent, then the first network device enters a listening state to listen to a response message (response message) from the second network device, and if the first network device does not receive the response message after a period of time, the first network device receives a timeout and resends the test message. When the second network device receives the test message sent by the first network device, the moment of receiving the test message can be recorded, a response message is sent to the first network device, and the time for sending the response message is recorded; when the first network device receives the response message of the second network device, the first network device may record the time when the response message is received, and send a final message (final message) to the second network device, and record the sending time; when the second network device receives the final message, the time of reception may be recorded, and the TOF may be calculated and then transmitted to the first network device.
Wherein the second network device may calculate the TOF by the following formula.
In the above formula, T isSPTime of sending test message for first network device, TRPTime of receiving test message for second network device, TSRTime of sending a response message for a second network device, TRRTime of receiving a response message for a first network device, TSFTime of sending final message for first network device, TRFThe time of the final message after the second network device section.
In addition, the operation of determining the TOF by the first network device may refer to the operation of determining the TOF by the second network device, which is not described in detail in the embodiment of the present invention.
In the embodiment of the present invention, the second network device may obtain the reference time from the outdoor positioning signal, and send the reference time to the first network device, and when the first network device receives the reference time sent by the second network device, the first network device may calibrate the local time according to a time difference between the local time and the reference time, thereby implementing clock synchronization between the first network device and the second network device. After the clocks between the first network device and the second network device are synchronized, the accuracy of the distance determination is improved when the distance between the first network device and the second network device is determined subsequently, so that the distance error is reduced, and the accuracy of the subsequent indoor positioning is improved.
After explaining the clock synchronization method provided by the embodiment of the present invention, a clock synchronization apparatus provided by the present invention is described next.
Fig. 3A is a block diagram of a clock synchronization apparatus applied in a first network device according to an embodiment of the present invention, and referring to fig. 3A, the clock synchronization apparatus may be implemented by software, hardware, or a combination of the two. The device includes: a receiving module 301, a determining module 302 and a calibrating module 303.
A receiving module 301, configured to receive a reference time sent by a second network device in an indoor positioning process, where the reference time is obtained by the second network device from an outdoor positioning signal, and the outdoor positioning signal is used to position any indoor network device;
a determining module 302, configured to determine a time difference between a local time and the reference time;
a calibration module 303, configured to calibrate the local time based on the time difference value, so as to implement clock synchronization.
Optionally, referring to fig. 3B, the apparatus further comprises:
a pairing module 304, configured to pair with the second network device;
an obtaining module 305, configured to obtain a round-trip flight time TOF with the second network device after pairing with the second network device is successful.
Optionally, referring to fig. 3C, the calibration module 303 includes:
a calculation submodule 3031, configured to subtract the TOF from the time difference to obtain a clock adjustment value;
a calibration submodule 3032, configured to calibrate the local time based on the clock adjustment value.
Optionally, referring to fig. 3D, the obtaining module 305 includes:
the communication sub-module 3051, configured to perform multiple communications with the second network device, to obtain multiple message sending times and multiple message receiving times; determining the TOF based on the plurality of transmit message times and the plurality of receive message times; or,
the receiving sub-module 3052 is configured to receive the TOF sent by the second network device, where the TOF is sent by the second network device after being determined based on a plurality of message sending times and a plurality of message receiving times obtained after multiple communications are performed with the first network device.
In the embodiment of the present invention, the second network device may obtain the reference time from the outdoor positioning signal, and send the reference time to the first network device, and when the first network device receives the reference time sent by the second network device, the first network device may calibrate the local time according to a time difference between the local time and the reference time, thereby implementing clock synchronization between the first network device and the second network device. After the clocks between the first network device and the second network device are synchronized, the accuracy of the distance determination is improved when the distance between the first network device and the second network device is determined subsequently, so that the distance error is reduced, and the accuracy of the subsequent indoor positioning is improved.
Fig. 4A is a block diagram of a clock synchronization apparatus applied in a second network device according to an embodiment of the present invention, and referring to fig. 4A, the clock synchronization apparatus may be implemented by software, hardware, or a combination of the two. The device includes: an acquisition module 401 and a first sending module 402.
An obtaining module 401, configured to obtain a reference time from an outdoor positioning signal in an indoor positioning process, where the outdoor positioning signal is used to position any indoor network device;
a first sending module 402, configured to send the reference time to a first network device, so that the first network device determines a time difference between a local time and the reference time, and calibrates the local time based on the time difference to complete clock synchronization.
Optionally, referring to fig. 4B, the apparatus further comprises:
a calibration module 403, configured to calibrate the local time to the reference time.
Optionally, referring to fig. 4C, the apparatus further comprises:
a communication module 404, configured to perform multiple communications with the first network device to obtain multiple message sending times and multiple message receiving times;
a determining module 405 for determining TOF based on the plurality of sent message times and the plurality of received message times;
a second sending module 406, configured to send the TOF to the first network device.
In summary, in the embodiment of the present invention, the second network device may obtain the reference time from the outdoor positioning signal, and send the reference time to the first network device, and when the first network device receives the reference time sent by the second network device, the first network device may calibrate the local time according to a time difference between the local time and the reference time, so as to implement clock synchronization between the first network device and the second network device. After the clocks between the first network device and the second network device are synchronized, the accuracy of the distance determination is improved when the distance between the first network device and the second network device is determined subsequently, so that the distance error is reduced, and the accuracy of the subsequent indoor positioning is improved.
It should be noted that: in the clock synchronization device provided in the above embodiment, only the division of the functional modules is illustrated when performing clock synchronization, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the clock synchronization apparatus and the clock synchronization method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 5 is a block diagram illustrating a network device 500 in accordance with an example embodiment. For example, the network device may be a base station, a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 5, a network device may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communication component 516.
The processing component 502 generally controls overall operation of the network device, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the network device. Examples of such data include instructions for any application or method operating on the network device, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 506 provides power to the various components of the network device. The power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power supplies for network devices.
The multimedia component 508 includes a screen that provides an output interface between the network device and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the network device is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a Microphone (MIC) configured to receive external audio signals when the network device is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 514 includes one or more sensors for providing various aspects of status assessment for network devices. For example, the sensor component 514 can detect an on/off status of the network device, the relative positioning of components, such as a display and keypad of the network device, the sensor component 514 can also detect a change in the location of the network device or a component of the network device, the presence or absence of user contact with the network device, orientation or acceleration/deceleration of the network device, and a change in the temperature of the network device. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate wired or wireless communication between the network device and other devices. The network device may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the network device may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the methods provided by the fig. 2 embodiment described above.
In the above embodiments, the implementation may be wholly or partly realized 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 instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with embodiments of the invention, to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., Digital Versatile Disk (DVD)), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (9)

1. A clock synchronization method applied to a first network device, the method comprising:
receiving reference time sent by second network equipment in the process of indoor positioning, wherein the reference time is obtained by the second network equipment from an outdoor positioning signal, and the outdoor positioning signal is used for positioning any indoor network equipment;
determining a time difference between a local time and the reference time;
and calibrating the local time based on the time difference value to realize clock synchronization.
2. The method of claim 1, wherein the base receiving the reference time transmitted by the second network device is preceded by:
pairing with the second network device;
and when the pairing with the second network equipment is successful, acquiring the round-trip flight time TOF between the second network equipment and the second network equipment.
3. The method of claim 2, wherein said calibrating said local time based on said time difference value comprises:
subtracting the TOF from the time difference to obtain a clock adjustment value;
calibrating the local time based on the clock adjustment value.
4. The method of claim 2, wherein said obtaining a round-trip time of flight TOF with said second network device comprises:
communicating with the second network device for multiple times to obtain multiple message sending times and multiple message receiving times; determining the TOF based on the plurality of transmit message times and the plurality of receive message times; or,
and receiving the TOF sent by the second network equipment, wherein the TOF is determined by the second network equipment based on a plurality of message sending times and a plurality of message receiving times obtained after the second network equipment carries out a plurality of communications with the first network equipment and then is sent.
5. A clock synchronization method applied to a second network device, the method comprising:
in the process of indoor positioning, reference time is obtained from an outdoor positioning signal, and the outdoor positioning signal is used for positioning any indoor network equipment;
and sending the reference time to a first network device so that the first network device determines a time difference value between a local time and the reference time, and calibrating the local time based on the time difference value to complete clock synchronization.
6. The method as claimed in claim 5, wherein after obtaining the reference time from the outdoor positioning signal, further comprising:
and calibrating the local time as the reference time.
7. The method of claim 5, wherein prior to sending the reference time to the first network device, further comprising:
communicating with the first network equipment for multiple times to obtain multiple message sending times and multiple message receiving times;
determining a TOF based on the plurality of transmit message times and the plurality of receive message times;
transmitting the TOF to the first network device.
8. A clock synchronization apparatus applied to a first network device, the apparatus comprising:
the receiving module is used for receiving reference time sent by second network equipment in the process of indoor positioning, wherein the reference time is obtained by the second network equipment from an outdoor positioning signal, and the outdoor positioning signal is used for positioning any indoor network equipment;
a determining module for determining a time difference between a local time and the reference time;
and the calibration module is used for calibrating the local time based on the time difference value so as to realize clock synchronization.
9. A clock synchronization apparatus, applied in a second network device, the apparatus comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring reference time from an outdoor positioning signal in the process of indoor positioning, and the outdoor positioning signal is used for positioning any indoor network equipment;
and the first sending module is used for sending the reference time to first network equipment so that the first network equipment determines a time difference value between local time and the reference time, and calibrates the local time based on the time difference value to finish clock synchronization.
CN201710781022.XA 2017-09-01 2017-09-01 Clock synchronizing method, device and computer-readable recording medium Pending CN107395311A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710781022.XA CN107395311A (en) 2017-09-01 2017-09-01 Clock synchronizing method, device and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710781022.XA CN107395311A (en) 2017-09-01 2017-09-01 Clock synchronizing method, device and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107395311A true CN107395311A (en) 2017-11-24

Family

ID=60347601

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710781022.XA Pending CN107395311A (en) 2017-09-01 2017-09-01 Clock synchronizing method, device and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107395311A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108872711A (en) * 2018-05-11 2018-11-23 华中科技大学 A kind of dielectric loss method for synchronously measuring based on same AC power source
CN108897210A (en) * 2018-07-11 2018-11-27 成都爱为贝思科技有限公司 A kind of seismic exploration data wireless collection and GPS time synchronous method
CN108988975A (en) * 2018-07-04 2018-12-11 国网浙江宁波市奉化区供电有限公司 Bearing calibration and device for ammeter clock
CN110572231A (en) * 2019-09-09 2019-12-13 北京百度网讯科技有限公司 Time synchronization method, device and equipment
CN111641937A (en) * 2019-03-01 2020-09-08 阿里巴巴集团控股有限公司 Communication system, first node, gateway, network server and time synchronization method
CN113630640A (en) * 2021-07-27 2021-11-09 中央广播电视总台 Flow precision analysis method and device for media equipment and readable storage medium
CN115706610A (en) * 2021-08-06 2023-02-17 北京小米移动软件有限公司 Time updating method and device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047491A (en) * 2006-06-06 2007-10-03 华为技术有限公司 Communication process system and its method, and time measuring device between network element
CN104301868A (en) * 2014-10-10 2015-01-21 西北工业大学 High-precision indoor positioning method based on frame round-trip-time and time-of-arrival ranging technology
US20150219749A1 (en) * 2012-08-14 2015-08-06 Qualcomm Incorporated Positioning using observer-based time-of-arrival measurements
CN105580294A (en) * 2013-09-30 2016-05-11 高通股份有限公司 High precision network synchronization in indoor position location system
CN106211310A (en) * 2016-07-01 2016-12-07 北京永安信通科技有限公司 Indoor orientation method based on UWB technology

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047491A (en) * 2006-06-06 2007-10-03 华为技术有限公司 Communication process system and its method, and time measuring device between network element
US20150219749A1 (en) * 2012-08-14 2015-08-06 Qualcomm Incorporated Positioning using observer-based time-of-arrival measurements
CN105580294A (en) * 2013-09-30 2016-05-11 高通股份有限公司 High precision network synchronization in indoor position location system
CN104301868A (en) * 2014-10-10 2015-01-21 西北工业大学 High-precision indoor positioning method based on frame round-trip-time and time-of-arrival ranging technology
CN106211310A (en) * 2016-07-01 2016-12-07 北京永安信通科技有限公司 Indoor orientation method based on UWB technology

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108872711A (en) * 2018-05-11 2018-11-23 华中科技大学 A kind of dielectric loss method for synchronously measuring based on same AC power source
CN108988975A (en) * 2018-07-04 2018-12-11 国网浙江宁波市奉化区供电有限公司 Bearing calibration and device for ammeter clock
CN108897210A (en) * 2018-07-11 2018-11-27 成都爱为贝思科技有限公司 A kind of seismic exploration data wireless collection and GPS time synchronous method
CN111641937A (en) * 2019-03-01 2020-09-08 阿里巴巴集团控股有限公司 Communication system, first node, gateway, network server and time synchronization method
CN111641937B (en) * 2019-03-01 2023-07-11 阿里巴巴集团控股有限公司 Communication system, first node, gateway, network server and time synchronization method
CN110572231A (en) * 2019-09-09 2019-12-13 北京百度网讯科技有限公司 Time synchronization method, device and equipment
CN113630640A (en) * 2021-07-27 2021-11-09 中央广播电视总台 Flow precision analysis method and device for media equipment and readable storage medium
CN113630640B (en) * 2021-07-27 2023-11-17 中央广播电视总台 Method and device for analyzing flow precision of media equipment and readable storage medium
CN115706610A (en) * 2021-08-06 2023-02-17 北京小米移动软件有限公司 Time updating method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN107395311A (en) Clock synchronizing method, device and computer-readable recording medium
US20200366560A1 (en) Method and apparatus for configuring information, method and apparatus for determining time-frequency position, and base station
WO2019183854A1 (en) Paging synchronization indication method and device, paging synchronization method, and device and base station
CN109451786B (en) Unmanned aerial vehicle management method and device and communication connection establishment method and device
WO2019047143A1 (en) Paging message receiving method and device, and paging configuration method and device
WO2022021387A1 (en) Offset indication determination method and apparatus, and offset determination method and apparatus
US12126566B2 (en) System information reception method and apparatus, and system information transmission method and apparatus
US11917562B2 (en) Vehicle-to-everything synchronization method and device
US11178699B2 (en) Random access method and apparatus, user equipment, and computer readable storage medium
US20230276381A1 (en) Processing capability request, processing capability sending, and processing capability receiving methods and apparatuses
WO2019183853A1 (en) Information reporting and configuration method and device, user equipment and base station
CN109565650B (en) Method and device for broadcasting and receiving configuration information of synchronous signal block
CN115390014A (en) Distance determination method and device, terminal and computer readable storage medium
CN111866720A (en) Positioning method and device
CN105634639A (en) Clock synchronization method and device
CN112752214B (en) Positioning method, positioning device, storage medium and wireless communication system
CN110710237B (en) Method and device for determining support information
WO2019056173A1 (en) Random access method and apparatus, and electronic device and computer-readable storage medium
CN109819691B (en) Wireless link monitoring method and device and indication receiving method and device
US11382009B2 (en) Synchronization block receiving method and apparatus, and system information transmission method and apparatus
CN113687686B (en) Clock synchronization method, clock synchronization device, electronic equipment and storage medium
WO2019071470A1 (en) Correspondence indicating and determining method and apparatus, base station, and user equipment
CN112769677A (en) Data synchronization method, data synchronization device, electronic equipment, storage medium and program product
WO2024229676A1 (en) Communication methods, apparatuses and devices, and storage mediums
WO2022155930A1 (en) Method and apparatus for determining positioning measurement information, and method and apparatus for sending synchronization error

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171124