JP7737915B2 - Communication system, communication method and program - Google Patents
Communication system, communication method and programInfo
- Publication number
- JP7737915B2 JP7737915B2 JP2022011831A JP2022011831A JP7737915B2 JP 7737915 B2 JP7737915 B2 JP 7737915B2 JP 2022011831 A JP2022011831 A JP 2022011831A JP 2022011831 A JP2022011831 A JP 2022011831A JP 7737915 B2 JP7737915 B2 JP 7737915B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- time
- transmitter
- reference signal
- time information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Synchronisation In Digital Transmission Systems (AREA)
Description
本開示は、通信システム、通信方法及びプログラムに関する。 This disclosure relates to a communication system, a communication method, and a program.
複数の機器同士でデータを送受信する通信システムが知られている。このような通信システムでデータを送受信する際には、データの送信時に遅延が生じる場合がある。例えば特許文献1には、親局と子局とを有線で接続して、有線通信により子局から親局に時刻情報(疑似雑音符号)を送信して、親局が、時刻に関する情報に基づいて遅延時間を求める旨が記載されている。 Communication systems that transmit and receive data between multiple devices are known. When transmitting and receiving data in such a communication system, delays can occur during data transmission. For example, Patent Document 1 describes a system in which a master station and a slave station are connected by wire, time information (pseudo-noise code) is transmitted from the slave station to the master station via wired communication, and the master station calculates the delay time based on the time information.
しかし、特許文献1のように子局から親局に時刻情報を送信する際にも遅延が生じるため、遅延時間を高精度に算出できないおそれがある。また、親局と子局とを有線接続しているため、例えば3台以上の機器間で情報通信して遅延時間を算出することができない可能性もある。 However, as in Patent Document 1, delays occur when transmitting time information from the slave station to the master station, so there is a risk that the delay time cannot be calculated with high accuracy. Furthermore, because the master station and slave stations are connected by wire, it may not be possible to calculate the delay time by communicating information between, for example, three or more devices.
本開示は、上述した課題を解決するものであり、遅延時間を高精度に算出可能な通信システム、通信方法及びプログラムを提供することを目的とする。 The present disclosure aims to solve the above-mentioned problems by providing a communication system, communication method, and program that can calculate delay time with high accuracy.
本開示に係る通信システムは、送信機と、前記送信機からパケットを受信する受信機とを有する通信システムであって、前記送信機は、所定周期のクロック信号を出力する発信部と、時刻の基準となる基準信号を基準信号送信機から受信する基準信号受信部と、前記クロック信号及び前記基準信号に基づき、前記送信機における時刻を示す第1時刻情報を生成する第1時刻情報生成部と、前記第1時刻情報を含むパケットを前記受信機に送信する通信制御部と、を含み、前記受信機は、所定周期のクロック信号を出力する発信部と、前記基準信号送信機から前記基準信号を受信する基準信号受信部と、前記クロック信号及び前記基準信号に基づき、前記受信機における時刻を示す第2時刻情報を生成する第2時刻情報生成部と、前記送信機から前記パケットを受信する通信制御部と、前記パケットに含まれる前記第1時刻情報と、前記第2時刻情報とに基づき、遅延時間を算出する遅延時間算出部と、を含む。 A communication system according to the present disclosure includes a transmitter and a receiver that receives packets from the transmitter. The transmitter includes a transmission unit that outputs a clock signal with a predetermined cycle, a reference signal reception unit that receives a reference signal that serves as a time reference from a reference signal transmitter, a first time information generation unit that generates first time information indicating the time at the transmitter based on the clock signal and the reference signal, and a communication control unit that transmits packets including the first time information to the receiver. The receiver includes a transmission unit that outputs a clock signal with a predetermined cycle, a reference signal reception unit that receives the reference signal from the reference signal transmitter, a second time information generation unit that generates second time information indicating the time at the receiver based on the clock signal and the reference signal, a communication control unit that receives the packets from the transmitter, and a delay time calculation unit that calculates a delay time based on the first time information and the second time information included in the packets.
本開示に係る通信方法は、送信機と、前記送信機からパケットを受信する受信機とを用いた通信方法であって、前記送信機に、所定周期のクロック信号を出力させるステップと、前記送信機に、基準信号送信機から時刻の基準となる基準信号を受信させるステップと、前記クロック信号及び前記基準信号に基づき、前記送信機における時刻を示す第1時刻情報を生成するステップと、前記第1時刻情報を含むパケットを前記受信機に送信するステップと、前記受信機に、所定周期のクロック信号を出力させるステップと、前記受信機に、前記基準信号送信機からの前記基準信号を受信させるステップと、前記クロック信号及び前記基準信号に基づき、前記受信機における時刻を示す第2時刻情報を生成するステップと、前記受信機に、前記送信機から前記パケットを受信させるステップと、前記パケットに含まれる前記第1時刻情報と、前記第2時刻情報とに基づき、遅延時間を算出するステップと、を含む。 A communication method according to the present disclosure uses a transmitter and a receiver that receives packets from the transmitter, and includes the steps of: causing the transmitter to output a clock signal with a predetermined cycle; causing the transmitter to receive a reference signal that serves as a time reference from a reference signal transmitter; generating first time information indicating the time at the transmitter based on the clock signal and the reference signal; transmitting a packet including the first time information to the receiver; causing the receiver to output a clock signal with a predetermined cycle; causing the receiver to receive the reference signal from the reference signal transmitter; generating second time information indicating the time at the receiver based on the clock signal and the reference signal; causing the receiver to receive the packet from the transmitter; and calculating a delay time based on the first time information and the second time information included in the packet.
本開示に係るプログラムは、送信機と、前記送信機からパケットを受信する受信機とを用いた通信方法をコンピュータに実行させるプログラムであって、前記送信機に、所定周期のクロック信号を出力させるステップと、前記送信機に、基準信号送信機から時刻の基準となる基準信号を受信させるステップと、前記クロック信号及び前記基準信号に基づき、前記送信機における時刻を示す第1時刻情報を生成するステップと、前記第1時刻情報を含むパケットを前記受信機に送信するステップと、前記受信機に、所定周期のクロック信号を発信させるステップと、前記受信機に、前記基準信号送信機からの前記基準信号を受信させるステップと、前記クロック信号及び前記基準信号に基づき、前記受信機における時刻を示す第2時刻情報を生成するステップと、前記受信機に、前記送信機から前記パケットを受信させるステップと、前記パケットに含まれる前記第1時刻情報と、前記第2時刻情報とに基づき、遅延時間を算出するステップと、を、コンピュータに実行させる。 The program disclosed herein is a program that causes a computer to execute a communication method using a transmitter and a receiver that receives packets from the transmitter. The program causes the computer to execute the following steps: causing the transmitter to output a clock signal with a predetermined cycle; causing the transmitter to receive a reference signal that serves as a time reference from a reference signal transmitter; generating first time information indicating the time at the transmitter based on the clock signal and the reference signal; transmitting a packet including the first time information to the receiver; causing the receiver to transmit a clock signal with a predetermined cycle; causing the receiver to receive the reference signal from the reference signal transmitter; generating second time information indicating the time at the receiver based on the clock signal and the reference signal; causing the receiver to receive the packet from the transmitter; and calculating a delay time based on the first time information and the second time information included in the packet.
本開示によれば、遅延時間を高精度に算出することができる。 This disclosure makes it possible to calculate delay time with high accuracy.
以下に添付図面を参照して、本開示の好適な実施形態を詳細に説明する。なお、この実施形態により本開示が限定されるものではなく、また、実施形態が複数ある場合には、各実施形態を組み合わせて構成するものも含むものである。 Preferred embodiments of the present disclosure are described in detail below with reference to the accompanying drawings. Note that the present disclosure is not limited to these embodiments, and when there are multiple embodiments, they also include configurations that combine the respective embodiments.
(第1実施形態)
(通信システム)
図1は、第1実施形態に係る通信システムの模式的なブロック図である。図1に示すように、第1実施形態に係る通信システム100は、送信機10Aと受信機10Bとを有する。送信機10Aは、受信機10Bに対して、パケット通信方式でデータを送信し、受信機10Bは、送信機10Aからデータを受信する。以下、送信機10Aから受信機10Bに送信されるデータを、パケットPと記載する。本実施形態では、送信機10Aと受信機10Bとは、無線通信によりパケットPの送受信を行うが、通信方式は任意であってよく、例えば有線通信するものであってもよい。図1の例では、通信システム100は、送信機10Aと受信機10Bとを1つずつ有しているが、送信機10Aと受信機10Bとの数は任意であってよい。例えば、通信システム100は、複数の受信機10Bを有しており、送信機10Aから複数の受信機10BのそれぞれにパケットPを送信するものであってよい。また例えば、通信システム100は、複数の送信機10Aを有しており、複数の送信機10Aから受信機10BにパケットPを送信するものであってよい。
(First embodiment)
(Communication System)
FIG. 1 is a schematic block diagram of a communication system according to a first embodiment. As shown in FIG. 1, the communication system 100 according to the first embodiment includes a transmitter 10A and a receiver 10B. The transmitter 10A transmits data to the receiver 10B using a packet communication method, and the receiver 10B receives the data from the transmitter 10A. Hereinafter, data transmitted from the transmitter 10A to the receiver 10B will be referred to as a packet P. In this embodiment, the transmitter 10A and the receiver 10B transmit and receive the packet P via wireless communication, but the communication method may be any, such as wired communication. In the example of FIG. 1, the communication system 100 includes one transmitter 10A and one receiver 10B, but the number of transmitters 10A and receivers 10B may be any. For example, the communication system 100 may include multiple receivers 10B, and the transmitter 10A may transmit a packet P to each of the multiple receivers 10B. Furthermore, for example, the communication system 100 may have a plurality of transmitters 10A, and may transmit packets P from the plurality of transmitters 10A to the receiver 10B.
送信機10A及び受信機10Bは、共通する機器である基準信号送信機Rから、時刻の基準となる基準信号SRを受信する。基準信号SRは、時刻の基準となる任意の信号であってよいが、本実施形態では、基準信号送信機Rによって生成される、所定周期のパルス状の信号である。送信機10A及び受信機10Bは、無線通信により、基準信号送信機Rから基準信号SRを受信する。ただし通信方式は任意であってよく、例えば送信機10A及び受信機10Bは、基準信号送信機Rと有線接続されており、有線通信により基準信号SRを受信してもよい。 Transmitter 10A and receiver 10B receive a reference signal SR, which serves as a time reference, from a reference signal transmitter R, which is a common device. The reference signal SR may be any signal that serves as a time reference, but in this embodiment, it is a pulsed signal with a predetermined period that is generated by the reference signal transmitter R. Transmitter 10A and receiver 10B receive the reference signal SR from the reference signal transmitter R via wireless communication. However, any communication method may be used; for example, transmitter 10A and receiver 10B may be connected to the reference signal transmitter R via a wired connection and receive the reference signal SR via wired communication.
基準信号送信機Rは、基準信号SRを生成して送信する任意の機器であってよいが、本実施形態の例では、人工衛星であってよい。すなわち、本実施形態では、送信機10A及び受信機10Bは、GSNN(Grobal Navigation Satellite System)用の人工衛星から、基準信号SRを受信する。 The reference signal transmitter R may be any device that generates and transmits a reference signal SR, but in this embodiment, it may be an artificial satellite. That is, in this embodiment, the transmitter 10A and the receiver 10B receive the reference signal SR from an artificial satellite for the Global Navigation Satellite System (GSNN).
(送信機)
図2は、送信機の模式的なブロック図である。図3は、各信号の時間波形の一例を示す図である。図2に示すように、送信機10Aは、発信部20Aと、基準信号受信部22Aと、分周部24Aと、通信部26Aと、記憶部28Aと、制御部30Aとを有する。
(Transmitter)
Fig. 2 is a schematic block diagram of a transmitter. Fig. 3 is a diagram showing an example of the time waveform of each signal. As shown in Fig. 2, transmitter 10A has a transmission unit 20A, a reference signal reception unit 22A, a frequency division unit 24A, a communication unit 26A, a storage unit 28A, and a control unit 30A.
(発信部)
発信部20Aは、所定周期のクロック信号SCAを出力する。図3に示すように、クロック信号SCAは、所定周期のパルス状の信号である。本実施形態においては、発信部20Aは、一定周期のクロック信号SCAを出力する発振素子であり、例えば水晶振動子やセラミック発振子である。ただし、発信部20Aは、クロック信号SCAを出力する任意の素子であってよい。クロック信号SCAの周波数は、例えば12.8MHzであるが、クロック信号SCAの周波数や周期は任意であってよい。
(Dissemination Department)
The transmitting unit 20A outputs a clock signal SCA with a predetermined period. As shown in FIG. 3, the clock signal SCA is a pulsed signal with a predetermined period. In this embodiment, the transmitting unit 20A is an oscillator element that outputs the clock signal SCA with a constant period, such as a quartz crystal or ceramic oscillator. However, the transmitting unit 20A may be any element that outputs the clock signal SCA. The frequency of the clock signal SCA is, for example, 12.8 MHz, but the frequency and period of the clock signal SCA may be any.
(基準信号受信部)
基準信号受信部22Aは、基準信号送信機Rから、基準信号SRを受信する。基準信号受信部22Aは、基準信号送信機Rから基準信号SRを受信可能なモジュールであり、例えば本実施形態では、GSNN受信機である。基準信号SRは、上述のように、所定周期のパルス状の信号である。基準信号SRの周期は任意であってよいが、本実施形態では、クロック信号SCAの周期より長い。
(Reference signal receiving unit)
The reference signal receiving unit 22A receives a reference signal SR from a reference signal transmitter R. The reference signal receiving unit 22A is a module capable of receiving the reference signal SR from the reference signal transmitter R, and in this embodiment is, for example, a GSNN receiver. As described above, the reference signal SR is a pulsed signal with a predetermined period. The period of the reference signal SR may be any period, but in this embodiment it is longer than the period of the clock signal SCA.
(分周部)
分周部24Aには、基準信号受信部22Aが受信した基準信号SRと、発信部20Aから出力されたクロック信号SCAとが入力される。分周部24Aは、基準信号受信部22Aが受信した基準信号SRに基づいて、発信部20Aから出力されたクロック信号SCAを分周することで、所定周期の第1時刻信号STAを生成する。すなわち、分周部24Aは、基準信号SRに基づいてクロック信号SCAの周期(周波数)を変換して、第1時刻信号STAとする。分周部24Aは、クロック信号SCAを分周する分周器である。第1時刻信号STAは、所定周期のパルス状の信号である。第1時刻信号STAの周期は任意であってよいが、本実施形態では、クロック信号SCAの周期より長く、基準信号SRの周期より短い。
(Frequency division part)
The frequency divider 24A receives the reference signal SR received by the reference signal receiver 22A and the clock signal SCA output from the transmitter 20A. The frequency divider 24A generates a first time signal STA with a predetermined period by dividing the clock signal SCA output from the transmitter 20A based on the reference signal SR received by the reference signal receiver 22A. That is, the frequency divider 24A converts the period (frequency) of the clock signal SCA based on the reference signal SR to generate the first time signal STA. The frequency divider 24A is a frequency divider that divides the clock signal SCA. The first time signal STA is a pulsed signal with a predetermined period. The period of the first time signal STA may be any period, but in this embodiment, it is longer than the period of the clock signal SCA and shorter than the period of the reference signal SR.
図3に示すように、本実施形態では、分周部24Aは、基準信号SRに基づいて、クロック信号SCAを積算したカウントアップ信号SUを生成する。分周部24Aは、基準信号SRのパルスを受信したタイミングに対応するタイミング(図3の例では基準信号SRのパルスを受信したタイミングと同じタイミング)で、クロック信号SCAの積算を開始して、クロック信号SCAを積算したカウントアップ信号SUを生成する。すなわち、分周部24Aは、基準信号SRのパルスを受信したら、クロック信号SCAのパルスを受信する毎に、カウントアップ信号SUの信号強度を上昇させる。そして、分周部24Aは、カウントアップ信号SUの信号強度が閾値以上となったら、すなわちクロック信号SCAのパルスを所定数積算したら、カウントアップ信号SUの信号強度をリセットして、再度クロック信号SCAの積算を再開する。分周部24Aは、クロック信号SCAに基づいて、第1時刻信号STAを生成する。より詳しくは、分周部24Aは、クロック信号SCAの積算が開始されたタイミングから、カウントアップ信号SUがリセットされるまでのタイミングまでの期間に対応する周期の第1時刻信号STAを生成する。本実施形態の例では、分周部24Aは、クロック信号SCAの積算が開始されたタイミングからカウントアップ信号SUがリセットされるまでのタイミングまでを1/2周期とするように、第1時刻信号STAを生成する。 As shown in FIG. 3, in this embodiment, the frequency divider unit 24A generates a count-up signal SU by integrating the clock signal SCA based on the reference signal SR. The frequency divider unit 24A starts integrating the clock signal SCA at a timing corresponding to the timing at which it receives a pulse of the reference signal SR (the same timing as the timing at which it receives a pulse of the reference signal SR in the example of FIG. 3), and generates a count-up signal SU by integrating the clock signal SCA. That is, after receiving a pulse of the reference signal SR, the frequency divider unit 24A increases the signal strength of the count-up signal SU each time it receives a pulse of the clock signal SCA. Then, when the signal strength of the count-up signal SU becomes equal to or greater than a threshold, i.e., after it has integrated a predetermined number of pulses of the clock signal SCA, the frequency divider unit 24A resets the signal strength of the count-up signal SU and resumes integrating the clock signal SCA. The frequency divider unit 24A generates a first time signal STA based on the clock signal SCA. More specifically, the frequency divider 24A generates the first time signal STA with a cycle corresponding to the period from when the integration of the clock signal SCA begins to when the count-up signal SU is reset. In this embodiment, the frequency divider 24A generates the first time signal STA so that the period from when the integration of the clock signal SCA begins to when the count-up signal SU is reset is 1/2 of the cycle.
なお、分周部24Aは、基準信号SRの次のパルスが受信されたら、カウントアップ信号SUの信号強度をリセットしてから、クロック信号SCAの積算を再開する。すなわち、分周部24Aは、基準信号SRの次のパルスを受信したら、現在のカウントアップ信号SUの信号強度が閾値未満であっても、カウントアップ信号SUの信号強度を強制的にリセットして、クロック信号SCAの積算を再開する。これにより、基準信号SRを受信する毎に、第1時刻信号STAの周期を調整することができる。 When the next pulse of the reference signal SR is received, the frequency divider unit 24A resets the signal strength of the count-up signal SU and then resumes the accumulation of the clock signal SCA. In other words, when the next pulse of the reference signal SR is received, the frequency divider unit 24A forcibly resets the signal strength of the count-up signal SU and resumes the accumulation of the clock signal SCA, even if the current signal strength of the count-up signal SU is below the threshold. This allows the period of the first time signal STA to be adjusted each time the reference signal SR is received.
(通信部)
通信部26Aは、受信機10Bとデータの送受信を行うための通信モジュールであり、例えばアンテナやWiFi(登録商標)モジュールであってよい。なお、通信部26Aと基準信号受信部22Aとは、本実施形態の例では別々のハードウェアであるが、通信部26Aと基準信号受信部22Aとが1つのハードウェアであってもよい。
(Communications Department)
The communication unit 26A is a communication module for transmitting and receiving data to and from the receiver 10B, and may be, for example, an antenna or a Wi-Fi (registered trademark) module. Note that, although the communication unit 26A and the reference signal receiving unit 22A are separate pieces of hardware in the example of this embodiment, the communication unit 26A and the reference signal receiving unit 22A may also be a single piece of hardware.
(記憶部)
記憶部28Aは、制御部30Aの演算内容やプログラムの情報などを記憶するメモリであり、例えば、RAM(Random Access Memory)と、ROM(Read Only Memory)と、HDD(Hard Disk Drive)などの外部記憶装置とのうち、少なくとも1つを含む。記憶部28Aが記憶する制御部30A用のプログラムは、送信機10Aが読み取り可能な記録媒体に記憶されていてもよい。
(Storage part)
The storage unit 28A is a memory that stores the calculation contents and program information of the control unit 30A, and includes, for example, at least one of a RAM (Random Access Memory), a ROM (Read Only Memory), and an external storage device such as an HDD (Hard Disk Drive). The program for the control unit 30A stored in the storage unit 28A may be stored in a recording medium that can be read by the transmitter 10A.
(制御部)
制御部30Aは、演算装置であり、例えばCPU(Central Processing Unit)などの演算回路を含む。制御部30Aは、第1時刻情報生成部32Aと通信制御部34Aとを含む。制御部30Aは、記憶部28Aからプログラム(ソフトウェア)を読み出して実行することで、第1時刻情報生成部32Aと通信制御部34Aとを実現して、それらの処理を実行する。なお、制御部30Aは、1つのCPUによってこれらの処理を実行してもよいし、複数のCPUを備えて、それらの複数のCPUで、処理を実行してもよい。また、第1時刻情報生成部32Aと通信制御部34Aとの処理の少なくとも一部を、ハードウェア回路で実現してもよい。また、制御部30Aは、発信部20A、基準信号受信部22A、及び分周部24Aなどの送信機10Aに含まれる機器を制御する機器制御部を含んでいてもよい。
(Control unit)
The control unit 30A is a computing device and includes an arithmetic circuit such as a CPU (Central Processing Unit). The control unit 30A includes a first time information generating unit 32A and a communication control unit 34A. The control unit 30A implements the first time information generating unit 32A and the communication control unit 34A and executes their processes by reading and executing a program (software) from the storage unit 28A. The control unit 30A may execute these processes using a single CPU, or may include multiple CPUs and execute the processes using the multiple CPUs. At least a portion of the processes performed by the first time information generating unit 32A and the communication control unit 34A may be implemented using hardware circuits. The control unit 30A may also include a device control unit that controls devices included in the transmitter 10A, such as the transmitting unit 20A, the reference signal receiving unit 22A, and the frequency dividing unit 24A.
(第1時刻情報生成部)
第1時刻情報生成部32Aは、クロック信号SCA及び基準信号SRに基づき、送信機10Aにおける時刻を示す第1時刻情報を生成する。すなわち、第1時刻情報は、送信機10Aの内部時刻を示す。具体的には、第1時刻情報生成部32Aは、クロック信号SCA及び基準信号SRに基づいて分周部24Aにより生成された第1時間信号STAに基づき、第1時刻情報を生成する。第1時間信号STAは所定周期となるように生成された信号であるため、第1時刻情報生成部32Aは、第1時間信号STAに基づいて、すなわち例えば第1時間信号STAのパルスをカウントすることで、第1時刻情報を生成できる。第1時刻情報生成部32Aは、第1時間信号STAのパルスを逐次カウントすることで、第1時刻情報を逐次更新する。
(First time information generation unit)
The first time information generation unit 32A generates first time information indicating the time at the transmitter 10A based on the clock signal SCA and the reference signal SR. That is, the first time information indicates the internal time of the transmitter 10A. Specifically, the first time information generation unit 32A generates the first time information based on the first time signal STA, which is generated by the frequency divider unit 24A based on the clock signal SCA and the reference signal SR. Because the first time signal STA is a signal generated to have a predetermined period, the first time information generation unit 32A can generate the first time information based on the first time signal STA, that is, by counting pulses of the first time signal STA, for example. The first time information generation unit 32A sequentially counts the pulses of the first time signal STA to sequentially update the first time information.
(通信制御部)
通信制御部34Aは、通信部26Aを介して、第1時刻情報生成部32Aによって生成された第1時刻情報を含むパケットPを、受信機10Bに送信する。すなわち、通信制御部34Aは、パケットPに第1時刻情報を含ませて、第1時刻情報を含むパケットPを、受信機10Bに送信する。通信制御部34Aは、パケットPを送信する際の時刻を示す第1時刻情報を、すなわち最新の時刻を示す第1時刻情報を、パケットPに含ませて、受信機10Bに送信する。なお、パケットPは、第1時刻情報を含む任意の情報であってよく、例えば後述の第2実施形態に示すように、受信機10Bに所定の処理(アプリケーション)を実行させるためのアプリケーション情報を含むものであってよい。この場合、受信機10Bは、パケットPに含まれるアプリケーション情報を用いて、所定の処理を実行する。
(Communication control unit)
The communication control unit 34A transmits a packet P including the first time information generated by the first time information generation unit 32A to the receiver 10B via the communication unit 26A. That is, the communication control unit 34A includes the first time information in the packet P and transmits the packet P including the first time information to the receiver 10B. The communication control unit 34A includes the first time information indicating the time when the packet P is transmitted, i.e., the first time information indicating the most recent time, in the packet P and transmits the packet P to the receiver 10B. Note that the packet P may be any information including the first time information, and may, for example, include application information for causing the receiver 10B to execute a predetermined process (application), as shown in a second embodiment described below. In this case, the receiver 10B executes the predetermined process using the application information included in the packet P.
(受信機)
図4は、受信機の模式的なブロック図である。図4に示すように、受信機10Bは、発信部20Bと、基準信号受信部22Bと、分周部24Bと、通信部26Bと、記憶部28Bと、制御部30Bとを有する。
(Receiver)
4 is a schematic block diagram of a receiver 10B. As shown in FIG. 4, the receiver 10B includes a transmitter 20B, a reference signal receiver 22B, a frequency divider 24B, a communication unit 26B, a storage unit 28B, and a control unit 30B.
(発信部)
発信部20Bは、所定周期のクロック信号SCBを出力する。図3に示すように、クロック信号SCBは、所定周期のパルス状の信号である。本実施形態においては、発信部20Bは、一定周期のクロック信号SCBを出力する発振素子であり、例えば水晶振動子やセラミック発振子である。ただし、発信部20Bは、クロック信号SCBを出力する任意の素子であってよい。クロック信号SCBの周波数は、例えば12.8MHzであるが、クロック信号SCBの周波数や周期は任意であってよい。
(Dissemination Department)
The transmitter 20B outputs a clock signal SCB with a predetermined period. As shown in FIG. 3, the clock signal SCB is a pulsed signal with a predetermined period. In this embodiment, the transmitter 20B is an oscillator element that outputs the clock signal SCB with a constant period, such as a quartz crystal or ceramic oscillator. However, the transmitter 20B may be any element that outputs the clock signal SCB. The frequency of the clock signal SCB is, for example, 12.8 MHz, but the frequency and period of the clock signal SCB may be any.
(基準信号受信部)
基準信号受信部22Bは、基準信号送信機Rから、基準信号SRを受信する。基準信号受信部22Bは、基準信号送信機Rから基準信号SRを受信可能なモジュールであり、例えば本実施形態では、GSNN受信機である。基準信号SRの周期は任意であってよいが、本実施形態では、クロック信号SCBの周期より長い。
(Reference signal receiving unit)
The reference signal receiving unit 22B receives the reference signal SR from the reference signal transmitter R. The reference signal receiving unit 22B is a module capable of receiving the reference signal SR from the reference signal transmitter R, and in this embodiment is, for example, a GSNN receiver. The period of the reference signal SR may be any period, but in this embodiment it is longer than the period of the clock signal SCB.
(分周部)
分周部24Bには、基準信号受信部22Bが受信した基準信号SRと、発信部20Bから出力されたクロック信号SCBとが入力される。分周部24Bは、基準信号受信部22Bが受信した基準信号SRに基づいて、発信部20Bから出力されたクロック信号SCBを分周することで、所定周期の第2時刻信号STBを生成する。分周部24Bは、クロック信号SCBを分周する分周器である。第2時刻信号STBは、所定周期のパルス状の信号である。第2時刻信号STBの周期は任意であってよいが、本実施形態では、クロック信号SCBの周期より長く、基準信号SRの周期より短い。
(Frequency division part)
The frequency divider 24B receives the reference signal SR received by the reference signal receiver 22B and the clock signal SCB output from the transmitter 20B. The frequency divider 24B generates a second time signal STB with a predetermined period by dividing the clock signal SCB output from the transmitter 20B based on the reference signal SR received by the reference signal receiver 22B. The frequency divider 24B is a frequency divider that divides the clock signal SCB. The second time signal STB is a pulsed signal with a predetermined period. The period of the second time signal STB may be any period, but in this embodiment, it is longer than the period of the clock signal SCB and shorter than the period of the reference signal SR.
図3に示すように、本実施形態では、分周部24Bは、基準信号SRに基づいて、クロック信号SCBを積算したカウントアップ信号SUを生成する。分周部24Bは、基準信号SRのパルスを受信したタイミングに対応するタイミング(図3の例では基準信号SRのパルスを受信したタイミングと同じタイミング)で、クロック信号SCBの積算を開始して、クロック信号SCBを積算したカウントアップ信号SUを生成する。すなわち、分周部24Bは、基準信号SRを受信したら、クロック信号SCBのパルスを受信する毎に、カウントアップ信号SUの信号強度を上昇させる。そして、分周部24Bは、カウントアップ信号SUの信号強度が閾値以上となったら、すなわちクロック信号SCBのパルスを所定数積算したら、カウントアップ信号SUの信号強度をリセットして、再度クロック信号SCBの積算を再開する。分周部24Bは、クロック信号SCBに基づいて、第2時刻信号STBを生成する。より詳しくは、分周部24Bは、クロック信号SCBの積算が開始されたタイミングから、カウントアップ信号SUがリセットされるまでのタイミングまでの期間に対応する周期の第2時刻信号STBを生成する。本実施形態の例では、分周部24Bは、クロック信号SCBの積算が開始されたタイミングからカウントアップ信号SUがリセットされるまでのタイミングまでを1/2周期とするように、第2時刻信号STBを生成する。 As shown in FIG. 3, in this embodiment, the frequency divider unit 24B generates a count-up signal SU by integrating the clock signal SCB based on the reference signal SR. The frequency divider unit 24B starts integrating the clock signal SCB at a timing corresponding to the timing at which it receives a pulse of the reference signal SR (the same timing as the timing at which it receives a pulse of the reference signal SR in the example of FIG. 3), and generates a count-up signal SU by integrating the clock signal SCB. That is, after receiving the reference signal SR, the frequency divider unit 24B increases the signal strength of the count-up signal SU each time it receives a pulse of the clock signal SCB. Then, when the signal strength of the count-up signal SU becomes equal to or greater than a threshold, i.e., after it has integrated a predetermined number of pulses of the clock signal SCB, the frequency divider unit 24B resets the signal strength of the count-up signal SU and resumes integrating the clock signal SCB. The frequency divider unit 24B generates a second time signal STB based on the clock signal SCB. More specifically, the frequency divider 24B generates the second time signal STB with a cycle corresponding to the period from when the integration of the clock signal SCB begins to when the count-up signal SU is reset. In this embodiment, the frequency divider 24B generates the second time signal STB so that the period from when the integration of the clock signal SCB begins to when the count-up signal SU is reset is 1/2 of the cycle.
なお、分周部24Bは、基準信号SRの次のパルスを受信したら、カウントアップ信号SUの信号強度をリセットしてから、クロック信号SCBの積算を再開する。すなわち、分周部24Bは、基準信号SRの次のパルスを受信したら、現在のカウントアップ信号SUの信号強度が閾値未満であっても、カウントアップ信号SUの信号強度を強制的にリセットして、クロック信号SCBの積算を再開する。これにより、基準信号SRを受信する毎に、第2時刻信号STBの周期を調整することができる。 When the frequency divider unit 24B receives the next pulse of the reference signal SR, it resets the signal strength of the count-up signal SU and then resumes the accumulation of the clock signal SCB. In other words, when the frequency divider unit 24B receives the next pulse of the reference signal SR, it forcibly resets the signal strength of the count-up signal SU and resumes the accumulation of the clock signal SCB, even if the current signal strength of the count-up signal SU is below the threshold. This allows the period of the second time signal STB to be adjusted each time the reference signal SR is received.
(通信部)
通信部26Bは、送信機10Aとデータの送受信を行うための通信モジュールであり、例えばアンテナやWiFiモジュールであってよい。なお、通信部26Bと基準信号受信部22Bとは、本実施形態の例では別々のハードウェアであるが、通信部26Bと基準信号受信部22Bとが1つのハードウェアであってもよい。
(Communications Department)
The communication unit 26B is a communication module for transmitting and receiving data to and from the transmitter 10A, and may be, for example, an antenna or a Wi-Fi module. Note that, although the communication unit 26B and the reference signal receiving unit 22B are separate pieces of hardware in the example of this embodiment, the communication unit 26B and the reference signal receiving unit 22B may be integrated into a single piece of hardware.
(記憶部)
記憶部28Bは、制御部30Bの演算内容やプログラムの情報などを記憶するメモリであり、例えば、RAMと、ROMと、HDDなどの外部記憶装置とのうち、少なくとも1つ含む。記憶部28Bが記憶する制御部30B用のプログラムは、受信機10Bが読み取り可能な記録媒体に記憶されていてもよい。
(Storage part)
The storage unit 28B is a memory that stores the calculation contents and program information of the control unit 30B, and includes, for example, at least one of a RAM, a ROM, and an external storage device such as an HDD. The program for the control unit 30B stored in the storage unit 28B may be stored in a recording medium readable by the receiver 10B.
(制御部)
制御部30Bは、演算装置であり、例えばCPUなどの演算回路を含む。制御部30Bは、第2時刻情報生成部32Bと通信制御部34Bと遅延時間算出部36Bとを含む。制御部30Bは、記憶部28Bからプログラム(ソフトウェア)を読み出して実行することで、第2時刻情報生成部32Bと通信制御部34Bと遅延時間算出部36Bとを実現して、それらの処理を実行する。なお、制御部30Bは、1つのCPUによってこれらの処理を実行してもよいし、複数のCPUを備えて、それらの複数のCPUで、処理を実行してもよい。また、第2時刻情報生成部32Bと通信制御部34Bと遅延時間算出部36Bとの処理の少なくとも一部を、ハードウェア回路で実現してもよい。また、制御部30Bは、発信部20B、基準信号受信部22B、及び分周部24Bなどの受信機10Bに含まれる機器を制御する機器制御部を含んでいてもよい。
(Control unit)
The control unit 30B is a calculation device and includes a calculation circuit such as a CPU. The control unit 30B includes a second time information generation unit 32B, a communication control unit 34B, and a delay time calculation unit 36B. The control unit 30B implements the second time information generation unit 32B, the communication control unit 34B, and the delay time calculation unit 36B by reading and executing a program (software) from the storage unit 28B. The control unit 30B may implement these processes using a single CPU, or may include multiple CPUs and execute the processes using the multiple CPUs. At least a portion of the processes performed by the second time information generation unit 32B, the communication control unit 34B, and the delay time calculation unit 36B may be implemented using hardware circuits. The control unit 30B may also include a device control unit that controls devices included in the receiver 10B, such as the transmitter 20B, the reference signal receiver 22B, and the frequency divider 24B.
(第2時刻情報生成部)
第2時刻情報生成部32Bは、クロック信号SCB及び基準信号SRに基づき、受信機10Bにおける時刻を示す第2時刻情報を生成する。すなわち、第2時刻情報は、受信機10Bの内部時刻を示す。具体的には、第2時刻情報生成部32Bは、クロック信号SCB及び基準信号SRに基づいて分周部24Bにより生成された第2時間信号STBに基づき、第2時刻情報を生成する。第2時間信号STBは所定周期となるように生成された信号であるため、第2時刻情報生成部32Bは、第2時間信号STBに基づいて、すなわち例えば第2時間信号STBのパルスをカウントすることで、第2時刻情報を生成できる。第2時刻情報生成部32Bは、第2時間信号STBのパルスを逐次カウントすることで、第2時刻情報を逐次更新する。
(Second time information generation unit)
The second time information generation unit 32B generates second time information indicating the time in the receiver 10B based on the clock signal SCB and the reference signal SR. In other words, the second time information indicates the internal time of the receiver 10B. Specifically, the second time information generation unit 32B generates the second time information based on the second time signal STB generated by the frequency divider unit 24B based on the clock signal SCB and the reference signal SR. Because the second time signal STB is a signal generated to have a predetermined period, the second time information generation unit 32B can generate the second time information based on the second time signal STB, i.e., by counting pulses of the second time signal STB, for example. The second time information generation unit 32B sequentially counts the pulses of the second time signal STB to sequentially update the second time information.
(通信制御部)
通信制御部34Bは、通信部26Bを介して、第1時刻情報を含むパケットPを、送信機10Aから受信する。
(Communication control unit)
The communication control unit 34B receives the packet P including the first time information from the transmitter 10A via the communication unit 26B.
(遅延時間算出部)
遅延時間算出部36Bは、送信機10Aから受信したパケットPに含まれる第1時刻情報と、第2時刻情報生成部32Bによって生成された第2時刻情報とに基づいて、遅延時間を算出する。遅延時間算出部36Bは、第1時刻情報が示す時刻と第2時刻情報が示す時刻との差分を、遅延時間として算出する。ここでの第1時刻情報が示す時刻は、送信機10AがパケットPを送信したタイミングに対応する時刻(すなわち例えば、送信機10Aにより測定された、パケットPが送信された時刻)であり、第2時刻情報が示す時刻は、受信機10BがパケットPを受信したタイミングに対応する時刻(すなわち例えば、受信機10Bにより測定された、パケットPを受信した時刻)である。従って、遅延時間とは、通信による遅延時間であるといえ、パケットPを送信機10Aから受信機10Bに送信するのに要する時間といえる。
(Delay time calculation unit)
The delay time calculation unit 36B calculates the delay time based on the first time information included in the packet P received from the transmitter 10A and the second time information generated by the second time information generation unit 32B. The delay time calculation unit 36B calculates the difference between the time indicated by the first time information and the time indicated by the second time information as the delay time. The time indicated by the first time information here is the time corresponding to the timing at which the transmitter 10A transmitted the packet P (i.e., for example, the time at which the packet P was transmitted measured by the transmitter 10A), and the time indicated by the second time information is the time corresponding to the timing at which the receiver 10B received the packet P (i.e., for example, the time at which the packet P was received measured by the receiver 10B). Therefore, the delay time can be said to be a delay time due to communication, or the time required to transmit the packet P from the transmitter 10A to the receiver 10B.
遅延時間算出部36Bは、算出した遅延時間を出力してよい。例えば、遅延時間算出部36Bは、算出した遅延時間を記憶部28Bに出力して記憶部28Bに記憶させたり、算出した遅延時間を外部の装置に送信したり、算出した遅延時間を図示しないディスプレイなどに出力したりしてよい。このように算出した遅延時間を出力することで、例えば通信環境の調整など、様々な用途に用いることが可能となる。 The delay time calculation unit 36B may output the calculated delay time. For example, the delay time calculation unit 36B may output the calculated delay time to the memory unit 28B and store it in the memory unit 28B, transmit the calculated delay time to an external device, or output the calculated delay time to a display (not shown). Outputting the calculated delay time in this manner makes it possible to use it for various purposes, such as adjusting the communication environment.
(処理フロー)
以上説明した送信機10Aと受信機10Bの処理の処理フローを説明する。図5は、第1実施形態に係る送信機及び受信機の処理フローを説明するフローチャートである。図5に示すように、送信機10Aは、発信部20Aにより出力されたクロック信号SCAを取得し、基準信号受信部22Aにより基準信号送信機Rからの基準信号SRを取得する(ステップS10A)。そして、送信機10Aは、分周部24Aにより、基準信号SRに基づいてクロック信号SCAを分周して、第1時刻信号STAを生成し(ステップS12A)、第1時刻情報生成部32Aにより、第1時刻信号STAに基づいて第1時刻情報を生成する(ステップS14A)。送信機10Aは、通信制御部34Aにより、第1時刻情報を含むパケットPを、受信機10Bに送信する(ステップS16)。
(Processing flow)
The processing flow of the transmitter 10A and receiver 10B described above will now be described. FIG. 5 is a flowchart illustrating the processing flow of the transmitter and receiver according to the first embodiment. As shown in FIG. 5, the transmitter 10A acquires the clock signal SCA output by the transmitting unit 20A and acquires the reference signal SR from the reference signal transmitter R by the reference signal receiving unit 22A (step S10A). The transmitter 10A then divides the clock signal SCA based on the reference signal SR using the frequency dividing unit 24A to generate a first time signal STA (step S12A), and generates first time information based on the first time signal STA using the first time information generating unit 32A (step S14A). The transmitter 10A then transmits a packet P including the first time information to the receiver 10B using the communication control unit 34A (step S16).
受信機10Bも、発信部20Bにより出力されたクロック信号SCBを取得し、基準信号受信部22Bにより基準信号送信機Rからの基準信号SRを取得して(ステップS10B)、分周部24Bにより、基準信号SRに基づいてクロック信号SCBを分周して、第2時刻信号STBを生成し(ステップS12B)、第2時刻情報生成部32Bにより、第2時刻信号STBに基づいて第2時刻情報を生成する(ステップS14B)。受信機10Bは、第2時刻情報を生成し、第1時刻情報を含むパケットPを受信したら、遅延時間算出部36Bにより、第1時刻情報と第2時刻情報とに基づいて、遅延時間を算出する(ステップS18)。 Receiver 10B also acquires clock signal SCB output by transmitter 20B, acquires reference signal SR from reference signal transmitter R using reference signal receiver 22B (step S10B), divides clock signal SCB based on reference signal SR using frequency divider 24B to generate second time signal STB (step S12B), and generates second time information based on second time signal STB using second time information generator 32B (step S14B). After generating the second time information and receiving packet P containing the first time information, receiver 10B calculates the delay time based on the first time information and second time information using delay time calculator 36B (step S18).
以上説明したように、本実施形態においては、送信機10Aが、基準信号送信機Rから受信した基準信号SRに基づいて第1時刻情報を生成し、受信機10Bも、同一の機器である基準信号送信機Rから受信した基準信号SRに基づいて、第2時刻情報を生成する。そして、受信機10Bは、送信機10Aから第1時刻情報を受信して、その第1時刻情報を、自身で生成した第2時刻情報と比較することで、遅延時間を算出する。すなわち、本実施形態においては、第1時刻情報と第2時刻情報とを、共通する機器から取得した基準信号SRにより同期することができるので、第1時刻情報と第2時刻情報とが、通信遅延などの原因でずれてしまうことを抑制できる。そのため、本実施形態によると、第1時刻情報と第2時刻情報とのずれを抑えて、遅延時間を高精度に算出することが可能となる。 As described above, in this embodiment, transmitter 10A generates first time information based on the reference signal SR received from reference signal transmitter R, and receiver 10B also generates second time information based on the reference signal SR received from the same device, reference signal transmitter R. Receiver 10B then receives the first time information from transmitter 10A and calculates the delay time by comparing the first time information with the second time information it has generated. That is, in this embodiment, the first time information and the second time information can be synchronized using the reference signal SR obtained from a common device, thereby preventing deviations between the first time information and the second time information due to communication delays and the like. Therefore, this embodiment makes it possible to reduce deviations between the first time information and the second time information and calculate the delay time with high accuracy.
(第2実施形態)
次に、第2実施形態について説明する。第2実施形態においては、パケットP毎の遅延時間から平均遅延時間を算出し、平均遅延時間に基づいて、パケットP毎にアプリケーションの実行開始タイミングを調整する点で、第1実施形態とは異なる。第2実施形態において、第1実施形態と構成が共通する箇所は、説明を省略する。
Second Embodiment
Next, a second embodiment will be described. The second embodiment differs from the first embodiment in that an average delay time is calculated from the delay time for each packet P, and the execution start timing of an application is adjusted for each packet P based on the average delay time. In the second embodiment, a description of parts of the configuration common to the first embodiment will be omitted.
(受信機)
図6は、第2実施形態に係る受信機の模式的なブロック図である。図6に示すように、第2実施形態の受信機10Baの制御部30Baは、第2時刻情報生成部32Bと、通信制御部34Bと、遅延時間算出部36Baと、実行部38Baとを含む。
(Receiver)
Fig. 6 is a schematic block diagram of a receiver according to the second embodiment. As shown in Fig. 6, a control unit 30Ba of a receiver 10Ba according to the second embodiment includes a second time information generation unit 32B, a communication control unit 34B, a delay time calculation unit 36Ba, and an execution unit 38Ba.
(パケットの送受信)
第2実施形態においては、送信機10Aの通信制御部34Aは、第1時刻情報及びアプリケーション情報を含むパケットPを、受信機10Baに送信する。アプリケーション情報とは、受信機10Baによる所定の処理(所定のアプリケーション)を実行するための情報である。例えば、受信機10Baが所定の処理として画像表示を行う場合には、アプリケーション情報は、画像データであってよい。ただし、受信機10Baが行う処理やアプリケーション情報は、これに限られず任意であってよい。
(Sending and receiving packets)
In the second embodiment, the communication control unit 34A of the transmitter 10A transmits a packet P including first time information and application information to the receiver 10Ba. The application information is information for the receiver 10Ba to execute a predetermined process (a predetermined application). For example, if the receiver 10Ba performs image display as the predetermined process, the application information may be image data. However, the process and application information performed by the receiver 10Ba are not limited to this and may be arbitrary.
送信機10Aは、第1時刻情報及びアプリケーション情報が異なるパケットPを、受信機10Baに逐次送信する。受信機10Baの通信制御部34Bは、第1時刻情報及びアプリケーション情報を含むパケットPを、送信機10Aから逐次受信する。 The transmitter 10A sequentially transmits packets P containing different first time information and application information to the receiver 10Ba. The communication control unit 34B of the receiver 10Ba sequentially receives packets P containing the first time information and application information from the transmitter 10A.
(平均遅延時間の算出)
図7は、平均遅延時間の一例を示すグラフである。受信機10Baの遅延時間算出部36Baは、パケットPに含まれる第1時刻情報と、そのパケットPを受信したタイミングにおける第2時刻情報とに基づいて、そのパケットPについての遅延時間を算出する。遅延時間算出部36Baは、異なるタイミングで受信されたパケットP毎に、遅延時間を算出する。遅延時間算出部36Baは、パケットP毎の遅延時間に基づいて、すなわち算出した複数の遅延時間に基づいて、平均遅延時間を算出する。遅延時間算出部36Baは、パケットP毎の遅延時間に基づいた任意の方法で平均遅延時間を算出してよい。例えば、遅延時間算出部36Baは、パケットP毎の遅延時間の相加平均値を平均遅延時間として算出してもよいし、パケットP毎の遅延時間の相加平均値に対して、各遅延時間の標準偏差を加えた値を、平均遅延時間として算出してもよい。図7の線L1は、パケットP毎の遅延時間を示しており、線Lは、パケットP毎の遅延時間から算出された平均遅延時間を示している。
(Calculation of average delay time)
FIG. 7 is a graph showing an example of an average delay time. The delay time calculation unit 36Ba of the receiver 10Ba calculates the delay time for a packet P based on first time information included in the packet P and second time information at the time the packet P is received. The delay time calculation unit 36Ba calculates the delay time for each packet P received at different times. The delay time calculation unit 36Ba calculates the average delay time based on the delay time for each packet P, i.e., based on multiple calculated delay times. The delay time calculation unit 36Ba may calculate the average delay time using any method based on the delay time for each packet P. For example, the delay time calculation unit 36Ba may calculate the arithmetic mean value of the delay times for each packet P as the average delay time, or may calculate the average delay time by adding the standard deviation of each delay time to the arithmetic mean value of the delay times for each packet P. In FIG. 7, line L1 indicates the delay time for each packet P, and line L indicates the average delay time calculated from the delay times for each packet P.
(処理の実行)
実行部38Baは、パケットPに含まれるアプリケーション情報に基づき、所定の処理を実行する。すなわち例えば、実行部38Baは、アプリケーション情報としての画像データを用いて、所定の処理である画像表示を行う。
(Processing execution)
The execution unit 38Ba executes a predetermined process based on the application information included in the packet P. That is, for example, the execution unit 38Ba uses image data as the application information to perform image display, which is a predetermined process.
図8は、平均遅延時間の一例を示すグラフである。実行部38Baは、逐次受信されるパケットPに含まれるアプリケーション情報を用いて、所定の処理に用いるアプリケーション情報を逐次更新することで、所定の処理を継続して実行する。すなわち、実行部38Baは、1つのパケットPに含まれるアプリケーション情報を用いた処理が終了したら、次のパケットPに含まれるアプリケーション情報を用いた処理に切り替えることで、処理を継続して実行する。この場合、実行部38Baは、それぞれのパケットPについて、パケットPを受信したタイミングから平均遅延時間だけ遅らせたタイミングで、そのパケットPに含まれるアプリケーション情報に基づいた処理を実行する。すなわち、実行部38Baは、パケットPを受信したタイミングから、共通する平均遅延時間だけ遅らせて、それぞれのパケットPに基づいた処理を開始する。従って、パケットP毎の処理開始タイミングの周期を一定として、例えば一部のパケットPの実行だけが遅れたりすることを抑制することが可能となるため、処理を適切に実行することが可能となる。なお、図8の線L2は、パケットP毎の遅延時間を指している。図8に示すように、実際のパケットPの遅延時間が平均遅延時間よりも短くても、パケットPを用いた処理を開始するタイミングを、平均遅延時間が経過するまで延期する。これにより、パケットP毎に遅延時間のばらつきがあったとしても、平均遅延時間という一定値を用いて処理の開始タイミングを設定することで、処理の開始タイミングの周期を一定にできる。なお、図8に示すように、遅延時間が平均遅延時間よりも長いパケットPについては、そのパケットPを用いた処理を行わなくてもよい。 Figure 8 is a graph showing an example of average delay time. The execution unit 38Ba continuously executes a predetermined process by sequentially updating the application information used for the predetermined process using the application information contained in successively received packets P. That is, when the execution unit 38Ba completes processing using the application information contained in one packet P, it switches to processing using the application information contained in the next packet P, thereby continuing the processing. In this case, the execution unit 38Ba executes processing based on the application information contained in each packet P at a timing delayed by the average delay time from the timing at which the packet P was received. That is, the execution unit 38Ba starts processing based on each packet P at a common average delay time from the timing at which the packet P was received. Therefore, by maintaining a constant cycle for the start of processing for each packet P, it is possible to prevent delays in the execution of only some packets P, for example, thereby enabling appropriate processing. Note that line L2 in Figure 8 indicates the delay time for each packet P. As shown in Figure 8, even if the actual delay time of packet P is shorter than the average delay time, the timing to start processing using packet P is postponed until the average delay time has elapsed. As a result, even if the delay time varies for each packet P, the cycle of processing start timing can be made constant by setting the processing start timing using a constant value called the average delay time. Note that, as shown in Figure 8, for packets P with delay times longer than the average delay time, processing using those packets P does not need to be performed.
実行部38Baは、パケットPの遅延時間に基づいて、そのパケットPに含まれているアプリケーション情報を圧縮してもよい。この場合例えば、実行部38Baは、パケットPの遅延時間が平均遅延時間よりも長い場合に、そのパケットPに含まれるアプリケーション情報を圧縮してもよい。これにより、遅延時間が平均遅延時間よりも長いパケットPについても、圧縮することで処理に要する時間を短くすることができるため、そのパケットPを用いた処理を適切に行うことが可能となる。また例えば、実行部38Baは、パケットPの遅延時間が長いほど、アプリケーション情報の圧縮率を高くしてもよい。 The execution unit 38Ba may compress the application information included in the packet P based on the delay time of the packet P. In this case, for example, the execution unit 38Ba may compress the application information included in the packet P if the delay time of the packet P is longer than the average delay time. This makes it possible to shorten the time required for processing even for packets P with delay times longer than the average delay time by compressing them, thereby making it possible to appropriately process the packet P. Also, for example, the execution unit 38Ba may increase the compression rate of the application information the longer the delay time of the packet P.
(処理フロー)
以上説明した第2実施形態による処理のフローを説明する。図9は、第2実施形態に係る処理フローを説明するフローチャートである。図9に示すように、受信機10Baは、遅延時間算出部36Baにより、パケットPに含まれる第1時刻情報と、そのパケットPを受信したタイミングにおける第2時刻情報とに基づいて、遅延時間を算出する(ステップS20)。遅延時間算出部36Baは、算出した遅延時間のデータ量が所定以上であるかを判断し(ステップS22)、算出した遅延時間のデータ量が所定以上である場合に(ステップS22;Yes)、これまでに算出したパケットP毎の遅延時間に基づいて、平均遅延時間を算出する(ステップS24)。一方、算出した遅延時間のデータ量が所定以上でない場合(ステップS22;No)、ステップS20に戻り、次のパケットPにおける遅延時間の算出を続ける。なお、遅延時間のデータ量が所定以上であるとは、パケットP毎に算出した遅延時間の数が所定数以上であることを指してよい。以上のように平均遅延時間を算出するまでの期間は、イニシャライズ期間として、イニシャライズ期間に受信したパケットPを用いた処理(例えば画像表示)を実行しなくてもよい。また例えば、イニシャライズ期間においては、平均遅延時間を用いずに、パケットPを受信する毎に、そのパケットを用いた処理を開始させてもよい。
(Processing flow)
The processing flow according to the second embodiment described above will now be described. FIG. 9 is a flowchart illustrating the processing flow according to the second embodiment. As shown in FIG. 9 , the receiver 10Ba calculates a delay time using the delay time calculation unit 36Ba based on the first time information included in the packet P and the second time information at the time the packet P is received (step S20). The delay time calculation unit 36Ba determines whether the amount of data for the calculated delay time is equal to or greater than a predetermined amount (step S22). If the amount of data for the calculated delay time is equal to or greater than a predetermined amount (step S22; Yes), the delay time calculation unit 36Ba calculates an average delay time based on the delay times calculated for each packet P up to that point (step S24). On the other hand, if the amount of data for the calculated delay time is not equal to or greater than a predetermined amount (step S22; No), the process returns to step S20 and continues calculating the delay time for the next packet P. Note that the amount of data for the delay time being equal to or greater than a predetermined amount may refer to the number of delay times calculated for each packet P being equal to or greater than a predetermined number. The period until the average delay time is calculated as described above can be used as an initialization period, and processing (e.g., image display) using the packets P received during the initialization period need not be performed. Also, for example, during the initialization period, processing using a packet may be started every time a packet P is received, without using the average delay time.
平均遅延時間を算出したら、受信機10Baは、以降に受信するパケットPについては、平均遅延時間に基づいて各パケットPの処理を開始するタイミングを設定する。すなわち、受信機10Baは、通信制御部34BによりパケットPを受信して(ステップS26)、実行部38Baにより、そのパケットPを用いた処理を開始するタイミングを、平均遅延時間だけ遅延させて、そのパケットPに含まれるアプリケーション情報に基づいた処理を実行する(ステップS28)。 Once the average delay time is calculated, the receiver 10Ba sets the timing for starting processing of each subsequently received packet P based on the average delay time. That is, the receiver 10Ba receives the packet P using the communication control unit 34B (step S26), and then delays the timing for starting processing using that packet P using the execution unit 38Ba by the average delay time, and executes processing based on the application information contained in that packet P (step S28).
その後、処理を終了する場合には(ステップS30;Yes)、本処理を終了する。一方、処理を終了せず(ステップS30;No)、かつ、平均遅延時間を算出してから所定時間が経過していない場合には(ステップS32;No)、ステップS26に戻り、次のパケットPを受信して、算出済みの平均遅延時間を用いて、処理を継続する。一方、平均遅延時間を算出してから所定時間が経過した場合(ステップS32;Yes)、ステップS20に戻り(すなわちイニシャライズ期間に戻り)、平均遅延時間を更新する。すなわち、本実施形態においては、所定時間が経過する毎に平均遅延時間を更新するため、通信環境の変化に適切に対応できる。ただし、平均遅延時間の更新処理は必須ではない。 After that, if processing is to be ended (Step S30; Yes), this processing ends. On the other hand, if processing is not to be ended (Step S30; No) and a predetermined time has not elapsed since the average delay time was calculated (Step S32; No), processing returns to Step S26, the next packet P is received, and processing continues using the calculated average delay time. On the other hand, if a predetermined time has elapsed since the average delay time was calculated (Step S32; Yes), processing returns to Step S20 (i.e., returns to the initialization period) and the average delay time is updated. In other words, in this embodiment, the average delay time is updated every time a predetermined time has elapsed, making it possible to appropriately respond to changes in the communication environment. However, updating the average delay time is not essential.
(効果)
以上説明したように、本開示に係る通信システム100は、送信機10Aと、送信機10AからパケットPを受信する受信機10Bとを有する。送信機10Aは、所定周期のクロック信号SCAを出力する発信部20Aと、時刻の基準となる基準信号SRを基準信号送信機Rから受信する基準信号受信部22Aと、クロック信号SCA及び基準信号SRに基づき、送信機10Aにおける時刻を示す第1時刻情報を生成する第1時刻情報生成部32Aと、第1時刻情報を含むパケットPを受信機10Bに送信する通信制御部34Aと、を含む。受信機10Bは、所定周期のクロック信号SCBを出力する発信部20Bと、基準信号SRを基準信号送信機Rから受信する基準信号受信部22Bと、クロック信号SCB及び基準信号SRに基づき、受信機10Bにおける時刻を示す第2時刻情報を生成する第2時刻情報生成部32Bと、送信機10AからパケットPを受信する通信制御部34Bと、パケットPに含まれる第1時刻情報と、第2時刻情報とに基づき、遅延時間を算出する遅延時間算出部36Bとを含む。
(effect)
As described above, the communication system 100 according to the present disclosure includes a transmitter 10A and a receiver 10B that receives a packet P from the transmitter 10A. The transmitter 10A includes a transmission unit 20A that outputs a clock signal SCA of a predetermined period, a reference signal reception unit 22A that receives a reference signal SR that serves as a time reference from a reference signal transmitter R, a first time information generation unit 32A that generates first time information that indicates the time at the transmitter 10A based on the clock signal SCA and the reference signal SR, and a communication control unit 34A that transmits a packet P including the first time information to the receiver 10B. The receiver 10B includes a transmitter 20B that outputs a clock signal SCB of a predetermined period, a reference signal receiver 22B that receives a reference signal SR from a reference signal transmitter R, a second time information generator 32B that generates second time information indicating the time at the receiver 10B based on the clock signal SCB and the reference signal SR, a communication controller 34B that receives a packet P from the transmitter 10A, and a delay time calculator 36B that calculates a delay time based on the first time information and the second time information included in the packet P.
本開示に係る通信システム100によると、第1時刻情報と第2時刻情報とを、共通する機器から取得した基準信号SRにより同期することができるので、第1時刻情報と第2時刻情報とが、通信遅延などの原因でずれてしまうことを抑制できる。そのため、本実施形態によると、第1時刻情報と第2時刻情報とのずれを抑えて、遅延時間を高精度に算出することが可能となる。 According to the communication system 100 disclosed herein, the first time information and the second time information can be synchronized using a reference signal SR obtained from a common device, thereby preventing the first time information and the second time information from becoming out of sync due to factors such as communication delays. Therefore, according to this embodiment, it is possible to reduce the lag between the first time information and the second time information and calculate the delay time with high accuracy.
送信機10Aは、送信機10A側の基準信号SRに基づいてクロック信号SCAを分周して、所定周期の第1時刻信号STAを生成する分周部24Aを更に含み、第1時刻情報生成部32Aは、第1時刻信号STAに基づき第1時刻情報を生成する。受信機10Bは、受信機10B側の基準信号SRに基づいてクロック信号SCBを分周して、所定周期の第2時刻信号STBを生成する分周部24Bを更に含み、第2時刻情報生成部32Bは、第2時刻信号STBに基づき第2時刻情報を生成する。本実施形態によると、基準信号SRに基づいて分周された第1時刻信号STAや第2時刻信号STBを用いることで、第1時刻情報と第2時刻情報とのずれを抑えて、遅延時間を高精度に算出することが可能となる。 Transmitter 10A further includes a frequency divider 24A that divides the clock signal SCA based on the reference signal SR on the transmitter 10A side to generate a first time signal STA with a predetermined period, and first time information generation unit 32A generates first time information based on the first time signal STA. Receiver 10B further includes a frequency divider 24B that divides the clock signal SCB based on the reference signal SR on the receiver 10B side to generate a second time signal STB with a predetermined period, and second time information generation unit 32B generates second time information based on the second time signal STB. According to this embodiment, by using the first time signal STA and second time signal STB that have been divided based on the reference signal SR, it is possible to reduce the discrepancy between the first time information and the second time information and calculate the delay time with high accuracy.
送信機10Aの基準信号受信部22A、及び受信機10Bの基準信号受信部22Bは、基準信号送信機Rとしての人工衛星から、基準信号SRを受信する。人工衛星から基準信号SRを受信することで、第1時刻情報と第2時刻情報とを適切に同期して、遅延時間を高精度に算出することが可能となる。 The reference signal receiving unit 22A of the transmitter 10A and the reference signal receiving unit 22B of the receiver 10B receive a reference signal SR from a satellite acting as a reference signal transmitter R. By receiving the reference signal SR from the satellite, it is possible to properly synchronize the first time information and the second time information and calculate the delay time with high precision.
遅延時間算出部36Baは、異なるタイミングで受信されたパケットP毎に、遅延時間を算出し、それぞれの遅延時間に基づいて平均遅延時間を算出する。また、受信機10Bは、パケットPに含まれるアプリケーション情報に基づき、所定の処理を実行する実行部38Baを更に含み、実行部38Baは、パケットPを受信したタイミングから平均遅延時間だけ遅らせたタイミングで、アプリケーション情報に基づいた所定の処理を実行する。これにより、パケットP毎の処理を開始するタイミングの周期を一定として、処理を適切に実行することが可能となる。 The delay time calculation unit 36Ba calculates the delay time for each packet P received at different times, and calculates the average delay time based on each delay time. The receiver 10B also includes an execution unit 38Ba that executes predetermined processing based on application information included in the packet P, and the execution unit 38Ba executes predetermined processing based on the application information at a timing delayed by the average delay time from the timing at which the packet P was received. This makes it possible to maintain a constant cycle for the timing at which processing starts for each packet P, allowing for appropriate execution of processing.
実行部38Baは、遅延時間が長いほど、そのパケットPに含まれるアプリケーション情報の圧縮率を高くして、所定の処理を実行する。これにより、遅延時間が長いパケットPについても、適切に処理を実行できる。 The execution unit 38Ba increases the compression rate of the application information contained in the packet P as the delay time increases, and then executes the specified processing. This allows appropriate processing to be performed even on packets P with long delay times.
本開示に係る通信方法は、送信機10Aと、送信機10AからパケットPを受信する受信機10Bとを用いる。本通信方法は、送信機10Aに、所定周期のクロック信号SCAを出力させるステップと、送信機10Aに、基準信号送信機Rから時刻の基準となる基準信号SRを受信させるステップと、クロック信号SCA及び基準信号SRに基づき、送信機10Aにおける時刻を示す第1時刻情報を生成するステップと、第1時刻情報を含むパケットPを受信機10Bに送信するステップと、受信機10Bに、所定周期のクロック信号SCBを出力させるステップと、受信機10Bに、基準信号送信機Rからの基準信号SRを受信させるステップと、クロック信号SCB及び基準信号SRに基づき、受信機10Bにおける時刻を示す第2時刻情報を生成するステップと、受信機10Bに、送信機10AからパケットPを受信させるステップと、パケットPに含まれる第1時刻情報と、第2時刻情報とに基づき、遅延時間を算出するステップと、を含む。本通信方法によると、遅延時間を高精度に算出できる。 The communication method according to the present disclosure uses a transmitter 10A and a receiver 10B that receives a packet P from the transmitter 10A. This communication method includes the steps of causing the transmitter 10A to output a clock signal SCA with a predetermined cycle, causing the transmitter 10A to receive a reference signal SR that serves as a time reference from a reference signal transmitter R, generating first time information indicating the time at the transmitter 10A based on the clock signal SCA and the reference signal SR, transmitting a packet P including the first time information to the receiver 10B, causing the receiver 10B to output a clock signal SCB with a predetermined cycle, causing the receiver 10B to receive the reference signal SR from the reference signal transmitter R, generating second time information indicating the time at the receiver 10B based on the clock signal SCB and the reference signal SR, causing the receiver 10B to receive the packet P from the transmitter 10A, and calculating a delay time based on the first time information and the second time information included in the packet P. This communication method allows delay times to be calculated with high accuracy.
以上、本開示の実施形態を説明したが、この実施形態の内容により実施形態が限定されるものではない。また、前述した構成要素には、当業者が容易に想定できるもの、実質的に同一のもの、いわゆる均等の範囲のものが含まれる。さらに、前述した構成要素は適宜組み合わせることが可能である。さらに、前述した実施形態の要旨を逸脱しない範囲で構成要素の種々の省略、置換又は変更を行うことができる。 Although the embodiments of the present disclosure have been described above, the embodiments are not limited to the content of these embodiments. Furthermore, the aforementioned components include those that would be easily conceivable to a person skilled in the art, those that are substantially identical, and those that are within the scope of what is known as equivalents. Furthermore, the aforementioned components can be combined as appropriate. Furthermore, various omissions, substitutions, or modifications of the components can be made without departing from the spirit of the aforementioned embodiments.
10A 送信機
10B 受信機
20A、20B 発信部
22A、22B 基準信号受信部
24A、24B 分周部
32A 第1時刻情報生成部
32B 第2時刻情報生成部
34A、34B 通信制御部
100 通信システム
P パケット
R 基準信号送信機
SCA、SCB クロック信号
SR 基準信号
STA 第1時刻信号
STB 第2時刻信号
10A Transmitter 10B Receiver 20A, 20B Transmission section 22A, 22B Reference signal receiving section 24A, 24B Frequency dividing section 32A First time information generating section 32B Second time information generating section 34A, 34B Communication control section 100 Communication system P Packet R Reference signal transmitter SCA, SCB Clock signal SR Reference signal STA First time signal STB Second time signal
Claims (8)
前記送信機は、
所定周期のクロック信号を出力する発信部と、
時刻の基準となる基準信号を基準信号送信機から受信する基準信号受信部と、
前記クロック信号及び前記基準信号に基づき、前記送信機における時刻を示す第1時刻情報を生成する第1時刻情報生成部と、
前記第1時刻情報を含むパケットを前記受信機に送信する通信制御部と、
を含み、
前記受信機は、
所定周期のクロック信号を出力する発信部と、
前記基準信号送信機から前記基準信号を受信する基準信号受信部と、
前記クロック信号及び前記基準信号に基づき、前記受信機における時刻を示す第2時刻情報を生成する第2時刻情報生成部と、
前記送信機から前記パケットを受信する通信制御部と、
前記パケットに含まれる前記第1時刻情報と、前記第2時刻情報とに基づき、遅延時間を算出する遅延時間算出部と、
を含み、
前記送信機は、前記送信機側の前記基準信号に基づいて前記クロック信号を分周して、所定周期の第1時刻信号を生成する分周部を更に含み、前記第1時刻情報生成部は、前記第1時刻信号に基づき前記第1時刻情報を生成し、
前記受信機は、前記受信機側の前記基準信号に基づいて前記クロック信号を分周して、所定周期の第2時刻信号を生成する分周部を更に含み、前記第2時刻情報生成部は、前記第2時刻信号に基づき前記第2時刻情報を生成し、
前記送信機及び前記受信機の前記分周部は、
前記基準信号の受信タイミングに対応するタイミングで前記クロック信号の積算を開始して、前記クロック信号を積算したカウントアップ信号を生成し、
前記カウントアップ信号の信号強度が閾値以上となったら、前記カウントアップ信号の信号強度をリセットして積算を再開し、
次の前記基準信号を受信したら、前記カウントアップ信号の信号強度を強制的にリセットして、前記クロック信号の積算を再開し、
前記カウントアップ信号に基づき、前記第1時刻信号及び前記第2時刻信号を生成する、
通信システム。 1. A communication system having a transmitter and a receiver for receiving packets from the transmitter,
The transmitter
an oscillator that outputs a clock signal with a predetermined period;
a reference signal receiving unit that receives a reference signal that is a time reference from a reference signal transmitter;
a first time information generating unit that generates first time information indicating a time at the transmitter based on the clock signal and the reference signal;
a communication control unit that transmits a packet including the first time information to the receiver;
Including,
The receiver includes:
an oscillator that outputs a clock signal with a predetermined period;
a reference signal receiving unit that receives the reference signal from the reference signal transmitter;
a second time information generating unit that generates second time information indicating a time in the receiver based on the clock signal and the reference signal;
a communication control unit that receives the packets from the transmitter;
a delay time calculation unit that calculates a delay time based on the first time information and the second time information included in the packet;
Including,
the transmitter further includes a frequency dividing unit that divides the clock signal based on the reference signal on the transmitter side to generate a first time signal with a predetermined period, and the first time information generating unit generates the first time information based on the first time signal;
The receiver further includes a frequency division unit that divides the clock signal based on the reference signal on the receiver side to generate a second time signal with a predetermined period, and the second time information generation unit generates the second time information based on the second time signal,
The frequency divider units of the transmitter and the receiver include:
starting integration of the clock signal at a timing corresponding to a timing of receiving the reference signal, and generating a count-up signal by integrating the clock signal;
When the signal strength of the count-up signal becomes equal to or greater than a threshold value, the signal strength of the count-up signal is reset and integration is resumed;
When the next reference signal is received, the signal strength of the count-up signal is forcibly reset to restart the integration of the clock signal;
generating the first time signal and the second time signal based on the count-up signal;
Communication system.
前記実行部は、前記パケットを受信したタイミングから前記平均遅延時間だけ遅らせたタイミングで、前記アプリケーション情報に基づいた前記所定の処理を実行する、請求項3又は請求項4に記載の通信システム。 the receiver further includes an execution unit that executes a predetermined process based on application information included in the packet;
5. The communication system according to claim 3 , wherein the execution unit executes the predetermined process based on the application information at a timing delayed by the average delay time from a timing at which the packet is received.
前記送信機に、所定周期のクロック信号を出力させるステップと、
前記送信機に、基準信号送信機から時刻の基準となる基準信号を受信させるステップと、
前記クロック信号及び前記基準信号に基づき、前記送信機における時刻を示す第1時刻情報を生成するステップと、
前記第1時刻情報を含むパケットを前記受信機に送信するステップと、
前記受信機に、所定周期のクロック信号を出力させるステップと、
前記受信機に、前記基準信号送信機からの前記基準信号を受信させるステップと、
前記クロック信号及び前記基準信号に基づき、前記受信機における時刻を示す第2時刻情報を生成するステップと、
前記受信機に、前記送信機から前記パケットを受信させるステップと、
前記パケットに含まれる前記第1時刻情報と、前記第2時刻情報とに基づき、遅延時間を算出するステップと、
を含み、
前記第1時刻情報を生成するステップでは、前記送信機側の前記基準信号に基づいて前記クロック信号を分周して、所定周期の第1時刻信号を生成し、前記第1時刻信号に基づき前記第1時刻情報を生成し、
前記第2時刻情報を生成するステップでは、前記受信機側の前記基準信号に基づいて前記クロック信号を分周して、所定周期の第2時刻信号を生成し、前記第2時刻信号に基づき前記第2時刻情報を生成し、
前記第1時刻情報及び前記第2時刻情報を生成するステップでは、
前記基準信号の受信タイミングに対応するタイミングで前記クロック信号の積算を開始して、前記クロック信号を積算したカウントアップ信号を生成し、
前記カウントアップ信号の信号強度が閾値以上となったら、前記カウントアップ信号の信号強度をリセットして積算を再開し、
次の前記基準信号を受信したら、前記カウントアップ信号の信号強度を強制的にリセットして、前記クロック信号の積算を再開し、
前記カウントアップ信号に基づき、前記第1時刻信号及び前記第2時刻信号を生成する、
通信方法。 A communication method using a transmitter and a receiver that receives packets from the transmitter, comprising:
causing the transmitter to output a clock signal having a predetermined period;
a step of causing the transmitter to receive a reference signal serving as a time reference from a reference signal transmitter;
generating first time information indicating a time at the transmitter based on the clock signal and the reference signal;
transmitting a packet including the first time information to the receiver;
causing the receiver to output a clock signal having a predetermined period;
causing the receiver to receive the reference signal from the reference signal transmitter;
generating second time information indicating a time at the receiver based on the clock signal and the reference signal;
causing the receiver to receive the packet from the transmitter;
calculating a delay time based on the first time information and the second time information included in the packet;
Including,
In the step of generating the first time information, the clock signal is divided based on the reference signal of the transmitter to generate a first time signal having a predetermined period, and the first time information is generated based on the first time signal;
In the step of generating the second time information, the clock signal is divided based on the reference signal on the receiver side to generate a second time signal having a predetermined period, and the second time information is generated based on the second time signal;
In the step of generating the first time information and the second time information,
starting integration of the clock signal at a timing corresponding to a timing of receiving the reference signal, and generating a count-up signal by integrating the clock signal;
When the signal strength of the count-up signal becomes equal to or greater than a threshold value, the signal strength of the count-up signal is reset and integration is resumed;
When the next reference signal is received, the signal strength of the count-up signal is forcibly reset to restart the integration of the clock signal;
generating the first time signal and the second time signal based on the count-up signal;
Communication method.
前記送信機に、所定周期のクロック信号を出力させるステップと、
前記送信機に、基準信号送信機から時刻の基準となる基準信号を受信させるステップと、
前記クロック信号及び前記基準信号に基づき、前記送信機における時刻を示す第1時刻情報を生成するステップと、
前記第1時刻情報を含むパケットを前記受信機に送信するステップと、
前記受信機に、所定周期のクロック信号を発信させるステップと、
前記受信機に、前記基準信号送信機からの前記基準信号を受信させるステップと、
前記クロック信号及び前記基準信号に基づき、前記受信機における時刻を示す第2時刻情報を生成するステップと、
前記受信機に、前記送信機から前記パケットを受信させるステップと、
前記パケットに含まれる前記第1時刻情報と、前記第2時刻情報とに基づき、遅延時間を算出するステップと、
を、コンピュータに実行させ、
前記第1時刻情報を生成するステップでは、前記送信機側の前記基準信号に基づいて前記クロック信号を分周して、所定周期の第1時刻信号を生成し、前記第1時刻信号に基づき前記第1時刻情報を生成し、
前記第2時刻情報を生成するステップでは、前記受信機側の前記基準信号に基づいて前記クロック信号を分周して、所定周期の第2時刻信号を生成し、前記第2時刻信号に基づき前記第2時刻情報を生成し、
前記第1時刻情報及び前記第2時刻情報を生成するステップでは、
前記基準信号の受信タイミングに対応するタイミングで前記クロック信号の積算を開始して、前記クロック信号を積算したカウントアップ信号を生成し、
前記カウントアップ信号の信号強度が閾値以上となったら、前記カウントアップ信号の信号強度をリセットして積算を再開し、
次の前記基準信号を受信したら、前記カウントアップ信号の信号強度を強制的にリセットして、前記クロック信号の積算を再開し、
前記カウントアップ信号に基づき、前記第1時刻信号及び前記第2時刻信号を生成する、
プログラム。 A program that causes a computer to execute a communication method using a transmitter and a receiver that receives packets from the transmitter,
causing the transmitter to output a clock signal having a predetermined period;
a step of causing the transmitter to receive a reference signal serving as a time reference from a reference signal transmitter;
generating first time information indicating a time at the transmitter based on the clock signal and the reference signal;
transmitting a packet including the first time information to the receiver;
causing the receiver to transmit a clock signal with a predetermined period;
causing the receiver to receive the reference signal from the reference signal transmitter;
generating second time information indicating a time at the receiver based on the clock signal and the reference signal;
causing the receiver to receive the packet from the transmitter;
calculating a delay time based on the first time information and the second time information included in the packet;
The computer executes the following .
In the step of generating the first time information, the clock signal is divided based on the reference signal of the transmitter to generate a first time signal having a predetermined period, and the first time information is generated based on the first time signal;
In the step of generating the second time information, the clock signal is divided based on the reference signal on the receiver side to generate a second time signal having a predetermined period, and the second time information is generated based on the second time signal;
In the step of generating the first time information and the second time information,
starting integration of the clock signal at a timing corresponding to a timing of receiving the reference signal, and generating a count-up signal by integrating the clock signal;
When the signal strength of the count-up signal becomes equal to or greater than a threshold value, the signal strength of the count-up signal is reset and integration is resumed;
When the next reference signal is received, the signal strength of the count-up signal is forcibly reset to restart the integration of the clock signal;
generating the first time signal and the second time signal based on the count-up signal;
program.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2022011831A JP7737915B2 (en) | 2022-01-28 | 2022-01-28 | Communication system, communication method and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2022011831A JP7737915B2 (en) | 2022-01-28 | 2022-01-28 | Communication system, communication method and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2023110410A JP2023110410A (en) | 2023-08-09 |
| JP7737915B2 true JP7737915B2 (en) | 2025-09-11 |
Family
ID=87546583
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2022011831A Active JP7737915B2 (en) | 2022-01-28 | 2022-01-28 | Communication system, communication method and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7737915B2 (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000059325A (en) | 1998-08-12 | 2000-02-25 | Jisedai Digital Television Hoso System Kenkyusho:Kk | Delay time measuring device |
| JP2001501788A (en) | 1996-09-16 | 2001-02-06 | テレフオンアクチーボラゲツト エル エム エリクソン(パブル) | Method and apparatus for synchronizing time stamps |
| JP2004007317A (en) | 2002-06-03 | 2004-01-08 | Matsushita Electric Ind Co Ltd | Private branch exchange and private branch exchange server |
| JP2007158425A (en) | 2005-11-30 | 2007-06-21 | Nippon Telegr & Teleph Corp <Ntt> | Time synchronization method, time client, time server, application device, and time synchronization system |
| JP2012009960A (en) | 2010-06-22 | 2012-01-12 | Anritsu Corp | Delay measuring system and delay measuring method |
| JP2015119257A (en) | 2013-12-17 | 2015-06-25 | 株式会社日立製作所 | Time synchronization system, slave device, and time synchronization method |
-
2022
- 2022-01-28 JP JP2022011831A patent/JP7737915B2/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001501788A (en) | 1996-09-16 | 2001-02-06 | テレフオンアクチーボラゲツト エル エム エリクソン(パブル) | Method and apparatus for synchronizing time stamps |
| JP2000059325A (en) | 1998-08-12 | 2000-02-25 | Jisedai Digital Television Hoso System Kenkyusho:Kk | Delay time measuring device |
| JP2004007317A (en) | 2002-06-03 | 2004-01-08 | Matsushita Electric Ind Co Ltd | Private branch exchange and private branch exchange server |
| JP2007158425A (en) | 2005-11-30 | 2007-06-21 | Nippon Telegr & Teleph Corp <Ntt> | Time synchronization method, time client, time server, application device, and time synchronization system |
| JP2012009960A (en) | 2010-06-22 | 2012-01-12 | Anritsu Corp | Delay measuring system and delay measuring method |
| JP2015119257A (en) | 2013-12-17 | 2015-06-25 | 株式会社日立製作所 | Time synchronization system, slave device, and time synchronization method |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2023110410A (en) | 2023-08-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9331838B2 (en) | Method for synchronizing clocks in nodes of a vehicle network and node designed to perform the method | |
| EP1427121B1 (en) | Radio access network, radio communication method, synchronous server and node | |
| KR102278867B1 (en) | Method of synchronising clocks of network devices | |
| US11303376B2 (en) | Information processing apparatus and time synchronization method | |
| US20170195980A1 (en) | Synchronizing clocks in a network | |
| KR20060090757A (en) | Frame Clock Synchronization Method | |
| US11050548B2 (en) | Image transmission system, imaging terminal, display terminal, adjustment method, adjustment assistance method, and non-transitory computer-readable recording medium storing program | |
| JP4869055B2 (en) | Synchronous multiplexing with subframes | |
| CN113645683B (en) | Crystal oscillator adaptive clock synchronization method and system | |
| JP2007529163A (en) | Network node | |
| US11277253B2 (en) | Time synchronization system, master device, slave device, and program | |
| US11689347B2 (en) | Communication apparatus, communication system, communication method, and computer readable medium | |
| US20210004043A1 (en) | Multichip Timing Synchronization Circuits and Methods | |
| JP7737915B2 (en) | Communication system, communication method and program | |
| US20240298059A1 (en) | Method of synchronizing playback of digital content between plurality of connected devices and device using the same | |
| JP4346557B2 (en) | Timing detection device, display device, timing detection program, and computer-readable recording medium recording timing detection program | |
| EP2458756A2 (en) | Node system and supervisory node | |
| JP2013168884A (en) | Time synchronization system, time transmission apparatus, time reception apparatus, time synchronization method and program | |
| EP3814868B1 (en) | Precision timing between systems | |
| US10931434B2 (en) | Relay apparatus, communication system, and failure detection method | |
| JP7644393B2 (en) | Time synchronization device, time synchronization method, and program | |
| JP7610168B2 (en) | Time synchronization device, time synchronization method, and program | |
| JP7439474B2 (en) | Programmable controller systems and modules | |
| JP2004078874A (en) | Method and device for adjusting time of distributed system | |
| JP2024011842A (en) | Information communication system and information communication device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20240930 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20250415 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20250507 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20250707 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20250805 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20250901 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7737915 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |