JP6047938B2 - Electronic clock, time correction method, and program - Google Patents

Electronic clock, time correction method, and program Download PDF

Info

Publication number
JP6047938B2
JP6047938B2 JP2012137732A JP2012137732A JP6047938B2 JP 6047938 B2 JP6047938 B2 JP 6047938B2 JP 2012137732 A JP2012137732 A JP 2012137732A JP 2012137732 A JP2012137732 A JP 2012137732A JP 6047938 B2 JP6047938 B2 JP 6047938B2
Authority
JP
Japan
Prior art keywords
time
interval
current time
communication
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.)
Active
Application number
JP2012137732A
Other languages
Japanese (ja)
Other versions
JP2013130562A (en
Inventor
中川 誠
誠 中川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2012137732A priority Critical patent/JP6047938B2/en
Publication of JP2013130562A publication Critical patent/JP2013130562A/en
Application granted granted Critical
Publication of JP6047938B2 publication Critical patent/JP6047938B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

この発明は、時刻を修正する機能を備えた電子時計、時刻修正方法、及び、プログラムに関する。   The present invention relates to an electronic timepiece having a function for correcting time, a time correction method, and a program.

従来、電子腕時計や携帯電話といった通常の使用時には有線接続されないモバイル機器において計数及び表示される現在時刻は、種々の無線通信手段を用いて外部から正確な時刻情報を取得することで修正されている。例えば、携帯電話やスマートフォンでは、携帯基地局から送信される制御データに含まれる時刻情報を用いて随時、又は、所定の間隔で時刻データの更新が行われている。一方、電子腕時計には、近年、ブルートゥース(登録商標:Bluetooth)といった近距離通信機能を用いてこれらの携帯電話やスマートフォンから時刻情報を取得することで時刻データの更新を行うものがある。   Conventionally, the current time that is counted and displayed in a mobile device that is not wiredly connected during normal use, such as an electronic wristwatch or a mobile phone, has been corrected by obtaining accurate time information from the outside using various wireless communication means. . For example, in mobile phones and smartphones, time data is updated as needed or at predetermined intervals using time information included in control data transmitted from a mobile base station. On the other hand, in recent years, there are electronic wristwatches that update time data by acquiring time information from these mobile phones and smartphones using a short-range communication function such as Bluetooth (registered trademark: Bluetooth).

ブルートゥースによる通信としては、近年、低消費電力での継続的な通信接続に好適なバージョン4.0の規約が策定された。このバージョン4.0の規約には、時刻データのやり取りに係る通信規格としてTimeプロファイルが含まれる。このTimeプロファイルを利用するサービス「Current Time」では、1/256秒の精度で時刻情報をやりとりすることが可能である。このような低消費電力モード(LEモード)のブルートゥース通信を利用することで、モバイル機器では、ほぼリアルタイムで時刻情報を取得することが出来る。   In recent years, a version 4.0 protocol suitable for continuous communication connection with low power consumption has been formulated for Bluetooth communication. This version 4.0 rule includes a Time profile as a communication standard related to the exchange of time data. With the service “Current Time” using this Time profile, it is possible to exchange time information with an accuracy of 1/256 seconds. By using Bluetooth communication in such a low power consumption mode (LE mode), the mobile device can acquire time information almost in real time.

しかしながら、従来、ブルートゥース通信を用いて外部機器から現在時刻情報の取得を行うと、正確な時刻データが得られないことがある。このような状況の一つとして、電子腕時計における処理の優先度に応じ、時刻情報が受信されてから当該受信された時刻情報を電子腕時計の時刻データに反映する処理が行われるまでに時間差が生じることで、設定された時刻が遅延する場合がある。そこで、特許文献1には、このような送信データが電子腕時計で反映されるまでの遅延時間を外部機器で検出し、遅延時間が所定の値以下になるまで時刻情報の送信を繰り返す技術が開示されている。   However, conventionally, if current time information is acquired from an external device using Bluetooth communication, accurate time data may not be obtained. As one of such situations, there is a time difference between the time information received and the process of reflecting the received time information in the time data of the electronic wristwatch according to the processing priority in the electronic wristwatch. As a result, the set time may be delayed. Therefore, Patent Document 1 discloses a technique in which a delay time until such transmission data is reflected on an electronic wristwatch is detected by an external device, and transmission of time information is repeated until the delay time becomes a predetermined value or less. Has been.

特開2009−118403号公報JP 2009-118403 A

しかしながら、携帯電話やスマートフォンといった外部機器から時刻情報を取得する場合に正確な時刻データが得られない他の要因として、更に、外部機器内で設定される時刻データ自体の時間分解能がまちまちであるという問題がある。特に、外部機器の中には、1秒未満の時刻設定が行われないものがあり、従って、このような場合には、電子腕時計が取得する時刻データに最大1秒近いずれが生じてしまう。即ち、無線通信により外部機器から時刻データを取得する場合に、当該外部機器から得られる時刻データが電子腕時計で要求される時間分解能より粗い場合に、十分な精度の時刻データを取得できないという課題があった。   However, when acquiring time information from an external device such as a mobile phone or a smart phone, another reason that accurate time data cannot be obtained is that the time resolution of the time data itself set in the external device varies. There's a problem. In particular, some external devices do not perform time setting of less than 1 second. Therefore, in such a case, the time data acquired by the electronic wristwatch will eventually be up to 1 second. That is, when acquiring time data from an external device by wireless communication, if the time data obtained from the external device is coarser than the time resolution required by the electronic wristwatch, it is difficult to acquire time data with sufficient accuracy. there were.

この発明の目的は、無線通信を利用して外部機器から効率よく精度のよい時刻データを取得することのできる電子時計、時刻修正方法、及び、プログラムを提供することにある。   An object of the present invention is to provide an electronic timepiece, a time correction method, and a program capable of efficiently and accurately acquiring time data from an external device using wireless communication.

本発明は、上記目的を達成するため、
現在時刻を計数する計時手段と、
設定された通信時間間隔で無線通信により外部機器との間でデータの送受信を行う通信手段と、
当該通信手段により前記外部機器から取得された現在時刻データに基づいて前記計時手段の現在時刻を修正する時刻修正手段と、
を備え、
前記時刻修正手段は、
前記計時手段の現在時刻の修正処理を行う間、前記通信時間間隔を予め設定された所定の値に変更する間隔調整手段と、
前記間隔調整手段により変更された前記通信時間間隔ごとに前記通信手段に現在時刻データを受信させて、受信された当該現在時刻の配列パターンと前記通信時間間隔とに基づいて前記外部機器における現在時刻データの更新間隔を同定する更新間隔同定手段と、
前記更新間隔同定手段により同定された前記更新間隔と、前記現在時刻の配列パターンと、前記通信時間間隔とに基づいて、前記外部機器における現在時刻データの更新タイミングから当該現在時刻データの受信タイミングまでの遅延時間が前記計時手段の現在時刻の精度に基づいて設定される所定の基準値よりも小さい前記現在時刻データの受信タイミングを同定し、当該受信タイミングで現在時刻データを取得する現在時刻取得手段と、
を備えることを特徴とする電子時計である。
In order to achieve the above object, the present invention
A time counting means for counting the current time;
A communication means for transmitting / receiving data to / from an external device by wireless communication at a set communication time interval;
Time correcting means for correcting the current time of the time measuring means based on current time data acquired from the external device by the communication means;
With
The time correction means includes
An interval adjusting means for changing the communication time interval to a predetermined value while performing a correction process of the current time of the time measuring means;
The current time data is received by the communication means for each communication time interval changed by the interval adjustment means, and the current time in the external device is based on the received arrangement pattern of the current time and the communication time interval. An update interval identifying means for identifying an update interval of data;
From the update timing of the current time data in the external device to the reception timing of the current time data based on the update interval identified by the update interval identification means, the arrangement pattern of the current time, and the communication time interval Current time acquisition means for identifying the reception time of the current time data that is smaller than a predetermined reference value set based on the accuracy of the current time of the time measuring means, and acquiring the current time data at the reception timing When,
It is an electronic timepiece characterized by comprising.

本発明に従うと、電子時計、時刻修正方法、及び、プログラムにおいて、無線通信を利用して外部機器から効率よく精度のよい時刻データを取得することが出来るという効果がある。   According to the present invention, the electronic timepiece, the time correction method, and the program have an effect that it is possible to efficiently and accurately acquire time data from an external device using wireless communication.

本発明の実施形態の電子時計を含む時刻情報取得システムの構成を示す図である。It is a figure which shows the structure of the time information acquisition system containing the electronic timepiece of embodiment of this invention. 時刻情報取得システムを構成する第1実施形態の電子時計の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the electronic timepiece of 1st Embodiment which comprises a time information acquisition system. 時刻情報取得システムを構成するスマートフォンの内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the smart phone which comprises a time information acquisition system. 電子時計とスマートフォンとの間で時刻情報取得の際に行われる通信手順を示すシーケンス図である。It is a sequence diagram which shows the communication procedure performed at the time of time information acquisition between an electronic timepiece and a smart phone. 第1実施形態の電子時計で実行される時刻データ更新処理のCPUによる制御手順を示すフローチャートである。It is a flowchart which shows the control procedure by CPU of the time data update process performed with the electronic timepiece of 1st Embodiment. 第2実施形態の電子時計の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the electronic timepiece of 2nd Embodiment. 第2実施形態の電子時計で実行される時刻データ更新処理のCPUによる制御手順を示すフローチャートである。It is a flowchart which shows the control procedure by CPU of the time data update process performed with the electronic timepiece of 2nd Embodiment. 第2実施形態の電子時計における現在時刻の取得方法を説明する図である。It is a figure explaining the acquisition method of the present time in the electronic timepiece of 2nd Embodiment. 第3実施形態の電子時計の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the electronic timepiece of 3rd Embodiment. 第3実施形態の電子時計における現在時刻の取得方法を説明する図である。It is a figure explaining the acquisition method of the present time in the electronic timepiece of 3rd Embodiment. 第3実施形態の電子時計で実行される時刻データ更新処理のCPUによる制御手順を示すフローチャートである。It is a flowchart which shows the control procedure by CPU of the time data update process performed with the electronic timepiece of 3rd Embodiment. その他の実施形態の電子時計で実行される時刻データ更新処理のCPUによる制御手順を示すフローチャートである。It is a flowchart which shows the control procedure by CPU of the time data update process performed with the electronic timepiece of other embodiment.

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

[第1実施形態]
図1は、本発明の第1実施形態の電子時計を含む時刻情報取得システムの構成を示す図である。
[First Embodiment]
FIG. 1 is a diagram showing a configuration of a time information acquisition system including an electronic timepiece according to the first embodiment of the present invention.

この時刻情報取得システム1は、電子時計40と、外部機器としてのスマートフォン10とから構成される。電子時計40は、時計本体とバンドとを備えた腕時計である。スマートフォン10は、携帯基地局との無線通信を行う。電子時計40及びスマートフォン10は、何れもブルートゥースの規約バージョン4.0に基づく近距離無線通信機能を備えており、お互いに低消費電力モードによる通信が可能となっている。   The time information acquisition system 1 includes an electronic timepiece 40 and a smartphone 10 as an external device. The electronic timepiece 40 is a wristwatch including a watch body and a band. The smartphone 10 performs wireless communication with a mobile base station. Both the electronic timepiece 40 and the smartphone 10 have a short-range wireless communication function based on the Bluetooth protocol version 4.0, and can communicate with each other in the low power consumption mode.

図2は、電子時計40の内部構成を示すブロック図である。また、図3は、スマートフォン10の内部構成を示すブロック図である。   FIG. 2 is a block diagram showing the internal configuration of the electronic timepiece 40. FIG. 3 is a block diagram showing the internal configuration of the smartphone 10.

電子時計40は、図2に示すように、CPU(Central Processing Unit)41(時刻修正手段、制御手段)と、ROM(Read Only Memory)42と、RAM(Random Access Memory)43と、操作部44と、計時手段としての計時回路45と、表示部46(表示手段)及び表示部46を駆動制御するドライバ47と、通信手段としてのBluetoothモジュール48及びUART(Universal Asynchronous Receiver Transmitter)49と、振動モータ50及びそのドライバ51と、LED(発光ダイオード)52及びそのドライバ53と、ピエゾ素子54及びそのドライバ55と、CPU41と各部との間で信号のやり取りをするバス56などを備えている。   As shown in FIG. 2, the electronic timepiece 40 includes a CPU (Central Processing Unit) 41 (time correction means, control means), a ROM (Read Only Memory) 42, a RAM (Random Access Memory) 43, and an operation unit 44. A clock circuit 45 as a clock means, a display unit 46 (display unit) and a driver 47 that controls the display unit 46, a Bluetooth module 48 and a UART (Universal Asynchronous Receiver Transmitter) 49 as a communication unit, and a vibration motor 50 and its driver 51, LED (light emitting diode) 52 and its driver 53, piezo element 54 and its driver 55, and a bus 56 for exchanging signals between the CPU 41 and each part.

CPU41は、電子時計40の全体動作の統轄制御及び各種演算処理を行う。CPU41は、計時回路45の計数する現在時刻に基づいて表示部46に時刻表示を行わせる。また、CPU41は、時刻データ更新プログラム42aを実行して、Bluetoothモジュールを介してスマートフォン10から取得された時刻情報に基づき、計時回路45の時刻データを修正する。   The CPU 41 performs control over the entire operation of the electronic timepiece 40 and various arithmetic processes. The CPU 41 causes the display unit 46 to display the time based on the current time counted by the timer circuit 45. Further, the CPU 41 executes the time data update program 42a, and corrects the time data of the clock circuit 45 based on the time information acquired from the smartphone 10 via the Bluetooth module.

ROM42は、CPU41が実行する種々のプログラムや当該プログラムによって利用される初期設定データを格納する。ROM42の格納するデータには、時刻データ更新プログラム42aが含まれる。   The ROM 42 stores various programs executed by the CPU 41 and initial setting data used by the programs. The data stored in the ROM 42 includes a time data update program 42a.

RAM43は、CPU41に作業用のメモリ空間を提供し、ROM42から読み込まれた実行プログラムを展開したり、一時データを記憶したりする。   The RAM 43 provides a working memory space to the CPU 41, expands an execution program read from the ROM 42, and stores temporary data.

操作部44は、1又は複数の操作キーを備え、ユーザが当該操作キーに対して行った操作に基づいて入力信号に変換して、CPU11に出力する。或いは、この操作部44は、タッチパネルであっても良い。また、操作部44への入力操作を通じて、手動で時刻データ更新プログラム42aを実行させることが出来る。   The operation unit 44 includes one or a plurality of operation keys, converts the input signal into an input signal based on an operation performed by the user on the operation key, and outputs the input signal to the CPU 11. Alternatively, the operation unit 44 may be a touch panel. Further, the time data update program 42 a can be manually executed through an input operation to the operation unit 44.

計時回路45は、現在時刻を計数して保持するカウンタである。この計時回路45から出力された現在時刻データに基づいて現在時刻が表示部46に表示されたり、当該現在時刻データと各種機能に係る設定時刻データ(例えば、アラーム設定時刻)とが比較されて種々の動作が行われたりする。この計時回路45が保持する現在時刻は、1/256秒の時間分解能を有する。また、この現在時刻のデータは、ブルートゥース通信により外部機器から取得された時刻データや、操作部44の操作により手動で入力された時刻データに基づいて書き換え可能に構成されている。   The timer circuit 45 is a counter that counts and holds the current time. Based on the current time data output from the clock circuit 45, the current time is displayed on the display unit 46, or the current time data is compared with set time data (for example, alarm set time) related to various functions. Is performed. The current time held by the clock circuit 45 has a time resolution of 1/256 seconds. The current time data is configured to be rewritable based on time data acquired from an external device by Bluetooth communication or time data manually input by operating the operation unit 44.

表示部46は、例えば、LCD(液晶表示ディスプレイ)である。CPU41から送られた制御信号によりドライバ47(液晶ドライバ)が動作し、LCDに現在時刻、設定状態、或いは、各種機能のメニューなどの指定された内容に関する表示を行わせる。この表示部46は、或いは、他の表示手段、例えば、ELD(Electro-Luminescent Display)であっても良い。また、ドライバ47は、表示部46の種類に応じて適切に選択される。   The display unit 46 is, for example, an LCD (Liquid Crystal Display). The driver 47 (liquid crystal driver) operates in response to a control signal sent from the CPU 41, and causes the LCD to display the specified contents such as the current time, the setting state, or a menu of various functions. Alternatively, the display unit 46 may be other display means such as an ELD (Electro-Luminescent Display). Further, the driver 47 is appropriately selected according to the type of the display unit 46.

Bluetoothモジュール48は、アンテナAN4を介して外部機器との間でブルートゥース通信を行うための制御モジュールである。このBluetoothモジュール48は、規約バージョン4.0の低消費電力モードでの通信に対応しており、Timeプロファイルに従ったデータの送受信が可能となっている。CPU41から出力された送信データは、UART49でシリアル/パラレル変換などの処理が行われて、Bluetoothモジュール48から外部機器に送信される。また、外部機器からBluetoothモジュール48を用いて受信された受信データは、UART49でシリアル/パラレル変換などの処理が行われて、CPU41に入力される。   The Bluetooth module 48 is a control module for performing Bluetooth communication with an external device via the antenna AN4. The Bluetooth module 48 supports communication in the low power consumption mode of the contract version 4.0, and can transmit and receive data according to the Time profile. The transmission data output from the CPU 41 is subjected to processing such as serial / parallel conversion by the UART 49 and transmitted from the Bluetooth module 48 to the external device. Received data received from the external device using the Bluetooth module 48 is subjected to processing such as serial / parallel conversion by the UART 49 and is input to the CPU 41.

振動モータ50、LED52、及び、ピエゾ素子54は、それぞれ、振動、発光、及び、ブザー音を発することで、ユーザに通知を行うためのものである。CPU41からドライバ51、53、55にそれぞれ制御信号が送られると、各ドライバ51、53、55は、振動モータ50、LED52、ピエゾ素子54を動作させるのに必要な電圧信号に変換して出力する。
例えば、タイムゾーンの変更などにより外部機器から取得された現在時刻が更新された場合に、CPU41からドライバ51、53、又は、55に制御信号が送られ、振動モータ50、LED52、又はピエゾ素子54が報知動作を行う。
The vibration motor 50, the LED 52, and the piezo element 54 are for notifying the user by emitting vibration, light emission, and buzzer sound, respectively. When a control signal is sent from the CPU 41 to each of the drivers 51, 53, and 55, the drivers 51, 53, and 55 convert the voltage signals necessary for operating the vibration motor 50, the LED 52, and the piezo element 54 and output the voltage signals. .
For example, when the current time acquired from an external device is updated by changing the time zone or the like, a control signal is sent from the CPU 41 to the driver 51, 53, or 55, and the vibration motor 50, the LED 52, or the piezo element 54 is sent. Performs a notification operation.

スマートフォン10は、図3に示すように、CPU11と、ROM12と、RAM13と、記憶部14と、操作部15と、内蔵時計16と、表示部17及びそのドライバ18と、スピーカ19と、マイク20と、コーデック21と、RF送受信回路22と、RF送受信用のアンテナAN11と、通信回路23と、Bluetoothモジュール24と、UART25と、近距離無線通信の送受信用アンテナAN12と、振動モータ26及びそのドライバ27と、CPU11と他の各部とを接続するバス28などを備えている。   As shown in FIG. 3, the smartphone 10 includes a CPU 11, a ROM 12, a RAM 13, a storage unit 14, an operation unit 15, a built-in clock 16, a display unit 17 and its driver 18, a speaker 19, and a microphone 20. A codec 21, an RF transceiver circuit 22, an RF transceiver antenna AN11, a communication circuit 23, a Bluetooth module 24, a UART 25, a near field communication transceiver antenna AN12, a vibration motor 26 and its driver. 27, and a bus 28 for connecting the CPU 11 to other units.

CPU11は、スマートフォン10の全体動作の統轄制御及び各種演算処理を行う。ROM12は、CPU11が実行する種々のプログラムや初期設定データを格納する。また、RAM13は、CPU11に作業用のメモリ空間を提供して、一時データを記憶する。記憶部14は、不揮発性の読み書き可能なメモリであり、例えば、(Electrically Erasable and Programmable Read Only Memory)が用いられる。記憶部14には、例えば、スマートフォンで送受信されたメールデータ、種々のアプリケーションプログラムやアプリケーションデータが記憶される。   The CPU 11 performs overall control of the overall operation of the smartphone 10 and various arithmetic processes. The ROM 12 stores various programs executed by the CPU 11 and initial setting data. The RAM 13 provides a working memory space to the CPU 11 and stores temporary data. The storage unit 14 is a non-volatile readable / writable memory. For example, (Electrically Erasable and Programmable Read Only Memory) is used. The storage unit 14 stores, for example, mail data transmitted / received by a smartphone, various application programs, and application data.

操作部15は、複数の操作キーを備え、ユーザが当該操作キーに対して行った操作に基づいて電気信号に変換し、入力信号としてCPU11に出力する。或いは、この操作部15には、タッチパネル及びタッチパネルの操作入力検出部を含むこととしても良い。   The operation unit 15 includes a plurality of operation keys, converts them into electrical signals based on operations performed by the user on the operation keys, and outputs them to the CPU 11 as input signals. Alternatively, the operation unit 15 may include a touch panel and a touch panel operation input detection unit.

内蔵時計16は、現在時刻を計数して保持するカウンタである。スマートフォン10では、この現在時刻が読み出されて、表示部17に表示される。この内蔵時計16の現在時刻データは、RF送受信回路22による携帯基地局との通信時に随時又は所定のタイミングで修正される。   The built-in clock 16 is a counter that counts and holds the current time. In the smartphone 10, the current time is read and displayed on the display unit 17. The current time data of the built-in clock 16 is corrected at any time or at a predetermined timing when communicating with the mobile base station by the RF transceiver circuit 22.

表示部17は、例えば、LCD(液晶表示ディスプレイ)である。CPU11から送られた制御信号によりドライバ18(液晶ドライバ)が動作し、LCDにスマートフォン10の各種機能に係る表示を行わせる。この表示部17は、他の表示手段、例えば、有機ELD(Electro-Luminescent Display)であっても良い。また、ドライバ18は、表示部17の種類に応じて適切に選択される。   The display unit 17 is, for example, an LCD (Liquid Crystal Display). A driver 18 (liquid crystal driver) is operated by a control signal sent from the CPU 11 to cause the LCD to display various functions of the smartphone 10. The display unit 17 may be other display means, for example, an organic ELD (Electro-Luminescent Display). Further, the driver 18 is appropriately selected according to the type of the display unit 17.

スピーカ19は、コーデック21からの信号に基づいて電気信号を音声信号に変換して音声を出力する。また、マイク20は、音波を検知して電気信号に変換し、コーデック21に出力する。コーデック21は、入力された音声出力用デジタル信号をデコードしてアナログ信号としてスピーカ19へ送るとともに、マイク20から取得された音声信号をエンコードしてCPU11や通信回路23へ出力する。   The speaker 19 converts an electrical signal into an audio signal based on a signal from the codec 21 and outputs audio. The microphone 20 detects sound waves, converts them into electric signals, and outputs them to the codec 21. The codec 21 decodes the input digital signal for audio output and sends it as an analog signal to the speaker 19, and encodes the audio signal acquired from the microphone 20 and outputs it to the CPU 11 and the communication circuit 23.

RF送受信回路22は、RF送受信用アンテナAN11を用いて携帯基地局との間で行われる通信の送受信処理を行う。また、通信回路23は、RF送受信回路22により送受信される送受信データの各種処理を行い、CPU11やコーデック21との間でデータの受け渡しを行う。   The RF transmission / reception circuit 22 performs transmission / reception processing of communication performed with the mobile base station using the RF transmission / reception antenna AN11. The communication circuit 23 performs various processes of transmission / reception data transmitted / received by the RF transmission / reception circuit 22, and exchanges data with the CPU 11 and the codec 21.

Bluetoothモジュール24は、アンテナAN12を介して電子時計40などの外部機器との間でブルートゥース通信を行うための制御モジュールである。このBluetoothモジュール24は、規約バージョン4.0の低消費電力モードでの通信に対応しており、Timeプロファイルに従ったデータの送受信が可能となっている。CPU11から出力された送信データは、UART25でシリアル/パラレル変換などの処理が行われて、Bluetoothモジュール24から外部機器に送信される。また、外部機器からBluetoothモジュール24を用いて受信された受信データは、UART25でパラレル/シリアル変換などの処理が行われて、CPU11に入力される。   The Bluetooth module 24 is a control module for performing Bluetooth communication with an external device such as the electronic timepiece 40 via the antenna AN12. The Bluetooth module 24 supports communication in the low power consumption mode of the contract version 4.0, and can transmit and receive data according to the Time profile. The transmission data output from the CPU 11 is subjected to processing such as serial / parallel conversion by the UART 25 and is transmitted from the Bluetooth module 24 to the external device. Also, received data received from the external device using the Bluetooth module 24 is subjected to processing such as parallel / serial conversion by the UART 25 and is input to the CPU 11.

振動モータ26は、電話や電子メールの着信時などに、ドライバ27により駆動されたモータの動作により振動を発生させる。   The vibration motor 26 generates vibration by the operation of the motor driven by the driver 27 when a telephone call or e-mail is received.

次に、電子時計40の時刻情報取得動作について説明する。   Next, the time information acquisition operation of the electronic timepiece 40 will be described.

本実施形態の電子時計40では、スマートフォン10との間でのブルートゥース通信の規約バージョン4.0による低消費電力通信によりスマートフォン10から現在時刻データが取得されて、当該現在時刻データに基づいて修正が行われる。   In the electronic timepiece 40 of the present embodiment, the current time data is acquired from the smartphone 10 by the low power consumption communication according to the Bluetooth communication protocol version 4.0 with the smartphone 10, and the correction is performed based on the current time data. Done.

図4は、電子時計40とスマートフォン10との通信動作を表わしたシーケンス図である。   FIG. 4 is a sequence diagram illustrating a communication operation between the electronic timepiece 40 and the smartphone 10.

本実施形態の電子時計40による時刻情報取得動作の際には、電子時計40とスマートフォン10との間で通常設定されている通信の接続間隔(通信時間間隔)を短縮して短い時間に複数回(例えば、1秒間に10回)のデータ受信を可能とする。先ず、通常の接続間隔(例えば、2000ms)での通信において、電子時計40から通信データとして接続状態更新要求“LL_CONNECTION_UPDATE_REQ”を接続間隔の設定値“connInterval”を含む引数と共にスマートフォン10に送信する。接続間隔は、7.5ms以上4000ms以下の範囲において1.25msステップで変更可能である。スマートフォン10では、受信されたこの接続状態更新要求に基づいて接続間隔の設定が変更されて、当該データの正常受信を示す返答がなされると共に、接続間隔が変更される。   In the time information acquisition operation by the electronic timepiece 40 of the present embodiment, the communication connection interval (communication time interval) that is normally set between the electronic timepiece 40 and the smartphone 10 is shortened, and a plurality of times in a short time. Data reception (for example, 10 times per second) is enabled. First, in communication at a normal connection interval (for example, 2000 ms), the electronic timepiece 40 transmits a connection state update request “LL_CONNECTION_UPDATE_REQ” as communication data to the smartphone 10 together with an argument including the connection interval setting value “connInterval”. The connection interval can be changed in steps of 1.25 ms within a range of 7.5 ms to 4000 ms. In the smartphone 10, the connection interval setting is changed based on the received connection state update request, and a response indicating normal reception of the data is made, and the connection interval is changed.

接続間隔が変更されると、続いて、電子時計40は、この接続間隔ごとに複数回続けて現在時刻を示す指標(Characteristic)“Current Time”の取得要求をスマートフォン10に送信する。スマートフォン10では、この時刻データの取得要求を受信すると、スマートフォン10の内部処理において、処理(サブプロシージャ)“GATT Read Characteristic Value”が呼び出され、指標“Current Time”の各属性値を取得して設定する。この取得される時刻データの時間分解能(更新間隔)は、スマートフォン10により異なる。   When the connection interval is changed, the electronic timepiece 40 subsequently transmits an acquisition request for an index (Characteristic) “Current Time” indicating the current time to the smartphone 10 continuously for each connection interval. Upon receiving this time data acquisition request, the smartphone 10 calls a process (subprocedure) “GATT Read Characteristic Value” in the internal processing of the smartphone 10 to acquire and set each attribute value of the index “Current Time” To do. The time resolution (update interval) of the acquired time data varies depending on the smartphone 10.

指標“Current Time”には、二つの指標“Exact Time 256”及び“Adjust_Reason”が含まれている。また、更に、指標“Exact Time 256”には、2つの指標“Day Date Time”及び“Fraction256”が含まれている。指標“Day Date Time”には、現在時刻の年月日、時分秒、及び、曜日に関する情報が含まれている。また、指標“Fraction256”には、1秒未満の時刻が1/256秒単位の値として8ビットデータ、即ち、十進数で0〜255の値で示されている。なお、スマートフォン10が1/256秒単位の値の設定に対応していない場合には、この指標“Fraction256”には常に値0x00(十進数で0)が設定される。   The indicator “Current Time” includes two indicators “Exact Time 256” and “Adjust_Reason”. Furthermore, the index “Exact Time 256” includes two indexes “Day Date Time” and “Fraction 256”. The indicator “Day Date Time” includes information on the current date, month, day, hour, minute, second, and day of the week. Also, the index “Fraction 256” indicates a time of less than 1 second as a value in units of 1/256 seconds, that is, 8-bit data, that is, a decimal value of 0 to 255. When the smartphone 10 does not support setting of a value in units of 1/256 seconds, the value “0x00 (decimal number 0)” is always set in this index “Fraction 256”.

スマートフォン10は、設定された指標“Current Time”の各属性値を通信データとして電子時計40に送信する。   The smartphone 10 transmits each attribute value of the set index “Current Time” to the electronic timepiece 40 as communication data.

電子時計40は、後述する所定の条件が満たされるまで上記設定された接続間隔で指標“Current Time”のデータ要求を繰り返す。所定の条件が満たされた場合には、指標“Current Time”のデータ要求を終了し、接続間隔を元の値(例えば、2秒に一回)に戻す。即ち、電子時計40は、接続状態更新要求“LL_CONNECTION_UPDATE_REQ”を接続間隔の設定値“connInterval”を含む引数と共にスマートフォン10に送信する。   The electronic timepiece 40 repeats the data request for the index “Current Time” at the set connection interval until a predetermined condition described later is satisfied. When the predetermined condition is satisfied, the data request for the index “Current Time” is terminated, and the connection interval is returned to the original value (for example, once every 2 seconds). That is, the electronic timepiece 40 transmits a connection state update request “LL_CONNECTION_UPDATE_REQ” to the smartphone 10 together with an argument including the connection interval setting value “connInterval”.

スマートフォン10は、接続状態更新要求“LL_CONNECTION_UPDATE_REQ”による接続間隔の変更要求を受信すると、接続間隔の設定更新を行って、正常受信のデータを電子時計40に返信すると共に、以降の接続間隔を変更する。   Upon receiving the connection interval change request by the connection state update request “LL_CONNECTION_UPDATE_REQ”, the smartphone 10 updates the connection interval setting, returns normal reception data to the electronic timepiece 40, and changes subsequent connection intervals. .

図5は、第1実施形態の電子時計40において実行される時刻データ更新処理のCPU41による制御手順を示すフローチャートである。   FIG. 5 is a flowchart showing a control procedure by the CPU 41 of time data update processing executed in the electronic timepiece 40 of the first embodiment.

この時刻データ更新処理は、時刻データ更新プログラム42aが呼び出されて起動されることで行われる。時刻データ更新プログラム42aは、予め定められたタイミング、例えば、1日1回所定の時刻に自動的に起動されたり、ユーザの操作部44への入力操作により起動されたり、スマートフォン10との通信接続が確立された際に初期設定の一環として起動されたり、或いは、スマートフォン10においてタイムゾーンの移動や夏時間の開始、終了といった時刻変更処理が行われた場合にスマートフォン10から受信された時刻変更通知に基づいて起動されたりする。   This time data update process is performed by calling and starting the time data update program 42a. The time data update program 42a is automatically activated at a predetermined timing, for example, once a day at a predetermined time, activated by a user's input operation to the operation unit 44, or connected to the smartphone 10 for communication. Time change notification received from the smartphone 10 when a time change process such as time zone movement or daylight saving time start / end is performed on the smartphone 10. Or based on.

この時刻データ更新処理が起動されると、CPU41は、先ず、スマートフォン10との間で接続されているブルートゥース通信における接続間隔の短縮要求(変更要求)をBluetoothモジュール48に送信させる。即ち、CPU41は、接続状態更新要求“LL_CONNECTION_UPDATE_REQ”及び接続間隔の設定値“connInterval”を含む引数を通信データとしてスマートフォン10へ送信させる(ステップS11)。   When the time data update process is activated, the CPU 41 first causes the Bluetooth module 48 to transmit a connection interval shortening request (change request) in Bluetooth communication connected to the smartphone 10. That is, the CPU 41 transmits an argument including the connection state update request “LL_CONNECTION_UPDATE_REQ” and the connection interval setting value “connInterval” to the smartphone 10 as communication data (step S11).

CPU41は、Bluetoothモジュール48がスマートフォン10からの信号を受信し、接続状態更新要求が正常に受け付けられた旨を示す信号を確認するまで待機する(ステップS12)。   The CPU 41 waits until the Bluetooth module 48 receives a signal from the smartphone 10 and confirms a signal indicating that the connection state update request has been normally received (step S12).

接続状態更新要求が正常に受け付けられて、スマートフォン10との通信の接続間隔が短縮されると、次に、CPU41は、Bluetoothモジュール48に指標“Current Time”の属性値を取得する要求をスマートフォン10に対して送信させる(ステップS13)。   When the connection status update request is normally received and the connection interval of communication with the smartphone 10 is shortened, the CPU 41 then sends a request for acquiring the attribute value of the index “Current Time” to the Bluetooth module 48. (Step S13).

上記の処理に対して、Bluetoothモジュール48がスマートフォン10から指標“Current Time”の属性値を受信すると、CPU41は、時刻データを取得してRAM43に記憶させる(ステップS14)。   In response to the above process, when the Bluetooth module 48 receives the attribute value of the index “Current Time” from the smartphone 10, the CPU 41 acquires time data and stores it in the RAM 43 (step S14).

続いて、CPU41は、ステップS11の処理で設定変更されたスマートフォン10との接続間隔ごとに、Bluetoothモジュール48に2度目以降の指標“Current Time”の属性値を取得する要求をスマートフォン10に対して送信させる(ステップS15)。そして、CPU41は、Bluetoothモジュール48がスマートフォン10から指標“Current Time”の属性値を受信すると、CPU41は、この受信データの指標“Exact Time 256”に係る属性値から1/256秒単位の時刻データを取得してRAM43に記憶させる(ステップS16)。   Subsequently, for each connection interval with the smartphone 10 whose setting has been changed in the process of step S <b> 11, the CPU 41 sends a request for acquiring the attribute value of the index “Current Time” for the second time or later to the smartphone 10. Transmit (step S15). Then, when the Bluetooth module 48 receives the attribute value of the index “Current Time” from the smartphone 10, the CPU 41 detects time data in units of 1/256 seconds from the attribute value related to the index “Exact Time 256” of the received data. Is acquired and stored in the RAM 43 (step S16).

CPU41は、ステップS16の処理で取得された時刻データの秒以下の値が、RAM43に記憶された1回前に取得された時刻データの秒以下の値から変化がないか否かを判別する(ステップS17)。1回前の時刻データの秒以下の値と、今回の時刻データの秒以下の値との間に変化がないと判別された場合には、CPU41の処理は、ステップS15に戻り、前回の時刻データの取得要求から接続間隔が経過後に、次の処理を行わせる。
なお、本実施形態の時刻データ更新処理では、3回目以降の時刻データが取得されると、その時刻データより2回以上前の時刻データが不要となるので、当該データを消去することとしてよい。
CPU41 discriminate | determines whether the value below the second of the time data acquired by the process of step S16 has not changed from the value below the second of the time data acquired once before stored in RAM43. Step S17). If it is determined that there is no change between the value less than the second of the previous time data and the value less than the second of the current time data, the process of the CPU 41 returns to step S15 and returns to the previous time. After the connection interval elapses from the data acquisition request, the following processing is performed.
In the time data update process according to the present embodiment, when time data after the third time is acquired, time data two or more times before the time data becomes unnecessary, and the data may be deleted.

ステップS17の判別処理で、直近のステップS16の処理で取得された時刻データの秒以下の値が、1回前に取得された時刻データの秒以下の値から変化があったと判別された場合には、CPU41は、最新の時刻データにより計時回路45の時刻データを更新する(ステップS18)。それから、CPU41は、Bluetoothモジュール48に接続間隔を元の時間に戻す要求をスマートフォン10に対して送信させる(ステップS19)。そして、CPU41は、スマートフォン10から当該要求の正常受信を示す信号が受信されたことを確認して(ステップS20)、時刻データ更新処理を終了する。
ここで、CPU41、ステップS11の処理、及び、ステップS19の処理により間隔調整手段が構成される。また、この第1実施形態の電子時計41では、CPU41とステップS15〜S18の処理により現在時刻取得手段が構成される。
When it is determined in the determination process of step S17 that the value less than the second of the time data acquired in the latest process of step S16 has changed from the value less than the second of the time data acquired once before The CPU 41 updates the time data of the clock circuit 45 with the latest time data (step S18). Then, the CPU 41 causes the Bluetooth module 48 to transmit a request for returning the connection interval to the original time to the smartphone 10 (step S19). And CPU41 confirms that the signal which shows the normal reception of the said request | requirement from the smart phone 10 was received (step S20), and complete | finishes a time data update process.
Here, the CPU 41, the process of step S11, and the process of step S19 constitute an interval adjusting means. Further, in the electronic timepiece 41 of the first embodiment, the current time acquisition unit is configured by the CPU 41 and the processes of steps S15 to S18.

このように第1実施形態の電子時計40で実行される時刻データ更新処理では、ブルートゥース通信によるスマートフォン10との接続間隔を短縮して繰り返し時刻データを取得し、秒以下の値が変化するタイミングを検出することで、短縮された接続間隔と同等の精度で時刻データを取得することが出来る。即ち、接続間隔を100msとすることで、スマートフォン10における指標“Current Time”の設定の更新間隔に関わらず、100msの精度で時刻データを取得することが出来る。   As described above, in the time data update process executed by the electronic timepiece 40 according to the first embodiment, the connection interval with the smartphone 10 by Bluetooth communication is shortened to repeatedly acquire time data, and the timing at which the value of the second or less changes is changed. By detecting, time data can be acquired with the same accuracy as the shortened connection interval. That is, by setting the connection interval to 100 ms, time data can be acquired with an accuracy of 100 ms regardless of the update interval of the setting of the index “Current Time” in the smartphone 10.

[第2実施形態]
次に、本発明の第2実施形態の電子時計40bについて説明する。
[Second Embodiment]
Next, an electronic timepiece 40b according to a second embodiment of the present invention will be described.

図6は、第2実施形態の電子時計40bの内部構成を示すブロック図である。
この第2実施形態の電子時計40bは、ROM42に格納された時刻データ更新プログラム42bの内容が時刻データ更新プログラム42aの内容と異なる点を除いて第1実施形態の電子時計40と同一の構成であり、同一の符号を付して説明を省略する。
FIG. 6 is a block diagram showing an internal configuration of the electronic timepiece 40b of the second embodiment.
The electronic timepiece 40b of the second embodiment has the same configuration as the electronic timepiece 40 of the first embodiment except that the contents of the time data update program 42b stored in the ROM 42 are different from the contents of the time data update program 42a. Yes, the same reference numerals are given and the description is omitted.

次に、第2実施形態の電子時計40bにおいて実行される時刻データ更新処理について説明する。   Next, time data update processing executed in the electronic timepiece 40b of the second embodiment will be described.

図7は、第2実施形態の電子時計40bが実行する時刻データ更新処理におけるCPU41による制御手順を示すフローチャートである。   FIG. 7 is a flowchart showing a control procedure by the CPU 41 in time data update processing executed by the electronic timepiece 40b of the second embodiment.

この第2実施形態の電子時計40bにおける時刻データ更新処理では、第1実施形態の電子時計40における時刻データ更新処理のステップS14の処理がステップS14aの処理に変更され、また、ステップS17の判別処理の代わりにステップS17aの判別処理が実行され、更に、このステップS17aの判別処理の後、且つ、ステップS18の処理の前にステップS21、S22の処理が追加される。これ以外の処理については、第1実施形態の電子時計40における時刻データ更新処理と同様であり、同一の符号を付して説明を省略する。   In the time data update process in the electronic timepiece 40b of the second embodiment, the process in step S14 of the time data update process in the electronic timepiece 40 in the first embodiment is changed to the process in step S14a, and the determination process in step S17. Instead, the determination process of step S17a is executed, and further, the processes of steps S21 and S22 are added after the determination process of step S17a and before the process of step S18. The other processes are the same as the time data update process in the electronic timepiece 40 of the first embodiment, and the same reference numerals are given and the description thereof is omitted.

この第2実施形態の電子時計40bにおける時刻データ更新処理では、スマートフォン10との接続間隔が短縮されると、CPU41は、ステップS14aの処理において、初回分の指標“Current Time”の属性値を受信して時刻データを取得した際に、この時刻データを計時回路45の計数するローカルの現在時刻と対応付けてRAM43に記憶させる。なお、記憶させるローカルの現在時刻は、ステップS13でBluetoothモジュール48により指標“Current Time”の取得要求を送信したタイミングでも良いし、ステップS14aで指標“Current Time”の属性値データを取得したタイミングであっても良い。   In the time data update process in the electronic timepiece 40b of the second embodiment, when the connection interval with the smartphone 10 is shortened, the CPU 41 receives the attribute value of the index “Current Time” for the first time in the process of step S14a. When the time data is acquired, the time data is stored in the RAM 43 in association with the local current time counted by the timer circuit 45. The local current time to be stored may be the timing at which the Bluetooth module 48 transmits an acquisition request for the index “Current Time” in step S13, or the timing at which the attribute value data for the index “Current Time” is acquired in step S14a. There may be.

次に、ステップS15、S16の処理で2度目以降の指標“Current Time”の属性値データが取得されると、CPU41は、計時回路45を参照して、ステップS14aでRAM43に記憶させた初回のローカル現在時刻データから現在のローカル現在時刻まで、予め設定された時間、例えば、1秒間が経過したか否かを判別する(ステップS17a)。未だ予め設定された時間が経過していないと判別された場合には、CPU41の処理は、ステップS15に戻り、接続間隔の経過後に、CPU41は次の指標“Current Time”の取得を行う。   Next, when the attribute value data of the index “Current Time” for the second and subsequent times is acquired in the processing of steps S15 and S16, the CPU 41 refers to the time counting circuit 45 and stores the first time value stored in the RAM 43 in step S14a. It is determined whether or not a preset time, for example, one second has elapsed from the local current time data to the current local current time (step S17a). If it is determined that the preset time has not yet elapsed, the process of the CPU 41 returns to step S15, and after the connection interval elapses, the CPU 41 acquires the next index “Current Time”.

ステップS17aの処理で、予め設定された時間が経過したと判別された場合には、CPU41の処理は、ステップS21に移行して、CPU41は、後述するように、設定された時間内に取得された時刻データの配列に基づいてスマートフォン10における現在時刻データの更新間隔を同定する。それから、CPU41は、この更新間隔、接続間隔、及び、時刻データの配列に基づいて現在時刻を算出する(ステップS22)。CPU41は、当該算出された現在時刻で計時回路45の現在時刻データを更新する(ステップS18)。
ここで、この第2実施形態の電子時計41bでは、CPU41とステップS21の処理により更新間隔同定手段が構成され、また、CPU41とステップS22の処理により現在時刻取得手段が構成される。
If it is determined in step S17a that the preset time has elapsed, the process of the CPU 41 proceeds to step S21, and the CPU 41 is acquired within the set time as will be described later. The update interval of the current time data in the smartphone 10 is identified based on the arrangement of the time data. Then, the CPU 41 calculates the current time based on the update interval, connection interval, and time data array (step S22). The CPU 41 updates the current time data of the clock circuit 45 with the calculated current time (step S18).
Here, in the electronic timepiece 41b of the second embodiment, an update interval identifying unit is configured by the CPU 41 and the process of step S21, and a current time acquisition unit is configured by the process of the CPU 41 and step S22.

ここで、ステップS21、及び、ステップS22の処理の内容について説明する。   Here, the contents of the processing in step S21 and step S22 will be described.

図8は、第2実施形態の電子時計40bにおいて精度の高い現在時刻を取得する処理の内容を説明する図である。   FIG. 8 is a diagram for explaining the contents of processing for acquiring the current time with high accuracy in the electronic timepiece 40b of the second embodiment.

先ず、1秒間に取得された時刻データから指標“Fraction256”に設定された秒未満のデータ(1/256秒値)11個を配列する。これらの1/256秒値は、0〜255の符号なし整数である。そして、本実施形態の電子時計40bでは、各データ間における変化量の配列パターンに基づいてスマートフォン10における時刻データの更新間隔を同定する。
図8(a)では、中央に時系列で前半の0.5秒間に電子時計40bが現在時刻データを取得したタイミングを縦線で示し、また、スマートフォン10で現在時刻データが更新され得るタイミングを記号「×」で示している。また、上段には、電子時計40bで現在時刻データが取得されたタイミングの秒値、1/256秒値、及び、電子時計40bで実際にスマートフォン10から取得された1/256秒値の例を示す。括弧で示された値は、隣接する現在時刻取得タイミング間での1/256秒値の変化量を示す。また、下段には、各記号「×」で示されたタイミングにおいて、スマートフォン10で更新され得る1/256秒値の値を示す。
図8(a)示すように、例えば、100msec間隔で取得された1/256秒値の配列が「0、16、48、64、96、128」である場合には、隣接する1/256秒値の間の変化量は、16、又は、32であり、スマートフォン10における時刻データの更新間隔が、1/256秒値でこれらの値の最大公約数である16の約数のいずれかであることが分かる。また、8/256=1/32秒間隔で更新される時刻データが0.1秒間隔で取得される場合、必ず隣接する1/256秒値の間の変化量が16となる期間が生じるので、スマートフォン10における時刻データの更新間隔は、16/256=1/16秒間隔であることが同定される。
First, 11 pieces of data (1/256 second value) less than the second set in the index “Fraction 256” from the time data acquired in one second are arranged. These 1/256 second values are unsigned integers between 0 and 255. And in the electronic timepiece 40b of this embodiment, the update interval of the time data in the smart phone 10 is identified based on the sequence pattern of the variation between each data.
In FIG. 8 (a), the timing at which the electronic timepiece 40b acquires the current time data in the first half of 0.5 seconds in the center is shown by vertical lines, and the timing at which the current time data can be updated on the smartphone 10 is shown. This is indicated by the symbol “x”. Further, in the upper part, examples of the second value, 1/256 second value of the timing when the current time data is acquired by the electronic clock 40b, and 1/256 second value actually acquired from the smartphone 10 by the electronic clock 40b are shown. Show. The value indicated in parentheses indicates the amount of change in 1/256 second value between adjacent current time acquisition timings. Also, the lower part shows a value of 1/256 second that can be updated by the smartphone 10 at the timing indicated by each symbol “x”.
As shown in FIG. 8A, for example, when the array of 1/256 second values acquired at 100 msec intervals is “0, 16, 48, 64, 96, 128”, adjacent 1/256 seconds. The amount of change between the values is 16 or 32, and the update interval of the time data in the smartphone 10 is either a divisor of 16 that is a 1/256 second value and is the greatest common divisor of these values. I understand that. In addition, when time data updated at intervals of 8/256 = 1/32 seconds are acquired at intervals of 0.1 seconds, there is always a period in which the amount of change between adjacent 1 / 256-second values is 16. The time data update interval in the smartphone 10 is identified as 16/256 = 1/16 second interval.

なお、スマートフォン10における更新間隔は、基本的に1Hz、或いは、2又は10の整数倍の周波数に設定されているものとして上記の同定を行うことができる。   The above-described identification can be performed assuming that the update interval in the smartphone 10 is basically set to 1 Hz or a frequency that is an integer multiple of 2 or 10.

次に、1/16秒のデータ更新間隔と1/10秒のデータ取得間隔とは、500ms周期で一致する。即ち、500msの一周期における1/256秒値データの変化量は、「16、32、16、32、32」で繰り返される。   Next, the data update interval of 1/16 second and the data acquisition interval of 1/10 second coincide with each other with a 500 ms period. That is, the change amount of 1/256 second value data in one cycle of 500 ms is repeated as “16, 32, 16, 32, 32”.

ここで、図8(b)には、図8(a)における電子時計40bの時刻取得タイミングとスマートフォン10の時刻更新タイミングとを0.0125秒程度ずらした場合の例を示す。図8(b)の上段には、ずれの大きさが0.0125秒未満の場合に取得される1/256秒値(b1)と、ずれの大きさが0.0125秒以上の場合に取得される1/256秒値(b2)とが示されている。   Here, FIG. 8B shows an example in which the time acquisition timing of the electronic timepiece 40b in FIG. 8A and the time update timing of the smartphone 10 are shifted by about 0.0125 seconds. In the upper part of FIG. 8 (b), a 1/256 second value (b1) obtained when the magnitude of the deviation is less than 0.0125 seconds and obtained when the magnitude of the deviation is 0.0125 seconds or more. 1/256 second value (b2) is shown.

図8(a)、(b)に示すように、2回連続して取得される間隔「32」のデータ取得タイミング(図8(a)の0.4秒及び0.5秒のタイミング)のうち、2度目のデータ取得タイミングは、直前の時刻更新タイミングから0.0125秒(3.2/256秒)未満の遅延に限られる。従って、この2度目の間隔「32」のデータ取得タイミングに取得された時刻データに基づいて現在時刻を修正することで、スマートフォン10における指標“Current Time”の更新間隔、及び、電子時計40bとスマートフォン10との間の接続間隔と比較して遥かによい精度で時刻データを取得することが出来る。
時刻更新タイミングと時刻の取得タイミングとの同期が0.0125秒以上ずれると、2回連続して取得される間隔「32」のデータ取得タイミングが移動する(図8(b)の1/256秒取得値(b2)において、0.2125秒及び0.3125秒のタイミング)が、上記の性質は変わらないので、やはり、取得された現在時刻の遅延を0.0125秒未満に限定することが出来る。ここで、この最大遅延時間の半分の時間(0.00625秒)を取得された現在時刻に加えることで、遅延時間を±0.00625秒の範囲とすることができる。
As shown in FIGS. 8A and 8B, the data acquisition timing (timing of 0.4 seconds and 0.5 seconds in FIG. 8A) of the interval “32” acquired twice in succession. Of these, the second data acquisition timing is limited to a delay of less than 0.0125 seconds (3.2 / 256 seconds) from the immediately preceding time update timing. Accordingly, by correcting the current time based on the time data acquired at the data acquisition timing of the second interval “32”, the update interval of the index “Current Time” in the smartphone 10, and the electronic timepiece 40 b and the smartphone The time data can be acquired with much better accuracy than the connection interval between the two.
When the synchronization between the time update timing and the time acquisition timing shifts by 0.0125 seconds or more, the data acquisition timing of the interval “32” acquired twice consecutively moves (1/256 seconds in FIG. 8B). In the acquired value (b2), the timing of 0.2125 seconds and 0.3125 seconds) does not change the above property, so the delay of the acquired current time can still be limited to less than 0.0125 seconds. . Here, by adding half the maximum delay time (0.00625 seconds) to the acquired current time, the delay time can be in the range of ± 0.00625 seconds.

以上のように、第2実施形態の電子時計40bによれば、設定された接続間隔ごとにブルートゥース通信によりスマートフォン10から取得された時刻データの変化量の配列に基づいてスマートフォン10における時刻データの更新間隔を同定し、同定された更新間隔と、接続間隔と、上記時刻データの変化量の配列パターンとに基づいてスマートフォン10における更新タイミング直後に取得された時刻データを取得して計時回路45で計数されている現在時刻の修正を行うので、スマートフォン10の更新間隔やスマートフォン10と電子時計40bとの接続間隔以下の良い時間分解能で時刻データを取得することが出来る。   As described above, according to the electronic timepiece 40b of the second embodiment, the time data in the smartphone 10 is updated based on the array of changes in the time data acquired from the smartphone 10 by Bluetooth communication for each set connection interval. The interval is identified, and the time data acquired immediately after the update timing in the smartphone 10 based on the identified update interval, the connection interval, and the array pattern of the change amount of the time data is acquired and counted by the timing circuit 45 Since the current time is corrected, the time data can be acquired with a good time resolution equal to or less than the update interval of the smartphone 10 and the connection interval between the smartphone 10 and the electronic timepiece 40b.

また、上記のように時間変化量の配列パターンに基づいて更新間隔や現在時刻の取得タイミングを同定する処理は、当該配列パターンによっては演算量が大きくなるので、予めテーブルデータを生成してROM42に記憶させておき、このテーブルデータを参照して同定することが出来る。   In addition, as described above, the processing for identifying the update interval and the acquisition timing of the current time based on the array pattern of the time change amount requires a large amount of calculation depending on the array pattern. It can be stored and identified by referring to this table data.

なお、上記実施の形態では、接続間隔よりも更新間隔が広い場合には、最長で接続間隔と同等の時間分解能が得られるが、電子時計40bで必要とする時刻分解能が接続間隔よりも小さい場合であって、更新間隔が接続間隔の倍数である場合など、接続間隔未満の必要な時間分解能に対応する遅延時間以下の現在時刻を取得できるタイミングが存在しない場合には、下記の第3実施形態で示すように、必要な時間分解能が得られる接続間隔に再設定すれば良い。   In the above embodiment, when the update interval is wider than the connection interval, the longest time resolution equivalent to the connection interval can be obtained, but the time resolution required for the electronic timepiece 40b is smaller than the connection interval. In the case where there is no timing at which the current time less than the delay time corresponding to the required time resolution less than the connection interval can be obtained, such as when the update interval is a multiple of the connection interval, the following third embodiment As shown in FIG. 5, the connection interval may be reset to obtain the necessary time resolution.

また、一のスマートフォン10に対して一度特定された更新間隔データを当該スマートフォン10の識別情報と関連付けてRAM43に記憶させておくことで、次回以降の時刻情報の取得の際には、当該更新間隔データに基づいて最適な接続間隔を設定したり、直接現在時刻の取得タイミングを決定したりすることができる。   In addition, the update interval data once specified for one smartphone 10 is stored in the RAM 43 in association with the identification information of the smartphone 10, so that the update interval can be obtained at the time of acquiring time information from the next time onward. An optimal connection interval can be set based on the data, or the acquisition timing of the current time can be directly determined.

[第3実施形態]
次に、第3実施形態の電子時計40cについて説明する。
図9は、第3実施形態の電子時計40cの内部構成を説明するブロック図である。
[Third Embodiment]
Next, an electronic timepiece 40c according to a third embodiment will be described.
FIG. 9 is a block diagram illustrating an internal configuration of an electronic timepiece 40c according to the third embodiment.

第3実施形態の電子時計40cは、第1実施形態の電子時計40とは時刻データ更新プログラム42cが異なる点を除いて同一であり、同一の符号を付して説明を省略する。   The electronic timepiece 40c according to the third embodiment is the same as the electronic timepiece 40 according to the first embodiment except that the time data update program 42c is different.

次に第3実施形態の電子時計40cによる時刻データ更新処理について説明する。   Next, time data update processing by the electronic timepiece 40c of the third embodiment will be described.

図10は、第3実施形態の電子時計40cによる時刻データ更新処理の内容を説明する図である。時系列で、縦線(g1)〜(g6)により電子時計40cによる時刻データの取得タイミングが示され、記号「×」によりスマートフォン10による時刻データの更新タイミングが2通り示されている。   FIG. 10 is a diagram for explaining the contents of the time data update process by the electronic timepiece 40c of the third embodiment. In time series, vertical data (g1) to (g6) indicate time data acquisition timing by the electronic timepiece 40c, and symbol “x” indicates two time data update timings by the smartphone 10.

上記した第2実施形態の電子時計40bと同様に、スマートフォン10における指標“Current Time”の更新間隔が同定された場合に、図10(a)に示すように、電子時計40cにおいてこの更新間隔より僅かに長い接続間隔、又は、図10(b)に示すように、更新間隔より僅かに短い接続間隔を再設定することで、更新間隔と接続間隔の比によって定まる回数に一回、前回の取得時刻の変化量が他の回の変化量の倍となる回(図10(a)のタイミング(g5))、又は、取得される時刻が前回の取得時刻と変わらない回(図10(b)のタイミング(g6))が現れる。そして、これらの何れも場合にも、タイミング(g5)で取得された現在時刻は、スマートフォン10における指標“Current Time”の更新タイミングで更新された時刻からの遅延時間が最小になる。従って、このタイミング(g5)で取得された現在時刻データに基づいて計時回路45の計数する現在時刻を修正することで、設定間隔及び接続間隔より遥かに精度の高い時刻データを取得することが出来る。   Similar to the electronic timepiece 40b of the second embodiment described above, when the update interval of the index “Current Time” in the smartphone 10 is identified, as shown in FIG. The previous acquisition is performed once at a number determined by the ratio between the update interval and the connection interval by resetting a slightly longer connection interval or a connection interval slightly shorter than the update interval as shown in FIG. The time when the amount of change in time is double the amount of change in other times (timing (g5) in FIG. 10A), or the time when the acquired time is not different from the previous acquisition time (FIG. 10B) (G6)) appears. In any of these cases, the current time acquired at the timing (g5) minimizes the delay time from the time updated at the update timing of the index “Current Time” in the smartphone 10. Therefore, by correcting the current time counted by the clock circuit 45 based on the current time data acquired at this timing (g5), it is possible to acquire time data that is much more accurate than the set interval and connection interval. .

図11は、第3実施形態の電子時計40cにおける時刻データ更新処理において、CPU41が実行する制御手順を示すフローチャートである。   FIG. 11 is a flowchart showing a control procedure executed by the CPU 41 in the time data update process in the electronic timepiece 40c of the third embodiment.

第3実施形態の時刻データ更新処理では、第2実施形態の時刻データ更新処理におけるステップS22の処理に代わってステップS32〜S39の処理が行われる。その他の処理は、第2実施形態の時刻データ更新処理における各処理と同一であり、同一の符号を付して説明を省略する。   In the time data update process of the third embodiment, the processes of steps S32 to S39 are performed instead of the process of step S22 in the time data update process of the second embodiment. The other processes are the same as the processes in the time data update process of the second embodiment, and the same reference numerals are assigned to omit the description.

ステップS21の処理でスマートフォン10における指標“Current Time”の更新間隔が算出されると、続いて、CPU41は、この算出された更新間隔より僅かに長い接続間隔を設定する(ステップS32)。例えば、CPU41は、所望の時刻精度に応じた所定の時間を更新間隔に加算し、接続状態の設定値“connInterval”で設定可能な最も近い値に接続間隔を設定する。   When the update interval of the index “Current Time” in the smartphone 10 is calculated in the process of step S21, the CPU 41 then sets a connection interval slightly longer than the calculated update interval (step S32). For example, the CPU 41 adds a predetermined time according to the desired time accuracy to the update interval, and sets the connection interval to the closest value that can be set by the connection state setting value “connInterval”.

それから、CPU41は、スマートフォン10との間で接続されているブルートゥース通信における接続間隔の変更要求をBluetoothモジュール48に送信させる。即ち、CPU41は、接続状態更新要求“LL_CONNECTION_UPDATE_REQ”及び上記設定された接続間隔の設定値“connInterval”を含む引数を通信データとしてスマートフォン10へ送信させる(ステップS33)。   Then, the CPU 41 causes the Bluetooth module 48 to transmit a connection interval change request in Bluetooth communication connected to the smartphone 10. That is, the CPU 41 causes the smartphone 10 to transmit an argument including the connection state update request “LL_CONNECTION_UPDATE_REQ” and the set connection interval setting value “connInterval” as communication data (step S33).

CPU41は、Bluetoothモジュール48がスマートフォン10からの信号を受信し、接続状態更新要求が正常に受け付けられた旨を示す信号を確認するまで待機する(ステップS34)。   The CPU 41 waits until the Bluetooth module 48 receives a signal from the smartphone 10 and confirms a signal indicating that the connection state update request has been normally received (step S34).

CPU41は、ステップS33の処理で設定変更されたスマートフォン10との接続間隔ごとに、Bluetoothモジュール48に指標“Current Time”の属性値を取得する要求をスマートフォン10に対して送信させる(ステップS35)。そして、CPU41は、Bluetoothモジュール48がスマートフォン10から指標“Current Time”の属性値を受信すると、CPU41は、この受信データの指標“Exact Time 256”に係る属性値から1/256秒単位の時刻データを取得してRAM43に記憶させる(ステップS36)。   CPU41 makes the Bluetooth module 48 transmit the request | requirement which acquires the attribute value of parameter | index "Current Time" with respect to the smart phone 10 for every connection space | interval with the smart phone 10 whose setting was changed by the process of step S33 (step S35). Then, when the Bluetooth module 48 receives the attribute value of the index “Current Time” from the smartphone 10, the CPU 41 detects time data in units of 1/256 seconds from the attribute value related to the index “Exact Time 256” of the received data. Is acquired and stored in the RAM 43 (step S36).

続いて、CPU41は、接続間隔ごとに、Bluetoothモジュール48に2回目以降の指標“Current Time”の属性値を取得する要求をスマートフォン10に対して送信させる(ステップS37)。そして、CPU41は、Bluetoothモジュール48がスマートフォン10から指標“Current Time”の属性値を受信すると、CPU41は、この受信データの指標“Exact Time 256”に係る属性値から1/256秒単位の時刻データを取得してRAM43に記憶させる(ステップS38)。   Subsequently, for each connection interval, the CPU 41 causes the Bluetooth module 48 to transmit a request for acquiring the attribute value of the index “Current Time” for the second and subsequent times to the smartphone 10 (step S37). Then, when the Bluetooth module 48 receives the attribute value of the index “Current Time” from the smartphone 10, the CPU 41 detects time data in units of 1/256 seconds from the attribute value related to the index “Exact Time 256” of the received data. Is acquired and stored in the RAM 43 (step S38).

CPU41は、直近の二回で取得された時刻データの秒以下の値の変化量が、ステップS21で算出された指標“Current Time”の更新間隔に対応する通常変化量と等しいか否かを判別する(ステップS39)。通常変化量と等しいと判別された場合には、CPU41の処理は、ステップS37に戻り、前回の時刻データの取得要求から接続間隔が経過後に、次の処理を行わせる。   CPU41 discriminate | determines whether the variation | change_quantity of the value below the second of the time data acquired by the last two times is equal to the normal variation | change_quantity corresponding to the update interval of the parameter | index "Current Time" calculated by step S21. (Step S39). If it is determined that the amount of change is equal to the normal change amount, the process of the CPU 41 returns to step S37 and causes the next process to be performed after the connection interval has elapsed from the previous time data acquisition request.

一方、ステップS39の判別処理で、秒以下の値の変化量が通常変化量と等しくないと判別された場合には、CPU41は、直近のステップS38の処理で取得された時刻データに基づいて計時回路45の現在時刻データを更新する(ステップS18)。
この第3実施形態の電子時計40cでは、CPU41とステップS37〜S39、S18の処理により現在時刻取得手段が構成される。
On the other hand, if it is determined in the determination process in step S39 that the change amount of the second or less value is not equal to the normal change amount, the CPU 41 counts time based on the time data acquired in the latest process in step S38. The current time data of the circuit 45 is updated (step S18).
In the electronic timepiece 40c of the third embodiment, a current time acquisition unit is configured by the CPU 41 and the processes of steps S37 to S39 and S18.

なお、ステップS21の処理で算出された指標“Current Time”の更新間隔が電子時計40cの要求する時間精度を既に満たしている場合には、ステップS32〜S39の処理を省略して、直近のステップS15、S16の処理で取得された現在時刻データに基づいて即座に計時回路45の現在時刻データを更新することとしても良い。   If the update interval of the index “Current Time” calculated in the process of step S21 already satisfies the time accuracy required by the electronic timepiece 40c, the process of steps S32 to S39 is omitted and the most recent step is performed. The current time data of the time measuring circuit 45 may be updated immediately based on the current time data acquired in the processes of S15 and S16.

また、再設定時の接続間隔を、例えば、上記再設定された際の接続間隔の半分とすると、受信された現在時刻データが1回置きに更新される中で2度続けて時刻データが更新された場合、当該2度目に受信された現在時刻に係る遅延時間が最も小さいものとなる。従って、上記の時刻データ更新処理の半分の所要時間で現在時刻データを取得することが出来る。このように、再設定時の接続間隔を他の適宜な値としても、上記第2実施形態の時刻データ更新処理と同様に受信された現在時刻の配列パターンに基づいて遅延時間の小さい現在時刻を取得することが可能となる。   If the connection interval at the time of resetting is, for example, half of the connection interval at the time of resetting, the time data is updated twice in succession while the received current time data is updated every other time. If it is, the delay time related to the current time received for the second time is the shortest. Therefore, the current time data can be acquired in half the time required for the time data update process. As described above, even if the connection interval at the time of resetting is set to another appropriate value, the current time with a small delay time is obtained based on the received current time arrangement pattern in the same manner as the time data update process of the second embodiment. It can be acquired.

以上のように、本発明の第3実施形態の電子時計40cで実行される時刻データ更新処理では、先ず、スマートフォン10における時刻データの更新間隔を同定し、同定されたこの更新間隔より僅かに短い、又は、長い接続間隔を再設定することで、当該延長、又は、短縮された接続間隔の幅に対応する精度で現在時刻を取得することが出来る。   As described above, in the time data update process executed by the electronic timepiece 40c according to the third embodiment of the present invention, first, the update interval of the time data in the smartphone 10 is identified and slightly shorter than the identified update interval. Alternatively, by resetting a long connection interval, the current time can be acquired with an accuracy corresponding to the width of the extended or reduced connection interval.

また、接続間隔の再設定後に取得される現在時刻の変化量の配列が簡潔になるので、CPU41の負荷を軽減することが出来る。   In addition, since the arrangement of changes in the current time acquired after resetting the connection interval is simplified, the load on the CPU 41 can be reduced.

また、本発明の第1実施形態〜第3実施形態によれば、電子時計(40、40b、40c)による時刻情報取得動作の際には、電子時計(40、40b、40c)とスマートフォン10との間で通常設定されている通信の接続間隔(通信時間間隔)を短縮して短い時間に複数回(例えば、1秒間に10回)のデータ受信を可能としている。しかし、スマートフォン10によっては、電子時計(40、40b、40c)からの接続間隔の短縮要求(変更要求)に対応していない場合も考えられる。つまり通常設定されている通信の接続間隔から短くなるように接続間隔を変更できないスマートフォン10も考えられる。この場合、通常の接続間隔が例えば2000msだったとすると、スマートフォン10から時刻データを取得したときに最大2000msの誤差が発生する可能性がある。   Further, according to the first to third embodiments of the present invention, in the time information acquisition operation by the electronic timepiece (40, 40b, 40c), the electronic timepiece (40, 40b, 40c), the smartphone 10, The communication connection interval (communication time interval) that is normally set in between is shortened to enable data reception multiple times (for example, 10 times per second) in a short time. However, some smartphones 10 may not support a connection interval reduction request (change request) from the electronic timepiece (40, 40b, 40c). That is, a smartphone 10 that cannot change the connection interval so as to be shorter than the communication connection interval that is normally set is also conceivable. In this case, if the normal connection interval is 2000 ms, for example, when time data is acquired from the smartphone 10, an error of 2000 ms at maximum may occur.

その他の実施形態として電子時計(40、40b、40c)とスマートフォン10との接続間隔が変更できない場合について説明する。図12は電子時計(40、40b、40c)において実行される時刻データ更新処理のCPU41による制御手順を示すフローチャートである。この時刻データ更新処理は、上記の第1実施形態〜第3実施形態とROM42に格納された時刻データ更新プログラムの内容が異なるだけである。時刻データ更新プログラムは、予め定められたタイミング、例えば、1日1回所定の時刻に自動的に起動されたり、ユーザの操作部44への入力操作により起動されたり、スマートフォン10との通信接続が確立された際に初期設定の一環として起動されたり、或いは、スマートフォン10においてタイムゾーンの移動や夏時間の開始、終了といった時刻変更処理が行われた場合にスマートフォン10から受信された時刻変更通知に基づいて起動されたりする。   The case where the connection space | interval of the electronic timepiece (40, 40b, 40c) and the smart phone 10 cannot be changed as other embodiment is demonstrated. FIG. 12 is a flowchart showing a control procedure by the CPU 41 of time data update processing executed in the electronic timepiece (40, 40b, 40c). This time data update process differs from the first to third embodiments described above only in the contents of the time data update program stored in the ROM 42. The time data update program is automatically activated at a predetermined timing, for example, once a day at a predetermined time, activated by a user input operation to the operation unit 44, or connected to the smartphone 10 for communication. Based on the time change notification received from the smartphone 10 when it is established as part of the initial setting when it is established, or when time change processing such as time zone movement or daylight saving time start / end is performed on the smartphone 10 Or is activated.

この時刻データ更新処理が起動されると、CPU41は、先ず、スマートフォン10との間で接続されているブルートゥース通信における接続間隔の短縮要求(変更要求)をスマートフォン10へ送信する(ステップS41)。CPU41は、スマートフォン10からの信号を受信し、接続間隔の変更が可能か否かを判断する(ステップS42、接続間隔判断手段)。ステップS42で接続間隔の変更が可能であると判断された場合は(ステップS42でYES)、上記の第1実施形態〜第3実施形態のステップS12へ進みステップS13以降の処理を行う。ステップS42で接続間隔の変更ができないと判断された場合は(ステップS42でNO)、ステップS43へ進む。そして、CPU41は、スマートフォン10から接続間隔の変更ができないことを示す信号を受信したことを確認する(ステップS43)。次に、CPU41は、指標“Current Time”を取得する要求をスマートフォン10に対して送信する(ステップS44)。そして、指標“Current Time”を受信すると、CPU41は、時刻データを取得してRAM43に記憶する(ステップS45)。そして、CPU41は、接続間隔が所定間隔以上(例えば1000ms以上)か否かを判断する(ステップS46、判断手段)。そして、接続間隔が所定間隔以上であれば(ステップS46でYES)、CPU41は、最新の時刻データにより計時回路45の時刻データを更新し(ステップS47)、表示部46に時刻を表示させると共に、スマートフォン10から取得した時刻データに誤差があることを示すため、「時刻データに誤差あり」の意味を示す内容(マークなど)を表示させる(ステップS48)。接続間隔が所定間隔未満であれば(ステップS46でNO)、CPU41は、最新の時刻データにより計時回路45の時刻データを更新し(ステップS49)、表示部46に時刻を表示させる(ステップS50)。ここで、CPU41とステップS47の処理とステップS49の処理により時刻取得手段が構成される。   When the time data update process is activated, the CPU 41 first transmits a connection interval shortening request (change request) in Bluetooth communication connected to the smartphone 10 to the smartphone 10 (step S41). The CPU 41 receives a signal from the smartphone 10 and determines whether or not the connection interval can be changed (step S42, connection interval determination means). If it is determined in step S42 that the connection interval can be changed (YES in step S42), the process proceeds to step S12 in the first to third embodiments, and the processes after step S13 are performed. If it is determined in step S42 that the connection interval cannot be changed (NO in step S42), the process proceeds to step S43. And CPU41 confirms having received the signal which shows that the connection space | interval cannot be changed from the smart phone 10 (step S43). Next, CPU41 transmits the request | requirement which acquires parameter | index "Current Time" with respect to the smart phone 10 (step S44). When the index “Current Time” is received, the CPU 41 acquires time data and stores it in the RAM 43 (step S45). Then, the CPU 41 determines whether or not the connection interval is a predetermined interval or more (for example, 1000 ms or more) (step S46, determination means). If the connection interval is equal to or greater than the predetermined interval (YES in step S46), the CPU 41 updates the time data of the time measuring circuit 45 with the latest time data (step S47), displays the time on the display unit 46, and In order to indicate that there is an error in the time data acquired from the smartphone 10, contents (such as a mark) indicating the meaning of “the time data has an error” are displayed (step S48). If the connection interval is less than the predetermined interval (NO in step S46), the CPU 41 updates the time data of the clock circuit 45 with the latest time data (step S49), and causes the display unit 46 to display the time (step S50). . Here, the CPU 41, the process of step S47, and the process of step S49 constitute a time acquisition unit.

以上のように、本発明のその他の実施形態の電子時計(40、40b、40c)で実行される時刻データ更新処理では、接続間隔が所定間隔以上(例えば1000ms以上)だった場合には、スマートフォン10から取得した時刻データに誤差があることを示すため、電子時計(40、40b、40c)の表示部46に時刻を表示すると共に、「時刻データに誤差あり」の意味を示す内容(マークなど)を表示する。よって、ユーザに対して電子時計(40、40b、40c)に表示されている時刻、つまりスマートフォン10から取得した時刻データにより更新された計時回路45の時刻データには誤差があることを認識させることができる。
さらに、ステップS45の処理で、接続間隔が所定間隔以上であれば(ステップS46でYES)、ステップS47の処理で、誤差を低減させるためにスマートフォン10から取得した時刻データに強制的に接続間隔の半分の値を加算して、計時回路45の時刻データを更新するようにしてもよい。例えば、接続間隔が2000msだった場合は1000msを、接続間隔が1000msだった場合は500msを加算することで、誤差を低減させることができる。
As described above, in the time data update process executed by the electronic timepiece (40, 40b, 40c) according to another embodiment of the present invention, if the connection interval is a predetermined interval or more (for example, 1000 ms or more), the smartphone 10 is displayed on the display unit 46 of the electronic timepiece (40, 40b, 40c) to indicate that there is an error in the time data acquired from 10 and contents indicating the meaning of “the time data has an error” ) Is displayed. Therefore, let the user recognize that there is an error in the time data displayed on the electronic timepiece (40, 40b, 40c), that is, the time data of the clock circuit 45 updated with the time data acquired from the smartphone 10. Can do.
Furthermore, if the connection interval is equal to or greater than the predetermined interval in the process of step S45 (YES in step S46), the time interval acquired from the smartphone 10 is forcibly added to the time data acquired in step S47 to reduce the error. You may make it update the time data of the time measuring circuit 45 by adding a half value. For example, the error can be reduced by adding 1000 ms when the connection interval is 2000 ms and adding 500 ms when the connection interval is 1000 ms.

なお、本発明は、上記実施の形態に限られるものではなく、様々な変更が可能である。
例えば、上記実施の形態では、電子腕時計を例に挙げて説明したが、これに限られない。例えば、懐中時計であっても良いし、壁掛け時計や置時計であっても良い。また、時計としての機能を主目的とした電子時計に限られず、電子歩数計や血圧計などの電子時計機能に対して適用することも可能である。また、外部機器としてスマートフォンを例に挙げて説明したが、ノートPCやPDA(Portable Digital Assistant)など、他の携帯型電子機器であっても良い。或いは、壁掛け時計や置時計と、デスクトップ型PCとの間でブルートゥース通信を行わせて時刻の修正を行う際に利用することとしても良い。
The present invention is not limited to the above-described embodiment, and various modifications can be made.
For example, in the above embodiment, the electronic wristwatch has been described as an example, but the present invention is not limited to this. For example, it may be a pocket watch, a wall clock or a table clock. Further, the present invention is not limited to an electronic timepiece whose main purpose is a function as a timepiece, and can be applied to electronic timepiece functions such as an electronic pedometer and a blood pressure monitor. Further, although the smartphone has been described as an example of the external device, other portable electronic devices such as a notebook PC and a PDA (Portable Digital Assistant) may be used. Alternatively, it may be used when correcting the time by making Bluetooth communication between a wall clock or table clock and a desktop PC.

また、上記実施の形態では、ブルートゥース通信の規約バージョン4.0を例に挙げて説明したが、所定の時間間隔でデータ通信が行われる他の近距離無線通信を用いることとしても良い。   In the above-described embodiment, Bluetooth communication protocol version 4.0 has been described as an example. However, other short-range wireless communication in which data communication is performed at a predetermined time interval may be used.

また、上記実施の形態では、本発明に係るプログラムのコンピュータ読み取り可能な媒体としてROM42を使用した例を開示したが、この例に限定されない。その他のコンピュータ読み取り可能な媒体として、フラッシュメモリ、EEPROM等の不揮発性メモリ、CD−ROM等の可搬型記録媒体を適用することが可能である。また、本発明に係るプログラムのデータを通信回線を介して提供する媒体として、キャリアウェーブ(搬送波)も本発明に適用される。
その他、上記実施の形態で示した具体的な構成の細部や数値、制御手順などは、本発明の趣旨を逸脱しない範囲において適宜変更可能である。
Moreover, although the example which uses ROM42 as a computer-readable medium of the program based on this invention was disclosed in the said embodiment, it is not limited to this example. As other computer-readable media, flash memory, nonvolatile memory such as EEPROM, and portable recording media such as CD-ROM can be applied. A carrier wave is also applied to the present invention as a medium for providing program data according to the present invention via a communication line.
In addition, details, numerical values, control procedures, and the like of the specific configuration shown in the above embodiment can be changed as appropriate without departing from the spirit of the present invention.

本発明のいくつかの実施形態を説明したが、本発明の範囲は、上述の実施の形態に限定するものではなく、特許請求の範囲に記載された発明の範囲とその均等の範囲を含む。
以下に、この出願の願書に最初に添付した特許請求の範囲に記載した発明を付記する。付記に記載した請求項の項番は、この出願の願書に最初に添付した特許請求の範囲の通りである。
Although several embodiments of the present invention have been described, the scope of the present invention is not limited to the above-described embodiments, but includes the scope of the invention described in the claims and equivalents thereof.
The invention described in the scope of claims attached to the application of this application will be added below. The item numbers of the claims described in the appendix are as set forth in the claims attached to the application of this application.

[付記]
<請求項1>
現在時刻を計数する計時手段と、
設定された通信時間間隔で無線通信により外部機器との間でデータの送受信を行う通信手段と、
当該通信手段により前記外部機器から取得された現在時刻データに基づいて前記計時手段の現在時刻を修正する時刻修正手段と、
を備え、
前記時刻修正手段は、
前記計時手段の現在時刻の修正処理を行う間、前記通信時間間隔を当該計時手段の現在時刻の精度に応じた値に変更する間隔調整手段と、
前記間隔調整手段により変更された前記通信時間間隔ごとに前記通信手段に現在時刻データを受信させて、受信された当該現在時刻の配列パターンと前記通信時間間隔とに基づいて前記外部機器における現在時刻データの更新間隔を同定する更新間隔同定手段と、
前記更新間隔同定手段により同定された前記更新間隔と、前記現在時刻の配列パターンと、前記通信時間間隔とに基づいて、前記外部機器における現在時刻データの更新タイミングから当該現在時刻データの受信タイミングまでの遅延時間が前記計時手段の現在時刻の精度に基づいて設定される所定の基準値よりも小さい前記現在時刻データの受信タイミングを同定し、当該受信タイミングで現在時刻データを取得する現在時刻取得手段と、
を備えることを特徴とする電子時計。
<請求項2>
前記間隔調整手段は、前記更新間隔同定手段により前記外部機器における現在時刻データの前記更新間隔が同定されると、当該更新間隔を前記計時手段の時刻精度に応じた長さ分短縮又は延長した通信時間間隔を再設定し、
前記現在時刻取得手段は、前記更新間隔と、前記再設定された通信時間間隔と、当該通信時間間隔ごとに取得された前記現在時刻の配列パターンとに基づいて、前記外部機器における現在時刻データの更新タイミングから当該現在時刻データの受信タイミングまでの遅延時間が最も小さい受信タイミングを同定し、当該受信タイミングで現在時刻データを取得する
ことを特徴とする請求項1記載の電子時計。
<請求項3>
前記時刻修正手段は、前記現在時刻取得手段が取得した現在時刻に当該現在時刻の取り得る最大遅延時間の半分の値を加算した時刻により、前記計時手段の現在時刻データを修正する
ことを特徴とする請求項1又は2に記載の電子時計。
<請求項4>
前記更新間隔同定手段により変更される前記通信時間間隔ごとに受信される現在時刻間での当該現在時刻の変化量の配列と、当該変化量の配列に対応する前記更新間隔とを関連付けてテーブルデータとして記憶する記憶手段を備え、
前記時刻修正手段は、当該記憶手段に記憶された前記テーブルデータと前記通信時間間隔ごとに受信された現在時刻の配列パターンとを比較することで前記更新間隔を同定する
ことを特徴とする請求項1記載の電子時計。
<請求項5>
時刻の表示をする表示手段と、
前記外部機器との前記通信時間間隔の変更が可能か否かを判断する接続間隔判断手段と、
前記接続間隔判断手段が前記外部機器との前記通信時間間隔の変更ができないと判断した場合に、前記通信時間間隔が所定間隔以上か否かを判断する判断手段と、
前記時刻修正手段は、前記外部機器から変更されない前記通信時間間隔で現在時刻データを取得する時刻取得手段を有し、
前記判断手段が前記所定間隔以上と判断した場合に、前記表示手段に表示時刻には誤差があることを示す内容を表示させる制御手段と、を備える
ことを特徴とする請求項1記載の電子時計。
<請求項6>
前記時刻取得手段は、
前記判断手段が前記所定間隔以上と判断した場合に、現在時刻に前記通信時間間隔の半分の値を加算した時刻により、前記計時手段の現在時刻を修正する
ことを特徴とする請求項5記載の電子時計。
<請求項7>
現在時刻を計数する計時手段と、設定された通信時間間隔で無線通信により外部機器との間でデータの送受信を行う通信手段と、を備える電子時計において、当該通信手段により前記外部機器から取得された現在時刻データに基づいて前記計時手段の現在時刻を修正する時刻修正方法であって、
前記時刻修正方法は、
前記計時手段の現在時刻の修正処理を行う間、前記通信時間間隔を当該計時手段の現在時刻の精度に応じた値に変更する間隔調整ステップ、
前記間隔調整ステップで変更された前記通信時間間隔ごとに前記通信手段に現在時刻データを受信させて、受信された当該現在時刻の配列パターンと前記通信時間間隔とに基づいて前記外部機器における現在時刻データの更新間隔を同定する更新間隔同定ステップ、
前記更新間隔同定ステップで同定された前記更新間隔と、前記現在時刻の配列パターンと、前記通信時間間隔とに基づいて、前記外部機器における現在時刻データの更新タイミングから当該現在時刻データの受信タイミングまでの遅延時間が前記計時手段の現在時刻の精度に基づいて設定される所定の基準値よりも小さい前記現在時刻データの受信タイミングを同定し、当該受信タイミングで現在時刻データを取得する現在時刻取得ステップ、
を含むことを特徴とする時刻修正方法。
<請求項8>
現在時刻を計数する計時手段と、設定された通信時間間隔で無線通信により外部機器との間でデータの送受信を行う通信手段と、を備えるコンピュータに、当該通信手段により前記外部機器から取得された現在時刻データに基づいて前記計時手段の現在時刻を修正する時刻修正機能を実現させるためのプログラムであって、
前記時刻修正機能は、
前記計時手段の現在時刻の修正処理を行う間、前記通信時間間隔を当該計時手段の現在時刻の精度に応じた値に変更する間隔調整ステップ、
前記間隔調整ステップで変更された前記通信時間間隔ごとに前記通信手段に現在時刻データを受信させて、受信された当該現在時刻の配列パターンと前記通信時間間隔とに基づいて前記外部機器における現在時刻データの更新間隔を同定する更新間隔同定ステップ、
前記更新間隔同定ステップで同定された前記更新間隔と、前記現在時刻の配列パターンと、前記通信時間間隔とに基づいて、前記外部機器における現在時刻データの更新タイミングから当該現在時刻データの受信タイミングまでの遅延時間が前記計時手段の現在時刻の精度に基づいて設定される所定の基準値よりも小さい前記現在時刻データの受信タイミングを同定し、当該受信タイミングで現在時刻データを取得する現在時刻取得ステップ、
を含むことを特徴とするプログラム。
[Appendix]
<Claim 1>
A time counting means for counting the current time;
A communication means for transmitting / receiving data to / from an external device by wireless communication at a set communication time interval;
Time correcting means for correcting the current time of the time measuring means based on current time data acquired from the external device by the communication means;
With
The time correction means includes
While performing the correction process of the current time of the time measuring means, the interval adjusting means for changing the communication time interval to a value according to the accuracy of the current time of the time measuring means;
The current time data is received by the communication means for each communication time interval changed by the interval adjustment means, and the current time in the external device is based on the received arrangement pattern of the current time and the communication time interval. An update interval identifying means for identifying an update interval of data;
From the update timing of the current time data in the external device to the reception timing of the current time data based on the update interval identified by the update interval identification means, the arrangement pattern of the current time, and the communication time interval Current time acquisition means for identifying the reception time of the current time data that is smaller than a predetermined reference value set based on the accuracy of the current time of the time measuring means, and acquiring the current time data at the reception timing When,
An electronic timepiece characterized by comprising:
<Claim 2>
When the update interval identifying unit identifies the update interval of the current time data in the external device, the interval adjusting unit shortens or extends the update interval by a length corresponding to the time accuracy of the time measuring unit. Reset the time interval,
The current time acquisition means, based on the update interval, the reset communication time interval, and the arrangement pattern of the current time acquired for each communication time interval, current time data of the external device 2. The electronic timepiece according to claim 1, wherein a reception timing with the shortest delay time from the update timing to the reception timing of the current time data is identified, and the current time data is acquired at the reception timing.
<Claim 3>
The time correction means corrects the current time data of the time measuring means by a time obtained by adding half the maximum delay time that the current time can take to the current time acquired by the current time acquisition means. The electronic timepiece according to claim 1 or 2.
<Claim 4>
Table data associating an array of change amounts of the current time between the current times received for each communication time interval changed by the update interval identifying means and the update interval corresponding to the array of change amounts. Storage means for storing as,
The time adjustment means identifies the update interval by comparing the table data stored in the storage means with an arrangement pattern of the current time received for each communication time interval. The electronic timepiece according to 1.
<Claim 5>
Display means for displaying time;
Connection interval determination means for determining whether or not the communication time interval with the external device can be changed;
A determination unit that determines whether the communication time interval is a predetermined interval or more when the connection interval determination unit determines that the communication time interval with the external device cannot be changed;
The time correction means includes time acquisition means for acquiring current time data at the communication time interval that is not changed from the external device,
The electronic timepiece according to claim 1, further comprising: a control unit that causes the display unit to display a content indicating that there is an error in the display time when the determination unit determines that the interval is equal to or greater than the predetermined interval. .
<Claim 6>
The time acquisition means includes
6. The current time of the time measuring means is corrected by a time obtained by adding half the value of the communication time interval to the current time when the determining means determines that the predetermined time or more. Electronic clock.
<Claim 7>
In an electronic timepiece comprising a time measuring means for counting the current time and a communication means for transmitting and receiving data to and from an external device by wireless communication at a set communication time interval, the electronic timepiece is acquired from the external device by the communication means. A time correction method for correcting the current time of the time measuring means based on the current time data,
The time correction method is:
An interval adjustment step of changing the communication time interval to a value corresponding to the accuracy of the current time of the time measuring means while performing the correction process of the current time of the time measuring means;
For each communication time interval changed in the interval adjustment step, the communication unit receives current time data, and based on the received arrangement pattern of the current time and the communication time interval, the current time in the external device An update interval identifying step for identifying an update interval of the data;
Based on the update interval identified in the update interval identification step, the arrangement pattern of the current time, and the communication time interval, from the update timing of the current time data in the external device to the reception timing of the current time data Current time acquisition step of identifying a reception timing of the current time data that is smaller than a predetermined reference value set based on the accuracy of the current time of the time measuring means, and acquiring the current time data at the reception timing ,
A time correction method comprising:
<Claim 8>
Acquired by the communication means from the external device in a computer comprising a time measuring means for counting the current time and a communication means for transmitting and receiving data to and from the external device by wireless communication at a set communication time interval A program for realizing a time correction function for correcting the current time of the time measuring means based on current time data,
The time correction function is
An interval adjustment step of changing the communication time interval to a value corresponding to the accuracy of the current time of the time measuring means while performing the correction process of the current time of the time measuring means;
For each communication time interval changed in the interval adjustment step, the communication unit receives current time data, and based on the received arrangement pattern of the current time and the communication time interval, the current time in the external device An update interval identifying step for identifying an update interval of the data;
Based on the update interval identified in the update interval identification step, the arrangement pattern of the current time, and the communication time interval, from the update timing of the current time data in the external device to the reception timing of the current time data Current time acquisition step of identifying a reception timing of the current time data that is smaller than a predetermined reference value set based on the accuracy of the current time of the time measuring means, and acquiring the current time data at the reception timing ,
The program characterized by including.

1 時刻情報取得システム
10 スマートフォン
11 CPU
12 ROM
13 RAM
14 記憶部
15 操作部
16 内蔵時計
17 表示部
18 ドライバ
19 スピーカ
20 マイク
21 コーデック
22 RF送受信回路
23 通信回路
24 Bluetoothモジュール
25 UART
26 振動モータ
27 ドライバ
28 バス
40、40b、40c 電子時計
41 CPU
42 ROM
42a、42b、42c 時刻データ更新プログラム
43 RAM
44 操作部
45 計時回路
46 表示部
47 ドライバ
48 Bluetoothモジュール
49 UART
50 振動モータ
51 ドライバ
52 LED
53 ドライバ
54 ピエゾ素子
55 ドライバ
56 バス
AN11、AN12、AN4 アンテナ
1 Time Information Acquisition System 10 Smartphone 11 CPU
12 ROM
13 RAM
14 storage unit 15 operation unit 16 built-in clock 17 display unit 18 driver 19 speaker 20 microphone 21 codec 22 RF transmission / reception circuit 23 communication circuit 24 Bluetooth module 25 UART
26 Vibrating motor 27 Driver 28 Bus 40, 40b, 40c Electronic clock 41 CPU
42 ROM
42a, 42b, 42c Time data update program 43 RAM
44 Operation Unit 45 Timekeeping Circuit 46 Display Unit 47 Driver 48 Bluetooth Module 49 UART
50 Vibration motor 51 Driver 52 LED
53 Driver 54 Piezo element 55 Driver 56 Bus AN11, AN12, AN4 Antenna

Claims (8)

現在時刻を計数する計時手段と、
設定された通信時間間隔で無線通信により外部機器との間でデータの送受信を行う通信手段と、
当該通信手段により前記外部機器から取得された現在時刻データに基づいて前記計時手段の現在時刻を修正する時刻修正手段と、
を備え、
前記時刻修正手段は、
前記計時手段の現在時刻の修正処理を行う間、前記通信時間間隔を予め設定された所定の値に変更する間隔調整手段と、
前記間隔調整手段により変更された前記通信時間間隔ごとに前記通信手段に現在時刻データを受信させて、受信された当該現在時刻の配列パターンと前記通信時間間隔とに基づいて前記外部機器における現在時刻データの更新間隔を同定する更新間隔同定手段と、
前記更新間隔同定手段により同定された前記更新間隔と、前記現在時刻の配列パターンと、前記通信時間間隔とに基づいて、前記外部機器における現在時刻データの更新タイミングから当該現在時刻データの受信タイミングまでの遅延時間が前記計時手段の現在時刻の精度に基づいて設定される所定の基準値よりも小さい前記現在時刻データの受信タイミングを同定し、当該受信タイミングで現在時刻データを取得する現在時刻取得手段と、
を備えることを特徴とする電子時計。
A time counting means for counting the current time;
A communication means for transmitting / receiving data to / from an external device by wireless communication at a set communication time interval;
Time correcting means for correcting the current time of the time measuring means based on current time data acquired from the external device by the communication means;
With
The time correction means includes
An interval adjusting means for changing the communication time interval to a predetermined value while performing a correction process of the current time of the time measuring means;
The current time data is received by the communication means for each communication time interval changed by the interval adjustment means, and the current time in the external device is based on the received arrangement pattern of the current time and the communication time interval. An update interval identifying means for identifying an update interval of data;
From the update timing of the current time data in the external device to the reception timing of the current time data based on the update interval identified by the update interval identification means, the arrangement pattern of the current time, and the communication time interval Current time acquisition means for identifying the reception time of the current time data that is smaller than a predetermined reference value set based on the accuracy of the current time of the time measuring means, and acquiring the current time data at the reception timing When,
An electronic timepiece characterized by comprising:
前記間隔調整手段は、前記更新間隔同定手段により前記外部機器における現在時刻データの前記更新間隔が同定されると、当該更新間隔を前記計時手段の時刻精度に応じた長さ分短縮又は延長した通信時間間隔を再設定し、
前記現在時刻取得手段は、前記更新間隔と、前記再設定された通信時間間隔と、当該通信時間間隔ごとに取得された前記現在時刻の配列パターンとに基づいて、前記外部機器における現在時刻データの更新タイミングから当該現在時刻データの受信タイミングまでの遅延時間が最も小さい受信タイミングを同定し、当該受信タイミングで現在時刻データを取得する
ことを特徴とする請求項1記載の電子時計。
When the update interval identifying unit identifies the update interval of the current time data in the external device, the interval adjusting unit shortens or extends the update interval by a length corresponding to the time accuracy of the time measuring unit. Reset the time interval,
The current time acquisition means, based on the update interval, the reset communication time interval, and the arrangement pattern of the current time acquired for each communication time interval, current time data of the external device 2. The electronic timepiece according to claim 1, wherein a reception timing with the shortest delay time from the update timing to the reception timing of the current time data is identified, and the current time data is acquired at the reception timing.
前記時刻修正手段は、前記現在時刻取得手段が取得した現在時刻に当該現在時刻の取り得る最大遅延時間の半分の値を加算した時刻により、前記計時手段の現在時刻データを修正する
ことを特徴とする請求項1又は2に記載の電子時計。
The time correction means corrects the current time data of the time measuring means by a time obtained by adding half the maximum delay time that the current time can take to the current time acquired by the current time acquisition means. The electronic timepiece according to claim 1 or 2.
前記更新間隔同定手段により変更される前記通信時間間隔ごとに受信される現在時刻間での当該現在時刻の変化量の配列と、当該変化量の配列に対応する前記更新間隔とを関連付けてテーブルデータとして記憶する記憶手段を備え、
前記時刻修正手段は、当該記憶手段に記憶された前記テーブルデータと前記通信時間間隔ごとに受信された現在時刻の配列パターンとを比較することで前記更新間隔を同定する
ことを特徴とする請求項1記載の電子時計。
Table data associating an array of change amounts of the current time between the current times received for each communication time interval changed by the update interval identifying means and the update interval corresponding to the array of change amounts. Storage means for storing as,
The time adjustment means identifies the update interval by comparing the table data stored in the storage means with an arrangement pattern of the current time received for each communication time interval. The electronic timepiece according to 1.
時刻の表示をする表示手段と、
前記外部機器との前記通信時間間隔の変更が可能か否かを判断する接続間隔判断手段と、
前記接続間隔判断手段が前記外部機器との前記通信時間間隔の変更ができないと判断した場合に、前記通信時間間隔が所定間隔以上か否かを判断する判断手段と、
前記時刻修正手段は、前記外部機器から変更されない前記通信時間間隔で現在時刻データを取得する時刻取得手段を有し、 前記判断手段が前記所定間隔以上と判断した場合に、前記表示手段に表示時刻には誤差があることを示す内容を表示させる制御手段と、を備える
ことを特徴とする請求項1記載の電子時計。
Display means for displaying time;
Connection interval determination means for determining whether or not the communication time interval with the external device can be changed;
A determination unit that determines whether the communication time interval is a predetermined interval or more when the connection interval determination unit determines that the communication time interval with the external device cannot be changed;
The time correction means includes time acquisition means for acquiring current time data at the communication time interval that is not changed from the external device, and when the determination means determines that the predetermined time or more, the display time is displayed on the display means. The electronic timepiece according to claim 1, further comprising: a control unit that displays content indicating that there is an error.
前記時刻取得手段は、
前記判断手段が前記所定間隔以上と判断した場合に、現在時刻に前記通信時間間隔の半分の値を加算した時刻により、前記計時手段の現在時刻を修正する
ことを特徴とする請求項5記載の電子時計。
The time acquisition means includes
6. The current time of the time measuring means is corrected by a time obtained by adding half the value of the communication time interval to the current time when the determining means determines that the predetermined time or more. Electronic clock.
現在時刻を計数する計時手段と、設定された通信時間間隔で無線通信により外部機器との間でデータの送受信を行う通信手段と、を備える電子時計において、当該通信手段により前記外部機器から取得された現在時刻データに基づいて前記計時手段の現在時刻を修正する時刻修正方法であって、
前記時刻修正方法は、
前記計時手段の現在時刻の修正処理を行う間、前記通信時間間隔を予め設定された所定の値に変更する間隔調整ステップ、
前記間隔調整ステップで変更された前記通信時間間隔ごとに前記通信手段に現在時刻データを受信させて、受信された当該現在時刻の配列パターンと前記通信時間間隔とに基づいて前記外部機器における現在時刻データの更新間隔を同定する更新間隔同定ステップ、
前記更新間隔同定ステップで同定された前記更新間隔と、前記現在時刻の配列パターンと、前記通信時間間隔とに基づいて、前記外部機器における現在時刻データの更新タイミングから当該現在時刻データの受信タイミングまでの遅延時間が前記計時手段の現在時刻の精度に基づいて設定される所定の基準値よりも小さい前記現在時刻データの受信タイミングを同定し、当該受信タイミングで現在時刻データを取得する現在時刻取得ステップ、
を含むことを特徴とする時刻修正方法。
In an electronic timepiece comprising a time measuring means for counting the current time and a communication means for transmitting and receiving data to and from an external device by wireless communication at a set communication time interval, the electronic timepiece is acquired from the external device by the communication means. A time correction method for correcting the current time of the time measuring means based on the current time data,
The time correction method is:
An interval adjustment step of changing the communication time interval to a predetermined value while performing the correction process of the current time of the time measuring means;
For each communication time interval changed in the interval adjustment step, the communication unit receives current time data, and based on the received arrangement pattern of the current time and the communication time interval, the current time in the external device An update interval identifying step for identifying an update interval of the data;
Based on the update interval identified in the update interval identification step, the arrangement pattern of the current time, and the communication time interval, from the update timing of the current time data in the external device to the reception timing of the current time data Current time acquisition step of identifying a reception timing of the current time data that is smaller than a predetermined reference value set based on the accuracy of the current time of the time measuring means, and acquiring the current time data at the reception timing ,
A time correction method comprising:
現在時刻を計数する計時手段と、設定された通信時間間隔で無線通信により外部機器との間でデータの送受信を行う通信手段と、を備えるコンピュータに、当該通信手段により前記外部機器から取得された現在時刻データに基づいて前記計時手段の現在時刻を修正する時刻修正機能を実現させるためのプログラムであって、
前記時刻修正機能は、
前記計時手段の現在時刻の修正処理を行う間、前記通信時間間隔を予め設定された所定の値に変更する間隔調整ステップ、
前記間隔調整ステップで変更された前記通信時間間隔ごとに前記通信手段に現在時刻データを受信させて、受信された当該現在時刻の配列パターンと前記通信時間間隔とに基づいて前記外部機器における現在時刻データの更新間隔を同定する更新間隔同定ステップ、
前記更新間隔同定ステップで同定された前記更新間隔と、前記現在時刻の配列パターンと、前記通信時間間隔とに基づいて、前記外部機器における現在時刻データの更新タイミングから当該現在時刻データの受信タイミングまでの遅延時間が前記計時手段の現在時刻の精度に基づいて設定される所定の基準値よりも小さい前記現在時刻データの受信タイミングを同定し、当該受信タイミングで現在時刻データを取得する現在時刻取得ステップ、
を含むことを特徴とするプログラム。
Acquired by the communication means from the external device in a computer comprising a time measuring means for counting the current time and a communication means for transmitting and receiving data to and from the external device by wireless communication at a set communication time interval A program for realizing a time correction function for correcting the current time of the time measuring means based on current time data,
The time correction function is
An interval adjustment step of changing the communication time interval to a predetermined value while performing the correction process of the current time of the time measuring means;
For each communication time interval changed in the interval adjustment step, the communication unit receives current time data, and based on the received arrangement pattern of the current time and the communication time interval, the current time in the external device An update interval identifying step for identifying an update interval of the data;
Based on the update interval identified in the update interval identification step, the arrangement pattern of the current time, and the communication time interval, from the update timing of the current time data in the external device to the reception timing of the current time data Current time acquisition step of identifying a reception timing of the current time data that is smaller than a predetermined reference value set based on the accuracy of the current time of the time measuring means, and acquiring the current time data at the reception timing ,
The program characterized by including.
JP2012137732A 2011-11-22 2012-06-19 Electronic clock, time correction method, and program Active JP6047938B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012137732A JP6047938B2 (en) 2011-11-22 2012-06-19 Electronic clock, time correction method, and program

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2011254532 2011-11-22
JP2011254532 2011-11-22
JP2012137732A JP6047938B2 (en) 2011-11-22 2012-06-19 Electronic clock, time correction method, and program

Publications (2)

Publication Number Publication Date
JP2013130562A JP2013130562A (en) 2013-07-04
JP6047938B2 true JP6047938B2 (en) 2016-12-21

Family

ID=48908207

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012137732A Active JP6047938B2 (en) 2011-11-22 2012-06-19 Electronic clock, time correction method, and program

Country Status (1)

Country Link
JP (1) JP6047938B2 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5954307B2 (en) 2013-12-18 2016-07-20 カシオ計算機株式会社 Electronic clock and operation setting switching system
JP6131987B2 (en) * 2015-06-19 2017-05-24 カシオ計算機株式会社 Wireless communication apparatus, electronic timepiece, wireless communication method, and program
CN105446130B (en) * 2015-12-16 2018-03-16 深圳智能表芯科技有限公司 Automatic periodically time service method and the time dissemination system of a kind of intelligent clock and watch of pointer-type
JP6451666B2 (en) 2016-03-01 2019-01-16 カシオ計算機株式会社 Communication device, electronic timepiece, communication method, and program
JP6645358B2 (en) * 2016-05-27 2020-02-14 カシオ計算機株式会社 Communication device, electronic clock, time correction method, and program
JP6734139B2 (en) * 2016-07-26 2020-08-05 シチズン時計株式会社 Time adjustment system, electronic device, program and time adjustment method
JP7238460B2 (en) 2019-02-25 2023-03-14 セイコーエプソン株式会社 electronic clock
US20220417881A1 (en) * 2019-12-02 2022-12-29 Nippon Telegraph And Telephone Corporation Synchronization method and information apparatus
JP7167098B2 (en) * 2020-07-09 2022-11-08 シチズン時計株式会社 Time adjustment system, electronic device, program and time adjustment method
JP6994086B2 (en) * 2020-07-09 2022-01-14 シチズン時計株式会社 Time adjustment system, electronic device, program and time adjustment method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05158826A (en) * 1991-12-04 1993-06-25 Nec Eng Ltd Standard time setting system
JP5074157B2 (en) * 2007-11-09 2012-11-14 ソフトバンクモバイル株式会社 Time correction system, mobile phone device and wristwatch type terminal device
JP4831154B2 (en) * 2008-09-30 2011-12-07 ブラザー工業株式会社 Timing device
JP5497315B2 (en) * 2009-03-25 2014-05-21 パナソニック株式会社 Physical quantity data processing device, physical quantity measuring device, and physical quantity data processing system

Also Published As

Publication number Publication date
JP2013130562A (en) 2013-07-04

Similar Documents

Publication Publication Date Title
JP6047938B2 (en) Electronic clock, time correction method, and program
JP6075055B2 (en) Display terminal device, information display system, information display control method, and program
US20160054892A1 (en) Wearable device for displaying a schedule, method of operating the same, and storage medium
JP6202017B2 (en) Electronic timepiece, communication system and program
JP4874021B2 (en) Portable information transmission system, portable information transmission device
JP2013205029A (en) Altitude information acquiring device and altitude information acquiring system
CN107817677B (en) Electronic timepiece, time changing method for electronic timepiece, and recording medium
JP2017126067A (en) Display terminal device, information display system, information display control method, and program
JP5640818B2 (en) Electronic timepiece, communication system and program
JP5712800B2 (en) Arm-mounted terminal, time notification function supplement system, and program
JP5810658B2 (en) Function setting management system, portable electronic device, and function setting management apparatus
JP5782854B2 (en) Portable electronic device and e-mail notification system
JP2011112472A (en) Wrist-mounted type terminal and time correction method
JP7006102B2 (en) Wireless communication devices, electronic clocks, wireless communication methods, and programs
JP2024024136A (en) Electronic devices, control methods and programs for electronic devices
JP5110522B2 (en) Portable terminal device and program
JP7468035B2 (en) ELECTRONIC CLOCK, COMMUNICATION SYSTEM, OPERATION SETTING METHOD AND PROGRAM
JP2011047727A (en) Wrist worn terminal and method of correcting time
JP6894740B2 (en) Percentage correction system and mobile terminals
JP2014035336A (en) Portable terminal
JP6056918B2 (en) Electronic device, notification method, and program
JP7156323B2 (en) Electronic clock, time adjustment method, and program
JP2013003118A (en) Electronic watch
JP2013003119A (en) Electronic watch
JP6551443B2 (en) Wireless communication apparatus, electronic timepiece, wireless communication method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150513

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160223

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160322

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160519

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20161107

R150 Certificate of patent or registration of utility model

Ref document number: 6047938

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150