JP2012122732A - Time correcting system, time transmitting device, time receiving device and time correcting method - Google Patents

Time correcting system, time transmitting device, time receiving device and time correcting method Download PDF

Info

Publication number
JP2012122732A
JP2012122732A JP2010271039A JP2010271039A JP2012122732A JP 2012122732 A JP2012122732 A JP 2012122732A JP 2010271039 A JP2010271039 A JP 2010271039A JP 2010271039 A JP2010271039 A JP 2010271039A JP 2012122732 A JP2012122732 A JP 2012122732A
Authority
JP
Japan
Prior art keywords
time
data
transmission
correction
transmission data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2010271039A
Other languages
Japanese (ja)
Inventor
Makoto Nakagawa
誠 中川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2010271039A priority Critical patent/JP2012122732A/en
Publication of JP2012122732A publication Critical patent/JP2012122732A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Electric Clocks (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a time correcting system capable of transmitting and receiving time data from one device to another device between the devices for transmitting/receiving communication data for every prescribed time interval and accurately correcting the time of the other device, as well as a time transmitting device and a time receiving device for the system, and a time correcting method.SOLUTION: A time transmitting device creates transmission data including time correction data that is formed by adding, to current time data, a processing time Ta required when reading the current time data and creating the transmission data, and a waiting time Tb until a next data transmission, and transmits the transmission data at transmission timing for every prescribed time interval. A time receiving device calculates a correction time formed by adding a processing time Tc required from receiving the transmission data until correcting timekeeping data, to a time indicated by the time correcting data, and corrects the timekeeping data to the correction time.

Description

この発明は、所定の時間間隔で互いに通信を行う時刻送信装置、時刻受信装置、これらからなる時刻修正システムならびに時刻修正方法に関する。   The present invention relates to a time transmission device, a time reception device, a time correction system, and a time correction method that communicate with each other at predetermined time intervals.

互いにデータ通信を行う装置間で、一方の装置から他方の装置へ現在時刻データを送信して他方の装置の時刻修正を行うシステムがある(例えば、特許文献1を参照)。   There is a system that corrects the time of the other device by transmitting current time data from one device to the other device between devices that perform data communication with each other (see, for example, Patent Document 1).

特開2010−019566号公報JP 2010-019566 A

データ通信の方式には、通信要求に応じて即時に通信データの送受信が行われる方式だけでなく、所定の時間間隔ごとに通信データの送受信を行う方式などがある。後者の方式では、一方の装置から他方の装置へ現在時刻データを送信して時刻修正を行う場合に、なんら工夫がないと、時刻修正の精度がデータ通信の時間間隔の大きさに依存してしまうという課題がある。   Data communication methods include not only a method in which communication data is immediately transmitted / received in response to a communication request, but also a method in which communication data is transmitted / received at predetermined time intervals. In the latter method, when the current time data is transmitted from one device to the other device to correct the time, the accuracy of the time correction depends on the size of the time interval of data communication unless there is any ingenuity. There is a problem of end.

この発明の目的は、所定の時間間隔ごとに通信データの送受信を行う装置間で時刻データを送受信して一方の装置の時刻を正確に修正することのできる時刻修正システム、その時刻送信装置および時刻受信装置、ならびに、時刻修正方法を提供することにある。   An object of the present invention is to provide a time adjustment system capable of accurately correcting the time of one device by transmitting / receiving time data between devices performing transmission / reception of communication data at predetermined time intervals, the time transmitting device, and the time To provide a receiving device and a time correction method.

上記目的を達成するため、請求項1記載の発明は、
所定の時間間隔で互いに通信を行う時刻送信装置および時刻受信装置を備えた時刻修正システムにおいて、
前記時刻送信装置は、
現在時刻データを記憶する現在時刻データ記憶手段と、
前記現在時刻データに少なくとも次のデータ送信までの待ち時間を付加した時刻修正用データを含んだ送信データを作成するデータ作成手段と、
前記データ作成手段により作成された送信データを記憶する送信データ記憶手段と、
前記送信データ記憶手段に記憶された送信データを前記所定の時間間隔ごとの送信タイミングで送信する送信手段と、
を備え、
前記時刻受信装置は、
現在時刻を計数する計時手段と、
前記時刻修正用データを含んだ送信データを受信した場合に当該時刻修正用データの時刻に基づき前記計時手段の計時データを修正する時刻修正手段と、
を備えていることを特徴としている。
In order to achieve the above object, the invention according to claim 1
In a time correction system including a time transmission device and a time reception device that communicate with each other at a predetermined time interval,
The time transmitter is
Current time data storage means for storing current time data;
Data creation means for creating transmission data including time correction data in which at least a waiting time until the next data transmission is added to the current time data;
Transmission data storage means for storing transmission data created by the data creation means;
Transmission means for transmitting the transmission data stored in the transmission data storage means at a transmission timing for each predetermined time interval;
With
The time receiving device is:
A time counting means for counting the current time;
Time correction means for correcting the time measurement data of the time measurement means based on the time of the time correction data when the transmission data including the time correction data is received;
It is characterized by having.

請求項2記載の発明は、請求項1記載の時刻修正システムにおいて、
前記送信データ作成手段は、
さらに、前記現在時刻データを前記現在時刻データ記憶手段から読み出して前記送信データを作成する際に掛かる処理時間を付加した前記時刻修正用データを含んだ送信データを作成することを特徴としている。
The invention according to claim 2 is the time correction system according to claim 1,
The transmission data creation means includes
Further, the present invention is characterized in that transmission data including the time correction data to which processing time required for generating the transmission data by reading the current time data from the current time data storage means is created.

請求項3記載の発明は、請求項1又は2に記載の時刻修正システムにおいて、
前記時刻受信装置には、
前記時刻修正用データを含んだ送信データを受信した場合に、前記時刻修正用データにより示される時刻に、前記送信データを受信してから前記計時手段の計時データを修正するまでに掛かる処理時間を加算して修正時刻を算出する時刻演算手段を備え、
前記時刻修正手段は、
前記時刻演算手段により算出された修正時刻で前記計時手段を修正することを特徴としている。
The invention according to claim 3 is the time correction system according to claim 1 or 2,
In the time receiving device,
When the transmission data including the time correction data is received, the processing time taken from the reception of the transmission data to the correction of the time data of the time measuring means at the time indicated by the time correction data is Time calculating means for calculating the correction time by adding,
The time correction means includes
The time measuring means is corrected at the correction time calculated by the time calculating means.

請求項4記載の発明は、
所定の時間間隔で時刻受信装置と通信を行う時刻送信装置において、
現在時刻データを記憶する現在時刻データ記憶手段と、
前記現在時刻データに、当該現在時刻データを前記現在時刻データ記憶手段から読み出して送信データを作成する際に掛かる処理時間と、次のデータ送信までの待ち時間とを付加した時刻修正用データを含んだ前記送信データを作成するデータ作成手段と、
前記データ作成手段により作成された送信データを記憶する送信データ記憶手段と、
前記送信データ記憶手段に記憶された送信データを前記所定の時間間隔ごとの送信タイミングで送信する送信手段と、
を備えたことを特徴としている。
The invention according to claim 4
In a time transmitter that communicates with a time receiver at a predetermined time interval,
Current time data storage means for storing current time data;
Time correction data in which the current time data is added with a processing time taken when the current time data is read from the current time data storage means to create transmission data and a waiting time until the next data transmission is added. A data creation means for creating the transmission data;
Transmission data storage means for storing transmission data created by the data creation means;
Transmission means for transmitting the transmission data stored in the transmission data storage means at a transmission timing for each predetermined time interval;
It is characterized by having.

請求項5記載の発明は、
所定の時間間隔で時刻送信装置と通信を行う時刻受信装置において、
現在時刻を計数する計時手段と、
前記時刻修正用データを含んだ送信データを受信した場合に、前記時刻修正用データにより示される時刻に、前記送信データを受信してから前記計時手段の計時データを修正するまでに掛かる処理時間を加算して修正時刻を算出する時刻演算手段と、
前記時刻演算手段により算出された修正時刻に前記計時手段を修正する時刻修正手段と、
を備えていることを特徴としている。
The invention according to claim 5
In a time receiving device that communicates with a time transmitting device at a predetermined time interval,
A time counting means for counting the current time;
When the transmission data including the time correction data is received, the processing time taken from the reception of the transmission data to the correction of the time data of the time measuring means at the time indicated by the time correction data is A time calculation means for calculating a correction time by adding, and
Time correcting means for correcting the time measuring means at the correction time calculated by the time calculating means;
It is characterized by having.

請求項6記載の発明は、
所定の時間間隔で互いに通信を行う時刻送信装置と時刻受信装置とを用いて、前記時刻送信装置の現在時刻データに基づき前記時刻受信装置の計時データを修正する時刻修正方法であって、
前記時刻送信装置が、
現在時刻データに、当該現在時刻データを読み出して送信データを作成する際に掛かる処理時間と、次のデータ送信までの待ち時間とを付加した時刻修正用データを含んだ送信データを作成するとともに、
この送信データを前記所定の時間間隔ごとの送信タイミングで送信し、
前記時刻受信装置が、
前記時刻修正用データを含んだ送信データを受信した場合に、前記時刻修正用データにより示される時刻に、前記送信データを受信してから前記計時データを修正するまでに掛かる処理時間を加算して修正時刻を算出するとともに、
前記計時データを前記修正時刻に修正することを特徴としている。
The invention described in claim 6
A time correction method for correcting time measurement data of the time reception device based on current time data of the time transmission device using a time transmission device and a time reception device that communicate with each other at a predetermined time interval,
The time transmitting device is
While creating the transmission data including the time correction data to which the processing time required for reading the current time data and creating the transmission data and the waiting time until the next data transmission are added to the current time data,
This transmission data is transmitted at the transmission timing for each predetermined time interval,
The time receiving device is
When the transmission data including the time correction data is received, the processing time required from the reception of the transmission data to the correction of the time measurement data is added to the time indicated by the time correction data. While calculating the correction time,
The clock data is corrected at the correction time.

本発明に従うと、所定の時間間隔ごとに通信を行う時刻送信装置および時刻受信装置において、時刻送信装置の現在時刻データに基づいて時刻受信装置の時刻を正確に修正できるという効果がある。   According to the present invention, in the time transmitting device and the time receiving device that perform communication at predetermined time intervals, there is an effect that the time of the time receiving device can be accurately corrected based on the current time data of the time transmitting device.

本発明の実施形態の時刻修正システムの要部を示すブロック図である。It is a block diagram which shows the principal part of the time correction system of embodiment of this invention. マスタ装置のCPUにより実行される時刻送信処理の制御手順を示すフローチャートである。It is a flowchart which shows the control procedure of the time transmission process performed by CPU of a master apparatus. スレーブ装置のCPUにより実行される時刻受信処理の制御手順を示すフローチャートである。It is a flowchart which shows the control procedure of the time reception process performed by CPU of a slave apparatus. マスタ装置の時刻送信処理とスレーブ装置の時刻受信処理の流れを示すシーケンス図である。It is a sequence diagram which shows the flow of the time transmission process of a master apparatus, and the time reception process of a slave apparatus.

以下、本発明の実施の形態を図面に基づいて説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本発明の実施形態の時刻修正システムの要部を示すブロック図である。   FIG. 1 is a block diagram showing a main part of a time correction system according to an embodiment of the present invention.

この実施形態の時刻修正システムは、時刻送信装置としてのマスタ装置(例えば携帯電話機)100と、時刻受信装置としてのスレーブ装置(例えば腕時計)200とから構成され、マスタ装置100の内部時刻に基づいて無線通信によりスレーブ装置200の時刻修正を行うものである。   The time adjustment system of this embodiment includes a master device (for example, a mobile phone) 100 as a time transmitting device and a slave device (for example, a wristwatch) 200 as a time receiving device, and is based on the internal time of the master device 100. The time of the slave device 200 is corrected by wireless communication.

図1に示すように、マスタ装置100には、装置の制御処理を行う制御処理部(例えばマイクロコンピュータ)110と、無線通信処理を行う通信処理部(例えば無線IC)120とが設けられている。制御処理部110には、演算処理を行うCPU(中央演算処理装置)111と、CPU111が実行する制御プログラムや制御データを格納したROM(Read Only Memory)112と、CPU111に作業用のメモリ空間を提供するRAM113と、内部で現在時刻の計数を行う時計(現在時刻データ記憶手段)114と、無線通信用のデータの入出力を行うシリアルインターフェース115等が設けられている。   As shown in FIG. 1, the master device 100 includes a control processing unit (for example, a microcomputer) 110 that performs device control processing and a communication processing unit (for example, a wireless IC) 120 that performs wireless communication processing. . The control processing unit 110 includes a CPU (Central Processing Unit) 111 that performs arithmetic processing, a ROM (Read Only Memory) 112 that stores control programs and control data executed by the CPU 111, and a working memory space for the CPU 111. A RAM 113 to be provided, a clock (current time data storage means) 114 that counts the current time inside, a serial interface 115 that inputs and outputs data for wireless communication, and the like are provided.

マスタ装置100の通信処理部120は、例えばブルートゥース(Bluetooth:登録商標)の通信規格に準じて通信処理を行うモジュールである。通信処理部120には、アンテナANTを介して電波の送受信を行うRF部121と、ブルートゥース通信のプロトコルに応じたデータ処理および送受信のタイミング制御を行うリンクコントローラ122と、送信データが一時的に記憶される送信バッファ(送信データ記憶手段)123と、受信データが一時的に記憶される受信バッファ124と、送受信するデータを入出力するシリアルインターフェース125等が設けられている。上記のRF部121とリンクコントローラ122等により送信手段が構成される。   The communication processing unit 120 of the master device 100 is a module that performs communication processing in accordance with, for example, a Bluetooth (registered trademark) communication standard. The communication processing unit 120 temporarily stores transmission data, an RF unit 121 that performs transmission / reception of radio waves via the antenna ANT, a link controller 122 that performs data processing and transmission / reception timing control according to a Bluetooth communication protocol, and the like. A transmission buffer (transmission data storage means) 123, a reception buffer 124 for temporarily storing reception data, a serial interface 125 for inputting / outputting data to be transmitted / received, and the like. The RF unit 121, the link controller 122, and the like constitute transmission means.

スレーブ装置200には、装置の制御処理を行う制御処理部(例えばマイクロコンピュータ)210と、無線通信処理を行う通信処理部(例えば無線IC)220とが設けられている。制御処理部210には、演算処理を行うCPU(中央演算処理装置)211と、CPU211が実行する制御プログラムや制御データを格納したROM(Read Only Memory)212と、CPU211に作業用のメモリ空間を提供するRAM213と、内部で現在時刻の計数を行う時計(計時手段)214と、無線通信用のデータの入出力を行うシリアルインターフェース215等が設けられている。   The slave device 200 is provided with a control processing unit (for example, a microcomputer) 210 that performs control processing of the device and a communication processing unit (for example, a wireless IC) 220 that performs wireless communication processing. The control processing unit 210 includes a CPU (Central Processing Unit) 211 that performs arithmetic processing, a ROM (Read Only Memory) 212 that stores control programs and control data executed by the CPU 211, and a working memory space for the CPU 211. A RAM 213 to be provided, a clock (counting means) 214 that internally counts the current time, a serial interface 215 that inputs and outputs data for wireless communication, and the like are provided.

スレーブ装置200の通信処理部220は、例えばブルートゥースの通信規格に準じて通信処理を行うモジュールである。通信処理部220には、アンテナANTを介して電波の送受信を行うRF部221と、ブルートゥース通信のプロトコルに応じたデータ処理および送受信のタイミング制御を行うリンクコントローラ222と、送信データが一時的に記憶される送信バッファ223と、受信データが一時的に記憶される受信バッファ224と、送受信するデータを入出力するシリアルインターフェース225等が設けられている。   The communication processing unit 220 of the slave device 200 is a module that performs communication processing in accordance with, for example, the Bluetooth communication standard. The communication processing unit 220 temporarily stores transmission data, an RF unit 221 that performs transmission / reception of radio waves via the antenna ANT, a link controller 222 that performs data processing and transmission / reception timing control according to a Bluetooth communication protocol, and the like. A transmission buffer 223, a reception buffer 224 for temporarily storing received data, a serial interface 225 for inputting / outputting data to be transmitted / received, and the like.

マスタ装置100とスレーブ装置200とは、通信処理部120,220の処理によって、例えばブルートゥース規格の一つの通信モードで互いに無線通信を行う。この通信モードは、通信リンクが確立した後、指定された時間間隔(例えば1.0秒)で電波の送受信を行ってデータ通信を行い、その他の期間には電波の送受信を停止させて、非常に低い動作電力を実現するものである。   The master device 100 and the slave device 200 perform wireless communication with each other in one communication mode of the Bluetooth standard, for example, by the processing of the communication processing units 120 and 220. In this communication mode, after a communication link is established, radio waves are transmitted and received at a specified time interval (for example, 1.0 second), and data communication is performed during other periods. In this way, low operating power is realized.

マスタ装置100(携帯電話機)は、図示しないもう一つの通信処理部によって、セルラー方式の無線基地局と無線通信を行って正確な時刻情報を取得したり、無線基地局を介して通信ネットワークと接続して正確な時刻情報を取得したりすることができる。そのため、頻繁に正確な時刻情報を取得して時計114の計時データを修正することで、マスタ装置100の時計114に比較的に正確な現在時刻を計数させることができる。   Master device 100 (mobile phone) performs wireless communication with a cellular radio base station by another communication processing unit (not shown) to acquire accurate time information, or connects to a communication network via the radio base station. And accurate time information can be acquired. For this reason, it is possible to cause the clock 114 of the master device 100 to count a relatively accurate current time by frequently acquiring accurate time information and correcting the time measurement data of the clock 114.

次に、上記構成のマスタ装置100とスレーブ装置200とによる時刻修正処理の動作について説明する。   Next, the operation of time correction processing by the master device 100 and the slave device 200 having the above-described configuration will be described.

時刻修正処理は、例えば、マスタ装置100およびスレーブ装置200の何れか一方で時刻修正の要求がなされ、一方から他方へ時刻修正処理の開始が無線通信により通知されることで両者において実行される。   The time adjustment process is executed in either of the master device 100 and the slave device 200 when a time correction request is made and the start of the time adjustment process is notified from one to the other by wireless communication.

時刻修正処理が開始されると、マスタ装置100ではCPU111によって時刻修正用データを送信する時刻送信処理が開始される一方、スレーブ装置200ではCPU211により時刻修正用データを受信する時刻受信処理が実行される。   When the time adjustment process is started, the master apparatus 100 starts the time transmission process for transmitting the time correction data by the CPU 111, while the slave apparatus 200 executes the time reception process for receiving the time correction data by the CPU 211. The

図2には、マスタ装置100のCPU111により実行される時刻送信処理のフローチャートを、図3には、スレーブ装置200のCPU211により実行される時刻受信処理のフローチャートを、図4には、マスタ装置100とスレーブ装置200とで実行される時刻修正処理の動作を表わしたシーケンス図を示す。図2の時刻送信処理のプログラムはマスタ装置100のROM112に格納され、図3の時刻受信処理のプログラムはスレーブ装置200のROM212に格納されている。   2 is a flowchart of time transmission processing executed by the CPU 111 of the master device 100, FIG. 3 is a flowchart of time reception processing executed by the CPU 211 of the slave device 200, and FIG. FIG. 4 is a sequence diagram showing the operation of time correction processing executed by the slave device 200. FIG. The time transmission processing program of FIG. 2 is stored in the ROM 112 of the master device 100, and the time reception processing program of FIG. 3 is stored in the ROM 212 of the slave device 200.

図2に示すように、マスタ装置100で時刻送信処理が開始されると、まず、CPU111は、時計114から時刻データを読み出して送信用のデータ形式へ変換する(ステップS1)。   As shown in FIG. 2, when the time transmission process is started in the master device 100, the CPU 111 first reads the time data from the clock 114 and converts it into a data format for transmission (step S1).

次いで、CPU111は、通信処理部120へ問い合わせを行って次の送信タイミングまでの待ち時間Tbを算出する(ステップS2)。通信処理部120では、指定された時間間隔(例えば1.0秒)ごとに電波の送受信を実行するべく、この時間間隔を計数しており、この計数データを参照することでCPU111は次の送信タイミングまでの待ち時間Tbを算出することができる。   Next, the CPU 111 makes an inquiry to the communication processing unit 120 and calculates a waiting time Tb until the next transmission timing (step S2). The communication processing unit 120 counts this time interval in order to execute transmission / reception of radio waves at a specified time interval (for example, 1.0 second), and the CPU 111 refers to this count data to perform the next transmission. The waiting time Tb until the timing can be calculated.

さらに、CPU111は、ステップS1で読み出した時刻データに、ステップS2で算出された待ち時間Tbと、時刻データの読み出しから待ち時間Tbの算出までのデータ作成に掛かる処理時間Taとを付加したものを時刻修正用データとして、通信処理部120の送信バッファ123にセットする(ステップS3)。ここで、データ作成に掛かる処理時間Taは、ステップS1とステップS2の処理に費やされる固定時間であり、予め対応する値が設定されている。上記ステップS1〜S3の処理によりデータ作成手段が構成される。   Furthermore, the CPU 111 adds the waiting time Tb calculated in step S2 to the time data read in step S1 and the processing time Ta required for data creation from the reading of the time data to the calculation of the waiting time Tb. The time correction data is set in the transmission buffer 123 of the communication processing unit 120 (step S3). Here, the processing time Ta required for data creation is a fixed time spent in the processing of step S1 and step S2, and a corresponding value is set in advance. A data creation means is constituted by the processing of steps S1 to S3.

そして、上記の時刻修正用データを送信バッファ123にセットしたら、マスタ装置100のCPU111はこの時刻送信処理を終了する。そして、通信処理部120の処理により、次の送信タイミングで時刻修正用データがスレーブ装置200へ送信される。   When the time correction data is set in the transmission buffer 123, the CPU 111 of the master device 100 ends the time transmission process. Then, by the processing of the communication processing unit 120, the time correction data is transmitted to the slave device 200 at the next transmission timing.

図4のシーケンス図の例では、マスタ装置100の制御処理J1において上記の時刻送信処理が実行されている。具体的には、先ず、時計114から時刻データ“12:00 00.1”が読み出され、次いで、待ち時間Tb“0.8秒”が算出され、時刻データ“12:00 00.1”に待ち時間Tb“0.8秒”および処理時間Ta“0.1秒”が付加された時刻修正用データを含んだ送信データが作成されている。そして、この送信データが送信バッファ123へ送られている。   In the example of the sequence diagram of FIG. 4, the above time transmission process is executed in the control process J <b> 1 of the master device 100. Specifically, first, the time data “12:00 00.1” is read from the clock 114, then the waiting time Tb “0.8 seconds” is calculated, and the time data “12:00 00.1” is calculated. The transmission data including the time correction data to which the waiting time Tb “0.8 seconds” and the processing time Ta “0.1 seconds” are added is created. This transmission data is sent to the transmission buffer 123.

さらに、マスタ装置100の通信処理部120では、電波の送受信処理J2が1.0秒間隔で行われており、時刻修正用データを含んだ送信データが送信バッファ123へ送られた次の送受信処理J2において、この送信データがスレーブ装置200へ送信されている。   Furthermore, in the communication processing unit 120 of the master device 100, radio wave transmission / reception processing J2 is performed at 1.0 second intervals, and the next transmission / reception processing in which transmission data including time correction data is sent to the transmission buffer 123 is performed. In J2, the transmission data is transmitted to the slave device 200.

図3に示すように、スレーブ装置200で時刻受信処理が開始されると、まず、スレーブ装置200のCPU211は受信データが送られてくるのを待機して、時刻修正用データを含んだ受信データが有れば、これを受け取る(ステップS11)。   As shown in FIG. 3, when the time reception process is started in the slave device 200, first, the CPU 211 of the slave device 200 waits for the reception data to be sent, and then receives the reception data including the time correction data. If there is, it is received (step S11).

次に、CPU211は、受信データに含まれる時刻修正用データによって示される時刻(時刻データ+処理時間Ta+待ち時間Tb)に、スレーブ装置200側で受信から時計214の修正までに掛かる処理時間Tcを付加してなる修正時刻を算出する(ステップS12:時刻演算手段)。この処理時間Tcは固定時間であり、予め対応する値が設定されている。   Next, at the time (time data + processing time Ta + waiting time Tb) indicated by the time correction data included in the received data, the CPU 211 sets the processing time Tc required from the reception to the correction of the clock 214 on the slave device 200 side. The added correction time is calculated (step S12: time calculation means). This processing time Tc is a fixed time, and a corresponding value is set in advance.

修正時刻が算出されたら、CPU211は時計214の計時データをこの修正時刻の値に書き換えて修正する(ステップS13:時刻修正手段)。そして、この時刻受信処理を終了する。   When the correction time is calculated, the CPU 211 rewrites and corrects the time data of the clock 214 with the value of the correction time (step S13: time correction means). Then, this time reception process is terminated.

図4のシーケンス図の例では、スレーブ装置200の制御処理J3において上記の時刻受信処理が実行されている。具体的には、時刻修正用データを受信した後、この時刻に処理時間Tcを付加した修正時刻“12:00 01.0+0.2”が算出されて、この修正時刻で時計214の計時データが修正されている。修正時刻は、修正タイミングにおけるマスタ装置100の時計114に示される現在時刻の値と一致している。   In the example of the sequence diagram of FIG. 4, the above time reception process is executed in the control process J3 of the slave device 200. Specifically, after receiving the time correction data, a correction time “12:00 01.0 + 0.2” is calculated by adding the processing time Tc to this time, and the time measurement data of the clock 214 is calculated at this correction time. It has been corrected. The correction time matches the value of the current time indicated on the clock 114 of the master device 100 at the correction timing.

つまり、上記のような時刻修正処理により、スレーブ装置200の時計214の計時データをマスタ装置100の時計114の現在時刻の値に合わせる修正処理が遂行される。   That is, by the time correction process as described above, the correction process for adjusting the time measurement data of the clock 214 of the slave device 200 to the current time value of the clock 114 of the master device 100 is performed.

以上のように、この実施形態の時刻修正システムによれば、データ通信を所定の時間間隔で行うマスタ装置100とスレーブ装置200とにおいて、このデータ通信によりマスタ装置100からスレーブ装置200へ時刻修正用データを送って、スレーブ装置200の時計214を正確に修正することができる。すなわち、マスタ装置100では、時計114から読み出した時刻データに、次のデータ送信までの待ち時間Tbを付加して時刻修正用データが作成されるので、この時刻修正用データの時刻はデータ通信の時間間隔に依存しないものとなる。それゆえ、データ通信の時間間隔に依存しない正確な時刻修正が可能となる。   As described above, according to the time adjustment system of this embodiment, the master device 100 and the slave device 200 that perform data communication at predetermined time intervals are used for time adjustment from the master device 100 to the slave device 200 by this data communication. Data can be sent to correct the clock 214 of the slave device 200 accurately. That is, in the master device 100, the time correction data is created by adding the waiting time Tb until the next data transmission to the time data read from the clock 114, so the time of the time correction data is the data communication time. It does not depend on the time interval. Therefore, accurate time correction independent of the time interval of data communication is possible.

さらに、この実施形態の時刻修正システムによれば、マスタ装置100において、時刻修正用データに、時刻データを時計114から読み出して時刻修正用データを作成する際に掛かる処理時間Taが付加されるようになっているので、この処理時間Taによる修正時刻の遅れも無くすことができる。   Furthermore, according to the time adjustment system of this embodiment, in the master device 100, the processing time Ta required to read the time data from the clock 114 and create the time adjustment data is added to the time adjustment data. Therefore, the delay of the correction time due to the processing time Ta can be eliminated.

なお、この処理時間Taを、具体的に、どの処理タイミングからどの処理タイミングまでの長さとするかは、上述した待ち時間Tbの始端タイミングがどの処理タイミングに設定されるかによって適宜決定すれば良い。例えば、待ち時間Tbが次のデータ送信までの時間を通信処理部120へ問い合わせた処理タイミングから、次のデータ送信までの時間を表わすものであれば、次のように処理時間Taの長さを決定すれば良い。すなわち、処理時間Taを、時刻データを時計114から読み出す処理タイミングから、次のデータ送信までの時間を通信処理部120へ問い合わせる処理タイミングまでの時間とすれば良い。   Note that, specifically, the length from which processing timing to which processing timing is set as the processing time Ta may be appropriately determined depending on which processing timing is set as the start timing of the above-described waiting time Tb. . For example, if the waiting time Tb represents the time from the processing timing when the communication processing unit 120 is inquired about the time until the next data transmission to the next data transmission, the length of the processing time Ta is set as follows. Just decide. That is, the processing time Ta may be the time from the processing timing for reading time data from the clock 114 to the processing timing for inquiring the communication processing unit 120 for the time until the next data transmission.

また、待ち時間Tbが、この待ち時間Tbが算出される処理タイミングから次のデータ送信までの時間を表わすものであれば、処理時間Taは、時刻データを時計114から読み出す処理タイミングから、待ち時間Tbが算出される処理タイミングまでの時間とすれば良い。   Further, if the waiting time Tb represents the time from the processing timing at which the waiting time Tb is calculated to the next data transmission, the processing time Ta is determined from the processing timing at which the time data is read from the clock 114. The time until the processing timing at which Tb is calculated may be used.

また、この実施形態の時刻修正システムによれば、スレーブ装置200において、時刻修正用データを受信した後、この受信から時計214の計時データを修正するまでの処理時間Tcを加算した修正時刻を算出し、この修正時刻に時計214の計時データを修正するようになっている。したがって、この処理時間Tcによる修正時刻の遅れも排除して、正確な時刻修正を行うことができる。   Further, according to the time adjustment system of this embodiment, the slave device 200 calculates the correction time by adding the processing time Tc from the reception of the time correction data to the correction of the time data of the clock 214 after the reception. The clock data of the clock 214 is corrected at the correction time. Therefore, it is possible to correct the time accurately by eliminating the delay of the correction time due to the processing time Tc.

なお、本発明は、上記実施の形態に限られるものではなく、様々な変更が可能である。例えば、上記実施形態では、読み出した時刻データに、次のデータ送信までの待ち時間Tbと、所定の処理時間Taとを付加して時刻修正用データとしているが、処理時間Taが無視できる程度に小さければ、この処理時間Taの付加を省略するようにしても良い。また、スレーブ装置200において、時刻修正用データの受信から時刻修正までの処理時間Tcを付加して時刻修正するようにしているが、処理時間Tcが無視できる程度に小さければ、この処理時間Tcの付加を省略して時刻修正するようにしても良い。   The present invention is not limited to the above-described embodiment, and various modifications can be made. For example, in the above embodiment, the time correction data is added to the read time data by adding the waiting time Tb until the next data transmission and a predetermined processing time Ta, but the processing time Ta can be ignored. If it is small, the addition of the processing time Ta may be omitted. In the slave device 200, the time is corrected by adding the processing time Tc from the reception of the time correction data to the time correction. If the processing time Tc is small enough to be ignored, the processing time Tc The time may be corrected by omitting the addition.

また、上記実施の形態では、時刻送信装置を携帯電話機であるマスタ装置とし、時刻受信装置を腕時計であるスレーブ装置とした例を示したが、例えば、時刻送信装置を、標準電波を受信してタイムコードにより常に正確な時刻を保持できる電波時計とし、時刻受信装置を標準電波の受信機能を省いた腕時計とするなど、本発明の時刻修正システムを適用する具体的な装置は適宜変更可能である。また、一台の時刻送信装置から複数台の時刻受信装置へ時刻修正用データを含んだ送信データを一緒に送信し、複数台の時刻受信装置の時刻を同時に修正するようにしても良い。   In the above embodiment, the time transmission device is a master device that is a mobile phone and the time reception device is a slave device that is a wristwatch. For example, the time transmission device receives a standard radio wave. The specific device to which the time correction system of the present invention is applied can be changed as appropriate, such as a radio timepiece that can always hold accurate time by time code, and a time receiving device that is a wristwatch that does not have a standard radio wave receiving function. . Further, transmission data including time correction data may be transmitted together from one time transmitting device to a plurality of time receiving devices, and the time of the plurality of time receiving devices may be corrected simultaneously.

また、上記実施の形態では、時刻送信装置と時刻受信装置の通信手段としてブルートゥース通信を例示したが、所定の時間間隔でデータの送受信を行う方式のものであれば、種々の通信方式が採用されても良い。その他、実施の形態で具体的に示した細部構成および細部方法は発明の趣旨を逸脱しない範囲で適宜変更可能である。   In the above embodiment, the Bluetooth communication is exemplified as the communication means of the time transmitting device and the time receiving device. However, various communication methods may be adopted as long as the method transmits and receives data at a predetermined time interval. May be. In addition, the detailed configuration and the detailed method specifically shown in the embodiments can be appropriately changed without departing from the spirit of the invention.

100 マスタ装置
110 制御処理部
111 CPU
112 ROM
113 RAM
114 時計
120 通信処理部
121 RF部
122 リンクコントローラ
123 送信バッファ
124 受信バッファ
200 スレーブ装置
210 制御処理部
211 CPU
212 ROM
213 RAM
214 時計
220 通信処理部
221 RF部
222 リンクコントローラ
223 送信バッファ
224 受信バッファ
100 Master Device 110 Control Processing Unit 111 CPU
112 ROM
113 RAM
114 Clock 120 Communication processing unit 121 RF unit 122 Link controller 123 Transmission buffer 124 Reception buffer 200 Slave device 210 Control processing unit 211 CPU
212 ROM
213 RAM
214 Clock 220 Communication processing unit 221 RF unit 222 Link controller 223 Transmission buffer 224 Reception buffer

Claims (6)

所定の時間間隔で互いに通信を行う時刻送信装置および時刻受信装置を備えた時刻修正システムにおいて、
前記時刻送信装置は、
現在時刻データを記憶する現在時刻データ記憶手段と、
前記現在時刻データに少なくとも次のデータ送信までの待ち時間を付加した時刻修正用データを含んだ送信データを作成するデータ作成手段と、
前記データ作成手段により作成された送信データを記憶する送信データ記憶手段と、
前記送信データ記憶手段に記憶された送信データを前記所定の時間間隔ごとの送信タイミングで送信する送信手段と、
を備え、
前記時刻受信装置は、
現在時刻を計数する計時手段と、
前記時刻修正用データを含んだ送信データを受信した場合に当該時刻修正用データの時刻に基づき前記計時手段の計時データを修正する時刻修正手段と、
を備えていることを特徴とする時刻修正システム。
In a time correction system including a time transmission device and a time reception device that communicate with each other at a predetermined time interval,
The time transmitter is
Current time data storage means for storing current time data;
Data creation means for creating transmission data including time correction data in which at least a waiting time until the next data transmission is added to the current time data;
Transmission data storage means for storing transmission data created by the data creation means;
Transmission means for transmitting the transmission data stored in the transmission data storage means at a transmission timing for each predetermined time interval;
With
The time receiving device is:
A time counting means for counting the current time;
Time correction means for correcting the time measurement data of the time measurement means based on the time of the time correction data when the transmission data including the time correction data is received;
A time correction system characterized by comprising:
前記送信データ作成手段は、
さらに、前記現在時刻データを前記現在時刻データ記憶手段から読み出して前記送信データを作成する際に掛かる処理時間を付加した前記時刻修正用データを含んだ送信データを作成することを特徴とする請求項1記載の時刻修正システム。
The transmission data creation means includes
The transmission data including the time correction data to which processing time required for generating the transmission data by reading the current time data from the current time data storage means is added. The time correction system according to 1.
前記時刻受信装置には、
前記時刻修正用データを含んだ送信データを受信した場合に、前記時刻修正用データにより示される時刻に、前記送信データを受信してから前記計時手段の計時データを修正するまでに掛かる処理時間を加算して修正時刻を算出する時刻演算手段を備え、
前記時刻修正手段は、
前記時刻演算手段により算出された修正時刻で前記計時手段を修正することを特徴とする請求項1又は2に記載の時刻修正システム。
In the time receiving device,
When the transmission data including the time correction data is received, the processing time taken from the reception of the transmission data to the correction of the time data of the time measuring means at the time indicated by the time correction data is Time calculating means for calculating the correction time by adding,
The time correction means includes
The time adjustment system according to claim 1 or 2, wherein the time measuring means is corrected at the correction time calculated by the time calculating means.
所定の時間間隔で時刻受信装置と通信を行う時刻送信装置において、
現在時刻データを記憶する現在時刻データ記憶手段と、
前記現在時刻データに、当該現在時刻データを前記現在時刻データ記憶手段から読み出して送信データを作成する際に掛かる処理時間と、次のデータ送信までの待ち時間とを付加した時刻修正用データを含んだ前記送信データを作成するデータ作成手段と、
前記データ作成手段により作成された送信データを記憶する送信データ記憶手段と、
前記送信データ記憶手段に記憶された送信データを前記所定の時間間隔ごとの送信タイミングで送信する送信手段と、
を備えたことを特徴とする時刻送信装置。
In a time transmitter that communicates with a time receiver at a predetermined time interval,
Current time data storage means for storing current time data;
Time correction data in which the current time data is added with a processing time taken when the current time data is read from the current time data storage means to create transmission data and a waiting time until the next data transmission is added. A data creation means for creating the transmission data;
Transmission data storage means for storing transmission data created by the data creation means;
Transmission means for transmitting the transmission data stored in the transmission data storage means at a transmission timing for each predetermined time interval;
A time transmitting apparatus comprising:
所定の時間間隔で時刻送信装置と通信を行う時刻受信装置において、
現在時刻を計数する計時手段と、
前記時刻修正用データを含んだ送信データを受信した場合に、前記時刻修正用データにより示される時刻に、前記送信データを受信してから前記計時手段の計時データを修正するまでに掛かる処理時間を加算して修正時刻を算出する時刻演算手段と、
前記時刻演算手段により算出された修正時刻に前記計時手段を修正する時刻修正手段と、
を備えていることを特徴とする時刻受信装置。
In a time receiving device that communicates with a time transmitting device at a predetermined time interval,
A time counting means for counting the current time;
When the transmission data including the time correction data is received, the processing time taken from the reception of the transmission data to the correction of the time data of the time measuring means at the time indicated by the time correction data is A time calculation means for calculating a correction time by adding, and
Time correcting means for correcting the time measuring means at the correction time calculated by the time calculating means;
A time receiving device comprising:
所定の時間間隔で互いに通信を行う時刻送信装置と時刻受信装置とを用いて、前記時刻送信装置の現在時刻データに基づき前記時刻受信装置の計時データを修正する時刻修正方法であって、
前記時刻送信装置が、
現在時刻データに、当該現在時刻データを読み出して送信データを作成する際に掛かる処理時間と、次のデータ送信までの待ち時間とを付加した時刻修正用データを含んだ送信データを作成するとともに、
この送信データを前記所定の時間間隔ごとの送信タイミングで送信し、
前記時刻受信装置が、
前記時刻修正用データを含んだ送信データを受信した場合に、前記時刻修正用データにより示される時刻に、前記送信データを受信してから前記計時データを修正するまでに掛かる処理時間を加算して修正時刻を算出するとともに、
前記計時データを前記修正時刻に修正することを特徴とする時刻修正方法。
A time correction method for correcting time measurement data of the time reception device based on current time data of the time transmission device using a time transmission device and a time reception device that communicate with each other at a predetermined time interval,
The time transmitting device is
While creating the transmission data including the time correction data to which the processing time required for reading the current time data and creating the transmission data and the waiting time until the next data transmission are added to the current time data,
This transmission data is transmitted at the transmission timing for each predetermined time interval,
The time receiving device is
When the transmission data including the time correction data is received, the processing time required from the reception of the transmission data to the correction of the time measurement data is added to the time indicated by the time correction data. While calculating the correction time,
A time correction method comprising correcting the time measurement data to the correction time.
JP2010271039A 2010-12-06 2010-12-06 Time correcting system, time transmitting device, time receiving device and time correcting method Pending JP2012122732A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010271039A JP2012122732A (en) 2010-12-06 2010-12-06 Time correcting system, time transmitting device, time receiving device and time correcting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010271039A JP2012122732A (en) 2010-12-06 2010-12-06 Time correcting system, time transmitting device, time receiving device and time correcting method

Publications (1)

Publication Number Publication Date
JP2012122732A true JP2012122732A (en) 2012-06-28

Family

ID=46504335

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010271039A Pending JP2012122732A (en) 2010-12-06 2010-12-06 Time correcting system, time transmitting device, time receiving device and time correcting method

Country Status (1)

Country Link
JP (1) JP2012122732A (en)

Similar Documents

Publication Publication Date Title
JP2010139509A5 (en)
TW200731692A (en) Radio communication apparatus and method of control
US9430934B2 (en) Wireless communication device and locator system
US8170493B2 (en) Transmission device, and wireless communication apparatus using the same
EP3267609A1 (en) Wireless communication device and wireless communication system
CA2981712C (en) Techniques for optimizing network event timers
JP6201994B2 (en) In-vehicle information processing apparatus and in-vehicle information processing method
JP2010019566A (en) Time receiving device and time correcting method
EP3046279A1 (en) Synchronization method and apparatus
JP2012122732A (en) Time correcting system, time transmitting device, time receiving device and time correcting method
JP2004023350A (en) Base station, communication method, communication program, and computer-readable recording medium stored with the communication program
KR20130101569A (en) Peripheral apparatus of programmable controller, and communication method therefor
US20180253062A1 (en) Clocking device, image forming apparatus, and time point correction method
JP5998909B2 (en) Mesh wireless communication network system, wireless communication method, and wireless terminal
JP2007187505A (en) Time providing device, time acquiring device, and time communication system
JP2002244937A (en) Clocking system utilizing lan
JP4255307B2 (en) Time data supply apparatus and time data supply method
JP2011109165A (en) Radio communication system, method of calculating error time, and method of acquiring time synchronization between base stations
CN105450467B (en) Monitoring method, access machine and service server
JP2011047727A (en) Wrist worn terminal and method of correcting time
JP2022102051A (en) Communication terminal, base station, communication system, and control method
JPH08287020A (en) Time adjusting device for distributed system
US20220167292A1 (en) Wireless communication device, system, and storage medium
JP2005275816A (en) Information terminal equipment
US20210181295A1 (en) Positioning system, positioning method, and recording medium