WO2013075521A1 - Method and device for time synchronisation in hybrid ad hoc network - Google Patents

Method and device for time synchronisation in hybrid ad hoc network Download PDF

Info

Publication number
WO2013075521A1
WO2013075521A1 PCT/CN2012/080445 CN2012080445W WO2013075521A1 WO 2013075521 A1 WO2013075521 A1 WO 2013075521A1 CN 2012080445 W CN2012080445 W CN 2012080445W WO 2013075521 A1 WO2013075521 A1 WO 2013075521A1
Authority
WO
WIPO (PCT)
Prior art keywords
synchronization level
synchronization
terminal
time
level
Prior art date
Application number
PCT/CN2012/080445
Other languages
French (fr)
Chinese (zh)
Inventor
周海军
郑银香
Original Assignee
电信科学技术研究院
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
Priority claimed from CN201110374322.9A external-priority patent/CN103139896B/en
Application filed by 电信科学技术研究院 filed Critical 电信科学技术研究院
Publication of WO2013075521A1 publication Critical patent/WO2013075521A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Definitions

  • Time-simulating method and device in hybrid ad hoc network This application claims to be filed on November 22, 2011, the Chinese Patent Office, application number 201110374322.9, and the invention titled "Time Synchronization Method and Equipment in Hybrid Ad Hoc Network" Priority of the Chinese Patent Application, the entire contents of which is incorporated herein by reference.
  • the present invention relates to the field of wireless communications, and in particular, to a time synchronization method and apparatus in a hybrid ad hoc network.
  • UTC Universal Time Chiming
  • an ad hoc network that may have both a terminal with a UTC timing function and a terminal without a UTC timing function is called a hybrid ad hoc network.
  • the terminal can pre-specify the starting position of the superframe, sub-frame, and time slot under the condition of high precision (timing accuracy less than lchip time length) UTC, so that the terminal with UTC timing can directly establish the synchronization relationship.
  • high precision timing accuracy less than lchip time length
  • a time synchronization method is: in a fully ad hoc network in which only a terminal having a UTC timing function exists, each terminal performs time synchronization according to the obtained UTC reference time; another time synchronization method is: in the presence of only UTC In the fully self-organizing network of the terminal with timing function, the terminal that does not have the UTC timing function needs to detect the pilot signal sent by other terminals, and adjust the local clock according to the detected pilot signal to achieve the purpose of time synchronization. Due to the different network configurations, the time synchronization method in the first fully self-organizing network can not be applied to the hybrid ad hoc network.
  • the embodiments of the present invention provide a time synchronization method and device in a hybrid ad hoc network, which is used to solve the problem of how a terminal in a hybrid ad hoc network network performs time synchronization.
  • a time synchronization method in a hybrid ad hoc network includes a terminal having a universal time coordinated UTC timing function and a terminal having no UTC timing function, and the method includes:
  • a terminal with a UTC timing function obtains a UTC reference time after power-on, and performs time according to the UTC reference time. Synchronization; and,
  • the terminal having the UTC timing function has a synchronization level in a preset first synchronization level set, and issues a pilot signal corresponding to the synchronization level for time synchronization of other terminals.
  • a time synchronization method in a hybrid ad hoc network includes a terminal having a universal time coordinated UTC timing function and a terminal having no UTC timing function, and the method includes:
  • a terminal that does not have a UTC timing function detects a pilot signal for time synchronization sent by another terminal after entering a synchronization level in a preset first synchronization level set;
  • the terminal that does not have the UTC timing function selects one pilot signal from each detected pilot signal according to its current synchronization level and the synchronization level corresponding to each detected pilot signal, and uses the selected pilot signal. Time synchronization.
  • a terminal having a UTC timing function comprising:
  • a time synchronization unit configured to obtain a UTC reference time after powering on, and perform time synchronization according to the UTC reference time
  • a signal sending unit configured to enter a synchronization level in the preset first synchronization level set, and issue the synchronization level Corresponding pilot signals for time synchronization of other terminals.
  • a terminal that does not have a UTC timing function includes:
  • a signal detecting unit configured to detect a pilot signal sent by another terminal for time synchronization after entering a synchronization level in the preset first synchronization level set;
  • a time synchronization unit configured to select a pilot signal from each of the detected pilot signals according to the current synchronization level and the synchronization level corresponding to each detected pilot signal, and use the selected pilot signal to perform time synchronization .
  • the terminal having the UTC timing function obtains the UTC reference time after the power is turned on, performs time synchronization according to the UTC reference time, and enters a synchronization level in the first synchronization level set, and issues the synchronization level corresponding to the other terminal.
  • a pilot signal that performs time synchronization.
  • the terminal that does not have the UTC timing function After entering the synchronization level in the first synchronization level set, the terminal that does not have the UTC timing function detects the pilot signal sent by other terminals for time synchronization, according to its current synchronization level and the detected pilot signals.
  • the synchronization level selects a pilot signal from each of the detected pilot signals, and uses the selected pilot signal for time synchronization.
  • FIG. 1 is a schematic flowchart of a method according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of another method according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of synchronization level conversion according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of another terminal according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE INVENTION
  • the embodiment of the present invention provides a time synchronization method in a hybrid ad hoc network.
  • the present invention needs to preset a first synchronization level set including a plurality of synchronization levels for all terminals, and each synchronization level in the first synchronization level set is different, and may be arranged in order from small to large or from large to small.
  • the present invention may further preset a second synchronization level set for the terminal having the UTC timing function, the second synchronization level set is a subset of the first synchronization level set, and the second synchronization level set includes the highest of the first synchronization level set. Synchronization level.
  • the second synchronization level set includes one or more synchronization levels of consecutive levels in the first synchronization level set.
  • the synchronization level in the present invention is used to indicate the synchronization capability of the terminal.
  • the time synchronization method provided by the terminal with the UTC timing function includes the following steps:
  • Step 10 The terminal with the UTC timing function obtains the UTC reference time after powering on, and performs time synchronization according to the UTC reference time;
  • Step 11 The terminal enters a synchronization level in the preset first synchronization level set, and sends a pilot signal corresponding to the synchronization level for time synchronization of other terminals.
  • the terminal having the UTC timing function obtains the UTC reference time after powering on, the terminal enters the lowest synchronization level in the first synchronization level set.
  • the terminal may enter the highest synchronization level in the first synchronization level set, and send a pilot signal corresponding to the highest synchronization level for time synchronization of other terminals.
  • the terminal may perform synchronization level conversion according to a preset synchronization level conversion manner, and after performing synchronization level conversion, issue a synchronization level corresponding to the converted for other terminals.
  • a pilot signal that performs time synchronization.
  • Step A The terminal clears the timer, and starts the timer to perform timing; if the timer is started, the timing is Before the time of the device reaches the first time, the terminal obtains the UTC reference time, then proceeds to step A; otherwise, to step B;
  • Step B If the current synchronization level of the terminal is P, go to step C, otherwise, go to step D; P is a preset number The lowest synchronization level in the second synchronization level set;
  • Step C the terminal enters the lowest synchronization level in the first synchronization level set, and after obtaining the UTC reference time, enters the highest synchronization level in the first synchronization level set, and returns to step A;
  • Step D The terminal enters a next synchronization level in the second synchronization level set that is lower than the current synchronization level of the terminal (that is, enters the highest synchronization level among all synchronization levels in the second synchronization level set that is lower than the current synchronization level of the terminal) Clearing the timer to 0, starting the timer for timing. If the terminal obtains the UTC reference time after the timer is started and the timer expires before the second time, the terminal enters the first synchronization level set. The highest synchronization level, and return to step A; otherwise, return to step B.
  • the pilot signal sent by the terminal having the UTC timing function is obtained according to the UTC reference time obtained by the terminal last time.
  • the correspondence between each synchronization level and the pilot code may be set in advance, and the pilot signal corresponding to the one synchronization level transmitted includes the pilot code corresponding to the synchronization level.
  • the terminal with the UTC timing function can perform time synchronization according to the obtained UTC reference time after each UTC reference time is obtained.
  • a time synchronization method provided by a terminal that does not have a UTC timing function includes the following steps:
  • Step 20 The terminal that does not have the UTC timing function detects a pilot signal sent by another terminal for time synchronization after entering a synchronization level in the preset first synchronization level set.
  • Step 21 The terminal selects one pilot signal from each detected pilot signal according to its current synchronization level and the synchronization level corresponding to each detected pilot signal, and uses the selected pilot signal to perform time synchronization.
  • the terminal can enter the lowest synchronization level in the first synchronization level set after being powered on.
  • step 20 the terminal selects a pilot signal from each of the detected pilot signals according to the current synchronization level and the synchronization level corresponding to each detected pilot signal, and the specific implementation may be as follows:
  • the terminal selects the pilot signal with the highest synchronization level from the detected pilot signals, and the synchronization level corresponding to the selected pilot signal is not lower than the current synchronization level of the terminal.
  • the terminal can determine the next synchronization level to be entered according to the synchronization level corresponding to the pilot signal used for time synchronization, and enter the determined next synchronization level.
  • the terminal determines the next synchronization level that needs to be entered according to the synchronization level corresponding to the pilot signal used for performing time synchronization, and the specific implementation may be as follows:
  • the synchronization level of the pilot signal used by the terminal for time synchronization is not P and the highest synchronization level in the first synchronization level set, it is determined that the next synchronization level to be entered is the synchronization corresponding to the pilot signal used for time synchronization.
  • Level; P is the lowest synchronization level in the second synchronization level set;
  • the synchronization level of the pilot signal used by the terminal for time synchronization is P, it is determined whether the preset condition is met. When it is satisfied, it is determined that the next synchronization level to be entered is P, and when it is not satisfied, it is determined that it needs to enter.
  • the next synchronization level is the next synchronization level lower than P in the first synchronization level set (ie, lower than P in the first synchronization level set) The highest synchronization level among all synchronization levels);
  • the synchronization level of the pilot signal used by the terminal for time synchronization is the highest synchronization level in the first synchronization level set, it is determined that the next synchronization level to be entered is the second highest synchronization level in the first synchronization level set.
  • the condition is:
  • the terminal may detect a pilot signal whose synchronization level is not lower than the current synchronization level of the terminal within a set time length.
  • the set time length may be A super frame periods; if the synchronization level entered by the terminal in step 20 is not the first The lowest synchronization level in the synchronization level set, after the terminal enters a synchronization level in step 20, a timer is started, and the set time length is the timer duration of the timer.
  • step 20 when a synchronization level entered by the terminal is the lowest synchronization level in the first synchronization level set, if the terminal does not detect the pilot level whose synchronization level is not lower than the current synchronization level of the terminal within the set time length. Signal, then establish an internal clock by itself, and enter the second highest synchronization level in the first synchronization level set;
  • a synchronization level entered by the terminal is not the lowest synchronization level in the first synchronization level set, if the terminal does not detect the pilot signal whose synchronization level is not lower than the current synchronization level of the terminal within the set time length, the first time is entered.
  • the lowest synchronization level in the synchronization level set if the terminal does not detect the pilot signal whose synchronization level is not lower than the current synchronization level of the terminal within the set time length, the first time is entered. The lowest synchronization level in the synchronization level set.
  • the terminal that does not have the UTC timing function sends a pilot signal for time synchronization of other terminals corresponding to the currently entered synchronization level after each synchronization level is entered.
  • a pilot signal transmitted by a terminal that does not have a UTC timing function is obtained based on a pilot signal used by the terminal to perform time synchronization after entering a synchronization level.
  • the correspondence between each synchronization level and the pilot code may be set in advance, and the pilot signal corresponding to the one synchronization level transmitted includes the pilot code corresponding to the synchronization level.
  • the terminal does not have the UTC timing function for time synchronization, it may be open-loop synchronization with the terminal that transmits the pilot signal used for time synchronization.
  • the terminal having the UTC timing function and the terminal not having the UTC timing function In order to enable the terminal having the UTC timing function and the terminal not having the UTC timing function to work in coordination, five synchronization levels are set, that is, the synchronization level 1 - the synchronization level 5, wherein the level of the synchronization level 1 is the highest, and the level of the synchronization level 5 is the highest.
  • the lowest, low synchronization level terminal is kept in sync with the high synchronization level terminal.
  • the terminals of the synchronization level 1 to the synchronization level 4 issue different pilot signals so that other terminals can recognize their synchronization levels.
  • the synchronization level is converted as follows:
  • the initial search star requires a certain time, so the UE with the UTC timing function does not obtain the UTC base after booting. Enter sync level 5 before the quasi-time. After the terminal obtains the UTC reference time, it enters the synchronization level 1, and:
  • step A clear the timer X, and start X to time; if after the start of X, the time of X reaches xl, the terminal obtains the UTC reference time, then continue to step A; otherwise, go to step B;
  • the terminal enters the synchronization level 2, and the timer X is cleared to 0, and the timer is started to be timed. If the terminal obtains the UTC reference time after the timer X is started and the timer X reaches the time limit, the terminal obtains the UTC reference time. Enter sync level 1 and return to step A; otherwise, the terminal enters sync level 5, and after obtaining the UTC reference time, enters sync level 1 and returns to step A.
  • the synchronization level is converted as follows:
  • the UE that does not have the UTC timing function enters the synchronization level 5 after being powered on.
  • the UE of the synchronization level 5 needs to perform pilot signal detection of consecutive subframes.
  • the internal clock (including the starting point of the superframe and the internal timing of the subframe) may be established by itself, and the synchronization level 4 is entered;
  • the UE of the synchronization level 5 receives the pilot signal sent by the UE of the synchronization level 4, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 4, the synchronization level 4 is entered.
  • the UE of the synchronization level 5 receives the pilot signal sent by the UE of the synchronization level 3, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 3, the synchronization level 3 is entered.
  • the UE of the synchronization level 5 receives the pilot signal sent by the UE of the synchronization level 2, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 2, the synchronization level 3 or 2 is entered (timing) Device X is cleared to 0).
  • the synchronization level 2 is entered after the synchronization of the subframe and the superframe with the UE of the synchronization level 2; otherwise, the subframe is performed with the UE of the synchronization level 2 After the synchronization of the superframe, enter the synchronization level 3;
  • the UE of the synchronization level 5 receives the pilot signal sent by the UE of the synchronization level 1, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 1, the synchronization level 2 is entered.
  • the timer X is cleared to 0, and X is started for timing.
  • the UE is at the synchronization level 4, and can receive and transmit pilot signals, and public.
  • Message, service message when the timing of X is greater than or equal to x4, the UE enters synchronization level 5.
  • the UE of the synchronization level 4 needs to periodically detect the pilot signal, and uses the pilot signal to perform open-loop synchronization adjustment with the corresponding UE.
  • the synchronization level 4 If the UE of the synchronization level 4 receives the pilot signal sent by the UE of the synchronization level 4, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 4, the synchronization level 4 is entered (the timer X). Clear it to 0).
  • the synchronization level 4 receives the pilot signal sent by the UE of the synchronization level 3, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 3, the synchronization level 3 is entered. If the UE of the synchronization level 4 receives the pilot signal sent by the UE of the synchronization level 2, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 2, the synchronization level 3 or 2 is entered (timing) Device X is cleared to 0).
  • the synchronization level 2 is entered after the synchronization of the subframe and the superframe with the UE of the synchronization level 2; otherwise, the subframe is performed with the UE of the synchronization level 2 After the synchronization of the superframe, enter the synchronization level 3;
  • the UE of the synchronization level 4 receives the pilot signal from the UE of the synchronization level 1, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 1, the synchronization level 2 is entered.
  • the timer X is cleared to 0, and X is started for timing.
  • the timing of X is less than x3, the UE is at the synchronization level 3, and can receive and transmit pilot signals, and public.
  • Message, service message when the timing of X is greater than or equal to x3, the UE enters synchronization level 5.
  • the UE of the synchronization level 3 needs to periodically detect the pilot signal, and uses the pilot signal to perform open-loop synchronization adjustment with the corresponding UE.
  • the synchronization level 3 receives the pilot signal sent by the UE of the synchronization level 3, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 3, the synchronization level 3 is entered (timer X). Clear it to 0).
  • the UE of the synchronization level 3 receives the pilot signal sent by the UE of the synchronization level 2, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 2, the synchronization level 3 or 2 is entered (timing) Device X is cleared to 0).
  • the synchronization level 2 is entered after the synchronization of the subframe and the superframe with the UE of the synchronization level 2; otherwise, the subframe is performed with the UE of the synchronization level 2 After the synchronization of the superframe, enter the synchronization level 3;
  • the UE of the synchronization level 3 receives the pilot signal sent by the UE of the synchronization level 1, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 1, the synchronization level 2 is entered.
  • the timer X is cleared to 0, and X is started for timing.
  • the timing of X is less than x2, the UE is at the synchronization level 2, and when the timing of X is greater than or equal to x2.
  • the UE enters synchronization level 5.
  • the synchronization level 2 receives the pilot signal sent by the UE of the synchronization level 1, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 1, the synchronization level 2 is entered (timer X). Clear it to 0).
  • All UEs preferentially use time-synchronized pilot signals with high synchronization levels.
  • the pilot signal detected by the UE includes a plurality of pilot signals
  • the UE preferentially performs time synchronization according to the pilot signal that is higher than the set power and has the highest reception time. If the highest-level pilot detected by the UE is the same as the pilot currently used by the UE, and the calculated time timing advance is greater than 0, the UE does not need to perform time synchronization, and the UE is considered to have been performed with the same-level terminal.
  • Synchronizing otherwise, determining that the time after the time synchronization of the UE is equal to the time before the time synchronization minus the timing advance amount, wherein, the timing The advance amount is equal to the actual reception time of the terminal pilot signal minus the expected pilot signal reception time.
  • an embodiment of the present invention further provides a terminal, where the terminal has a UTC timing function, and the terminal includes: a time synchronization unit 40, configured to obtain a UTC reference time after powering on, and perform time synchronization according to the UTC reference time;
  • the signal sending unit 41 is configured to enter a synchronization level in the preset first synchronization level set, and send a pilot signal corresponding to the synchronization level for time synchronization of other terminals.
  • the signal transmitting unit 41 is configured to:
  • the time synchronization unit 40 is further configured to:
  • the terminal also includes:
  • the level conversion unit 42 is configured to, after entering the highest synchronization level, according to a preset synchronization
  • the gradation conversion mode performs the conversion of the synchronization level, and after the synchronization level is converted, a pilot signal for time synchronization of other terminals corresponding to the converted synchronization level is issued.
  • the level conversion unit 42 is configured to perform the following steps:
  • step A the timer is cleared to 0, and the timer is started to be timed; if the UTC reference time is obtained after the timer is started, and the time of the timer reaches the first time, then step A is continued; Otherwise, go to step B;
  • step C If the current synchronization level is P, go to step C, otherwise, go to step D;
  • P is the lowest synchronization level in the preset second synchronization level set, and the second synchronization level set is the first synchronization level set. a subset, and the second synchronization level set includes the highest synchronization level;
  • step C entering the lowest synchronization level in the first synchronization level set, and after obtaining the UTC reference time, entering the highest synchronization level, returning to step A;
  • step D Enter a next synchronization level in the second synchronization level set that is lower than the current synchronization level of the terminal, and clear the timer, start the timer to perform timing, if the timer is started, When the timer time of the timer reaches the second time, the UTC reference time is obtained, then the highest synchronization level is entered, and the process returns to step A; otherwise, the process returns to step B.
  • the second synchronization level set includes one or more synchronization levels of consecutive levels in the first synchronization level set.
  • an embodiment of the present invention further provides a terminal, where the terminal does not have a UTC timing function, and the terminal includes: a signal detecting unit 50, configured to enter a synchronization level in a preset first synchronization level set. , detecting a pilot signal sent by another terminal for time synchronization;
  • the time synchronization unit 51 is configured to select a pilot signal from each of the detected pilot signals according to the current synchronization level and the synchronization level corresponding to each detected pilot signal, and use the selected pilot signal to perform time. Synchronize.
  • the time synchronization unit 51 is configured to:
  • the pilot signal with the highest synchronization level is selected from the detected pilot signals, and the synchronization level corresponding to the selected pilot signal is not lower than the current synchronization level of the terminal.
  • the terminal also includes:
  • the level conversion unit 52 is configured to determine the next synchronization level to be entered according to the synchronization level corresponding to the pilot signal used for time synchronization, and enter the determined next synchronization level.
  • the level conversion unit 51 is used to:
  • the next synchronization level to be entered is the synchronization level corresponding to the pilot signal used for time synchronization.
  • P is the lowest synchronization level in the second synchronization level set
  • the second synchronization level set is a subset of the first synchronization level set
  • the second synchronization level set includes the highest synchronization level;
  • the synchronization level of the pilot signal used for time synchronization is P, it is determined whether the predetermined condition is satisfied. When it is satisfied, it is determined that the next synchronization level to be entered is P, and when it is not satisfied, the synchronization is determined. The level is the next synchronization level lower than P;
  • the synchronization level of the pilot signal used for time synchronization is the highest synchronization level, it is determined that the next synchronization level to be entered is the second highest synchronization level in the first synchronization level set.
  • the conditions are:
  • the signal detecting unit 50 is used to:
  • a pilot signal for time synchronization issued by another terminal and whose synchronization level is not lower than the current synchronization level of the terminal is detected within a set time length.
  • the terminal further includes:
  • the special processing unit 53 is configured to: when the one synchronization level entered is the lowest synchronization level in the first synchronization level set, if the synchronization signal whose synchronization level is not lower than the current synchronization level of the terminal is not detected within the set time length , then establish an internal clock by itself and enter the second highest synchronization level in the first synchronization level set; or
  • a synchronization level that is entered is not the lowest synchronization level in the first synchronization level set, if the pilot signal whose synchronization level is not lower than the current synchronization level of the terminal is not detected within the set time length, the first synchronization level is entered.
  • the lowest synchronization level in the collection if the pilot signal whose synchronization level is not lower than the current synchronization level of the terminal is not detected within the set time length, the first synchronization level is entered. The lowest synchronization level in the collection.
  • the terminal further includes:
  • the signal sending unit 54 is configured to, after each entering a synchronization level, issue a pilot signal corresponding to the currently entered synchronization level for time synchronization of other terminals.
  • the beneficial effects of the present invention include:
  • the terminal having the UTC timing function obtains the UTC reference time after the power is turned on, performs time synchronization according to the UTC reference time, and enters a synchronization level in the first synchronization level set, and sends the synchronization level correspondingly.
  • a pilot signal for time synchronization of other terminals obtained from the terminal having the UTC timing function.
  • the terminal that does not have the UTC timing function After entering the synchronization level in the first synchronization level set, the terminal that does not have the UTC timing function detects the pilot signal sent by other terminals for time synchronization, according to its current synchronization level and the detected pilot signals.
  • the synchronization level selects a pilot signal from each of the detected pilot signals, and uses the selected pilot signal for time synchronization.
  • the present invention implements a time synchronization scheme of a terminal with a UTC timing function in a hybrid ad hoc network and a time synchronization scheme of a terminal without a UTC timing function, thereby solving the problem of how the terminal in the hybrid ad hoc network performs time.
  • the problem of synchronization implements a time synchronization scheme of a terminal with a UTC timing function in a hybrid ad hoc network and a time synchronization scheme of a terminal without a UTC timing function, thereby solving the problem of how the terminal in the hybrid ad hoc network performs time.
  • the method for dividing the synchronization level and the synchronization level between the present invention solves the problem of synchronous establishment and synchronization adjustment of the hybrid ad hoc network, so that the hybrid ad hoc network can establish time synchronization efficiently and quickly.
  • embodiments of the present invention can be provided as a method, system, or computer program product.
  • the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware.
  • the invention can be embodied in the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Abstract

Disclosed are a method and a device for time synchronisation in a hybrid Ad Hoc network, which relate to the technical field of wireless communication and aims to solve the problem of time synchronisation for terminals in a hybrid Ad Hoc network. In the present invention, a terminal having universal time coordinated (UTC) timing function acquires a UTC reference time after start-up, performs time synchronisation according to the UTC reference time, enters a synchronisation level of a first synchronisation level set, and sends a pilot signal corresponding to the synchronisation level. When a terminal without UTC timing function enters the same synchronisation level, the terminal detects the pilot signals sent by the other terminals, selects a pilot signal from the detected pilot signals, and uses the selected pilot signal to perform time synchronisation. The present invention solves the problem of time synchronisation in the hybrid Ad Hoc network.

Description

混合自组网网络中的时间同歩方法和设备 本申请要求在 2011年 11月 22日提交中国专利局、 申请号为 201110374322.9、 发明名称为"混 合自组网网络中的时间同步方法和设备 "的中国专利申请的优先权, 其全部内容通过引用结合在 本申请中。 技术领域 本发明涉及无线通信领域, 尤其涉及一种混合自组网网络中的时间同步方法和设备。 背景技术 在自组网网络中, 有些终端具有 UTC ( Universal Time Chiming, 通用时间协调)授时功 能, 有些终端则不具备 UTC授时功能, 或者有些设备因为环境的原因 (如进入地下车库或者 隧道等) 失去了该功能。 目前将同时可能存在有 UTC授时功能的终端和无 UTC授时功能的 终端的自组网网络称为混合自组网网络。 以车与车通信、 车与路测设备通信为主的"车联网" 便是典型的混合自组网网络。  Time-simulating method and device in hybrid ad hoc network This application claims to be filed on November 22, 2011, the Chinese Patent Office, application number 201110374322.9, and the invention titled "Time Synchronization Method and Equipment in Hybrid Ad Hoc Network" Priority of the Chinese Patent Application, the entire contents of which is incorporated herein by reference. The present invention relates to the field of wireless communications, and in particular, to a time synchronization method and apparatus in a hybrid ad hoc network. BACKGROUND In an ad hoc network, some terminals have UTC (Universal Time Chiming) timing functions, some terminals do not have UTC timing functions, or some devices have environmental reasons (such as entering an underground garage or tunnel). Lost this feature. At present, an ad hoc network that may have both a terminal with a UTC timing function and a terminal without a UTC timing function is called a hybrid ad hoc network. The "vehicle networking" based on vehicle-to-vehicle communication, vehicle and road test equipment communication is a typical hybrid ad hoc network.
终端在有高精度 (定时精度小于 lchip时间长度) UTC授时的条件下,可预先规定超帧、子 帧、 时隙的起始位置, 这样有 UTC授时的终端直接可以建立起同步关系, 目前 GPS的时间 精度可达到 O. lus 能满足这一要求。而没有 UTC授时的终端也需要与其它设备建立同步通信, 并且授时精度越高越好。  The terminal can pre-specify the starting position of the superframe, sub-frame, and time slot under the condition of high precision (timing accuracy less than lchip time length) UTC, so that the terminal with UTC timing can directly establish the synchronization relationship. Currently GPS The time accuracy is up to O. lus to meet this requirement. Terminals without UTC timing also need to establish synchronous communication with other devices, and the higher the timing accuracy, the better.
一种时间同步方法为: 在仅存在具有 UTC授时功能的终端的完全自组网网络中, 各终端 根据获得的 UTC基准时间进行时间同步; 另一种时间同步方法为: 在仅存在不具有 UTC授 时功能的终端的完全自组网网络中,不具有 UTC授时功能的终端需要检测其他终端发出的导 频信号, 根据检测到的导频信号对本地时钟进行调整, 以达到时间同步的目的。 由于网络构 成不同, 上述第一种完全自组网网络中的时间同步方法并不能应用于混合自组网网络中。 对 于第二种完全自组网网络中的时间同步方法, 该方法中没有区分不同终端的同步能力, 使得 时间同步的效率较低。 发明内容 本发明实施例提供一种混合自组网网络中的时间同步方法和设备, 用于解决混合自组网 网络中的终端如何进行时间同步的问题。  A time synchronization method is: in a fully ad hoc network in which only a terminal having a UTC timing function exists, each terminal performs time synchronization according to the obtained UTC reference time; another time synchronization method is: in the presence of only UTC In the fully self-organizing network of the terminal with timing function, the terminal that does not have the UTC timing function needs to detect the pilot signal sent by other terminals, and adjust the local clock according to the detected pilot signal to achieve the purpose of time synchronization. Due to the different network configurations, the time synchronization method in the first fully self-organizing network can not be applied to the hybrid ad hoc network. For the time synchronization method in the second fully self-organizing network, the method does not distinguish the synchronization capabilities of different terminals, so that the efficiency of time synchronization is low. SUMMARY OF THE INVENTION The embodiments of the present invention provide a time synchronization method and device in a hybrid ad hoc network, which is used to solve the problem of how a terminal in a hybrid ad hoc network network performs time synchronization.
一种混合自组网网络中的时间同步方法, 混合自组网网络中包含具有通用时间协调 UTC 授时功能的终端以及不具有 UTC授时功能的终端, 该方法包括:  A time synchronization method in a hybrid ad hoc network, the hybrid ad hoc network includes a terminal having a universal time coordinated UTC timing function and a terminal having no UTC timing function, and the method includes:
具有 UTC授时功能的终端在开机后获得 UTC基准时间,根据该 UTC基准时间进行时间 同步; 以及, A terminal with a UTC timing function obtains a UTC reference time after power-on, and performs time according to the UTC reference time. Synchronization; and,
所述具有 UTC授时功能的终端 ϋΤ预先设定的第一同步等级集合中的一个同步等级,并 发出该同步等级对应的用于其他终端进行时间同步的导频信号。  The terminal having the UTC timing function has a synchronization level in a preset first synchronization level set, and issues a pilot signal corresponding to the synchronization level for time synchronization of other terminals.
一种混合自组网网络中的时间同步方法, 混合自组网网络中包含具有通用时间协调 UTC 授时功能的终端以及不具有 UTC授时功能的终端, 该方法包括:  A time synchronization method in a hybrid ad hoc network, the hybrid ad hoc network includes a terminal having a universal time coordinated UTC timing function and a terminal having no UTC timing function, and the method includes:
不具有 UTC授时功能的终端在进入预先设定的第一同步等级集合中的一个同步等级后, 检测其他终端发出的用于时间同步的导频信号;  A terminal that does not have a UTC timing function detects a pilot signal for time synchronization sent by another terminal after entering a synchronization level in a preset first synchronization level set;
所述不具有 UTC授时功能的终端根据自身当前的同步等级以及检测到的各导频信号对 应的同步等级, 从检测到的各导频信号中选取一个导频信号, 并使用选取的导频信号进行时 间同步。  The terminal that does not have the UTC timing function selects one pilot signal from each detected pilot signal according to its current synchronization level and the synchronization level corresponding to each detected pilot signal, and uses the selected pilot signal. Time synchronization.
一种终端, 该终端具有 UTC授时功能, 该终端包括:  A terminal having a UTC timing function, the terminal comprising:
时间同步单元, 用于在开机后获得 UTC基准时间,根据该 UTC基准时间进行时间同步; 信号发送单元, 用于进入预先设定的第一同步等级集合中的一个同步等级, 并发出该同 步等级对应的用于其他终端进行时间同步的导频信号。  a time synchronization unit, configured to obtain a UTC reference time after powering on, and perform time synchronization according to the UTC reference time; and a signal sending unit, configured to enter a synchronization level in the preset first synchronization level set, and issue the synchronization level Corresponding pilot signals for time synchronization of other terminals.
一种终端, 该终端不具有 UTC授时功能, 该终端包括:  A terminal that does not have a UTC timing function, and the terminal includes:
信号检测单元, 用于在进入预先设定的第一同步等级集合中的一个同步等级后, 检测其 他终端发出的用于时间同步的导频信号;  a signal detecting unit, configured to detect a pilot signal sent by another terminal for time synchronization after entering a synchronization level in the preset first synchronization level set;
时间同步单元 , 用于根据自身当前的同步等级以及检测到的各导频信号对应的同步等 级, 从检测到的各导频信号中选取一个导频信号, 并使用选取的导频信号进行时间同步。  a time synchronization unit, configured to select a pilot signal from each of the detected pilot signals according to the current synchronization level and the synchronization level corresponding to each detected pilot signal, and use the selected pilot signal to perform time synchronization .
本方案中,具有 UTC授时功能的终端在开机后获得 UTC基准时间,根据该 UTC基准时 间进行时间同步, 并进入第一同步等级集合中的一个同步等级, 发出该同步等级对应的用于 其他终端进行时间同步的导频信号。  In this solution, the terminal having the UTC timing function obtains the UTC reference time after the power is turned on, performs time synchronization according to the UTC reference time, and enters a synchronization level in the first synchronization level set, and issues the synchronization level corresponding to the other terminal. A pilot signal that performs time synchronization.
不具有 UTC授时功能的终端在进入第一同步等级集合中的一个同步等级后,检测其他终 端发出的用于时间同步的导频信号, 根据自身当前的同步等级以及检测到的各导频信号对应 的同步等级, 从检测到的各导频信号中选取一个导频信号, 并使用选取的导频信号进行时间 同步。  After entering the synchronization level in the first synchronization level set, the terminal that does not have the UTC timing function detects the pilot signal sent by other terminals for time synchronization, according to its current synchronization level and the detected pilot signals. The synchronization level selects a pilot signal from each of the detected pilot signals, and uses the selected pilot signal for time synchronization.
可见,本方案实现了混合自组网网络中具有 UTC授时功能的终端的时间同步方案、以及 不具有 UTC授时功能的终端的时间同步方案,从而解决了混合自组网网络中的终端如何进行 时间同步的问题。 附图说明 图 1为本发明实施例提供的方法流程示意图;  It can be seen that the solution implements a time synchronization scheme of a terminal with a UTC timing function in a hybrid ad hoc network and a time synchronization scheme of a terminal without a UTC timing function, thereby solving the problem of how the terminal in the hybrid ad hoc network performs time. The problem of synchronization. BRIEF DESCRIPTION OF DRAWINGS FIG. 1 is a schematic flowchart of a method according to an embodiment of the present invention;
图 2为本发明实施例提供的另一方法流程示意图; 图 3为本发明实施例的同步等级转换示意图; 2 is a schematic flowchart of another method according to an embodiment of the present invention; FIG. 3 is a schematic diagram of synchronization level conversion according to an embodiment of the present invention; FIG.
图 4为本发明实施例提供的终端结构示意图;  4 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
图 5为本发明实施例提供的另一终端结构示意图。 具体实施方式 为了解决混合自组网网络中的终端如何进行时间同步的问题, 本发明实施例提供一种混 合自组网网络中的时间同步方法。  FIG. 5 is a schematic structural diagram of another terminal according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE INVENTION In order to solve the problem of how to perform time synchronization in a hybrid ad hoc network, the embodiment of the present invention provides a time synchronization method in a hybrid ad hoc network.
本发明需要针对所有终端预先设定包含多个同步等级的第一同步等级集合, 第一同步等 级集合中的各同步等级均不相同, 可以按照从小到大或从大到小的顺序进行排列。 本发明还 可以针对具有 UTC授时功能的终端预先设定第二同步等级集合,第二同步等级集合是第一同 步等级集合的子集, 并且第二同步等级集合包含第一同步等级集合中的最高同步等级。 较佳 的, 第二同步等级集合中包含第一同步等级集合中等级连续的一个或多个同步等级。  The present invention needs to preset a first synchronization level set including a plurality of synchronization levels for all terminals, and each synchronization level in the first synchronization level set is different, and may be arranged in order from small to large or from large to small. The present invention may further preset a second synchronization level set for the terminal having the UTC timing function, the second synchronization level set is a subset of the first synchronization level set, and the second synchronization level set includes the highest of the first synchronization level set. Synchronization level. Preferably, the second synchronization level set includes one or more synchronization levels of consecutive levels in the first synchronization level set.
本发明中的同步等级用于表示终端的同步能力, 同步等级越高, 终端的同步能力越强, 同步等级越低, 终端的同步能力越弱。  The synchronization level in the present invention is used to indicate the synchronization capability of the terminal. The higher the synchronization level, the stronger the synchronization capability of the terminal, and the lower the synchronization level, the weaker the synchronization capability of the terminal.
下面针对具有 UTC授时功能的终端和不具有 UTC授时功能的终端分别进行说明: 如图 1所示,本发明实施例针对具有 UTC授时功能的终端提供的时间同步方法, 包括以 下步驟:  The following is a description of the terminal having the UTC timing function and the terminal having no UTC timing function. As shown in FIG. 1, the time synchronization method provided by the terminal with the UTC timing function according to the embodiment of the present invention includes the following steps:
步骤 10: 具有 UTC授时功能的终端在开机后获得 UTC基准时间, 根据该 UTC基准时 间进行时间同步;  Step 10: The terminal with the UTC timing function obtains the UTC reference time after powering on, and performs time synchronization according to the UTC reference time;
步骤 11 : 终端进入预先设定的第一同步等级集合中的一个同步等级, 并发出该同步等级 对应的用于其他终端进行时间同步的导频信号。  Step 11: The terminal enters a synchronization level in the preset first synchronization level set, and sends a pilot signal corresponding to the synchronization level for time synchronization of other terminals.
进一步的, 在具有 UTC授时功能的终端在开机后获得 UTC基准时间之前, 终端进入第 一同步等级集合中的最低同步等级。  Further, before the terminal having the UTC timing function obtains the UTC reference time after powering on, the terminal enters the lowest synchronization level in the first synchronization level set.
步骤 11中, 终端可以进入第一同步等级集合中的最高同步等级, 并发出该最高同步等级 对应的用于其他终端进行时间同步的导频信号。  In step 11, the terminal may enter the highest synchronization level in the first synchronization level set, and send a pilot signal corresponding to the highest synchronization level for time synchronization of other terminals.
进一步的, 在终端进入最高同步等级后, 终端可以根据预先设定的同步等级转换方式进 行同步等级的转换, 并在进行同步等级的转换后, 发出与转换后的同步等级对应的用于其他 终端进行时间同步的导频信号。  Further, after the terminal enters the highest synchronization level, the terminal may perform synchronization level conversion according to a preset synchronization level conversion manner, and after performing synchronization level conversion, issue a synchronization level corresponding to the converted for other terminals. A pilot signal that performs time synchronization.
上述终端根据预先设定的同步等级转换方式进行同步等级转换, 具体实现可以如下: 步骤 A、 终端对计时器进行清 0, 并启动该计时器进行计时; 若在启动该定时器之后、 该计时器的计时时间到达第一时间之前,终端获得 UTC基准时间,则继续执行步骤 A;否则, 到步驟 B;  The terminal performs synchronization level conversion according to a preset synchronization level conversion manner, and the specific implementation may be as follows: Step A: The terminal clears the timer, and starts the timer to perform timing; if the timer is started, the timing is Before the time of the device reaches the first time, the terminal obtains the UTC reference time, then proceeds to step A; otherwise, to step B;
步骤 B、 若终端的当前同步等级为 P, 则到步骤 C, 否则, 到步骤 D; P是预先设定的第 二同步等级集合中的最低同步等级; Step B: If the current synchronization level of the terminal is P, go to step C, otherwise, go to step D; P is a preset number The lowest synchronization level in the second synchronization level set;
步骤 C、 终端进入第一同步等级集合中的最低同步等级, 并在获得 UTC基准时间后, 进 入第一同步等级集合中的最高同步等级, 返回步骤 A;  Step C, the terminal enters the lowest synchronization level in the first synchronization level set, and after obtaining the UTC reference time, enters the highest synchronization level in the first synchronization level set, and returns to step A;
步骤 D、 终端进入第二同步等级集合中低于终端的当前同步等级的下一同步等级(也即 进入第二同步等级集合中低于终端的当前同步等级的所有同步等级中的最高同步等级),并对 计时器进行清 0, 启动该计时器进行计时, 若在启动该定时器之后、 计时器的计时时间到达 第二时间之前, 终端获得 UTC基准时间, 则终端进入第一同步等级集合中的最高同步等级, 并返回步骤 A; 否则, 返回步 B。  Step D: The terminal enters a next synchronization level in the second synchronization level set that is lower than the current synchronization level of the terminal (that is, enters the highest synchronization level among all synchronization levels in the second synchronization level set that is lower than the current synchronization level of the terminal) Clearing the timer to 0, starting the timer for timing. If the terminal obtains the UTC reference time after the timer is started and the timer expires before the second time, the terminal enters the first synchronization level set. The highest synchronization level, and return to step A; otherwise, return to step B.
本方法中, 具有 UTC授时功能的终端发出的导频信号根据该终端最近一次获得的 UTC 基准时间得到。 可以预先设定各同步等级与导频码的对应关系, 发送的某一个同步等級对应 的导频信号中包含该同步等级对应的导频码。 具有 UTC授时功能的终端在每次获得 UTC基 准时间后, 可以根据获得的 UTC基准时间进行时间同步。  In the method, the pilot signal sent by the terminal having the UTC timing function is obtained according to the UTC reference time obtained by the terminal last time. The correspondence between each synchronization level and the pilot code may be set in advance, and the pilot signal corresponding to the one synchronization level transmitted includes the pilot code corresponding to the synchronization level. The terminal with the UTC timing function can perform time synchronization according to the obtained UTC reference time after each UTC reference time is obtained.
参见图 2, 本发明实施例针对不具有 UTC授时功能的终端提供的时间同步方法, 包括以 下步骤:  Referring to FIG. 2, a time synchronization method provided by a terminal that does not have a UTC timing function according to an embodiment of the present invention includes the following steps:
步骤 20: 不具有 UTC授时功能的终端在进入预先设定的第一同步等级集合中的一个同 步等级后, 检测其他终端发出的用于时间同步的导频信号;  Step 20: The terminal that does not have the UTC timing function detects a pilot signal sent by another terminal for time synchronization after entering a synchronization level in the preset first synchronization level set.
步骤 21 : 终端根据自身当前的同步等级以及检测到的各导频信号对应的同步等级, 从检 测到的各导频信号中选取一个导频信号, 并使用选取的导频信号进行时间同步。  Step 21: The terminal selects one pilot signal from each detected pilot signal according to its current synchronization level and the synchronization level corresponding to each detected pilot signal, and uses the selected pilot signal to perform time synchronization.
本方法中, 终端在开机后可以进入第一同步等级集合中的最低同步等级。  In the method, the terminal can enter the lowest synchronization level in the first synchronization level set after being powered on.
步骤 20中,终端根据自身当前的同步等级以及检测到的各导频信号对应的同步等级,从 检测到的各导频信号中选取一个导频信号, 具体实现可以如下:  In step 20, the terminal selects a pilot signal from each of the detected pilot signals according to the current synchronization level and the synchronization level corresponding to each detected pilot signal, and the specific implementation may be as follows:
终端从检测到的各导频信号中选取同步等级最高的导频信号, 并且选取的导频信号对应 的同步等级不低于终端当前的同步等级。  The terminal selects the pilot signal with the highest synchronization level from the detected pilot signals, and the synchronization level corresponding to the selected pilot signal is not lower than the current synchronization level of the terminal.
进一步的,在步骤 21之后,终端可以才 据进行时间同步所使用的导频信号对应的同步等 级, 确定需要进入的下一个同步等级, 并进入确定的下一个同步等级。  Further, after step 21, the terminal can determine the next synchronization level to be entered according to the synchronization level corresponding to the pilot signal used for time synchronization, and enter the determined next synchronization level.
具体的, 终端根据进行时间同步所使用的导频信号对应的同步等级, 确定需要进入的下 一个同步等级, 具体实现可以如下:  Specifically, the terminal determines the next synchronization level that needs to be entered according to the synchronization level corresponding to the pilot signal used for performing time synchronization, and the specific implementation may be as follows:
若终端进行时间同步所使用的导频信号的同步等级不是 P和第一同步等级集合中的最高 同步等级, 则确定需要进入的下一个同步等级为进行时间同步所使用的导频信号对应的同步 等级; P是第二同步等级集合中的最低同步等级;  If the synchronization level of the pilot signal used by the terminal for time synchronization is not P and the highest synchronization level in the first synchronization level set, it is determined that the next synchronization level to be entered is the synchronization corresponding to the pilot signal used for time synchronization. Level; P is the lowest synchronization level in the second synchronization level set;
若终端进行时间同步所使用的导频信号的同步等级是 P, 则确定是否满足预先设定的条 件, 在满足时, 确定需要进入的下一个同步等级为 P, 在不满足时, 确定需要进入的下一个 同步等级为第一同步等级集合中低于 P的下一同步等级(也即第一同步等级集合中低于 P的 所有同步等级中的最高同步等级); If the synchronization level of the pilot signal used by the terminal for time synchronization is P, it is determined whether the preset condition is met. When it is satisfied, it is determined that the next synchronization level to be entered is P, and when it is not satisfied, it is determined that it needs to enter. The next synchronization level is the next synchronization level lower than P in the first synchronization level set (ie, lower than P in the first synchronization level set) The highest synchronization level among all synchronization levels);
若终端进行时间同步所使用的导频信号的同步等级是第一同步等级集合中的最高同步等 级, 则确定需要进入的下一个同步等级为第一同步等级集合中的次高同步等级。  If the synchronization level of the pilot signal used by the terminal for time synchronization is the highest synchronization level in the first synchronization level set, it is determined that the next synchronization level to be entered is the second highest synchronization level in the first synchronization level set.
较佳的, 所述条件为:  Preferably, the condition is:
检测到同步等级为 P的导频信号以及第一同步等级集合中低于 P的下一同步等级的导频 信号, 并确定根据同步等级为 P的导频信号进行时间同步时需要的时间调整量不小于 0, 且 根据低于 P的下一同步等级的导频信号进行时间同步时需要的时间调整量小于 0。  Detecting a pilot signal having a synchronization level of P and a pilot signal of a next synchronization level lower than P in the first synchronization level set, and determining a time adjustment amount required for time synchronization based on the pilot signal of the synchronization level P Not less than 0, and the amount of time adjustment required for time synchronization based on the pilot signal of the next synchronization level lower than P is less than zero.
步骤 20中,终端可以在设定时间长度内,检测同步等级不低于终端的当前同步等级的导 频信号。 具体的: 若步骤 20中终端进入的同步等级为第一同步等级集合中的最低同步等级, 则该设定时间长度可以是 A个超帧周期; 若步骤 20中终端进入的同步等级不是第一同步等 级集合中的最低同步等级, 则步骤 20中终端在进入一个同步等级后, 启动一个定时器, 该设 定时间长度则为定时器的定时时长。  In step 20, the terminal may detect a pilot signal whose synchronization level is not lower than the current synchronization level of the terminal within a set time length. Specifically: if the synchronization level entered by the terminal in step 20 is the lowest synchronization level in the first synchronization level set, the set time length may be A super frame periods; if the synchronization level entered by the terminal in step 20 is not the first The lowest synchronization level in the synchronization level set, after the terminal enters a synchronization level in step 20, a timer is started, and the set time length is the timer duration of the timer.
相应的, 步骤 20 中在终端进入的一个同步等级为第一同步等级集合中的最低同步等级 时, 若终端在设定时间长度内未检测到同步等级不低于终端的当前同步等级的导频信号, 则 自行建立内部时钟, 并进入第一同步等级集合中的次高同步等级;  Correspondingly, in step 20, when a synchronization level entered by the terminal is the lowest synchronization level in the first synchronization level set, if the terminal does not detect the pilot level whose synchronization level is not lower than the current synchronization level of the terminal within the set time length. Signal, then establish an internal clock by itself, and enter the second highest synchronization level in the first synchronization level set;
在终端进入的一个同步等级不是第一同步等级集合中的最低同步等级时, 若终端在设定 时间长度内未检测到同步等级不低于终端的当前同步等级的导频信号, 则进入第一同步等级 集合中的最低同步等级。  When a synchronization level entered by the terminal is not the lowest synchronization level in the first synchronization level set, if the terminal does not detect the pilot signal whose synchronization level is not lower than the current synchronization level of the terminal within the set time length, the first time is entered. The lowest synchronization level in the synchronization level set.
本方法中, 不具有 UTC授时功能终端在每进入一个同步等级后,发出与当前进入的同步 等级对应的、用于其他终端进行时间同步的导频信号。 不具有 UTC授时功能的终端发出的导 频信号根据该终端在进入一个同步等级后进行时间同步所使用的导频信号得到。 可以预先设 定各同步等级与导频码的对应关系, 发送的某一个同步等级对应的导频信号中包含该同步等 级对应的导频码。 不具有 UTC授时功能终端进行时间同步时,可以是与发出时间同步所使用 的导频信号的终端进行开环同步。  In the method, the terminal that does not have the UTC timing function sends a pilot signal for time synchronization of other terminals corresponding to the currently entered synchronization level after each synchronization level is entered. A pilot signal transmitted by a terminal that does not have a UTC timing function is obtained based on a pilot signal used by the terminal to perform time synchronization after entering a synchronization level. The correspondence between each synchronization level and the pilot code may be set in advance, and the pilot signal corresponding to the one synchronization level transmitted includes the pilot code corresponding to the synchronization level. When the terminal does not have the UTC timing function for time synchronization, it may be open-loop synchronization with the terminal that transmits the pilot signal used for time synchronization.
下面结合具体实施例对本发明进行说明:  The present invention will be described below in conjunction with specific embodiments:
本实施例中, 第一同步等级集合中包含 M个同步等级, 下面以 M=5为例, 进行具体的 方案介绍。  In this embodiment, the first synchronization level set includes M synchronization levels, and the following is a specific scheme introduction by taking M=5 as an example.
为了使具有 UTC授时功能的终端和不具有 UTC授时功能的终端能够协调工作, 设定了 5个同步等级, 即同步等级 1-同步等级 5, 其中同步等级 1的级别最高, 同步等级 5的级别最 低, 低同步等级的终端优先与高同步等级的终端保持同步。 同步等级 1到同步等级 4的终端 发出不同的导频信号, 以使得其他终端能够识别其同步等级。  In order to enable the terminal having the UTC timing function and the terminal not having the UTC timing function to work in coordination, five synchronization levels are set, that is, the synchronization level 1 - the synchronization level 5, wherein the level of the synchronization level 1 is the highest, and the level of the synchronization level 5 is the highest. The lowest, low synchronization level terminal is kept in sync with the high synchronization level terminal. The terminals of the synchronization level 1 to the synchronization level 4 issue different pilot signals so that other terminals can recognize their synchronization levels.
如图 3所示, 本实施例中,对于具有 UTC授时功能的 UE, 其同步等级的转换方式如下: 初始搜星需要一定的时间, 所以具有 UTC授时功能的 UE在开机后, 没有获得 UTC基 准时间前进入同步等级 5。 终端获得 UTC基准时间后, 进入同步等级 1, 以及: As shown in FIG. 3, in this embodiment, for a UE with a UTC timing function, the synchronization level is converted as follows: The initial search star requires a certain time, so the UE with the UTC timing function does not obtain the UTC base after booting. Enter sync level 5 before the quasi-time. After the terminal obtains the UTC reference time, it enters the synchronization level 1, and:
A、 对计时器 X进行清 0 , 并启动 X进行计时; 若在启动 X之后、 X的计时时间到达 xl 之前, 终端获得 UTC基准时间, 则继续执行步骤 A; 否则, 到步骤 B;  A, clear the timer X, and start X to time; if after the start of X, the time of X reaches xl, the terminal obtains the UTC reference time, then continue to step A; otherwise, go to step B;
B、 终端进入同步等级 2, 并对计时器 X进行清 0 , 启动该计时器进行计时, 若在启动定 时器 X之后、 计时器 X的计时时间到达 x2之前, 终端获得 UTC基准时间, 则终端进入同步 等级 1, 并返回步骤 A; 否则, 终端进入同步等级 5, 并在获得 UTC基准时间后, 进入同步 等级 1 , 并返回步骤 A。  B. The terminal enters the synchronization level 2, and the timer X is cleared to 0, and the timer is started to be timed. If the terminal obtains the UTC reference time after the timer X is started and the timer X reaches the time limit, the terminal obtains the UTC reference time. Enter sync level 1 and return to step A; otherwise, the terminal enters sync level 5, and after obtaining the UTC reference time, enters sync level 1 and returns to step A.
对于不具有 UTC授时功能的 UE, 其同步等级的转换方式如下:  For UEs that do not have UTC timing, the synchronization level is converted as follows:
第一, 不具有 UTC授时功能的 UE开机后进入同步等级 5。  First, the UE that does not have the UTC timing function enters the synchronization level 5 after being powered on.
第二, 同步等级 5的 UE, 需要进行子帧连续的导频信号检测。  Second, the UE of the synchronization level 5 needs to perform pilot signal detection of consecutive subframes.
如果在 2个超帧周期内, 没有检测到系统内其他 UE的导频信号, 可自行建立内部时钟 (包括超帧的起始点与子帧的内部定时), 并进入同步等级 4;  If the pilot signals of other UEs in the system are not detected within 2 superframe periods, the internal clock (including the starting point of the superframe and the internal timing of the subframe) may be established by itself, and the synchronization level 4 is entered;
如果同步等级 5的 UE收到同步等级 4的 UE发出的导频信号, 并且使用该导频信号与 同步等级 4的 UE建立了子帧及超帧的同步, 则进入同步等级 4。  If the UE of the synchronization level 5 receives the pilot signal sent by the UE of the synchronization level 4, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 4, the synchronization level 4 is entered.
如果同步等级 5的 UE收到同步等级 3的 UE发出的导频信号, 并且使用该导频信号与 同步等级 3的 UE建立了子帧及超帧的同步, 则进入同步等级 3。  If the UE of the synchronization level 5 receives the pilot signal sent by the UE of the synchronization level 3, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 3, the synchronization level 3 is entered.
如果同步等级 5的 UE收到同步等级 2的 UE发出的导频信号, 并且使用该导频信号与 同步等级 2的 UE建立了子帧及超帧的同步, 则进入同步等级 3或 2(定时器 X进行清 0)。 具 体的, 若检测到同步等级为 2的导频信号以及同步等级 3的导频信号, 并确定根据同步等级 2的导频信号进行时间同步需要的时间调整量不小于 0 ,且根据同步等级 3的导频信号进行时 间同步需要的时间调整量小于 0,则在与同步等级 2的 UE进行子帧及超帧的同步后,进入同 步等级 2; 否则在与同步等级 2的 UE进行子帧及超帧的同步后, 进入同步等级 3 ;  If the UE of the synchronization level 5 receives the pilot signal sent by the UE of the synchronization level 2, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 2, the synchronization level 3 or 2 is entered (timing) Device X is cleared to 0). Specifically, if the pilot signal with the synchronization level of 2 and the pilot signal of the synchronization level 3 are detected, and the time adjustment required to perform time synchronization according to the pilot signal of the synchronization level 2 is not less than 0, and according to the synchronization level 3 If the time adjustment required for the time synchronization of the pilot signal is less than 0, the synchronization level 2 is entered after the synchronization of the subframe and the superframe with the UE of the synchronization level 2; otherwise, the subframe is performed with the UE of the synchronization level 2 After the synchronization of the superframe, enter the synchronization level 3;
如果同步等级 5的 UE收到同步等级 1的 UE发出的导频信号, 并且使用该导频信号与 同步等级 1的 UE建立了子帧及超帧的同步, 则进入同步等级 2。  If the UE of the synchronization level 5 receives the pilot signal sent by the UE of the synchronization level 1, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 1, the synchronization level 2 is entered.
第三, 在 UE进入同步等级 4后, 对定时器 X进行清 0 , 并启动 X进行计时, 当 X的计时 时间小于 x4时, 该 UE处于同步等级 4 , 可接收和发送导频信号、 公共消息、 业务消息, 当 X的计时时间大于或等于 x4时, UE进入同步等级 5。  Third, after the UE enters the synchronization level 4, the timer X is cleared to 0, and X is started for timing. When the timing of X is less than x4, the UE is at the synchronization level 4, and can receive and transmit pilot signals, and public. Message, service message, when the timing of X is greater than or equal to x4, the UE enters synchronization level 5.
同步等级 4的 UE需要周期的进行导频信号的检测, 并使用导频信号与对应 UE进行开 环同步调整。  The UE of the synchronization level 4 needs to periodically detect the pilot signal, and uses the pilot signal to perform open-loop synchronization adjustment with the corresponding UE.
如果同步等级 4的 UE收到同步等级 4的 UE发出的导频信号, 并且使用该导频信号与 同步等级 4的 UE建立了子帧及超帧的同步, 则进入同步等级 4(定时器 X进行清 0)。  If the UE of the synchronization level 4 receives the pilot signal sent by the UE of the synchronization level 4, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 4, the synchronization level 4 is entered (the timer X). Clear it to 0).
如果同步等级 4的 UE收到同步等级 3的 UE发出的导频信号, 并且使用该导频信号与 同步等级 3的 UE建立了子帧及超帧的同步, 则进入同步等级 3。 如果同步等级 4的 UE收到同步等级 2的 UE发出的导频信号, 并且使用该导频信号与 同步等级 2的 UE建立了子帧及超帧的同步, 则进入同步等级 3或 2(定时器 X进行清 0)。 具 体的, 若检测到同步等级为 2的导频信号以及同步等级 3的导频信号, 并确定根据同步等级 2的导频信号进行时间同步需要的时间调整量不小于 0,且根据同步等级 3的导频信号进行时 间同步需要的时间调整量小于 0,则在与同步等级 2的 UE进行子帧及超帧的同步后,进入同 步等级 2; 否则在与同步等级 2的 UE进行子帧及超帧的同步后, 进入同步等级 3; If the UE of the synchronization level 4 receives the pilot signal sent by the UE of the synchronization level 3, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 3, the synchronization level 3 is entered. If the UE of the synchronization level 4 receives the pilot signal sent by the UE of the synchronization level 2, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 2, the synchronization level 3 or 2 is entered (timing) Device X is cleared to 0). Specifically, if the pilot signal with the synchronization level of 2 and the pilot signal of the synchronization level 3 are detected, and the time adjustment required to perform time synchronization according to the pilot signal of the synchronization level 2 is not less than 0, and according to the synchronization level 3 If the time adjustment required for the time synchronization of the pilot signal is less than 0, the synchronization level 2 is entered after the synchronization of the subframe and the superframe with the UE of the synchronization level 2; otherwise, the subframe is performed with the UE of the synchronization level 2 After the synchronization of the superframe, enter the synchronization level 3;
如果同步等级 4的 UE收到同步等级 1的 UE发出的导频信号, 并且使用该导频信号与 同步等级 1的 UE建立了子帧及超帧的同步, 则进入同步等级 2。  If the UE of the synchronization level 4 receives the pilot signal from the UE of the synchronization level 1, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 1, the synchronization level 2 is entered.
第四, 在 UE进入同步等级 3后, 对计时器 X进行清 0, 并启动 X进行计时, 当 X的计时 时间小于 x3时, 该 UE处于同步等级 3 , 可接收和发送导频信号、 公共消息、 业务消息, 当 X的计时时间大于或等于 x3时, UE进入同步等级 5。  Fourth, after the UE enters the synchronization level 3, the timer X is cleared to 0, and X is started for timing. When the timing of X is less than x3, the UE is at the synchronization level 3, and can receive and transmit pilot signals, and public. Message, service message, when the timing of X is greater than or equal to x3, the UE enters synchronization level 5.
同步等级 3的 UE需要周期的进行导频信号的检测, 并使用导频信号与对应 UE进行开 环同步调整。  The UE of the synchronization level 3 needs to periodically detect the pilot signal, and uses the pilot signal to perform open-loop synchronization adjustment with the corresponding UE.
如果同步等级 3的 UE收到同步等级 3的 UE发出的导频信号, 并且使用该导频信号与 同步等级 3的 UE建立了子帧及超帧的同步, 则进入同步等级 3(定时器 X进行清 0)。  If the UE of the synchronization level 3 receives the pilot signal sent by the UE of the synchronization level 3, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 3, the synchronization level 3 is entered (timer X). Clear it to 0).
如果同步等级 3的 UE收到同步等级 2的 UE发出的导频信号, 并且使用该导频信号与 同步等级 2的 UE建立了子帧及超帧的同步, 则进入同步等级 3或 2(定时器 X进行清 0)。 具 体的, 若检测到同步等级为 2的导频信号以及同步等级 3的导频信号, 并确定根据同步等级 2的导频信号进行时间同步需要的时间调整量不小于 0,且根据同步等级 3的导频信号进行时 间同步需要的时间调整量小于 0,则在与同步等级 2的 UE进行子帧及超帧的同步后,进入同 步等级 2; 否则在与同步等级 2的 UE进行子帧及超帧的同步后, 进入同步等级 3;  If the UE of the synchronization level 3 receives the pilot signal sent by the UE of the synchronization level 2, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 2, the synchronization level 3 or 2 is entered (timing) Device X is cleared to 0). Specifically, if the pilot signal with the synchronization level of 2 and the pilot signal of the synchronization level 3 are detected, and the time adjustment required to perform time synchronization according to the pilot signal of the synchronization level 2 is not less than 0, and according to the synchronization level 3 If the time adjustment required for the time synchronization of the pilot signal is less than 0, the synchronization level 2 is entered after the synchronization of the subframe and the superframe with the UE of the synchronization level 2; otherwise, the subframe is performed with the UE of the synchronization level 2 After the synchronization of the superframe, enter the synchronization level 3;
如果同步等级 3的 UE收到同步等级 1的 UE发出的导频信号, 并且使用该导频信号与 同步等级 1的 UE建立了子帧及超帧的同步, 则进入同步等级 2。  If the UE of the synchronization level 3 receives the pilot signal sent by the UE of the synchronization level 1, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 1, the synchronization level 2 is entered.
第五, 在 UE进入同步等级 2后, 对定时器 X进行清 0, 并启动 X进行计时, 当 X的计时 时间小于 x2时, 该 UE处于同步等级 2, 当 X的计时时间大于或等于 x2时, UE进入同步等 级 5。  Fifth, after the UE enters the synchronization level 2, the timer X is cleared to 0, and X is started for timing. When the timing of X is less than x2, the UE is at the synchronization level 2, and when the timing of X is greater than or equal to x2. At the time, the UE enters synchronization level 5.
如果同步等级 2的 UE收到同步等级 1的 UE发出的导频信号, 并且使用该导频信号与 同步等级 1的 UE建立了子帧及超帧的同步, 则进入同步等级 2(定时器 X进行清 0)。  If the UE of the synchronization level 2 receives the pilot signal sent by the UE of the synchronization level 1, and uses the pilot signal to establish the synchronization of the subframe and the superframe with the UE of the synchronization level 1, the synchronization level 2 is entered (timer X). Clear it to 0).
所有 UE优先使用同步等级高的导频信号进行时间同步。 当 UE检测到的相应等级的导 频信号包括多个时, 则 UE优先根据高于设定功率且接收时间最靠前的导频信号进行时间同 步。 如果 UE检测到的最高等级导频与 UE当前所使用的导频相同, 且计算出的时间定时提 前量大于 0时, 该 UE不需进行时间同步, 同时认为该 UE已经与同等级终端进行了同步; 否则, 确定该 UE的时间同步后的时间等于时间同步前的时间减去定时提前量, 其中, 定时 提前量等于该终端导频信号的实际接收时间减去预计的导频信号接收时间。 All UEs preferentially use time-synchronized pilot signals with high synchronization levels. When the pilot signal detected by the UE includes a plurality of pilot signals, the UE preferentially performs time synchronization according to the pilot signal that is higher than the set power and has the highest reception time. If the highest-level pilot detected by the UE is the same as the pilot currently used by the UE, and the calculated time timing advance is greater than 0, the UE does not need to perform time synchronization, and the UE is considered to have been performed with the same-level terminal. Synchronizing; otherwise, determining that the time after the time synchronization of the UE is equal to the time before the time synchronization minus the timing advance amount, wherein, the timing The advance amount is equal to the actual reception time of the terminal pilot signal minus the expected pilot signal reception time.
参见图 4 , 本发明实施例还提供一种终端, 该终端具有 UTC授时功能, 该终端包括: 时间同步单元 40, 用于在开机后获得 UTC基准时间, 根据该 UTC基准时间进行时间同 步;  Referring to FIG. 4, an embodiment of the present invention further provides a terminal, where the terminal has a UTC timing function, and the terminal includes: a time synchronization unit 40, configured to obtain a UTC reference time after powering on, and perform time synchronization according to the UTC reference time;
信号发送单元 41 , 用于进入预先设定的第一同步等级集合中的一个同步等级, 并发出该 同步等级对应的用于其他终端进行时间同步的导频信号。  The signal sending unit 41 is configured to enter a synchronization level in the preset first synchronization level set, and send a pilot signal corresponding to the synchronization level for time synchronization of other terminals.
所述信号发送单元 41用于:  The signal transmitting unit 41 is configured to:
进入第一同步等级集合中的最高同步等级, 并发出该最高同步等级对应的用于其他终端 进行时间同步的导频信号。  Entering the highest synchronization level in the first synchronization level set, and transmitting a pilot signal corresponding to the highest synchronization level for time synchronization of other terminals.
所述时间同步单元 40还用于:  The time synchronization unit 40 is further configured to:
在开机后获得 UTC基准时间之前, 进入第一同步等级集合中的最低同步等级。  Enter the lowest synchronization level in the first synchronization level set before the UTC reference time is obtained after powering on.
该终端还包括:  The terminal also includes:
等级转换单元 42, 用于在进入所述最高同步等级后 , 根据预先设定的同步  The level conversion unit 42 is configured to, after entering the highest synchronization level, according to a preset synchronization
等级转换方式进行同步等级的转换, 并在进行同步等级的转换后, 发出与转换后的同步 等级对应的用于其他终端进行时间同步的导频信号。  The gradation conversion mode performs the conversion of the synchronization level, and after the synchronization level is converted, a pilot signal for time synchronization of other terminals corresponding to the converted synchronization level is issued.
所述等级转换单元 42用于执行如下步骤:  The level conversion unit 42 is configured to perform the following steps:
A、 对计时器进行清 0 , 并启动该计时器进行计时; 若在启动所述定时器之后、 所述计时 器的计时时间到达第一时间之前,获得 UTC基准时间,则继续执行步骤 A; 否则,到步骤 B;  A, the timer is cleared to 0, and the timer is started to be timed; if the UTC reference time is obtained after the timer is started, and the time of the timer reaches the first time, then step A is continued; Otherwise, go to step B;
B、 若的当前同步等级为 P , 则到步驟 C , 否则, 到步骤 D; P是预先设定的第二同步等 级集合中的最低同步等级, 第二同步等级集合是第一同步等级集合的子集, 并且第二同步等 级集合包含所述最高同步等级;  B. If the current synchronization level is P, go to step C, otherwise, go to step D; P is the lowest synchronization level in the preset second synchronization level set, and the second synchronization level set is the first synchronization level set. a subset, and the second synchronization level set includes the highest synchronization level;
C、 进入第一同步等级集合中的最低同步等级, 并在获得 UTC基准时间后, 进入所述最 高同步等级, 返回步骤 A;  C, entering the lowest synchronization level in the first synchronization level set, and after obtaining the UTC reference time, entering the highest synchronization level, returning to step A;
D、 进入第二同步等级集合中低于终端的当前同步等级的下一同步等级, 并对所述计时 器进行清 0 , 启动该计时器进行计时, 若在启动所述定时器之后、 所述计时器的计时时间到 达第二时间之前, 获得 UTC基准时间, 则进入所述最高同步等级, 并返回步骤 A; 否则, 返 回步骤 B。  D. Enter a next synchronization level in the second synchronization level set that is lower than the current synchronization level of the terminal, and clear the timer, start the timer to perform timing, if the timer is started, When the timer time of the timer reaches the second time, the UTC reference time is obtained, then the highest synchronization level is entered, and the process returns to step A; otherwise, the process returns to step B.
第二同步等级集合中包含第一同步等级集合中等级连续的一个或多个同步等级。  The second synchronization level set includes one or more synchronization levels of consecutive levels in the first synchronization level set.
参见图 5, 本发明实施例还提供一种终端, 该终端不具有 UTC授时功能, 该终端包括: 信号检测单元 50, 用于在进入预先设定的第一同步等级集合中的一个同步等级后, 检测 其他终端发出的用于时间同步的导频信号;  Referring to FIG. 5, an embodiment of the present invention further provides a terminal, where the terminal does not have a UTC timing function, and the terminal includes: a signal detecting unit 50, configured to enter a synchronization level in a preset first synchronization level set. , detecting a pilot signal sent by another terminal for time synchronization;
时间同步单元 51 , 用于根据自身当前的同步等级以及检测到的各导频信号对应的同步等 级, 从检测到的各导频信号中选取一个导频信号, 并使用选取的导频信号进行时间同步。 所述时间同步单元 51用于: The time synchronization unit 51 is configured to select a pilot signal from each of the detected pilot signals according to the current synchronization level and the synchronization level corresponding to each detected pilot signal, and use the selected pilot signal to perform time. Synchronize. The time synchronization unit 51 is configured to:
从检测到的各导频信号中选取同步等级最高的导频信号, 并且选取的导频信号对应的同 步等级不低于所述终端当前的同步等级。  The pilot signal with the highest synchronization level is selected from the detected pilot signals, and the synchronization level corresponding to the selected pilot signal is not lower than the current synchronization level of the terminal.
该终端还包括:  The terminal also includes:
等级转换单元 52, 用于根据进行时间同步所使用的导频信号对应的同步等级, 确定需要 进入的下一个同步等级, 并进入确定的下一个同步等级。  The level conversion unit 52 is configured to determine the next synchronization level to be entered according to the synchronization level corresponding to the pilot signal used for time synchronization, and enter the determined next synchronization level.
所述等级转换单元 51用于:  The level conversion unit 51 is used to:
若进行时间同步所使用的导频信号的同步等级不是 P和第一同步等级集合中的最高同步 等级,则确定需要进入的下一个同步等级为进行时间同步所使用的导频信号对应的同步等级; P是第二同步等级集合中的最低同步等级, 第二同步等级集合是第一同步等級集合的子集, 并且第二同步等级集合包含所述最高同步等级;  If the synchronization level of the pilot signal used for time synchronization is not P and the highest synchronization level in the first synchronization level set, it is determined that the next synchronization level to be entered is the synchronization level corresponding to the pilot signal used for time synchronization. P is the lowest synchronization level in the second synchronization level set, the second synchronization level set is a subset of the first synchronization level set, and the second synchronization level set includes the highest synchronization level;
若进行时间同步所使用的导频信号的同步等级是 P , 则确定是否满足预先设定的条件, 在满足时, 确定需要进入的下一个同步等级为 P ,在不满足时,确定自身的同步等级为低于 P 的下一同步等级;  If the synchronization level of the pilot signal used for time synchronization is P, it is determined whether the predetermined condition is satisfied. When it is satisfied, it is determined that the next synchronization level to be entered is P, and when it is not satisfied, the synchronization is determined. The level is the next synchronization level lower than P;
若进行时间同步所使用的导频信号的同步等级是所述最高同步等级, 则确定需要进入的 下一个同步等级为第一同步等级集合中的次高同步等级。  If the synchronization level of the pilot signal used for time synchronization is the highest synchronization level, it is determined that the next synchronization level to be entered is the second highest synchronization level in the first synchronization level set.
所述条件为:  The conditions are:
检测到同步等级为 P的导频信号以及低于 P的下一同步等级的导频信号, 并确定根据同 步等级为 P的导频信号进行时间同步需要的时间调整量不小于 0, 且根据低于 P的下一同步 等级的导频信号进行时间同步需要的时间调整量小于 0。  Detecting a pilot signal with a synchronization level of P and a pilot signal of a next synchronization level lower than P, and determining that the time adjustment amount required for time synchronization according to the pilot signal of the synchronization level P is not less than 0, and according to the low The time adjustment required for the time synchronization of the pilot signal of the next synchronization level of P is less than zero.
所述信号检测单元 50用于:  The signal detecting unit 50 is used to:
在设定时间长度内检测其他终端发出的、 同步等级不低于终端的当前同步等级的用于时 间同步的导频信号。  A pilot signal for time synchronization issued by another terminal and whose synchronization level is not lower than the current synchronization level of the terminal is detected within a set time length.
该终端进一步包括:  The terminal further includes:
特殊处理单元 53 ,用于在进入的一个同步等级为第一同步等级集合中的最低同步等级时, 若在设定时间长度内未检测到同步等级不低于终端的当前同步等级的导频信号, 则自行建立 内部时钟, 并进入第一同步等级集合中的次高同步等级; 或者,  The special processing unit 53 is configured to: when the one synchronization level entered is the lowest synchronization level in the first synchronization level set, if the synchronization signal whose synchronization level is not lower than the current synchronization level of the terminal is not detected within the set time length , then establish an internal clock by itself and enter the second highest synchronization level in the first synchronization level set; or
在进入的一个同步等级不是第一同步等级集合中的最低同步等级时, 若在设定时间长度 内未检测到同步等级不低于终端的当前同步等级的导频信号, 则进入第一同步等级集合中的 最低同步等级。  When a synchronization level that is entered is not the lowest synchronization level in the first synchronization level set, if the pilot signal whose synchronization level is not lower than the current synchronization level of the terminal is not detected within the set time length, the first synchronization level is entered. The lowest synchronization level in the collection.
该终端进一步包括:  The terminal further includes:
信号发送单元 54, 用于在每进入一个同步等级后, 发出与当前进入的同步等级对应的、 用于其他终端进行时间同步的导频信号。 综上, 本发明的有益效果包括: The signal sending unit 54 is configured to, after each entering a synchronization level, issue a pilot signal corresponding to the currently entered synchronization level for time synchronization of other terminals. In summary, the beneficial effects of the present invention include:
本发明实施例提供的方案中, 具有 UTC授时功能的终端在开机后获得 UTC基准时间, 根据该 UTC基准时间进行时间同步, 并进入第一同步等級集合中的一个同步等級,发出该同 步等级对应的用于其他终端进行时间同步的导频信号。  In the solution provided by the embodiment of the present invention, the terminal having the UTC timing function obtains the UTC reference time after the power is turned on, performs time synchronization according to the UTC reference time, and enters a synchronization level in the first synchronization level set, and sends the synchronization level correspondingly. A pilot signal for time synchronization of other terminals.
不具有 UTC授时功能的终端在进入第一同步等级集合中的一个同步等级后,检测其他终 端发出的用于时间同步的导频信号, 根据自身当前的同步等级以及检测到的各导频信号对应 的同步等级, 从检测到的各导频信号中选取一个导频信号, 并使用选取的导频信号进行时间 同步。  After entering the synchronization level in the first synchronization level set, the terminal that does not have the UTC timing function detects the pilot signal sent by other terminals for time synchronization, according to its current synchronization level and the detected pilot signals. The synchronization level selects a pilot signal from each of the detected pilot signals, and uses the selected pilot signal for time synchronization.
可见,本发明实现了混合自组网网络中具有 UTC授时功能的终端的时间同步方案、以及 不具有 UTC授时功能的终端的时间同步方案,从而解决了混合自组网网络中的终端如何进行 时间同步的问题。  It can be seen that the present invention implements a time synchronization scheme of a terminal with a UTC timing function in a hybrid ad hoc network and a time synchronization scheme of a terminal without a UTC timing function, thereby solving the problem of how the terminal in the hybrid ad hoc network performs time. The problem of synchronization.
本发明关于同步等级的划分和同步等级之间的转换方法解决了混合自组网网络的同步建 立以及同步调整的问题 , 使得混合自组网网络可以有效并且快速地建立时间同步。  The method for dividing the synchronization level and the synchronization level between the present invention solves the problem of synchronous establishment and synchronization adjustment of the hybrid ad hoc network, so that the hybrid ad hoc network can establish time synchronization efficiently and quickly.
本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、或计算机程序产品。 因此, 本发明可采用完全硬件实施例、 完全软件实施例、 或结合软件和硬件方面的实施例的 形式。 而且, 本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储 介质(包括但不限于磁盘存储器、 CD-ROM、 光学存储器等)上实施的计算机程序产品的形 式。  Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Thus, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can be embodied in the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备 (系统)、和计算机程序产品的流程图和 / 或方框图来描述的。 应理解可由计算机程序指令实现流程图和 /或方框图中的每一流程和 / 或方框、 以及流程图和 /或方框图中的流程和 /或方框的结合。 可提供这些计算机程序指令 到通用计算机、 专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个 机器, 使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程 图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的装置。  The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工 作的计算机可读存储器中, 使得存储在该计算机可读存储器中的指令产生包括指令装置的制 造品, 该指令装置实现在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指 定的功能。  The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上, 使得在计算机或 其他可编程设备上执行一系列操作步骤以产生计算机实现的处理, 从而在计算机或其他可编 程设备上执行的指令提供用于实现在流程图一个流程或多个流程和 /或方框图一个方框或多 个方框中指定的功能的步骤。  These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念, 则可对这些实施例作出另外的变更和修改。 所以, 所附权利要求意欲解释为包括优选实施例 以及落入本发明范围的所有变更和修改。 Although a preferred embodiment of the present invention has been described, once a person skilled in the art has learned the basic inventive concept, Additional changes and modifications can be made to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and
显然, 本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本发明实施 例的精神和范围。 这样, 倘若本发明实施例的这些修改和变型属于本发明权利要求及其等同 技术的范围之内, 则本发明也意图包含这些改动和变型在内。  It is apparent that those skilled in the art can make various modifications and changes to the embodiments of the present invention without departing from the spirit and scope of the embodiments of the present invention. Thus, it is intended that the present invention cover the modifications and the modifications of the embodiments of the invention.

Claims

权 利 要 求 Rights request
1、 一种混合自组网网络中的时间同步方法, 混合自组网网络中包含具有通用时间协调 UTC授时功能的终端以及不具有 UTC授时功能的终端, 其特征在于, 该方法包括: A time synchronization method in a hybrid ad hoc network, wherein the hybrid ad hoc network includes a terminal having a universal time coordinated UTC timing function and a terminal having no UTC timing function, wherein the method includes:
具有通用时间协调 UTC授时功能的终端在开机后获得 UTC基准时间,根据该 UTC基准 时间进行时间同步; 以及,  A terminal having a universal time coordination UTC timing function obtains a UTC reference time after power-on, and performs time synchronization according to the UTC reference time;
所述具有 UTC授时功能的终端进入预先设定的第一同步等级集合中的一个同步等级,并 发出该同步等级对应的用于其他终端进行时间同步的导频信号。  The terminal having the UTC timing function enters a synchronization level in a preset first synchronization level set, and issues a pilot signal corresponding to the synchronization level for time synchronization of other terminals.
2、 如权利要求 1所述的方法, 其特征在于, 所述具有 UTC授时功能的终端进入预先设 定的第一同步等级集合中的一个同步等级, 并发出该同步等级对应的用于其他终端进行时间 同步的导频信号, 具体包括:  2. The method according to claim 1, wherein the terminal having the UTC timing function enters a synchronization level in a preset first synchronization level set, and issues the synchronization level corresponding to the other terminal. The pilot signal for time synchronization includes:
所述具有 UTC授时功能的终端进入第一同步等级集合中的最高同步等级,并发出该最高 同步等级对应的用于其他终端进行时间同步的导频信号。  The terminal having the UTC timing function enters the highest synchronization level in the first synchronization level set, and issues a pilot signal corresponding to the highest synchronization level for time synchronization of other terminals.
3、 如权利要求 2所述的方法, 其特征在于, 在具有 UTC授时功能的终端在开机后获得 UTC基准时间之前, 进一步包括:  The method according to claim 2, wherein before the terminal having the UTC timing function obtains the UTC reference time after the power is turned on, the method further includes:
所述具有 UTC授时功能的终端进入第一同步等级集合中的最低同步等级。  The terminal having the UTC timing function enters the lowest synchronization level in the first synchronization level set.
4、 如权利要求 2所述的方法, 其特征在于, 在所述具有 UTC授时功能的终端进入所述 最高同步等级后, 进一步包括:  The method according to claim 2, wherein after the terminal having the UTC timing function enters the highest synchronization level, the method further includes:
所述具有 UTC授时功能的终端根据预先设定的同步等级转换方式进行同步等级的转换, 并在进行同步等级的转换后, 发出与转换后的同步等级对应的用于其他终端进行时间同步的 导频信号。  The terminal having the UTC timing function performs synchronization level conversion according to a preset synchronization level conversion manner, and after performing synchronization level conversion, issues a guide for time synchronization of other terminals corresponding to the converted synchronization level. Frequency signal.
5、 如权利要求 4所述的方法, 其特征在于, 所述具有 UTC授时功能的终端根据预先设 定的同步等级转换方式进行同步等级转换, 具体包括:  The method according to claim 4, wherein the terminal having the UTC timing function performs the synchronization level conversion according to the preset synchronization level conversion manner, which specifically includes:
A、 所述具有 UTC授时功能的终端对计时器进行清 0, 并启动该计时器进行计时; 若在 启动所述定时器之后、所述计时器的计时时间到达第一时间之前, 所述具有 UTC授时功能的 终端获得 UTC基准时间, 则继续执行步骤 A; 否则, 到步骤 B;  A, the terminal having the UTC timing function clears the timer, and starts the timer to perform timing; if the timer time of the timer reaches the first time after the timer is started, the The terminal of the UTC timing function obtains the UTC reference time, and then proceeds to step A; otherwise, to step B;
B、 若所述具有 UTC授时功能的终端的当前同步等级为 P, 则到步骤 C, 否则, 到步骤 D; P是预先设定的第二同步等级集合中的最低同步等级, 第二同步等级集合是第一同步等级 集合的子集, 并且第二同步等级集合包含所述最高同步等级;  B. If the current synchronization level of the terminal with the UTC timing function is P, go to step C, otherwise, go to step D; P is the lowest synchronization level in the preset second synchronization level set, and the second synchronization level The set is a subset of the first set of synchronization levels, and the second set of synchronization levels includes the highest level of synchronization;
C、 所述具有 UTC授时功能的终端进入第一同步等级集合中的最低同步等级, 并在获得 UTC基准时间后, 进入所述最高同步等级, 返回步驟 A;  C, the terminal having the UTC timing function enters the lowest synchronization level in the first synchronization level set, and after obtaining the UTC reference time, enters the highest synchronization level, and returns to step A;
D、 所述具有 UTC授时功能的终端进入第二同步等级集合中低于终端的当前同步等级的 下一同步等级, 并对所述计时器进行清 0, 启动该计时器进行计时, 若在启动所述定时器之 后、 所述计时器的计时时间到达第二时间之前, 所述终端获得 UTC基准时间, 则所述具有 UTC授时功能的终端进入所述最高同步等级, 并返回步驟 A; 否则, 返回步骤D. The terminal having the UTC timing function enters a next synchronization level in the second synchronization level set that is lower than the current synchronization level of the terminal, and clears the timer, and starts the timer to perform timing, if it is started. After the timer, before the timer time of the timer reaches the second time, the terminal obtains the UTC reference time, then the The terminal of the UTC timing function enters the highest synchronization level and returns to step A; otherwise, returns to the step
6、如权利要求 5所述的方法, 其特征在于, 第二同步等级集合中包含第一同步等级集合 中等级连续的一个或多个同步等级。 The method according to claim 5, wherein the second synchronization level set includes one or more synchronization levels of consecutive levels in the first synchronization level set.
7、 一种混合自组网网络中的时间同步方法, 混合自组网网络中包含具有通用时间协调 UTC授时功能的终端以及不具有 UTC授时功能的终端, 其特征在于, 该方法包括:  A time synchronization method in a hybrid ad hoc network, the hybrid ad hoc network includes a terminal having a universal time coordinated UTC timing function and a terminal having no UTC timing function, wherein the method includes:
不具有 UTC授时功能的终端在进入预先设定的第一同步等级集合中的一个同步等级后, 检测其他终端发出的用于时间同步的导频信号;  A terminal that does not have a UTC timing function detects a pilot signal for time synchronization sent by another terminal after entering a synchronization level in a preset first synchronization level set;
所述不具有 UTC授时功能的终端根据自身当前的同步等级以及检测到的各导频信号对 应的同步等级, 从检测到的各导频信号中选取一个导频信号, 并使用选取的导频信号进行时 间同步。  The terminal that does not have the UTC timing function selects one pilot signal from each detected pilot signal according to its current synchronization level and the synchronization level corresponding to each detected pilot signal, and uses the selected pilot signal. Time synchronization.
8、 如权利要求 7所述的方法, 其特征在于, 所述不具有 UTC授时功能的终端根据自身 当前的同步等级以及检测到的各导频信号对应的同步等级, 从检测到的各导频信号中选取一 个导频信号, 具体包括:  The method according to claim 7, wherein the terminal having no UTC timing function detects the pilots according to the current synchronization level and the synchronization level corresponding to each detected pilot signal. Selecting a pilot signal from the signal includes:
所述不具有 UTC授时功能的终端从检测到的各导频信号中选取同步等级最高的导频信 号,并且选取的导频信号对应的同步等级不低于所述不具有 UTC授时功能的终端当前的同步 等级。  The terminal that does not have the UTC timing function selects the pilot signal with the highest synchronization level from the detected pilot signals, and the selected pilot signal corresponds to a synchronization level not lower than the current terminal without the UTC timing function. Synchronization level.
9、 如权利要求 8所述的方法, 其特征在于, 所述同步等级最高的导频信号包括多个时, 所述不具有 UTC授时功能的终端从检测到的各导频信号中选取同步等级最高的导频信号,具 体为:  The method according to claim 8, wherein when the pilot signal having the highest synchronization level includes a plurality of, the terminal having no UTC timing function selects a synchronization level from each of the detected pilot signals. The highest pilot signal, specifically:
所述不具有 UTC授时功能的终端从检测到的各同步等级最高的导频信号中,选取高于设 定功率且接收时间最靠前的导频信号。  The terminal that does not have the UTC timing function selects a pilot signal that is higher than the set power and has the highest reception time from among the detected pilot signals with the highest synchronization level.
10、 如权利要求 7所述的方法, 其特征在于, 进一步包括:  10. The method of claim 7, further comprising:
所述不具有 UTC授时功能的终端根据进行时间同步所使用的导频信号对应的同步等级, 确定需要进入的下一个同步等级, 并进入确定的下一个同步等级。  The terminal not having the UTC timing function determines the next synchronization level to be entered according to the synchronization level corresponding to the pilot signal used for time synchronization, and enters the determined next synchronization level.
11、 如权利要求 10所述的方法, 其特征在于, 所述不具有 UTC授时功能的终端根据进 行时间同步所使用的导频信号对应的同步等级,确定需要进入的下一个同步等级,具体包括: 若所述不具有 UTC授时功能的终端进行时间同步所使用的导频信号的同步等级不是 P和 第一同步等级集合中的最高同步等级, 则确定需要进入的下一个同步等级为进行时间同步所 使用的导频信号对应的同步等级; P是第二同步等级集合中的最低同步等级, 第二同步等级 集合是第一同步等级集合的子集, 并且第二同步等级集合包含所述最高同步等级;  The method according to claim 10, wherein the terminal that does not have the UTC timing function determines the next synchronization level that needs to be entered according to the synchronization level corresponding to the pilot signal used for performing time synchronization, and specifically includes : if the synchronization level of the pilot signal used by the terminal not having the UTC timing function for time synchronization is not the highest synchronization level in the P and the first synchronization level set, it is determined that the next synchronization level to be entered is time synchronization. a synchronization level corresponding to the pilot signal used; P is the lowest synchronization level in the second synchronization level set, the second synchronization level set is a subset of the first synchronization level set, and the second synchronization level set includes the highest synchronization Grade
若所述不具有 UTC授时功能的终端进行时间同步所使用的导频信号的同步等级是 P, 则 确定是否满足预先设定的条件, 在满足时, 确定需要进入的下一个同步等级为 P, 在不满足 时, 确定自身的同步等级为低于 P的下一同步等级; 若所述不具有 UTC授时功能的终端进行时间同步所使用的导频信号的同步等级是所述 最高同步等级, 则确定需要进入的下一个同步等级为第一同步等级集合中的次高同步等级。 If the synchronization level of the pilot signal used by the terminal that does not have the UTC timing function for time synchronization is P, it is determined whether the preset condition is met, and when it is satisfied, it is determined that the next synchronization level to be entered is P, When not satisfied, it is determined that its synchronization level is lower than the next synchronization level of P; If the synchronization level of the pilot signal used by the terminal not having the UTC timing function for time synchronization is the highest synchronization level, determining that the next synchronization level to be entered is the second highest synchronization level in the first synchronization level set. .
12、 如权利要求 11所述的方法, 其特征在于, 所述预先设定的条件为:  12. The method according to claim 11, wherein the predetermined condition is:
检测到同步等级为 P的导频信号以及低于 P的下一同步等级的导频信号, 并确定根据同 步等级为 P的导频信号进行时间同步需要的时间调整量不小于 0, 且根据低于 P的下一同步 等级的导频信号进行时间同步需要的时间调整量小于 0。  Detecting a pilot signal with a synchronization level of P and a pilot signal of a next synchronization level lower than P, and determining that the time adjustment amount required for time synchronization according to the pilot signal of the synchronization level P is not less than 0, and according to the low The time adjustment required for the time synchronization of the pilot signal of the next synchronization level of P is less than zero.
13、 如权利要求 7所述的方法, 其特征在于 , 所述检测其他终端发出的用于时间同步的 导频信号, 具体包括:  The method according to claim 7, wherein the detecting the pilot signal sent by the other terminal for time synchronization specifically includes:
所述不具有 UTC授时功能的终端在设定时间长度内检测其他终端发出的、同步等级不低 于终端的当前同步等级的用于时间同步的导频信号。  The terminal having no UTC timing function detects a pilot signal for time synchronization sent by another terminal and whose synchronization level is not lower than the current synchronization level of the terminal within a set time length.
14、 如权利要求 13所述的方法, 其特征在于, 进一步包括:  14. The method of claim 13, further comprising:
在所述不具有 UTC授时功能的终端进入的一个同步等级为第一同步等级集合中的最低 同步等级时,若所述不具有 UTC授时功能的终端在设定时间长度内未检测到同步等级不低于 终端的当前同步等级的导频信号, 则自行建立内部时钟, 并进入第一同步等级集合中的次高 同步等级; 或者,  When a synchronization level entered by the terminal that does not have the UTC timing function is the lowest synchronization level in the first synchronization level set, if the terminal that does not have the UTC timing function does not detect the synchronization level within the set time length, If the pilot signal is lower than the current synchronization level of the terminal, the internal clock is established by itself and enters the second highest synchronization level in the first synchronization level set; or
在所述不具有 UTC授时功能的终端进入的一个同步等级不是第一同步等级集合中的最 低同步等级时,若所述不具有 UTC授时功能的终端在设定时间长度内未检测到同步等级不低 于终端的当前同步等级的导频信号, 则进入第一同步等级集合中的最低同步等级。  When a synchronization level entered by the terminal that does not have the UTC timing function is not the lowest synchronization level in the first synchronization level set, if the terminal that does not have the UTC timing function does not detect the synchronization level within the set time length, The pilot signal below the current synchronization level of the terminal enters the lowest synchronization level in the first synchronization level set.
15、 如权利要求 7-14中任一所述的方法, 其特征在于, 进一步包括:  The method according to any one of claims 7-14, further comprising:
所述不具有 UTC授时功能的终端在每进入一个同步等级后,发出与当前进入的同步等级 对应的、 用于其他终端进行时间同步的导频信号。  The terminal that does not have the UTC timing function sends a pilot signal corresponding to the currently entered synchronization level for time synchronization of other terminals after each synchronization level is entered.
16、 一种终端, 该终端具有 UTC授时功能, 其特征在于, 该终端包括:  A terminal, the terminal having a UTC timing function, wherein the terminal comprises:
时间同步单元, 用于在开机后获得 UTC基准时间,根据该 UTC基准时间进行时间同步; 信号发送单元, 用于进入预先设定的第一同步等级集合中的一个同步等级, 并发出该同 步等级对应的用于其他终端进行时间同步的导频信号。  a time synchronization unit, configured to obtain a UTC reference time after powering on, and perform time synchronization according to the UTC reference time; and a signal sending unit, configured to enter a synchronization level in the preset first synchronization level set, and issue the synchronization level Corresponding pilot signals for time synchronization of other terminals.
17、 如权利要求 16所述的终端, 其特征在于, 所述信号发送单元用于:  The terminal according to claim 16, wherein the signal sending unit is configured to:
进入第一同步等级集合中的最高同步等级, 并发出该最高同步等级对应的用于其他终端 进行时间同步的导频信号。  Entering the highest synchronization level in the first synchronization level set, and transmitting a pilot signal corresponding to the highest synchronization level for time synchronization of other terminals.
18、 如权利要求 17所述的终端, 其特征在于, 所述时间同步单元还用于:  The terminal according to claim 17, wherein the time synchronization unit is further configured to:
在开机后获得 UTC基准时间之前, 进入第一同步等级集合中的最低同步等级。  Enter the lowest synchronization level in the first synchronization level set before the UTC reference time is obtained after powering on.
19、 如权利要求 17所述的终端, 其特征在于, 该终端还包括:  The terminal according to claim 17, wherein the terminal further comprises:
等级转换单元, 用于在进入所述最高同步等级后, 根据预先设定的同步等级转换方式进 行同步等级的转换, 并在进行同步等级的转换后, 发出与转换后的同步等级对应的用于其他 终端进行时间同步的导频信号。 a level conversion unit, configured to perform a conversion of the synchronization level according to a preset synchronization level conversion manner after entering the highest synchronization level, and after the synchronization level is converted, issue a synchronization level corresponding to the converted Other The terminal performs time-synchronized pilot signals.
20、如权利要求 19所述的终端,其特征在于,所述等级转换单元具体用于执行如下步骤: The terminal according to claim 19, wherein the level conversion unit is specifically configured to perform the following steps:
A、 对计时器进行清 0, 并启动该计时器进行计时; 若在启动所述定时器之后、 所述计时 器的计时时间到达第一时间之前,获得 UTC基准时间,则继续执行步骤 A; 否则,到步骤 B; A, the timer is cleared to 0, and the timer is started to be timed; if the UTC reference time is obtained after the timer is started, and the time of the timer reaches the first time, then step A is continued; Otherwise, go to step B;
B、 若的当前同步等级为 P, 则到步骤 C, 否则, 到步骤 D; P是预先设定的第二同步等 级集合中的最低同步等级, 第二同步等级集合是第一同步等级集合的子集, 并且第二同步等 级集合包含所述最高同步等级;  B. If the current synchronization level is P, go to step C, otherwise, go to step D; P is the lowest synchronization level in the preset second synchronization level set, and the second synchronization level set is the first synchronization level set. a subset, and the second synchronization level set includes the highest synchronization level;
C、 进入第一同步等级集合中的最低同步等级, 并在获得 UTC基准时间后, 进入所述最 高同步等级, 返回步驟 A;  C, entering the lowest synchronization level in the first synchronization level set, and after obtaining the UTC reference time, entering the highest synchronization level, returning to step A;
D、 进入第二同步等级集合中低于终端的当前同步等级的下一同步等级, 并对所述计时 器进行清 0, 启动该计时器进行计时, 若在启动所述定时器之后、 所述计时器的计时时间到 达第二时间之前, 获得 UTC基准时间, 则进入所述最高同步等级, 并返回步骤 A; 否则, 返 回步骤 B。  D. Enter a next synchronization level in the second synchronization level set that is lower than the current synchronization level of the terminal, and clear the timer to 0, start the timer to perform timing, if the timer is started, When the timer time of the timer reaches the second time, the UTC reference time is obtained, then the highest synchronization level is entered, and the process returns to step A; otherwise, the process returns to step B.
21、 一种终端, 该终端不具有 UTC授时功能, 其特征在于, 该终端包括:  A terminal, the terminal does not have a UTC timing function, and the terminal includes:
信号检测单元, 用于在进入预先设定的第一同步等级集合中的一个同步等级后, 检测其 他终端发出的用于时间同步的导频信号;  a signal detecting unit, configured to detect a pilot signal sent by another terminal for time synchronization after entering a synchronization level in the preset first synchronization level set;
时间同步单元 , 用于根据自身当前的同步等级以及检测到的各导频信号对应的同步等 级, 从检测到的各导频信号中选取一个导频信号, 并使用选取的导频信号进行时间同步。  a time synchronization unit, configured to select a pilot signal from each of the detected pilot signals according to the current synchronization level and the synchronization level corresponding to each detected pilot signal, and use the selected pilot signal to perform time synchronization .
22、 如权利要求 21所述的终端, 其特征在于, 所述时间同步单元用于:  The terminal according to claim 21, wherein the time synchronization unit is configured to:
从检测到的各导频信号中选取同步等级最高的导频信号, 并且选取的导频信号对应的同 步等级不低于所述终端当前的同步等级。  The pilot signal with the highest synchronization level is selected from the detected pilot signals, and the synchronization level corresponding to the selected pilot signal is not lower than the current synchronization level of the terminal.
23、 如权利要求 21所述的终端, 其特征在于, 该终端还包括:  The terminal according to claim 21, wherein the terminal further comprises:
等级转换单元, 用于根据进行时间同步所使用的导频信号对应的同步等级, 确定需要进 入的下一个同步等级, 并进入确定的下一个同步等级。  The level conversion unit is configured to determine the next synchronization level to be entered according to the synchronization level corresponding to the pilot signal used for time synchronization, and enter the determined next synchronization level.
24、 如权利要求 23所述的终端, 其特征在于, 所述等级转换单元用于:  The terminal according to claim 23, wherein the level conversion unit is configured to:
若进行时间同步所使用的导频信号的同步等级不是 P和第一同步等级集合中的最高同步 等级,则确定需要进入的下一个同步等级为进行时间同步所使用的导频信号对应的同步等级; P是第二同步等级集合中的最低同步等级, 第二同步等级集合是第一同步等级集合的子集, 并且第二同步等级集合包含所述最高同步等级;  If the synchronization level of the pilot signal used for time synchronization is not P and the highest synchronization level in the first synchronization level set, it is determined that the next synchronization level to be entered is the synchronization level corresponding to the pilot signal used for time synchronization. P is the lowest synchronization level in the second synchronization level set, the second synchronization level set is a subset of the first synchronization level set, and the second synchronization level set includes the highest synchronization level;
若进行时间同步所使用的导频信号的同步等级是 P, 则确定是否满足预先设定的条件, 在满足时, 确定需要进入的下一个同步等级为 P,在不满足时,确定自身的同步等级为低于 P 的下一同步等级;  If the synchronization level of the pilot signal used for time synchronization is P, it is determined whether the predetermined condition is satisfied. When it is satisfied, it is determined that the next synchronization level to be entered is P, and when it is not satisfied, the synchronization is determined. The level is the next synchronization level lower than P;
若进行时间同步所使用的导频信号的同步等级是所述最高同步等级, 则确定需要进入的 下一个同步等级为第一同步等级集合中的次高同步等级。 If the synchronization level of the pilot signal used for time synchronization is the highest synchronization level, it is determined that the synchronization level needs to be entered. The next synchronization level is the second highest synchronization level in the first synchronization level set.
25、 如权利要求 21所述的终端, 其特征在于, 所述信号检测单元用于:  The terminal according to claim 21, wherein the signal detecting unit is configured to:
在设定时间长度内检测其他终端发出的、 同步等级不低于终端的当前同步等級的用于时 间同步的导频信号。  A pilot signal for time synchronization issued by another terminal and whose synchronization level is not lower than the current synchronization level of the terminal is detected within a set time length.
26、 如权利要求 25所述的终端, 其特征在于, 该终端进一步包括:  The terminal according to claim 25, wherein the terminal further comprises:
特殊处理单元, 用于在进入的一个同步等级为第一同步等级集合中的最低同步等級时, 若在设定时间长度内未检测到同步等级不低于终端的当前同步等级的导频信号, 则自行建立 内部时钟, 并进入第一同步等级集合中的次高同步等级; 或者,  a special processing unit, configured to: when a synchronization level entered is the lowest synchronization level in the first synchronization level set, if no pilot signal whose synchronization level is not lower than the current synchronization level of the terminal is detected within the set time length, The internal clock is established by itself and enters the second highest synchronization level in the first synchronization level set; or
在进入的一个同步等级不是第一同步等级集合中的最低同步等级时, 若在设定时间长度 内未检测到同步等级不低于终端的当前同步等级的导频信号, 则进入第一同步等級集合中的 最低同步等级。  When a synchronization level that is entered is not the lowest synchronization level in the first synchronization level set, if the pilot signal whose synchronization level is not lower than the current synchronization level of the terminal is not detected within the set time length, the first synchronization level is entered. The lowest synchronization level in the collection.
27、 如权利要求 21-26中任一所述的终端, 其特征在于, 该终端进一步包括: 信号发送单元, 用于在每进入一个同步等级后, 发出与当前进入的同步等级对应的、 用 于其他终端进行时间同步的导频信号。  The terminal according to any one of claims 21 to 26, wherein the terminal further comprises: a signal sending unit, configured to send, corresponding to the currently entered synchronization level, each time a synchronization level is entered A pilot signal that is time synchronized with other terminals.
PCT/CN2012/080445 2011-11-22 2012-08-22 Method and device for time synchronisation in hybrid ad hoc network WO2013075521A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110374322.9A CN103139896B (en) 2011-11-22 Method for synchronizing time in mixing ad hoc network and equipment
CN201110374322.9 2011-11-22

Publications (1)

Publication Number Publication Date
WO2013075521A1 true WO2013075521A1 (en) 2013-05-30

Family

ID=48469084

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/080445 WO2013075521A1 (en) 2011-11-22 2012-08-22 Method and device for time synchronisation in hybrid ad hoc network

Country Status (1)

Country Link
WO (1) WO2013075521A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101371613A (en) * 2006-01-11 2009-02-18 高通股份有限公司 Methods and apparatus relating to timing and/or synchronization including the use of wireless terminal beacon signals
WO2011011760A2 (en) * 2009-07-23 2011-01-27 Qualcomm Incorporated Synchronization of devices in a wireless communication network
CN102098194A (en) * 2009-12-10 2011-06-15 中兴通讯股份有限公司 Method and system for realizing time synchronization in local area network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101371613A (en) * 2006-01-11 2009-02-18 高通股份有限公司 Methods and apparatus relating to timing and/or synchronization including the use of wireless terminal beacon signals
WO2011011760A2 (en) * 2009-07-23 2011-01-27 Qualcomm Incorporated Synchronization of devices in a wireless communication network
CN102098194A (en) * 2009-12-10 2011-06-15 中兴通讯股份有限公司 Method and system for realizing time synchronization in local area network

Also Published As

Publication number Publication date
CN103139896A (en) 2013-06-05

Similar Documents

Publication Publication Date Title
WO2018120984A1 (en) Method and terminal for performing synchronization
JP6683840B2 (en) Method and apparatus for control signal transmission
JP2017514374A5 (en)
WO2016037571A1 (en) A method and apparatus for clock synchronization
WO2015127669A1 (en) Method, device and system for performing communication by using unauthorized spectrum
JP6384697B2 (en) Synchronization method, synchronization device, and base station
WO2008019568A1 (en) A method and an apparatus for synchronization among the neighboring base stations in the wireless communication system
WO2022011650A1 (en) Ranging method and apparatus in synchronization system, device and readable storage medium
WO2011057472A1 (en) Cell search method and device
RU2012146944A (en) METHODS AND EQUIPMENT FOR WIRELESS SELF-ORGANIZING SINGLE-PEOPLE NETWORKS
WO2015054903A1 (en) Method and device of initial synchronization between d2d ues
CN108781430A (en) A kind of paging method and relevant device based on unlicensed spectrum
WO2015003396A1 (en) Method and device for sending synchronization signal and achieving synchronization among base stations
WO2016070693A1 (en) Method and device for transmitting preamble signal
CN104703164A (en) Method of acquiring synchronous references, method of transmitting synchronous information and equipment
JP2013110677A5 (en)
JP2012015879A (en) Wireless automated meter reading system and method
WO2020119214A1 (en) Synchronization method and device, network element, and computer storage medium
US20120134456A1 (en) Methods and apparatuses for synchronization of wireless devices in wireless networks
WO2015042955A1 (en) Synchronization method and apparatus
JP2013110670A5 (en)
US20160227494A1 (en) Method and apparatus to determine a transmission time of a wireless data frame
CN103248435B (en) Underwater acoustic communication network time division multiple address (TDMA) method
WO2013075521A1 (en) Method and device for time synchronisation in hybrid ad hoc network
CN105009657B (en) A kind of transmission of synchronization signal, synchronization among base stations method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12851015

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12851015

Country of ref document: EP

Kind code of ref document: A1