WO2016165476A1 - Clock synchronization method and system, end station and computer storage medium - Google Patents

Clock synchronization method and system, end station and computer storage medium Download PDF

Info

Publication number
WO2016165476A1
WO2016165476A1 PCT/CN2016/074128 CN2016074128W WO2016165476A1 WO 2016165476 A1 WO2016165476 A1 WO 2016165476A1 CN 2016074128 W CN2016074128 W CN 2016074128W WO 2016165476 A1 WO2016165476 A1 WO 2016165476A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
station
wireless signal
primary station
time information
Prior art date
Application number
PCT/CN2016/074128
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
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016165476A1 publication Critical patent/WO2016165476A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • H04W56/0015Synchronization between nodes one node acting as a reference for the others

Landscapes

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

Abstract

Disclosed are a clock synchronization method and system, an end station and a computer storage medium, which are applied to the field of communications. The clock synchronization method comprises: an end station receiving a wireless signal forwarded by a primary station through a digital broadcast satellite, the wireless signal comprising primary station time information; the end station extracting the primary station time information from the wireless signal; and the end station conducting clock synchronization with the primary station according to the primary station time information.

Description

一种时钟同步的方法、系统、端站及计算机存储介质Method, system, end station and computer storage medium for clock synchronization 技术领域Technical field
本发明涉及通信领域,具体涉及一种时钟同步的方法、系统、端站及计算机存储介质。The present invention relates to the field of communications, and in particular, to a clock synchronization method, system, end station, and computer storage medium.
背景技术Background technique
在远洋出海的船上,长时间出海却需要和陆地保持通信,但由于海运环境限制无法使用有线通信,只能通过卫星转发方式实现地面和船上终端之间的通信,基于卫星通信的基站有多种,如收发信机基站(BTS,Base Transceiver Station)或其他类型基站。On a ship going offshore, it takes a long time to go to sea to maintain communication with the land. However, due to the limitation of the maritime environment, wired communication cannot be used, and communication between the ground and the ship terminal can only be realized by satellite forwarding. There are various base stations based on satellite communication. For example, a transceiver base station (BTS, Base Transceiver Station) or other type of base station.
BTS基站是一种基于多频时分多址(MF-TDMA,Multi Frequency Time Division Multiple Access)方式的基站,在BTS基站的工作过程中,需要保持端站的时钟和主站的时钟同步或频率同步,如果端站和主站之间的频率偏差较大,则会造成频偏,使用户无法接入,甚至出现掉话、通话超时等故障。目前对BTS基站进行时钟同步是利用全球定位卫星(GPS,Global Positioning System)接收机实现,但使用GPS接收机进行时钟同步(频率同步)有以下缺点:保证GPS接收机正常使用,接收到来自上方天空至少三颗卫星的信号是必要条件。当然在需要同步的时候,头顶肯定不会总是“一整片蓝天”,所以信号强度不足是GPS的硬伤之一。而且,在BTS基站安装GPS接收机,增加了成本。The BTS base station is a base station based on the multi-frequency time division multiple access (MF-TDMA) mode. During the operation of the BTS base station, it is necessary to keep the clock of the end station and the clock synchronization or frequency synchronization of the primary station. If the frequency deviation between the end station and the main station is large, the frequency offset will be caused, the user will not be able to access, and even the call drop, call timeout and other faults may occur. At present, the clock synchronization of the BTS base station is realized by using a Global Positioning System (GPS) receiver, but the use of the GPS receiver for clock synchronization (frequency synchronization) has the following disadvantages: ensuring the normal use of the GPS receiver, receiving from above The signal of at least three satellites in the sky is a necessary condition. Of course, when you need to synchronize, the top of the head will not always be "a whole blue sky", so the lack of signal strength is one of the GPS injuries. Moreover, installing a GPS receiver at a BTS base station increases the cost.
发明内容Summary of the invention
有鉴于此,本发明实施例提供了一种时钟同步的方法、系统、端站及计算机存储介质,解决现有通过GPS进行时钟同步需要安装GPS接收机而 导致成本高以及信号强度差的问题。In view of this, an embodiment of the present invention provides a method, a system, an end station, and a computer storage medium for clock synchronization, which solves the problem that a GPS receiver needs to be installed when performing clock synchronization through GPS. This leads to problems of high cost and poor signal strength.
为解决上述问题,本发明实施例提供一种时钟同步的方法,所述方法包括:To solve the above problem, an embodiment of the present invention provides a method for clock synchronization, where the method includes:
端站接收主站通过数字广播卫星转发的无线信号,所述无线信号包括所述主站时间信息;The end station receives a wireless signal forwarded by the primary station through the digital broadcast satellite, the wireless signal including the primary station time information;
所述端站从所述无线信号中提取到所述主站时间信息;The end station extracts the master station time information from the wireless signal;
所述端站根据所述主站时间信息与所述主站进行时钟同步。The end station performs clock synchronization with the primary station according to the primary station time information.
在本发明的一种实施例中,所述主站时间信息包括:In an embodiment of the invention, the primary station time information includes:
所述主站向所述数字广播卫星发送所述无线信号的发送时间,Sending, by the primary station, a transmission time of the wireless signal to the digital broadcast satellite,
or
所述主站时间信息包括:所述主站向所述数字广播卫星发送所述无线信号的发送时间和传输延迟时间。The primary station time information includes: a transmission time and a transmission delay time at which the primary station transmits the wireless signal to the digital broadcast satellite.
在本发明的一种实施例中,当所述主站时间信息包括所述主站向所述数字广播卫星发送所述无线信号的发送时间时,所述端站从所述无线信号中提取到所述主站时间信息包括:所述端站从所述无线信号中提取到所述主站时间信息所述主站向所述数字广播卫星发送所述无线信号的发送时间;所述端站根据所述主站时间信息与所述主站进行时钟同步包括:所述端站获取传输延迟时间;将所述发送时间和所述传输延迟相加之和作为同步标准时间;将所述端站的本地时间设置为所述同步标准时间。In an embodiment of the present invention, when the primary station time information includes a sending time of the wireless signal sent by the primary station to the digital broadcast satellite, the end station extracts from the wireless signal The primary station time information includes: a sending time of the primary station sending the wireless signal to the digital broadcast satellite by the end station extracting the primary station time information from the wireless signal; The clock synchronization of the primary station time information with the primary station includes: the end station acquiring a transmission delay time; summing the transmission time and the transmission delay as a synchronization standard time; The local time is set to the synchronization standard time.
在本发明的一种实施例中,当所述主站时间信息包括所述主站向所述数字广播卫星发送所述无线信号的发送时间和传输延迟时间时,所述端站从所述无线信号中提取到所述主站时间信息包括:所述端站从所述无线信号中提取到所述主站时间信息所述主站向所述数字广播卫星发送所述无线信号的发送时间和传输延迟时间;所述端站根据所述主站时间信息与所述主站进行时钟同步包括:将所述发送时间和所述传输延迟相加之和作为同 步标准时间;将所述端站的本地时间设置为所述同步标准时间。In an embodiment of the present invention, when the primary station time information includes a transmission time and a transmission delay time of the wireless signal sent by the primary station to the digital broadcast satellite, the end station is from the wireless Extracting the primary station time information from the signal includes: the end station extracting the primary station time information from the wireless signal, and transmitting, by the primary station, the transmission time and transmission of the wireless signal to the digital broadcast satellite Delay time; the end station performing clock synchronization with the primary station according to the primary station time information includes: adding the sum of the transmission time and the transmission delay as the same Step standard time; set the local time of the end station to the synchronization standard time.
在本发明的一种实施例中,在将所述端站的本地时间设置为所述同步标准时间之前还包括:获取接收所述无线信号的接收时间;判断所述接收时间与所述同步标准时间是否相同;如果不同,则将所述端站的本地时间设置为所述同步标准时间。In an embodiment of the present invention, before setting the local time of the end station to the synchronization standard time, the method further includes: acquiring a receiving time of receiving the wireless signal; determining the receiving time and the synchronization standard Whether the time is the same; if different, the local time of the end station is set to the synchronization standard time.
在本发明的一种实施例中,所述无线信号的数据格式为数据帧;所述数据帧包括串行描述数据总线的数据头;所述获取接收所述无线信号的接收时间包括:将所述端站识别输出所述串行描述数据总线的数据头的时间作为所述接收时间。In an embodiment of the present invention, the data format of the wireless signal is a data frame; the data frame includes a data header that serially describes the data bus; and the receiving time of receiving the wireless signal includes: The end station identifies the time at which the data header of the serial description data bus is output as the reception time.
在本发明的一种实施例中,所述无线信号的数据格式为数据帧;所述数据帧包括数据总线上的有效数据的数据主体;所述端站从所述无线信号中提取到所述主站时间信息包括:从所述数据总线上的有效数据的数据主体解析得到所述主站时间信息。In an embodiment of the invention, the data format of the wireless signal is a data frame; the data frame includes a data body of valid data on the data bus; and the end station extracts the data from the wireless signal The master station time information includes: parsing the master station time information from a data body of valid data on the data bus.
为解决上述问题,本发明还提供一种时钟同步的方法,所述方法包括:To solve the above problems, the present invention also provides a method for clock synchronization, the method comprising:
主站通过数字广播卫星转发的无线信号给端站,所述无线信号包括所述主站时间信息;The wireless signal transmitted by the primary station through the digital broadcast satellite to the end station, the wireless signal including the primary station time information;
所述端站接收所述无线信号;Receiving, by the end station, the wireless signal;
所述端站从所述无线信号中提取到所述主站时间信息;The end station extracts the master station time information from the wireless signal;
所述端站根据所述主站时间信息与所述主站进行时钟同步。The end station performs clock synchronization with the primary station according to the primary station time information.
为解决上述问题,本发明实施例还提供一种端站,所述端站包括发送模块、提取模块和同步模块;In order to solve the above problem, an embodiment of the present invention further provides an end station, where the end station includes a sending module, an extracting module, and a synchronization module;
所述发送模块配置为接收主站通过数字广播卫星转发的无线信号,所述无线信号包括所述主站时间信息;The sending module is configured to receive a wireless signal that is forwarded by the primary station by using a digital broadcast satellite, where the wireless signal includes the primary station time information;
所述提取模块配置为从所述无线信号中提取到所述主站时间信息;The extraction module is configured to extract the master station time information from the wireless signal;
所述同步模块配置为根据所述主站时间信息与所述主站进行时钟同 步。The synchronization module is configured to perform the same clock with the primary station according to the primary station time information. step.
在本发明的一种实施例中,所述主站时间信息包括:In an embodiment of the invention, the primary station time information includes:
所述发送模块向所述数字广播卫星发送所述无线信号的发送时间,Sending, by the sending module, the sending time of the wireless signal to the digital broadcast satellite,
or
所述主站时间信息包括:所述发送模块向所述数字广播卫星发送所述无线信号的发送时间和传输延迟时间。The primary station time information includes: the sending module sends a transmission time and a transmission delay time of the wireless signal to the digital broadcast satellite.
在本发明的一种实施例中,当所述主站时间信息包括所述主站向所述数字广播卫星发送所述无线信号的发送时间时,所述提取模块还配置为从所述无线信号中提取到所述主站时间信息所述主站向所述数字广播卫星发送所述无线信号的发送时间;所述同步模块还配置为获取传输延迟时间;将所述发送时间和所述传输延迟相加之和作为同步标准时间;将所述端站的本地时间设置为所述同步标准时间。In an embodiment of the present invention, when the primary station time information includes a sending time of the wireless signal sent by the primary station to the digital broadcast satellite, the extracting module is further configured to receive the wireless signal Extracting to the primary station time information, the primary station transmitting a transmission time of the wireless signal to the digital broadcast satellite; the synchronization module is further configured to acquire a transmission delay time; delaying the transmission time and the transmission The sum of the sums is the synchronization standard time; the local time of the end station is set to the synchronization standard time.
在本发明的一种实施例中,当所述主站时间信息包括所述主站向所述数字广播卫星发送所述无线信号的发送时间和传输延迟时间时,所述提取模块还配置为从所述无线信号中提取到所述主站时间信息所述主站向所述数字广播卫星发送所述无线信号的发送时间和传输延迟时间;所述同步模块还配置为将所述发送时间和所述传输延迟相加之和作为同步标准时间;将所述端站的本地时间设置为所述同步标准时间。In an embodiment of the present invention, when the primary station time information includes a sending time and a transmission delay time of the wireless signal sent by the primary station to the digital broadcast satellite, the extracting module is further configured to Extracting, by the wireless signal, the primary station time information, the primary station transmitting a transmission time and a transmission delay time of the wireless signal to the digital broadcast satellite; the synchronization module is further configured to send the transmission time and the location The sum of the transmission delays is added as the synchronization standard time; the local time of the end station is set to the synchronization standard time.
在本发明的一种实施例中,所述同步模块,还配置为在将所述端站的本地时间设置为所述同步标准时间之前,获取接收所述无线信号的接收时间;判断所述接收时间与所述同步标准时间是否相同;如果不同,则将所述端站的本地时间设置为所述同步标准时间。In an embodiment of the present invention, the synchronization module is further configured to: before receiving the local time of the end station as the synchronization standard time, acquire a receiving time of receiving the wireless signal; and determine the receiving Whether the time is the same as the synchronization standard time; if different, the local time of the end station is set to the synchronization standard time.
为解决上述问题,本发明还提供一种时钟同步的系统,所述系统包括主站和端站;In order to solve the above problems, the present invention also provides a system for clock synchronization, the system comprising a primary station and an end station;
所述主站,配置为通过数字广播卫星转发的无线信号给所述端站,所 述无线信号包括所述主站时间信息;The primary station is configured to send a wireless signal forwarded by a digital broadcast satellite to the end station, The wireless signal includes the primary station time information;
所述端站,配置为接收所述无线信号,从所述无线信号中提取到所述主站时间信息;以及根据所述主站时间信息与所述主站进行时钟同步。The end station is configured to receive the wireless signal, extract the primary station time information from the wireless signal, and perform clock synchronization with the primary station according to the primary station time information.
本发明实施例提供了一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行以上所述的时钟同步的方法。Embodiments of the present invention provide a computer storage medium in which a computer program is stored, the computer program being used to perform the clock synchronization method described above.
本发明实施例提供的时钟同步的方法、系统、端站、及计算机存储介质,端站接收主站通过数字广播卫星转发的无线信号,无线信号包括主站时间信息;端站从无线信号中提取到主站时间信息;端站根据主站时间信息与主站进行时钟同步。与现有技术相比,不需要通过GPS进行同步,而是直接将主站时间信息携带在主站发送的无线信号中,能够基于主站与端站进行网络通信实际调制编码器和接收解调解码器就能够实现主站和端站的时钟同步,避免了需要安装GPS接收机,能够降低成本;进一步,通过主站与端站直接进行时钟同步,信号强度好,能够避免GPS卫星高空带来的信号强度弱的问题。The method, system, end station, and computer storage medium provided by the embodiment of the invention, the end station receives the wireless signal forwarded by the primary station through the digital broadcast satellite, the wireless signal includes the time information of the master station; the end station extracts the signal from the wireless signal The time information to the master station; the end station synchronizes with the master station according to the master station time information. Compared with the prior art, there is no need to synchronize by GPS, but the master station time information is directly carried in the wireless signal transmitted by the primary station, and the actual modulation encoder and the reception demodulation can be performed based on the network communication between the primary station and the end station. The decoder can realize the clock synchronization between the primary station and the end station, avoiding the need to install a GPS receiver, and can reduce the cost; further, the clock synchronization is directly performed between the primary station and the end station, and the signal strength is good, and the GPS satellite can be avoided. The problem of weak signal strength.
附图说明DRAWINGS
图1为本发明实施例一提供的时钟同步的方法流程图;1 is a flowchart of a method for clock synchronization provided by Embodiment 1 of the present invention;
图2-1为本发明实施例二提供的时钟同步的方法流程图;2-1 is a flowchart of a method for clock synchronization provided by Embodiment 2 of the present invention;
图2-2为本发明实施例二提供的时钟同步的方法中的帧的帧结构示意图;2-2 is a schematic structural diagram of a frame of a frame in a method for clock synchronization according to Embodiment 2 of the present invention;
图2-3为本发明实施例二提供的时钟同步的方法中的端站上调谐器和解调器芯片的连接示意;2-3 is a schematic diagram of connection between a tuner and a demodulator chip on an end station in a method for clock synchronization according to Embodiment 2 of the present invention;
图2-4为本发明实施例二提供的时钟同步的方法中端站上解析数据信号流程图;2-4 is a flowchart of parsing data signals on an end station in a method for clock synchronization provided by Embodiment 2 of the present invention;
图2-5为本发明实施例二提供的时钟同步的方法中串行描述数据总线输出信号的时间顺序示意图; 2-5 are schematic diagrams showing the time sequence of serially describing a data bus output signal in a clock synchronization method according to Embodiment 2 of the present invention;
图2-6为本发明实施例二提供的时钟同步的方法中数据总线输出信号的时间顺序示意图;2-6 are schematic diagrams showing a time sequence of a data bus output signal in a clock synchronization method according to Embodiment 2 of the present invention;
图2-7为本发明实施例二提供的时钟同步的方法中形成同步时钟序列的流程图;2-7 are flowcharts showing a synchronous clock sequence formed in a clock synchronization method according to Embodiment 2 of the present invention;
图3为本发明实施例三提供的端站结构示意图;3 is a schematic structural diagram of an end station according to Embodiment 3 of the present invention;
图4为本发明实施例三提供的钟同步的系统结构示意图。FIG. 4 is a schematic structural diagram of a system for clock synchronization according to Embodiment 3 of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
实施例一:Embodiment 1:
本申请实施例的时钟同步的方法,如图1所示,该方法包括:The method for clock synchronization in the embodiment of the present application is as shown in FIG. 1 , and the method includes:
S101:端站接收主站通过数字广播卫星转发的无线信号,无线信号包括主站时间信息。S101: The end station receives the wireless signal forwarded by the primary station through the digital broadcast satellite, and the wireless signal includes the primary station time information.
在该步骤中,这里的数字广播卫星主要指的是以作为DVB-S(Digital Video Broadcasting System for satellite broadcasting),以及使带宽利用更有效的DVB-S2(second generation DVB System for satellite broadcasting and unicasting)进行传输的卫星,这里的无线信号主要是指通过卫星传输高品质视频和高级服务的无线信号,这里的主站时间信息是指能够为端站进行时钟同步的所有时间。优选的,主站时间信息包括主站发送无线信号的时间。即将发送无线信号的时间携带在无线信号中,这里让端站可以根据该时间来进行时钟同步。具体的,由于端站和主站之间有一定的延迟时间,端站在得到发送无线信号的时间后还得知道他与主站之间的延迟时间,一 般来说,该延迟时间是相对固定的值,端站根据发送无线信号的时间和该延时时间就可以得到一个同步的时间,就将本地时钟根据该同步的时间进行同步。进一步,为了便于端站直接进行时钟同步,主站时间信息还包括无线信号到达端站的延迟时间,即直接将发送无线信号的时间和延迟时间都携带在无线信号中,让端站直接得到进行后续的时钟同步。这里的无线信号指的是各种能够携带主站时间信息的信号,具体的无线数据信号的数据格式可以是数据报文、数据包和数据帧等。In this step, the digital broadcasting satellite here mainly refers to DVB-S2 (second generation DVB System for satellite broadcasting and unicasting) which is DVB-S (Digital Video Broadcasting System for satellite broadcasting) and makes bandwidth utilization more efficient. For transmitting satellites, the wireless signals here mainly refer to wireless signals that transmit high-quality video and advanced services through satellites. The master station time information here refers to all the time that can be used for clock synchronization of the end stations. Preferably, the primary station time information includes the time at which the primary station transmits the wireless signal. The time when the wireless signal is about to be transmitted is carried in the wireless signal, where the end station can perform clock synchronization according to the time. Specifically, since there is a certain delay time between the end station and the primary station, the end station has to know the delay time between the terminal and the primary station after receiving the wireless signal. Generally speaking, the delay time is a relatively fixed value, and the end station can obtain a synchronization time according to the time of transmitting the wireless signal and the delay time, and synchronize the local clock according to the synchronization time. Further, in order to facilitate the clock synchronization of the end station directly, the time information of the main station further includes the delay time of the wireless signal reaching the end station, that is, the time and the delay time of transmitting the wireless signal are directly carried in the wireless signal, so that the end station directly obtains the information. Subsequent clock synchronization. The wireless signal here refers to various signals capable of carrying the time information of the primary station, and the data format of the specific wireless data signal may be a data message, a data packet, a data frame, and the like.
S102:端站从无线信号中提取到主站时间信息。S102: The end station extracts the master station time information from the wireless signal.
在该步骤中,由于主站时间信息是携带在无线信号中的,那么要具体得到该主站时间信息就得对无线信号处理,得到对应的主站时间信息。具体的,由于地面主站通过网关接入互联网,在主站上,原始的数据报文被封装成DVB-S2格式,经过调制器调制到和卫星对应的频点,主站产生射频信号通过天线发给卫星转发器,信号经过转发器放大,转发给船上的端站;端站接收到射频信号经过下变频变成基带信号,然后经过解调和解码恢复出原始的数据。在一具体实施方式中,端站接收主站通过数字广播卫星转发的无线信号,包括:端站接收主站通过数字广播卫星转发无线信号对应的射频信号;端站将射频信号进行信号转换处理得到对应的数字正交信号;端站对数字正交信号进行解调解码后得到对应的无线信号。无线信号包括数据总线上的有效数据的数据主体;数据总线上的有效数据的数据主体包括主站时间信息;端站解析无线信号得到主站时间信息包括:从据总线上的有效数据的数据主体解析得到主站时间信息。In this step, since the primary station time information is carried in the wireless signal, the wireless signal processing is performed to obtain the corresponding primary station time information, and the corresponding primary station time information is obtained. Specifically, since the ground primary station accesses the Internet through the gateway, on the primary station, the original data message is encapsulated into a DVB-S2 format, modulated by a modulator to a frequency point corresponding to the satellite, and the primary station generates a radio frequency signal through the antenna. The signal is sent to the satellite transponder, and the signal is amplified by the transponder and forwarded to the end station on the ship; the end station receives the radio frequency signal and converts it into a baseband signal, and then demodulates and decodes to recover the original data. In an embodiment, the end station receives the wireless signal forwarded by the primary station through the digital broadcast satellite, including: the end station receiving the primary station transmits the radio frequency signal corresponding to the wireless signal through the digital broadcast satellite; and the end station performs the signal conversion processing on the radio frequency signal. Corresponding digital orthogonal signal; the end station demodulates and decodes the digital orthogonal signal to obtain a corresponding wireless signal. The wireless signal includes a data body of valid data on the data bus; the data body of the valid data on the data bus includes the master station time information; and the end station parses the wireless signal to obtain the master station time information including: the data body from the valid data on the bus Analyze the master station time information.
S103:端站根据主站时间信息与主站进行时钟同步。S103: The end station performs clock synchronization with the primary station according to the time information of the primary station.
在该步骤中,具体的可以是直接根据主站时间信息对端站的本地时钟进行时钟同步;即不管本地时钟是否出错,都进行与主站的时钟进行同步。这样就可能会存在大量了同步操作,为了降低该部分的处理,优选的,还 以是先判断端站的本地时钟与主站时钟是否相同,如不相同,则进行时钟同步。也就是说,只有在于主站时钟不同步的情况下才对本地时钟进行时钟同步处理。在一具体实施方式中,判断端站的本地时钟与主站时钟是否相同包括:获取接收无线信号的接收时间;根据主站时间信息和接收时间判断所本地时钟与主站时钟是否相同。进一步,由于正常处理过程中,端站在接收无线信号后还要进行相关的处理才能得到具体的主站时间信息,在该处理过程中具有一定的延迟,并且该延迟的时间很难确定,为了准确的确定具体接收无线信号的接收时间,减小判断误差,在一具体实施方式中,无线信号包括串行描述数据总线的数据头;获取接收无线信号的接收时间包括:将端站识别输出串行描述数据总线的数据头的时间作为接收时间。即由于端站在接收无线信号后,马上就能识别输出串行描述数据总线的数据头,没有后续处理过程,这样就可以很好确定具体收到无线信号的时间,当然其他可以确定无线信号的时间的方式也可以实现。In this step, specifically, the local clock of the end station is clock-synchronized directly according to the time information of the main station; that is, the clock of the main station is synchronized regardless of whether the local clock is faulty. In this way, there may be a large number of synchronization operations, in order to reduce the processing of the part, preferably, Therefore, it is first determined whether the local clock of the end station is the same as the clock of the main station, and if not, the clock is synchronized. That is to say, the local clock is clocked only if the master clock is not synchronized. In a specific implementation, determining whether the local clock of the end station is the same as the clock of the primary station comprises: obtaining a receiving time of receiving the wireless signal; determining whether the local clock is the same as the clock of the primary station according to the time information of the primary station and the receiving time. Further, since the terminal station performs relevant processing after receiving the wireless signal in the normal processing process to obtain the specific master station time information, there is a certain delay in the processing, and the delay time is difficult to determine, in order to The receiving time of the specific receiving wireless signal is accurately determined, and the determining error is reduced. In a specific implementation, the wireless signal includes a data header that serially describes the data bus; and the receiving time of acquiring the received wireless signal includes: identifying the output string of the end station The line describes the time of the data head of the data bus as the reception time. That is, since the end station can recognize the data header of the output serial description data bus immediately after receiving the wireless signal, there is no subsequent processing, so that the time of receiving the wireless signal can be well determined, and of course, other wireless signals can be determined. The way of time can also be achieved.
进一步,为了时刻保证主站与端站之间的时钟是同步的,也就是说主站会通过数字广播卫星不断转发的无线信号给端站,优选的,让主站根据预设周期通过数字广播卫星不断转发的无线信号给端站,这里为了减小物理层的开销,又能达到网络同步的目的,主站是以80毫秒为预设周期发送带有主站时间信息的无线信号;那么,端站就是周期性的得到这些无线信号,为了便于对这些无线信号对应的主站时间信息进行后续时间同步,优选的,形成同步时钟序列;在一具体实施方式中,根据多少无线信号形成同步时钟序列可以是各无线信号还包括串行描述数据总线的数据主体和数据总线上的有效数据的数据主体;串行描述数据总线的数据主体包括第一物理帧计数器;数据总线上的有效数据的数据主体包括第二物理帧计数器和主站时间信息;根据多少无线信号形成同步时钟序列包括:根据各无线信号的第一物理帧计数器形成队列;根据各第一物理帧计数器找到对应的 各第二物理帧计数器;根据各第二物理帧计数器找到对应的数据总线上的有效数据的数据主体,从数据总线上的有效数据的数据主体中提取各主站时间信息形成同步时钟序列。例如,该无线信号为数据帧,那么在端站接收解调解码之前,检测到达的帧头部分SOF,Start of Frame),然后从帧数据部分中解析主站时间信息(NCR,Network Clock Reference),就知道了主站的同步时间戳,周期收到的NCR信息对应的SOF序列形成一个稳定的同步时钟序列,然后我们就可以像一般基站那样处理同步,把这个同步时钟序列送到锁相环进行校准,就可以代替GPS,实现和主站保持时钟同步的目的。Further, in order to ensure that the clock between the primary station and the end station is synchronized at the same time, that is, the primary station will continuously forward the wireless signal through the digital broadcast satellite to the end station, preferably, let the primary station pass the digital broadcast according to the preset period. The wireless signal continuously forwarded by the satellite is sent to the end station. Here, in order to reduce the overhead of the physical layer, the purpose of the network synchronization can be achieved, and the primary station transmits the wireless signal with the time information of the primary station with a preset period of 80 milliseconds; The end station periodically obtains the wireless signals. In order to facilitate subsequent time synchronization of the primary station time information corresponding to the wireless signals, preferably, a synchronous clock sequence is formed. In a specific embodiment, a synchronous clock is formed according to how many wireless signals are formed. The sequence may be each wireless signal further comprising a data body that serially describes the data body of the data bus and valid data on the data bus; the data body of the serial description data bus includes a first physical frame counter; data of valid data on the data bus The main body includes a second physical frame counter and master station time information; according to how many wireless signals Forming synchronous clock sequence comprising: forming a first physical frame queues according to the respective wireless signal counter; find the corresponding physical frame in accordance with each of the first counter Each second physical frame counter; the data body of the valid data on the corresponding data bus is found according to each second physical frame counter, and each master time information is extracted from the data body of the valid data on the data bus to form a synchronous clock sequence. For example, if the wireless signal is a data frame, before the end station receives the demodulation decoding, the arriving frame header portion (SOF, Start of Frame) is detected, and then the main station time information (NCR, Network Clock Reference) is parsed from the frame data portion. Knowing the synchronization timestamp of the primary station, the SOF sequence corresponding to the NCR information received in the cycle forms a stable synchronous clock sequence, and then we can process the synchronization like a normal base station, and send the synchronous clock sequence to the phase-locked loop. By performing calibration, it is possible to replace the GPS and achieve clock synchronization with the primary station.
在一具体实施方式中,主站时间信息包括:主站向数字广播卫星发送无线信号的发送时间;或主站时间信息包括:主站向数字广播卫星发送无线信号的发送时间和传输延迟时间。In a specific embodiment, the primary station time information includes: a transmission time at which the primary station transmits a wireless signal to the digital broadcast satellite; or the primary station time information includes: a transmission time and a transmission delay time at which the primary station transmits the wireless signal to the digital broadcast satellite.
当主站时间信息包括主站向数字广播卫星发送无线信号的发送时间时,端站从无线信号中提取到主站时间信息包括:端站从无线信号中提取到主站时间信息主站向数字广播卫星发送无线信号的发送时间;端站根据主站时间信息与主站进行时钟同步包括:端站获取传输延迟时间;将发送时间和传输延迟相加之和作为同步标准时间;将端站的本地时间设置为同步标准时间。When the primary station time information includes the transmission time of the primary station transmitting the wireless signal to the digital broadcast satellite, the end station extracts the primary station time information from the wireless signal, including: the end station extracts from the wireless signal to the primary station time information, the primary station to the digital The transmission time of the wireless signal transmitted by the broadcasting satellite; the clock synchronization of the terminal station with the primary station according to the time information of the primary station includes: the end station acquires the transmission delay time; the sum of the transmission time and the transmission delay is used as the synchronization standard time; The local time is set to synchronize the standard time.
当主站时间信息包括主站向数字广播卫星发送无线信号的发送时间和传输延迟时间时,端站从无线信号中提取到主站时间信息包括:端站从无线信号中提取到主站时间信息主站向数字广播卫星发送无线信号的发送时间和传输延迟时间;端站根据主站时间信息与主站进行时钟同步包括:将发送时间和传输延迟相加之和作为同步标准时间;将端站的本地时间设置为同步标准时间。When the primary station time information includes the transmission time and the transmission delay time of the wireless signal transmitted by the primary station to the digital broadcast satellite, the end station extracts the primary station time information from the wireless signal, including: the end station extracts the primary station time information from the wireless signal. The sending time and the transmission delay time of the wireless signal sent by the primary station to the digital broadcasting satellite; the clock synchronization of the terminal station with the primary station according to the time information of the primary station includes: adding the sum of the transmission time and the transmission delay as the synchronization standard time; The local time is set to synchronize the standard time.
在一具体实施方式中,在将端站的本地时间设置为同步标准时间之前 还包括:获取接收无线信号的接收时间;判断接收时间与同步标准时间是否相同;如果不同,则将端站的本地时间设置为同步标准时间。In a specific embodiment, before setting the local time of the end station to the synchronization standard time The method further includes: obtaining a receiving time of receiving the wireless signal; determining whether the receiving time is the same as the synchronization standard time; if different, setting the local time of the end station to the synchronous standard time.
在一具体实施方式中,无线信号的数据格式为数据帧;数据帧包括串行描述数据总线的数据头;获取接收无线信号的接收时间包括:将端站识别输出串行描述数据总线的数据头的时间作为接收时间。In a specific implementation, the data format of the wireless signal is a data frame; the data frame includes a data header serially describing the data bus; and the receiving time of acquiring the received wireless signal includes: identifying the end station and outputting the data header of the serial description data bus Time as the receiving time.
在一具体实施方式中,无线信号的数据格式为数据帧;数据帧包括数据总线上的有效数据的数据主体;端站从无线信号中提取到主站时间信息包括:从数据总线上的有效数据的数据主体解析得到主站时间信息。In a specific implementation, the data format of the wireless signal is a data frame; the data frame includes a data body of valid data on the data bus; and the end station extracts the time information from the wireless signal to the master station including: valid data from the data bus The data body is parsed to obtain the master station time information.
实施例二:Embodiment 2:
本申请实施例的时钟同步的方法,如图2-1所示,该方法包括:The method for clock synchronization in the embodiment of the present application is as shown in FIG. 2-1, and the method includes:
S201:主站周期性通过数字广播卫星转发的无线信号,该无线信号包括主站时间信息。S201: The wireless signal periodically forwarded by the primary station through the digital broadcast satellite, the wireless signal including the primary station time information.
在该步骤中,具体的,以数据帧为例,主站上经过调制编码并封装后的DVB-S2帧如图2-2所示,帧头部分可分成SOF段和PLSC(Physical Layer Signaling Code,物理层信号编码)段,其中XFECFRAME(complex Forward Error Correction Frame,复杂前向纠错帧)表示数据部分。帧头共有90个符号(symbol)组成,其中SOF占有26个符号,转换成十六进制是18D2E82HEX,这一段数据信息在DVB-S2协议中是固定不变的,针对DVB-S2协议帧格式的这一特点,我们可以在主站上把网络时钟参考NCR(Network Clock Reference)封装在XFECFRAME里面,并周期的发送承载NCR的数据帧。这里的网络时钟参考是主站时间信息的一种具体例子,当然其他的时钟信息也可以。In this step, specifically, taking the data frame as an example, the DVB-S2 frame modulated and encapsulated on the primary station is shown in Figure 2-2, and the header portion can be divided into an SOF segment and a PLSC (Physical Layer Signaling Code). , physical layer signal coding) segment, where XFECFRAME (complex Forward Error Correction Frame) represents the data portion. The frame header consists of 90 symbols, in which SOF occupies 26 symbols and is converted to hexadecimal 18D2E82HEX. This piece of data information is fixed in the DVB-S2 protocol for DVB-S2 protocol frame format. In this feature, we can encapsulate the Network Clock Reference (NCR) in the XFECFRAME on the primary station and periodically transmit the data frame carrying the NCR. The network clock reference here is a specific example of the time information of the master station, and of course other clock information is also available.
S202:端站接收无线信号,并根据该数字信号解析得到主站时间信息,并形成同步时钟序列。S202: The end station receives the wireless signal, and parses the time information of the primary station according to the digital signal, and forms a synchronous clock sequence.
S203:端站根据同步时钟序列进行与主站的时钟同步。 S203: The end station synchronizes with the clock of the primary station according to the synchronous clock sequence.
在上述步骤S202中,具体的,在接收端站上,我们使用了独立的调谐器(Tuner)和解调芯片(Demod),如图2-3所示,为端站上调谐器和解调器芯片的连接示意,在图2-3中,DiSEqc 2.0表示数字卫星设备控制2.0版本,“SDAT1,SCLT”表示调谐器和解调器连接的I2C数据和时钟端口,AGCRF1表示射频自动增益指示,(I1N,I1P)表示同向信号,“Q1N,Q1P”表示正交信号,“XTAL1”表示时钟引脚(输入),D71表示输出帧数据(比特0-比特7),CLOCKOUT1表示输出帧时钟,STROUT1表示输出帧起始,DPN1表示数据有效指示,ERROR1表示错误指示,CLOCKOUT27表示输出时钟,“SDA,SCL”表示解调器与控制器连接的I2C数据和时钟端口,SDD1表示串行数据描述总线输出,DISEQCIN1表示数字卫星设备控制输入端,DISEQCOUT1表示数字卫星设备控制输出端。这里推荐采用意法半导体公司的STV6111B加STV0910ADB芯片组,外部控制器uController和Tuner和Demod是按照I2C(Inter-Integrated Circuit)协议进行通信。Tuner负责把天线接收的射频信号搬移到零频附近,然后把模拟正交IQ(Inphase and Quadrature)信号送给Demod。整个Demod的处理流程由图2-4所示,为时钟同步的方法中端站上解析无线信号流程图,具体的为端站上解析并匹配串行描述数据SDD(Serial data description)总线SOF和数据总线上的有效数据的流程,在Demod内部,模拟IQ信号经过模数转换器ADC(Analog-to-Digital Converter)采样、量化转化为数字IQ信号,然后经过解调、解码,最后由传输流管理模块Transport stream manager在数据总线输出原始的数据帧,数据总线包括输出时序CLKOUT、数据总线上的有效数据的数据STROUT、D/P、数据总线上的有效数据的数据主体DATA等,其中,数据总线上的有效数据的数据STROUT中包含数据总线上的有效数据的数据头STROUT_SOF具体的时序图如图2-5所示。In the above step S202, specifically, on the receiving end station, we use a separate tuner (Tuner) and a demodulation chip (Demod), as shown in Figure 2-3, for the tuner and demodulation on the end station. The connection of the chip is shown in Figure 2-3. DiSEqc 2.0 represents the digital satellite device control version 2.0, "SDAT1, SCLT" represents the I2C data and clock port connected to the tuner and demodulator, and AGCRF1 represents the RF automatic gain indication. (I1N, I1P) represents the same direction signal, "Q1N, Q1P" represents the quadrature signal, "XTAL1" represents the clock pin (input), D71 represents the output frame data (bit 0 - bit 7), and CLOCKOUT1 represents the output frame clock, STROUT1 indicates the start of the output frame, DPN1 indicates the data valid indication, ERROR1 indicates the error indication, CLOCKOUT27 indicates the output clock, "SDA, SCL" indicates the I2C data and clock port connected to the controller, and SDD1 indicates the serial data description bus. Output, DISEQCIN1 represents the digital satellite device control input, and DISEQCOUT1 represents the digital satellite device control output. It is recommended to use STMicroelectronics' STV6111B plus STV0910ADB chipset. The external controllers uController and Tuner and Demod communicate according to the I2C (Inter-Integrated Circuit) protocol. Tuner is responsible for moving the RF signal received by the antenna to near zero frequency, and then sending the analog quadrature IQ (Inphase and Quadrature) signal to Demod. The processing flow of the entire Demod is shown in Figure 2-4. The method for parsing the wireless signal on the end station in the clock synchronization method is specifically to parse and match the serial description data SDD (Serial data description) bus SOF and The flow of valid data on the data bus. Within Demod, the analog IQ signal is sampled, quantized into a digital IQ signal by an analog-to-digital converter (ADC), then demodulated, decoded, and finally transmitted. The management module Transport stream manager outputs the original data frame on the data bus. The data bus includes the output timing CLKOUT, the data STROUT of the valid data on the data bus, the D/P, the data body DATA of the valid data on the data bus, etc., wherein the data The specific data sequence of the data header STROUT_SOF containing valid data on the data bus in the data STROUT on the bus is shown in Figure 2-5.
为了正确地使Demod输出SOF,我们可以通过配置图2-3中通用输入 输出GPIO(General Purpose Input Output)交换矩阵,选择固定的GPIO管脚作为SDD总线输出,SDD总线输出串行描述数据总线的数据头SDD_SOF、Symbol Clock和串行描述数据总线的数据主体SD_data、SDD总线输出信号时序如图2-6所示。In order to properly enable Demod to output SOF, we can configure the general input in Figure 2-3. Output GPIO (General Purpose Input Output) switching matrix, select fixed GPIO pin as SDD bus output, SDD bus output serial description data bus data header SDD_SOF, Symbol Clock and serial description data bus data body SD_data, SDD bus The output signal timing is shown in Figure 2-6.
由于无线信号从主站发射到卫星,从卫星再到端站接收,中间过程存在传播延时。另外在接收端处理过程中,Tuner和Demod内部处理也会带来硬件运算的延时,我们希望所有延时加起来是一个固定值,这样端站处理起来不会引入太大误差。Since the wireless signal is transmitted from the primary station to the satellite, from the satellite to the end station, there is a propagation delay in the intermediate process. In addition, during the processing of the receiving end, the inner processing of Tuner and Demod will also bring the delay of hardware operation. We hope that all delays add up to a fixed value, so that the end station does not introduce too much error.
对比图2-5和图2-6,需要特别注意的是,数据总线STROUT也有标识起始帧的STROUT_SOF,它是表示整个DVB-S2数据帧经过解调和译码才输出的,而SDD总线上的SOF是DVB-S2数据头被识别即输出,没有经过后面的解调和译码过程。我们知道,DVB-S2支持码率范围从1/4到9/10,支持QPSK、8PSK、16PSK和32APSK四种解调方式,不同码率和解调方式组合花的时间都有变化。如果我们使用STROUT上的SOF当做定时同步时钟源,由于不同码率下的物理帧长不同,不同解调方式造成处理延迟不固定,这样到达的时刻点就不是一个固定值,所以时钟同步一定要用SDD总线上的SOF输出。Comparing Figure 2-5 with Figure 2-6, it is important to note that the data bus STROUT also has a STROUT_SOF that identifies the start frame, which indicates that the entire DVB-S2 data frame is demodulated and decoded for output, while the SDD bus The upper SOF is the DVB-S2 data header that is identified and output, without subsequent demodulation and decoding processes. We know that DVB-S2 supports bit rate ranging from 1/4 to 9/10. It supports QPSK, 8PSK, 16PSK and 32APSK demodulation methods. The time between different bit rate and demodulation method changes. If we use SOF on STROUT as the timing synchronization clock source, because the physical frame length is different at different code rates, the processing delay caused by different demodulation methods is not fixed, so the arrival time is not a fixed value, so the clock synchronization must be Use the SOF output on the SDD bus.
主站发射端,单个帧上的SOF和数据XFECFRAME是一一对应的,可是在端站接收端,串行描述数据总线的数据头SDD_SOF是在SDD总线上输出,数据是在数据总线DATA上输出,同一帧的SOF和数据输出时刻也有偏差,SOF总是先于数据,为了保证SOF和数据的不发生错位,我们发现SD_data和数据总线Data都有一个指示当前属于哪个物理帧的计数器PLFRAME_counter,把这两个字段提取出来,然后比较,可以判断串行描述数据总线的数据头SDD_SOF和DATA是否是同一帧,具体如图2-7所示,包括: At the transmitting end of the primary station, the SOF and the data XFECFRAME on a single frame are one-to-one correspondence, but at the receiving end of the end station, the data header SDD_SOF of the serial description data bus is output on the SDD bus, and the data is output on the data bus DATA. The SOF and data output timing of the same frame are also biased. The SOF always precedes the data. In order to ensure that the SOF and the data are not misaligned, we find that both the SD_data and the data bus Data have a counter PLFRAME_counter indicating which physical frame the current physical frame belongs to. These two fields are extracted and then compared to determine whether the data headers SDD_SOF and DATA of the serial description data bus are the same frame, as shown in Figure 2-7, including:
步骤S2021:开辟两块足够大的缓存(Buffer),不断收取SDD_SOF、SD_data以及数据总线上的STROUT和DATA;Step S2021: opening two large enough buffers to continuously charge SDD_SOF, SD_data, and STROUT and DATA on the data bus;
具体的,Buffer0读取SDD总线上的SOF、SD_data;Buffer1读取数据总线上的STROUT_SOF、DATA。Specifically, Buffer0 reads SOF and SD_data on the SDD bus; Buffer1 reads STROUT_SOF and DATA on the data bus.
步骤S2022:从SDD_SOF的时间戳得到帧到达的精确时刻,提取SD_data中的第一物理帧的计数器PLFRAME_couter1,存在队列中;Step S2022: Obtain the precise time when the frame arrives from the timestamp of the SDD_SOF, and extract the counter PLFRAME_couter1 of the first physical frame in the SD_data, which is in the queue;
步骤S2023:数据总线检测到STROUT_SOF后,从DATA取到数据,并提取包含在DATA中的第二物理帧的计数器PLFRAME_couter2;Step S2023: After the data bus detects the STROUT_SOF, the data is fetched from the DATA, and the counter PLFRAME_couter2 of the second physical frame included in the DATA is extracted;
步骤S2024:比较PLFRAME_couter2和队列中的PLFRAME_couter1,如果大小相等,就判断是同一帧,如果两个PLFRAME_couter有差值,根据差值在队列移动对应步长,找到当前数据在队列中对应的SDD_SOF。Step S2024: Compare PLFRAME_couter2 with PLFRAME_couter1 in the queue. If the size is equal, it is judged to be the same frame. If there is a difference between the two PLFRAME_couters, the corresponding step size is moved in the queue according to the difference, and the corresponding SDD_SOF of the current data in the queue is found.
实施例三:Embodiment 3:
本申请实施例提供一种端站300,如图3所示,所述端站300包括发送模块301、提取模块302和同步模块303;其中,An embodiment of the present application provides an end station 300. As shown in FIG. 3, the end station 300 includes a sending module 301, an extracting module 302, and a synchronization module 303.
所述发送模块301配置为接收主站通过数字广播卫星转发的无线信号,无线信号包括主站时间信息;The sending module 301 is configured to receive a wireless signal that is forwarded by the primary station by using a digital broadcast satellite, where the wireless signal includes primary station time information;
所述提取模块302配置为从无线信号中提取到主站时间信息;The extraction module 302 is configured to extract the master station time information from the wireless signal;
所述同步模块303配置为根据主站时间信息与主站进行时钟同步。The synchronization module 303 is configured to perform clock synchronization with the primary station based on the primary station time information.
其中,主站时间信息包括:发送模块向数字广播卫星发送无线信号的发送时间,或主站时间信息包括:发送模块向数字广播卫星发送无线信号的发送时间和传输延迟时间。The master station time information includes: a sending time of the sending module sending the wireless signal to the digital broadcasting satellite, or the master station time information includes: a sending time and a transmission delay time of the sending module sending the wireless signal to the digital broadcasting satellite.
在一具体子实施例中,当主站时间信息包括主站向数字广播卫星发送无线信号的发送时间时,In a specific sub-embodiment, when the primary station time information includes a transmission time at which the primary station transmits a wireless signal to the digital broadcast satellite,
所述提取模块302还配置为从无线信号中提取到主站时间信息主站向数字广播卫星发送无线信号的发送时间; The extraction module 302 is further configured to extract, from the wireless signal, a transmission time of the primary station time information primary station transmitting the wireless signal to the digital broadcast satellite;
所述同步模块303还配置为获取传输延迟时间;将发送时间和传输延迟相加之和作为同步标准时间;将端站的本地时间设置为同步标准时间。The synchronization module 303 is further configured to acquire a transmission delay time; the sum of the transmission time and the transmission delay is used as the synchronization standard time; and the local time of the end station is set to the synchronization standard time.
在一具体子实施例中,当主站时间信息包括主站向数字广播卫星发送无线信号的发送时间和传输延迟时间时,In a specific sub-embodiment, when the primary station time information includes a transmission time and a transmission delay time at which the primary station transmits a wireless signal to the digital broadcast satellite,
所述提取模块302还配置为从无线信号中提取到主站时间信息主站向数字广播卫星发送无线信号的发送时间和传输延迟时间;所述同步模块303还配置为将发送时间和传输延迟相加之和作为同步标准时间;将端站的本地时间设置为同步标准时间。The extraction module 302 is further configured to extract, from the wireless signal, a transmission time and a transmission delay time of the primary station time information primary station transmitting the wireless signal to the digital broadcast satellite; the synchronization module 303 is further configured to transmit the transmission time and the transmission delay phase Add the sum as the synchronization standard time; set the local time of the end station to the synchronous standard time.
在另一实施例中,同步模块303还配置为在将端站的本地时间设置为同步标准时间之前,获取接收无线信号的接收时间;判断接收时间与同步标准时间是否相同;如果不同,则将端站的本地时间设置为同步标准时间。In another embodiment, the synchronization module 303 is further configured to acquire a receiving time of receiving the wireless signal before setting the local time of the end station to the synchronization standard time; determining whether the receiving time is the same as the synchronization standard time; if different, The local time of the end station is set to synchronize the standard time.
在实际应用中,所述发送模块301、提取模块302和同步模块303均可由端站或端站所属设备上的中央处理器(CPU,Central Processing Unit)、微处理器(MPU,Micro Processor Unit)、数字信号处理器(DSP,Digital Signal Processor)、或现场可编程门阵列(FPGA,Field Programmable Gate Array)等实现。In an actual application, the sending module 301, the extracting module 302, and the synchronizing module 303 may be a Central Processing Unit (CPU) or a Micro Processor Unit (MPU) on the device to which the end station or the end station belongs. , digital signal processor (DSP, Digital Signal Processor), or Field Programmable Gate Array (FPGA) implementation.
本申请实施例还提供一种时钟同步的系统,所述系统包括主站400和端站300;其中The embodiment of the present application further provides a system for clock synchronization, where the system includes a primary station 400 and an end station 300;
所述主站400,配置为通过数字广播卫星转发的无线信号给所述端站300,无线信号包括主站时间信息;The primary station 400 is configured to send the wireless signal forwarded by the digital broadcast satellite to the end station 300, and the wireless signal includes primary station time information;
所述端站300,配置为接收无线信号,从无线信号中提取到主站时间信息;以及根据主站时间信息与主站进行时钟同步。The end station 300 is configured to receive a wireless signal, extract master station time information from the wireless signal, and perform clock synchronization with the primary station based on the primary station time information.
本发明实施例还记载了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行实施例1或实施例2所述的时钟同步的方法。 The embodiment of the invention further describes a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the method of clock synchronization described in Embodiment 1 or Embodiment 2.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,上述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be accomplished by a program that instructs the associated hardware, such as a read-only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware or in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
以上实施例仅用以说明本发明的技术方案而非限制,仅仅参照较佳实施例对本发明进行了详细说明。本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或者等同替换,而不脱离本发明技术方案的精神和范围,均应涵盖在本发明的权利要求范围当中。The above embodiments are only intended to illustrate the technical solutions of the present invention and are not to be construed as limiting the invention. It should be understood by those skilled in the art that the present invention may be modified or equivalently substituted without departing from the spirit and scope of the invention.
工业实用性Industrial applicability
本发明实施例中,端站接收主站通过数字广播卫星转发的无线信号,无线信号包括主站时间信息;端站从无线信号中提取到主站时间信息;端站根据主站时间信息与主站进行时钟同步;如此,解决现有通过GPS进行时钟同步需要安装GPS接收机而导致成本高以及信号强度差的问题。 In the embodiment of the present invention, the end station receives the wireless signal forwarded by the primary station through the digital broadcast satellite, and the wireless signal includes the time information of the primary station; the end station extracts the time information of the primary station from the wireless signal; the end station according to the time information of the primary station and the primary station The station performs clock synchronization; thus, the problem of high cost and poor signal strength caused by the need to install a GPS receiver for clock synchronization through GPS is solved.

Claims (15)

  1. 一种时钟同步的方法,所述方法包括:A method of clock synchronization, the method comprising:
    端站接收主站通过数字广播卫星转发的无线信号,所述无线信号包括所述主站时间信息;The end station receives a wireless signal forwarded by the primary station through the digital broadcast satellite, the wireless signal including the primary station time information;
    所述端站从所述无线信号中提取到所述主站时间信息;The end station extracts the master station time information from the wireless signal;
    所述端站根据所述主站时间信息与所述主站进行时钟同步。The end station performs clock synchronization with the primary station according to the primary station time information.
  2. 如权利要求1所述的时钟同步的方法,其中,所述主站时间信息包括:The method of clock synchronization according to claim 1, wherein said master station time information comprises:
    所述主站向所述数字广播卫星发送所述无线信号的发送时间,Sending, by the primary station, a transmission time of the wireless signal to the digital broadcast satellite,
    or
    所述主站时间信息包括:所述主站向所述数字广播卫星发送所述无线信号的发送时间和传输延迟时间。The primary station time information includes: a transmission time and a transmission delay time at which the primary station transmits the wireless signal to the digital broadcast satellite.
  3. 如权利要求2所述的时钟同步的方法,其中,当所述主站时间信息包括所述主站向所述数字广播卫星发送所述无线信号的发送时间时,The method of clock synchronization according to claim 2, wherein when said primary station time information includes a transmission time at which said primary station transmits said wireless signal to said digital broadcast satellite,
    所述端站从所述无线信号中提取到所述主站时间信息包括:所述端站从所述无线信号中提取到所述主站时间信息所述主站向所述数字广播卫星发送所述无线信号的发送时间;所述端站根据所述主站时间信息与所述主站进行时钟同步包括:所述端站获取传输延迟时间;将所述发送时间和所述传输延迟相加之和作为同步标准时间;将所述端站的本地时间设置为所述同步标准时间。Extracting, by the end station, the primary station time information from the wireless signal comprises: the end station extracting, from the wireless signal, the primary station time information, the primary station transmitting to the digital broadcast satellite Determining a transmission time of the wireless signal; the end station performing clock synchronization with the primary station according to the primary station time information includes: the end station acquiring a transmission delay time; adding the transmission time and the transmission delay And as the synchronization standard time; setting the local time of the end station to the synchronization standard time.
  4. 如权利要求2所述的时钟同步的方法,其中,当所述主站时间信息包括所述主站向所述数字广播卫星发送所述无线信号的发送时间和传输延迟时间时,The method of clock synchronization according to claim 2, wherein when said primary station time information includes a transmission time and a transmission delay time at which said primary station transmits said wireless signal to said digital broadcast satellite,
    所述端站从所述无线信号中提取到所述主站时间信息包括:所述端站从所述无线信号中提取到所述主站时间信息所述主站向所述数字广播卫星 发送所述无线信号的发送时间和传输延迟时间;所述端站根据所述主站时间信息与所述主站进行时钟同步包括:将所述发送时间和所述传输延迟相加之和作为同步标准时间;将所述端站的本地时间设置为所述同步标准时间。Extracting, by the end station, the primary station time information from the wireless signal comprises: the end station extracting, from the wireless signal, the primary station time information, the primary station to the digital broadcast satellite Transmitting a transmission time and a transmission delay time of the wireless signal; and the end station performing clock synchronization with the primary station according to the primary station time information comprises: synchronizing the sum of the transmission time and the transmission delay as a synchronization Standard time; the local time of the end station is set to the synchronization standard time.
  5. 如权利要求3或4所述的时钟同步的方法,其中,在将所述端站的本地时间设置为所述同步标准时间之前还包括:The method of clock synchronization according to claim 3 or 4, further comprising: before setting the local time of the end station to the synchronization standard time:
    获取接收所述无线信号的接收时间;判断所述接收时间与所述同步标准时间是否相同;如果不同,则将所述端站的本地时间设置为所述同步标准时间。Obtaining a receiving time for receiving the wireless signal; determining whether the receiving time is the same as the synchronization standard time; if different, setting a local time of the end station to the synchronization standard time.
  6. 如权利要求5所述的时钟同步的方法,其中,所述无线信号的数据格式为数据帧;所述数据帧包括串行描述数据总线的数据头;The method of clock synchronization according to claim 5, wherein said data format of said wireless signal is a data frame; said data frame comprises a data header of a serial description data bus;
    所述获取接收所述无线信号的接收时间包括:将所述端站识别输出所述串行描述数据总线的数据头的时间作为所述接收时间。The obtaining the receiving time of receiving the wireless signal comprises: determining, by the end station, a time when the data header of the serial description data bus is output as the receiving time.
  7. 如权利要求1所述的时钟同步的方法,其中,所述无线信号的数据格式为数据帧;所述数据帧包括数据总线上的有效数据的数据主体;The method of clock synchronization according to claim 1, wherein said data format of said wireless signal is a data frame; said data frame comprises a data body of valid data on a data bus;
    所述端站从所述无线信号中提取到所述主站时间信息包括:从所述数据总线上的有效数据的数据主体解析得到所述主站时间信息。The extracting, by the end station, the master station time information from the wireless signal comprises: parsing the master station time information from a data body of valid data on the data bus.
  8. 一种时钟同步的方法,所述方法包括:A method of clock synchronization, the method comprising:
    主站通过数字广播卫星转发的无线信号给端站,所述无线信号包括所述主站时间信息;The wireless signal transmitted by the primary station through the digital broadcast satellite to the end station, the wireless signal including the primary station time information;
    所述端站接收所述无线信号;Receiving, by the end station, the wireless signal;
    所述端站从所述无线信号中提取到所述主站时间信息;The end station extracts the master station time information from the wireless signal;
    所述端站根据所述主站时间信息与所述主站进行时钟同步。The end station performs clock synchronization with the primary station according to the primary station time information.
  9. 一种端站,所述端站包括发送模块、提取模块和同步模块,其中,An end station, the end station includes a sending module, an extracting module, and a synchronization module, wherein
    所述发送模块,配置为接收主站通过数字广播卫星转发的无线信号, 所述无线信号包括所述主站时间信息;The sending module is configured to receive a wireless signal that the primary station forwards through the digital broadcast satellite, The wireless signal includes the primary station time information;
    所述提取模块,配置为从所述无线信号中提取到所述主站时间信息;The extracting module is configured to extract the master station time information from the wireless signal;
    所述同步模块,配置为根据所述主站时间信息与所述主站进行时钟同步。The synchronization module is configured to perform clock synchronization with the primary station according to the primary station time information.
  10. 如权利要求9所述端站,其中,所述主站时间信息包括:The end station of claim 9 wherein said primary station time information comprises:
    所述发送模块向所述数字广播卫星发送所述无线信号的发送时间,Sending, by the sending module, the sending time of the wireless signal to the digital broadcast satellite,
    or
    所述主站时间信息包括:所述发送模块向所述数字广播卫星发送所述无线信号的发送时间和传输延迟时间。The primary station time information includes: the sending module sends a transmission time and a transmission delay time of the wireless signal to the digital broadcast satellite.
  11. 如权利要求10所述端站,其中,当所述主站时间信息包括所述主站向所述数字广播卫星发送所述无线信号的发送时间时,The end station according to claim 10, wherein when said primary station time information includes a transmission time at which said primary station transmits said wireless signal to said digital broadcast satellite,
    所述提取模块还配置为从所述无线信号中提取到所述主站时间信息所述主站向所述数字广播卫星发送所述无线信号的发送时间;所述同步模块还配置为获取传输延迟时间;将所述发送时间和所述传输延迟相加之和作为同步标准时间;将所述端站的本地时间设置为所述同步标准时间。The extraction module is further configured to extract, from the wireless signal, the primary station time information, the primary station sends a transmission time of the wireless signal to the digital broadcast satellite; the synchronization module is further configured to acquire a transmission delay Time; summing the transmission time and the transmission delay as a synchronization standard time; setting the local time of the end station to the synchronization standard time.
  12. 如权利要求10所述端站,其中,当所述主站时间信息包括所述主站向所述数字广播卫星发送所述无线信号的发送时间和传输延迟时间时,The end station according to claim 10, wherein when said primary station time information includes a transmission time and a transmission delay time at which said primary station transmits said wireless signal to said digital broadcast satellite,
    所述提取模块还配置为从所述无线信号中提取到所述主站时间信息所述主站向所述数字广播卫星发送所述无线信号的发送时间和传输延迟时间;所述同步模块还配置为将所述发送时间和所述传输延迟相加之和作为同步标准时间;将所述端站的本地时间设置为所述同步标准时间。The extraction module is further configured to extract, from the wireless signal, the primary station time information, the primary station sends a transmission time and a transmission delay time of the wireless signal to the digital broadcast satellite; the synchronization module is further configured The sum of the transmission time and the transmission delay is used as a synchronization standard time; the local time of the end station is set as the synchronization standard time.
  13. 如权利要求3或4所述终端,其中,所述同步模块还配置为在将所述端站的本地时间设置为所述同步标准时间之前,获取接收所述无线信号的接收时间;判断所述接收时间与所述同步标准时间是否相同;如果不同,则将所述端站的本地时间设置为所述同步标准时间。 The terminal according to claim 3 or 4, wherein the synchronization module is further configured to acquire a reception time for receiving the wireless signal before setting a local time of the end station to the synchronization standard time; Whether the reception time is the same as the synchronization standard time; if different, the local time of the end station is set to the synchronization standard time.
  14. 一种时钟同步的系统,所述系统包括主站和端站:A clock synchronization system, the system comprising a primary station and an end station:
    所述主站,配置为通过数字广播卫星转发的无线信号给所述端站,所述无线信号包括所述主站时间信息;The primary station is configured to send the wireless signal forwarded by the digital broadcast satellite to the end station, and the wireless signal includes the primary station time information;
    所述端站,配置为接收所述无线信号,从所述无线信号中提取到所述主站时间信息;以及根据所述主站时间信息与所述主站进行时钟同步。The end station is configured to receive the wireless signal, extract the primary station time information from the wireless signal, and perform clock synchronization with the primary station according to the primary station time information.
  15. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至7任一项所述的方法、或权利要求8所述的方法。 A computer storage medium having stored therein computer executable instructions for performing the method of any one of claims 1 to 7, or the method of claim 8.
PCT/CN2016/074128 2015-08-03 2016-02-19 Clock synchronization method and system, end station and computer storage medium WO2016165476A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510483653.4 2015-08-03
CN201510483653.4A CN106413075B (en) 2015-08-03 2015-08-03 Method and system for clock synchronization and end station

Publications (1)

Publication Number Publication Date
WO2016165476A1 true WO2016165476A1 (en) 2016-10-20

Family

ID=57126966

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/074128 WO2016165476A1 (en) 2015-08-03 2016-02-19 Clock synchronization method and system, end station and computer storage medium

Country Status (2)

Country Link
CN (1) CN106413075B (en)
WO (1) WO2016165476A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830411A (en) * 2019-09-27 2020-02-21 中国电子科技集团公司第二十九研究所 Satellite multi-carrier demodulator facing MF-TDMA
CN114745680A (en) * 2022-06-10 2022-07-12 广州世炬网络科技有限公司 Wireless base station time synchronization method, device, equipment and storage medium

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106452642A (en) * 2015-08-07 2017-02-22 中兴通讯股份有限公司 Satellite communication network clock synchronization method and device and base transceiver station
CN107040327B (en) 2017-06-14 2019-04-02 深圳市华信天线技术有限公司 Slave TDMA slot synchronous calibration method and device
WO2019010626A1 (en) * 2017-07-11 2019-01-17 深圳市柔宇科技有限公司 Capturing method and terminal
CN109075882B (en) * 2017-07-31 2021-06-22 深圳市大疆创新科技有限公司 Synchronization method, device and system
CN111512588A (en) * 2017-10-24 2020-08-07 天波网络有限责任公司 Clock synchronization when switching between broadcast and data transfer modes
CN109639339B (en) * 2018-11-30 2021-06-22 四川安迪科技实业有限公司 Bandwidth allocation method suitable for managing large satellite FDMA communication mode
CN109995963A (en) * 2019-05-17 2019-07-09 张剑飞 A kind of wireless synchronization time-code method
CN110401504B (en) * 2019-05-21 2021-05-28 广州天链通信科技有限公司 Satellite communication system time synchronization method based on TDMA
CN110572231B (en) * 2019-09-09 2023-06-06 北京百度网讯科技有限公司 Time synchronization method, device and equipment
CN113708876B (en) * 2021-08-24 2023-04-11 四川安迪科技实业有限公司 Forward link time synchronization method of low-orbit satellite TDMA communication system
CN113840370B (en) * 2021-08-31 2023-10-13 全球能源互联网欧洲研究院 Clock synchronization method and device for wireless communication interaction and electronic equipment
CN115347964A (en) * 2022-05-23 2022-11-15 苏州市福川科技有限公司 Broadcasting station clock management system and method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0698195A (en) * 1992-04-23 1994-04-08 Nec Corp Digital satellite communication system
CN101860392A (en) * 2009-04-07 2010-10-13 中国移动通信集团公司 Clock synchronization method and system of satellite communication-based base station
JP2010278546A (en) * 2009-05-26 2010-12-09 Hitachi Ltd Time synchronization network and communication equipment
CN102213764A (en) * 2010-04-07 2011-10-12 中国科学院国家天文台 Bidirectional satellite navigation and communication positioning method and system
CN102545993A (en) * 2011-12-20 2012-07-04 中国科学院国家授时中心 Two-way satellite time transfer method based on carrier phase
CN103454911A (en) * 2013-09-16 2013-12-18 中国航天科工集团第二研究院二〇三所 Rough synchronization method for satellite bidirectional time comparison
CN103516457A (en) * 2013-10-28 2014-01-15 中国航天科工集团第二研究院二〇三所 High-precision remote time synchronization method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8032073B2 (en) * 2006-05-03 2011-10-04 Stm Networks, Inc. Satellite communication with multiple active gateways
US8780823B1 (en) * 2009-10-08 2014-07-15 Viasat, Inc. Event driven grant allocation

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0698195A (en) * 1992-04-23 1994-04-08 Nec Corp Digital satellite communication system
CN101860392A (en) * 2009-04-07 2010-10-13 中国移动通信集团公司 Clock synchronization method and system of satellite communication-based base station
JP2010278546A (en) * 2009-05-26 2010-12-09 Hitachi Ltd Time synchronization network and communication equipment
CN102213764A (en) * 2010-04-07 2011-10-12 中国科学院国家天文台 Bidirectional satellite navigation and communication positioning method and system
CN102545993A (en) * 2011-12-20 2012-07-04 中国科学院国家授时中心 Two-way satellite time transfer method based on carrier phase
CN103454911A (en) * 2013-09-16 2013-12-18 中国航天科工集团第二研究院二〇三所 Rough synchronization method for satellite bidirectional time comparison
CN103516457A (en) * 2013-10-28 2014-01-15 中国航天科工集团第二研究院二〇三所 High-precision remote time synchronization method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830411A (en) * 2019-09-27 2020-02-21 中国电子科技集团公司第二十九研究所 Satellite multi-carrier demodulator facing MF-TDMA
CN114745680A (en) * 2022-06-10 2022-07-12 广州世炬网络科技有限公司 Wireless base station time synchronization method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN106413075A (en) 2017-02-15
CN106413075B (en) 2020-04-28

Similar Documents

Publication Publication Date Title
WO2016165476A1 (en) Clock synchronization method and system, end station and computer storage medium
EP3236661B1 (en) Transmission device, transmission method, receiving device, and receiving method
US11483601B2 (en) Technique for transmitting and receiving system time information in broadcasting system
US20050265333A1 (en) Method for enabling efficient multicast transmission in a packet-based network
WO2017024782A1 (en) Clock synchronization method, device, base station and storage medium in a satellite communication network
WO2011150789A1 (en) Base station and method for synchronizing clock thereof
US10284277B2 (en) Remote tuner clock distribution using serializer/deserializer technology
WO2016078310A1 (en) Clock synchronization method, device, cascading base station system and storage medium
EP3389216A1 (en) Receiver and data processing method
US9961008B2 (en) Method and system of handling over routing of communication protocol data between two satellite communication transponders
CN100536385C (en) Method for clock synchronization of mobile multimedia broadcast receiving terminal
US20230247242A1 (en) Content transmission method and content playback method
US11290200B2 (en) Transmission device, transmission method, reception device, and reception method
US8472578B2 (en) Radio apparatus, radio apparatus controller, and synchronization establishing method
WO2018230348A1 (en) Demodulation device, processing device, reception device and data processing method
JP2021118467A (en) Information processing device, information processing method, and program
US20180070312A1 (en) Wireless communication method and system
WO2008069512A1 (en) Apparatus and method for acquiring frame synchronization and frequency synchronization simultaneously in communication system
CN204887306U (en) Television decoder
KR20120018006A (en) Broadband digital i/q signal transmission and control method
WO2016141506A1 (en) Wireless signal processing system, method and apparatus, wireless conversion module, router, and user equipment
JP2009005307A (en) Digital receiver and method of receiving digital signal

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: 16779451

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: 16779451

Country of ref document: EP

Kind code of ref document: A1