JP2018048829A - Radio communication device, electronic watch, time correction method, transmission information generation method, and program - Google Patents

Radio communication device, electronic watch, time correction method, transmission information generation method, and program Download PDF

Info

Publication number
JP2018048829A
JP2018048829A JP2016182912A JP2016182912A JP2018048829A JP 2018048829 A JP2018048829 A JP 2018048829A JP 2016182912 A JP2016182912 A JP 2016182912A JP 2016182912 A JP2016182912 A JP 2016182912A JP 2018048829 A JP2018048829 A JP 2018048829A
Authority
JP
Japan
Prior art keywords
time
information
accuracy
transmission information
wireless communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2016182912A
Other languages
Japanese (ja)
Inventor
和穂 姜
Kazuho Kyo
和穂 姜
中川 誠
Makoto Nakagawa
誠 中川
宏 岩見谷
Hiroshi Iwamiya
宏 岩見谷
高弘 冨田
Takahiro Tomita
高弘 冨田
寺崎 努
Tsutomu Terasaki
努 寺崎
亮 奥村
Ryo Okumura
亮 奥村
智洋 高橋
Tomohiro Takahashi
智洋 高橋
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 JP2016182912A priority Critical patent/JP2018048829A/en
Publication of JP2018048829A publication Critical patent/JP2018048829A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)
  • Electric Clocks (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a radio communication device or the like that can correct clock time using transmission information before establishing connection in radio communication with an external device.SOLUTION: An electronic watch 200 includes a CPU 210 for controlling operation of the electronic watch itself. The CPU 210 obtains transmission information including clock time information representing clock time clocked by a plurality of smart phones and accuracy information representing the accuracy of the clock time from the respective smart phones. Then, the CPU 210 selects transmission information satisfying prescribed conditions from the obtained transmission information on the basis of the accuracy information included in the obtained transmission information. Then, the CPU 210 corrects clock time clocked by the electronic watch itself on the basis of the clock time information included in the selected transmission information.SELECTED DRAWING: Figure 4

Description

この発明は、無線通信装置、電子時計、時刻補正方法、送信情報生成方法、及びプログラムに関する。   The present invention relates to a wireless communication device, an electronic timepiece, a time correction method, a transmission information generation method, and a program.

従来、ブルートゥース(Bluetooth(登録商標))などの近距離無線通信を用いて種々の情報をやり取りすることが可能な電子装置がある。このような近距離無線通信により、特に、携帯型の電子装置は、複数の他の電子装置がそれぞれ個別に取得、保持する情報を容易に取得することができる。   2. Description of the Related Art Conventionally, there is an electronic device that can exchange various kinds of information using short-range wireless communication such as Bluetooth (registered trademark). Through such short-range wireless communication, in particular, a portable electronic device can easily acquire information individually acquired and held by a plurality of other electronic devices.

例えば、特許文献1には、ブルートゥース通信機能を有する電子腕時計が、携帯電話からブルートゥース通信を利用して時刻情報を取得し、電子腕時計の時刻を修正する技術が開示されている。   For example, Patent Document 1 discloses a technology in which an electronic wristwatch having a Bluetooth communication function acquires time information from a mobile phone using Bluetooth communication and corrects the time of the electronic wristwatch.

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

しかし、特許文献1の構成では、通信接続を確立した後のデータ通信において時刻情報を通信するため、例えば、電子腕時計に搭載されるOS(Operating System)の仕様によっては、接続認証手順の都合によって面倒な操作が必要になるという問題がある。   However, in the configuration of Patent Document 1, time information is communicated in data communication after establishing a communication connection. For example, depending on the specifications of an OS (Operating System) installed in an electronic wristwatch, the connection authentication procedure may be used. There is a problem that troublesome operations are required.

本発明は、上述のような事情に鑑みてなされたものであり、外部装置との無線通信における接続確立前の送信情報を用いて時刻の補正が可能な無線通信装置、電子時計、時刻補正方法、送信情報生成方法、及びプログラムを提供することにある。   The present invention has been made in view of the above circumstances, and a wireless communication device, an electronic timepiece, and a time correction method capable of correcting time using transmission information before establishing a connection in wireless communication with an external device. Another object of the present invention is to provide a transmission information generation method and a program.

上記目的を達成するため、本発明の第1の観点に係る無線通信装置は、
外部装置と通信する通信部と、
自装置の動作を制御する制御部と、を備え、
前記制御部は、
前記外部装置から、前記外部装置が計時する時刻情報と、前記時刻の確度を表す確度情報と、を含む送信情報を前記通信部を介して取得し、
前記取得された前記送信情報に含まれる前記確度情報に基づいて、前記取得された前記送信情報のうち、所定の条件を満たす前記送信情報を選択し、
前記選択された前記送信情報に含まれる前記時刻情報に基づいて、自装置が計時する時刻を補正する、
ことを特徴とする。
In order to achieve the above object, a wireless communication apparatus according to the first aspect of the present invention provides:
A communication unit that communicates with an external device;
A control unit that controls the operation of the device itself,
The controller is
From the external device, acquisition of transmission information including time information timed by the external device and accuracy information indicating the accuracy of the time, via the communication unit,
Based on the accuracy information included in the acquired transmission information, the transmission information satisfying a predetermined condition is selected from the acquired transmission information,
Based on the time information included in the selected transmission information, correct the time counted by the device itself,
It is characterized by that.

上記目的を達成するため、本発明の第2の観点に係る無線通信装置は、
外部装置と通信する通信部と、
自装置の動作を制御する制御部を備え、
前記制御部は、
自装置が計時した時刻を表す時刻情報と、前記時刻の確度を表す確度情報と、を含む送信情報を生成し、
前記生成された送信情報を前記通信部を介して前記外部装置に定期的に送信し、
最新の前記生成された前記送信情報の送信を開始してから所定期間経過後に、前記時刻情報を更新し、更新された前記時刻情報と、前記確度情報と、を含む前記送信情報を生成する、
ことを特徴とする。
In order to achieve the above object, a wireless communication apparatus according to the second aspect of the present invention provides:
A communication unit that communicates with an external device;
It has a control unit that controls the operation of its own device,
The controller is
Generate transmission information including time information representing the time measured by the own device and accuracy information representing the accuracy of the time,
Periodically transmitting the generated transmission information to the external device via the communication unit;
Updating the time information after elapse of a predetermined period from the start of transmission of the latest generated transmission information, and generating the transmission information including the updated time information and the accuracy information;
It is characterized by that.

本発明によれば、外部装置との無線通信における接続確立前の送信情報を用いて時刻を補正することができる。   According to the present invention, time can be corrected using transmission information before establishing a connection in wireless communication with an external device.

第1実施形態に係る無線通信システムの構成を示す図である。It is a figure which shows the structure of the radio | wireless communications system which concerns on 1st Embodiment. 第1実施形態に係るスマートフォンの構成を示すブロック図である。It is a block diagram which shows the structure of the smart phone which concerns on 1st Embodiment. アドバタイズパケットの構成例を示す図である。It is a figure which shows the structural example of an advertisement packet. 第1実施形態に係る電子時計の構成を示すブロック図である。It is a block diagram which shows the structure of the electronic timepiece which concerns on 1st Embodiment. 第1実施形態の無線通信システムの動作を示すシーケンス図である。It is a sequence diagram which shows operation | movement of the radio | wireless communications system of 1st Embodiment. 第1実施形態に係るスマートフォンにより実行される時刻補正処理のフローチャートである。It is a flowchart of the time correction process performed with the smart phone which concerns on 1st Embodiment. 第1実施形態に係る電子時計により実行される時刻補正処理のフローチャートである。It is a flowchart of the time correction process performed with the electronic timepiece which concerns on 1st Embodiment. 第2実施形態に係る電子時計の構成を示すブロック図である。It is a block diagram which shows the structure of the electronic timepiece which concerns on 2nd Embodiment. 第2実施形態に係る電子時計により実行される時刻補正処理のフローチャートである。It is a flowchart of the time correction process performed with the electronic timepiece which concerns on 2nd Embodiment.

以下、本発明の実施の形態を図面に基づいて説明する。
(第1実施形態)
図1は、本発明の第1実施形態に係る無線通信システム1の構成例を表す図である。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
(First embodiment)
FIG. 1 is a diagram illustrating a configuration example of a wireless communication system 1 according to the first embodiment of the present invention.

図1に示す構成例において、無線通信システム1は、スマートフォン100と電子時計200とから構成される。スマートフォン100と電子時計200とは、Bluetooth(登録商標) Low Energy(以下、BLEという。)に基づいて、互いに無線通信を行う。BLEとは、Bluetooth(登録商標)と呼ばれる近距離無線通信規格において、低消費電力を目的として策定された規格(モード)である。本実施形態において、BLEに基づいて、スマートフォン100は、後述するアドバタイズパケットを送信するペリフェラルとして動作する。また、電子時計200は、アドバタイズパケットを受信するセントラルとして動作する。なお、4つのスマートフォン100が図1に例示されているが、スマートフォン100の数はこれに限られず、任意の数のスマートフォン100が、本発明に適用可能である。   In the configuration example illustrated in FIG. 1, the wireless communication system 1 includes a smartphone 100 and an electronic timepiece 200. The smartphone 100 and the electronic timepiece 200 perform wireless communication with each other based on Bluetooth (registered trademark) Low Energy (hereinafter referred to as BLE). BLE is a standard (mode) established for the purpose of low power consumption in a short-range wireless communication standard called Bluetooth (registered trademark). In the present embodiment, based on BLE, the smartphone 100 operates as a peripheral that transmits an advertisement packet to be described later. Further, the electronic timepiece 200 operates as a central for receiving advertisement packets. In addition, although the four smart phones 100 are illustrated by FIG. 1, the number of the smart phones 100 is not restricted to this, Arbitrary numbers of the smart phones 100 are applicable to this invention.

次に、本発明の第1実施形態に係るスマートフォン100のハードウェア構成について説明する。   Next, the hardware configuration of the smartphone 100 according to the first embodiment of the present invention will be described.

図2は、本発明の第1実施形態に係るスマートフォン100の構成を示すブロック図である。スマートフォン100は、マイクロコンピュータ101と、ROM(Read Only Memory)102と、通信部103と、アンテナ104と、電力供給部105と、表示部106と、表示ドライバ107と、操作受付部108と、振動子109とを備える。マイクロコンピュータ101、ROM102、通信部103、アンテナ104、電力供給部105、及び振動子109は、本発明に係る無線通信装置の一例である無線通信装置10を構成する。   FIG. 2 is a block diagram showing a configuration of the smartphone 100 according to the first embodiment of the present invention. The smartphone 100 includes a microcomputer 101, a ROM (Read Only Memory) 102, a communication unit 103, an antenna 104, a power supply unit 105, a display unit 106, a display driver 107, an operation reception unit 108, vibrations, and the like. And a child 109. The microcomputer 101, the ROM 102, the communication unit 103, the antenna 104, the power supply unit 105, and the vibrator 109 constitute a wireless communication device 10 that is an example of a wireless communication device according to the present invention.

マイクロコンピュータ101は、制御部としてのCPU(Central Processing Unit)110と、記憶部としてのRAM(Random Access Memory)111と、発振回路112と、分周回路113と、計時回路114と、を備える。なお、RAM111、発振回路112、分周回路113、及び計時回路114は、マイクロコンピュータ101の内部に限られず、マイクロコンピュータ101の外部に設けられてもよい。また、ROM102、通信部103、電力供給部105、表示ドライバ107、及び振動子109は、マイクロコンピュータ101の外部に限られず、マイクロコンピュータ101の内部に設けられてもよい。   The microcomputer 101 includes a CPU (Central Processing Unit) 110 as a control unit, a RAM (Random Access Memory) 111 as a storage unit, an oscillation circuit 112, a frequency dividing circuit 113, and a time measuring circuit 114. Note that the RAM 111, the oscillation circuit 112, the frequency dividing circuit 113, and the time measuring circuit 114 are not limited to the inside of the microcomputer 101 and may be provided outside the microcomputer 101. The ROM 102, the communication unit 103, the power supply unit 105, the display driver 107, and the vibrator 109 are not limited to the outside of the microcomputer 101, and may be provided inside the microcomputer 101.

CPU110は、各種演算処理を行い、スマートフォン100の全体動作を統括制御するプロセッサである。CPU110は、ROM102から制御プログラムを読み出し、RAM111にロードして日時の表示や各種機能に係る演算制御や表示などの各種動作処理を行う。また、CPU110は、通信部103を制御し、電子時計200とデータ通信を行う。   The CPU 110 is a processor that performs various arithmetic processes and controls the overall operation of the smartphone 100. The CPU 110 reads a control program from the ROM 102, loads it into the RAM 111, and performs various operation processes such as date and time display, arithmetic control and display related to various functions. Further, the CPU 110 controls the communication unit 103 to perform data communication with the electronic timepiece 200.

RAM111は、SRAM(Static Random Access Memory)やDRAM(Dynamic Random Access Memory)などの揮発性のメモリであり、CPU110に作業用のメモリ空間を提供して一時データを記憶すると共に、各種設定データを記憶する。   The RAM 111 is a volatile memory such as SRAM (Static Random Access Memory) or DRAM (Dynamic Random Access Memory). The RAM 111 provides a working memory space to the CPU 110 to store temporary data and various setting data. To do.

発振回路112は、振動子109を発振させることにより所定の周波数信号(クロック信号)を生成して出力する。発振回路112として、例えば、水晶発振器が用いられる。   The oscillation circuit 112 generates and outputs a predetermined frequency signal (clock signal) by causing the vibrator 109 to oscillate. As the oscillation circuit 112, for example, a crystal oscillator is used.

分周回路113は、発振回路112から入力された周波数信号を、計時回路114やCPU110が利用する周波数の信号に分周して出力する。この出力信号の周波数は、CPU110による設定に基づいて変更されてもよい。   The frequency dividing circuit 113 divides the frequency signal input from the oscillation circuit 112 into a frequency signal used by the time measuring circuit 114 and the CPU 110 and outputs the frequency signal. The frequency of this output signal may be changed based on the setting by the CPU 110.

計時回路114は、分周回路113から入力された所定の計時信号の入力回数を計数して初期値に加算することで現在の時刻を計時する。計時回路114は、RAM111に記憶させる値を変化させるソフトウェアにより構成されてもよいし、或いは、専用のカウンタ回路により構成されてもよい。計時回路114が計時する時刻は、所定のタイミングからの累積時間、UTC(Coordinated Universal Time、協定世界時)、又は予め設定された都市の時刻(地方時)などのうち何れであってもよい。また、この計時回路114が計時する時刻は、必ずしも年月日、時分秒の形式で保持されなくてもよい。   The time measuring circuit 114 counts the number of times a predetermined time measuring signal input from the frequency dividing circuit 113 is added and adds it to an initial value to time the current time. The timer circuit 114 may be configured by software that changes a value stored in the RAM 111 or may be configured by a dedicated counter circuit. The time measured by the clock circuit 114 may be any of accumulated time from a predetermined timing, UTC (Coordinated Universal Time), or a preset city time (local time). Further, the time measured by the time measuring circuit 114 does not necessarily have to be stored in the format of date, hour, minute and second.

また、計時回路114が計時する時刻は、例えば、GPS(Global Positioning Sytem)やNTP(Network Time Protocol)に基づいて、定期的に補正される。または、計時回路114が計時する時刻は、スマートフォン100が、3G(Third Generation)もしくはLTE(Long Term Evolution)といった無線通信用規格の回線を利用できる場合、NITZ(Network Identity and Time Zone)に基づいて補正されてもよい。   The time measured by the time measuring circuit 114 is periodically corrected based on, for example, GPS (Global Positioning System) or NTP (Network Time Protocol). Alternatively, the time measured by the clock circuit 114 is based on NITZ (Network Identity and Time Zone) when the smartphone 100 can use a wireless communication standard line such as 3G (Third Generation) or LTE (Long Term Evolution). It may be corrected.

ROM102は、マスクROMや書き換え可能な不揮発性メモリなどであり、制御プログラムや初期設定データが記憶されている。制御プログラムには、電子時計200が計時する時刻の補正に用いられるデータを送信するための各種処理の制御に係るプログラム115が含まれる。   The ROM 102 is a mask ROM, a rewritable nonvolatile memory, or the like, and stores a control program and initial setting data. The control program includes a program 115 related to control of various processes for transmitting data used for correcting the time measured by the electronic timepiece 200.

通信部103は、例えば無線周波数(RF:Radio Frequency)回路やベースバンド(BB:Baseband)回路、メモリ回路で構成される。通信部103は、アンテナ104を介して、BLEに基づく無線信号の送信及び受信を行う。また、通信部103は、アンテナ104を介して受信した無線信号を、復調、復号等してCPU110へ送る。また、通信部103は、CPU110から送られた信号を、符号化、変調等して、アンテナ104を介して外部へ送信する。   The communication unit 103 includes, for example, a radio frequency (RF) circuit, a baseband (BB) circuit, and a memory circuit. The communication unit 103 transmits and receives a radio signal based on BLE via the antenna 104. In addition, the communication unit 103 demodulates and decodes a radio signal received via the antenna 104 and sends it to the CPU 110. In addition, the communication unit 103 encodes, modulates, and transmits the signal transmitted from the CPU 110 to the outside via the antenna 104.

電力供給部105は、バッテリを備え、スマートフォン100の動作に係る電力を各部にその動作電圧で供給する。電力供給部105のバッテリとしては、本実施形態では、リチウムイオン電池等の二次電池が用いられる。   The power supply unit 105 includes a battery and supplies power related to the operation of the smartphone 100 to each unit at the operating voltage. In the present embodiment, a secondary battery such as a lithium ion battery is used as the battery of the power supply unit 105.

表示部106は、例えば、液晶ディスプレイ(LCD:Liquid Crystal Display)や有機EL(Electro-Luminescent)ディスプレイなどの表示画面を備える。表示ドライバ107は、表示画面の種別に応じた駆動信号をCPU110からの制御信号に基づいて表示部106に出力し、表示画面上への表示を行う。   The display unit 106 includes a display screen such as a liquid crystal display (LCD) or an organic EL (Electro-Luminescent) display. The display driver 107 outputs a drive signal corresponding to the type of the display screen to the display unit 106 based on the control signal from the CPU 110, and performs display on the display screen.

操作受付部108は、ユーザからの入力操作を受け付けて、当該入力操作に応じた電気信号を入力信号としてCPU110に出力する。操作受付部108として、例えば、タッチセンサが、表示部106の表示画面に重ねて設けられ、表示画面とともにタッチパネルを構成してもよい。この場合、タッチパネルは、当該タッチセンサへのユーザの接触動作に係る接触位置や接触態様の検出に応じた操作信号をCPU110に出力する。   The operation reception unit 108 receives an input operation from the user and outputs an electrical signal corresponding to the input operation to the CPU 110 as an input signal. As the operation reception unit 108, for example, a touch sensor may be provided so as to overlap the display screen of the display unit 106, and a touch panel may be configured together with the display screen. In this case, the touch panel outputs an operation signal to the CPU 110 according to the detection of the contact position and the contact mode related to the user's contact operation with the touch sensor.

次に、第1実施形態に係るスマートフォン100のCPU110の機能構成について説明する。   Next, a functional configuration of the CPU 110 of the smartphone 100 according to the first embodiment will be described.

図2に示すように、CPU110は、生成部121、送信部122として機能する。これら生成部121、送信部122の機能は、単一のCPUにより実現されてもよいし、各々別個のCPUにより実現されてもよい。また、それらの機能は、通信部103のCPU(図示せず)等、マイクロコンピュータ101以外のプロセッサにより実現されてもよい。   As illustrated in FIG. 2, the CPU 110 functions as a generation unit 121 and a transmission unit 122. The functions of the generation unit 121 and the transmission unit 122 may be realized by a single CPU or may be realized by separate CPUs. Further, these functions may be realized by a processor other than the microcomputer 101 such as a CPU (not shown) of the communication unit 103.

生成部121としてのCPU110は、時刻情報と、確度情報を含む送信情報を生成する。本実施形態では、CPU110が、送信情報の一例として、BLEにおけるアドバタイズパケットを生成する例について説明する。   The CPU 110 as the generation unit 121 generates transmission information including time information and accuracy information. In the present embodiment, an example will be described in which the CPU 110 generates an advertisement packet in BLE as an example of transmission information.

アドバタイズパケットは、BLEにおいて、ペリフェラルとして動作するスマートフォン100が、セントラルとして動作する電子時計200に自装置を発見してもらうために送信するデータである。図3にアドバタイズパケットの構成例を示す。図3に示すように、アドバタイズパケットは、アドバタイズパケットを送信するスマートフォン100のアドレス(Address)や、様々なデータを含む。詳細には、本実施形態に係るアドバタイズパケットは、AD Typeが「Manufacturer Specific Data」であるAD Dataを含む。AD Typeは、AD Dataの種類を表し、「Manufacturer Specific Data」は、AD Dataが、企業が任意に定めることができるデータであることを表す。AD Typeが「Manufacturer Specific Data」であるAD Dataは、企業を識別するための「Company ID」と、任意のデータを含むことができる。本実施形態では、AD Dataは、「Company ID」とともに、時刻情報及び確度情報を含む。   The advertisement packet is data that the smartphone 100 operating as a peripheral transmits in BLE so that the electronic timepiece 200 operating as a central discovers its own device. FIG. 3 shows a configuration example of the advertisement packet. As illustrated in FIG. 3, the advertisement packet includes an address (Address) of the smartphone 100 that transmits the advertisement packet and various data. Specifically, the advertisement packet according to the present embodiment includes AD Data whose AD Type is “Manufacturer Specific Data”. AD Type represents the type of AD Data, and “Manufacturer Specific Data” represents that AD Data is data that can be arbitrarily determined by a company. AD Data whose AD Type is “Manufacturer Specific Data” can include “Company ID” for identifying a company and arbitrary data. In this embodiment, AD Data includes time information and accuracy information together with “Company ID”.

時刻情報は、スマートフォン100が計時する時刻を表す。本実施形態では、CPU110は、アドバタイズパケットの生成時に計時回路114が計時した現在時刻を表す時刻情報をアドバタイズパケットに含める。   The time information represents the time counted by the smartphone 100. In the present embodiment, the CPU 110 includes time information indicating the current time measured by the clock circuit 114 when the advertisement packet is generated in the advertisement packet.

確度情報は、スマートフォン100が計時する時刻の確度を表す。本実施形態では、確度情報は、計時回路114が計時する時刻の最新の補正を行ってからの経過時間を表す。例えば、確度情報には、最新の補正からの経過時間が長いほど、低く、最新の補正からの経過時間が短いほど、高い値が設定される。CPU110は、最新の補正からの経過時間に応じた値が設定された確度情報をアドバタイズパケットに含める。   The accuracy information represents the accuracy of the time measured by the smartphone 100. In the present embodiment, the accuracy information represents an elapsed time since the latest correction of the time measured by the time measuring circuit 114 is performed. For example, the accuracy information is set to a lower value as the elapsed time from the latest correction is longer, and to a higher value as the elapsed time from the latest correction is shorter. The CPU 110 includes the accuracy information in which a value corresponding to the elapsed time from the latest correction is set in the advertisement packet.

また、生成部121としてのCPU110は、最新の送信情報の送信を開始してから所定期間経過後に、時刻情報を更新し、更新された時刻情報と、確度情報と、を含む送信情報を生成する。本実施形態では、CPU110は、最新のアドバタイズパケットの送信を開始してから所定期間N(例えば、100[msec])が経過すると、アドバタイズパケットに含める時刻情報が表す時刻を、計時回路114が計時する現在時刻に更新する。そして、CPU110は、更新された時刻情報と、確度情報と、を含むアドバタイズパケットを再生成する。   In addition, the CPU 110 as the generation unit 121 updates the time information after a predetermined period from the start of transmission of the latest transmission information, and generates transmission information including the updated time information and accuracy information. . In the present embodiment, when a predetermined period N (for example, 100 [msec]) has elapsed since the start of transmission of the latest advertisement packet, the CPU 110 counts the time represented by the time information included in the advertisement packet. Update to the current time. Then, the CPU 110 regenerates an advertisement packet including the updated time information and accuracy information.

送信部122としてのCPU110は、生成された送信情報を、電子時計200に送信する。本実施形態では、CPU110は、生成されたアドバタイズパケットを所定の間隔Taで送信するよう、通信部103に指示する。   The CPU 110 as the transmission unit 122 transmits the generated transmission information to the electronic timepiece 200. In the present embodiment, the CPU 110 instructs the communication unit 103 to transmit the generated advertisement packet at a predetermined interval Ta.

また、送信部122としてのCPU110は、アドバタイズパケットの送信を開始してから所定時間経過後に、アドバタイズの送信を停止するよう、通信部103に指示する。そして、CPU110は、アドバタイズパケットの再生成後、再生成されたアドバタイズパケットを所定の間隔Taで送信するよう、通信部103に指示する。そして、CPU110は、アドバタイズパケットの送信を最初に開始してから時間Lが経過した後に、アドバタイズパケットの送信を停止するよう、通信部103に指示する。   In addition, the CPU 110 as the transmission unit 122 instructs the communication unit 103 to stop the transmission of the advertisement after a predetermined time has elapsed since the start of the transmission of the advertisement packet. Then, the CPU 110 instructs the communication unit 103 to transmit the regenerated advertisement packet at a predetermined interval Ta after the regeneration of the advertisement packet. Then, the CPU 110 instructs the communication unit 103 to stop the transmission of the advertisement packet after the time L has elapsed since the first transmission of the advertisement packet.

次に、第1実施形態に係る電子時計200のハードウェア構成について説明する。   Next, the hardware configuration of the electronic timepiece 200 according to the first embodiment will be described.

図4は、本発明の第1実施形態に係る電子時計200の構成を示すブロック図である。電子時計200は、マイクロコンピュータ201と、ROM202と、通信部203と、アンテナ204と、電力供給部205と、表示部206と、表示ドライバ207と、操作受付部208と、振動子209とを備える。マイクロコンピュータ201、ROM202、通信部203、アンテナ204、電力供給部205と、振動子209は、本発明に係る無線通信装置の一例である無線通信装置20を構成する。   FIG. 4 is a block diagram showing a configuration of the electronic timepiece 200 according to the first embodiment of the present invention. The electronic timepiece 200 includes a microcomputer 201, a ROM 202, a communication unit 203, an antenna 204, a power supply unit 205, a display unit 206, a display driver 207, an operation reception unit 208, and a vibrator 209. . The microcomputer 201, the ROM 202, the communication unit 203, the antenna 204, the power supply unit 205, and the vibrator 209 constitute the wireless communication device 20 that is an example of the wireless communication device according to the present invention.

マイクロコンピュータ201は、制御部としてのCPU210と、記憶部としてのRAM211と、発振回路212と、分周回路213と、計時回路214と、を備える。なお、RAM211、発振回路212、分周回路213、及び計時回路214は、マイクロコンピュータ201の内部に限られず、マイクロコンピュータ201の外部に設けられてもよい。また、ROM202、通信部203、電力供給部205、表示ドライバ107、及び振動子209は、マイクロコンピュータ201の外部に限られず、マイクロコンピュータ201の内部に設けられてもよい。   The microcomputer 201 includes a CPU 210 as a control unit, a RAM 211 as a storage unit, an oscillation circuit 212, a frequency dividing circuit 213, and a time measuring circuit 214. Note that the RAM 211, the oscillation circuit 212, the frequency dividing circuit 213, and the time measuring circuit 214 are not limited to the inside of the microcomputer 201, and may be provided outside the microcomputer 201. The ROM 202, the communication unit 203, the power supply unit 205, the display driver 107, and the vibrator 209 are not limited to the outside of the microcomputer 201, and may be provided inside the microcomputer 201.

CPU210は、各種演算処理を行い、電子時計200の全体動作を統括制御するプロセッサである。CPU210は、ROM202から制御プログラムを読み出し、RAM211にロードして日時の表示や各種機能に係る演算制御や表示などの各種動作処理を行う。また、CPU210は、通信部203を制御し、スマートフォン100とデータ通信を行う。   The CPU 210 is a processor that performs various arithmetic processes and controls the overall operation of the electronic timepiece 200. The CPU 210 reads a control program from the ROM 202, loads it into the RAM 211, and performs various operation processes such as date and time display and arithmetic control and display related to various functions. In addition, the CPU 210 controls the communication unit 203 to perform data communication with the smartphone 100.

RAM211は、SRAMやDRAMなどの揮発性のメモリであり、CPU210に作業用のメモリ空間を提供して一時データを記憶すると共に、各種設定データを記憶する。   The RAM 211 is a volatile memory such as SRAM or DRAM, and provides a working memory space to the CPU 210 to store temporary data and various setting data.

発振回路212は、振動子209を発振させることにより所定の周波数信号(クロック信号)を生成して出力する。発振回路212として、例えば、水晶発振器が用いられる。   The oscillation circuit 212 generates and outputs a predetermined frequency signal (clock signal) by causing the vibrator 209 to oscillate. As the oscillation circuit 212, for example, a crystal oscillator is used.

分周回路213は、発振回路212から入力された周波数信号を、計時回路214やCPU210が利用する周波数の信号に分周して出力する。この出力信号の周波数は、CPU210による設定に基づいて変更されてもよい。   The frequency dividing circuit 213 divides the frequency signal input from the oscillation circuit 212 into a frequency signal used by the time measuring circuit 214 or the CPU 210 and outputs the frequency signal. The frequency of the output signal may be changed based on the setting by the CPU 210.

計時回路214は、分周回路213から入力された所定の計時信号の入力回数を計数して初期値に加算することで現在の時刻を計時する。計時回路214は、RAM211に記憶させる値を変化させるソフトウェアにより構成されてもよいし、或いは、専用のカウンタ回路により構成されてもよい。計時回路214が計時する時刻は、所定のタイミングからの累積時間、UTC、又は予め設定された地方時などのうち何れであってもよい。また、この計時回路214が計時する時刻は、必ずしも年月日、時分秒の形式で保持されなくてもよい。また、計時回路214が計時する時刻は、後述する補正部223からの指示によって補正される。   The clock circuit 214 counts the number of times of input of a predetermined clock signal input from the frequency divider circuit 213 and adds it to the initial value to clock the current time. The timer circuit 214 may be configured by software that changes a value stored in the RAM 211, or may be configured by a dedicated counter circuit. The time counted by the time measuring circuit 214 may be any of accumulated time from a predetermined timing, UTC, preset local time, and the like. Further, the time measured by the time measuring circuit 214 does not necessarily have to be stored in the form of date, hour, minute and second. Further, the time counted by the clock circuit 214 is corrected by an instruction from the correction unit 223 described later.

ROM202は、マスクROMや書き換え可能な不揮発性メモリなどであり、制御プログラムや初期設定データが記憶されている。制御プログラムには、スマートフォン100から時刻を修正するためのデータを受信し、電子時計200が計時する時刻を修正するための各種処理の制御に係るプログラム215が含まれる。   The ROM 202 is a mask ROM, a rewritable nonvolatile memory, or the like, and stores a control program and initial setting data. The control program includes a program 215 related to control of various processes for receiving data for correcting the time from the smartphone 100 and correcting the time counted by the electronic timepiece 200.

通信部203は、例えば無線周波数回路やベースバンド回路、メモリ回路で構成される。通信部203は、アンテナ204を介して、BLEに基づく無線信号の送信及び受信を行う。また、通信部203は、アンテナ204を介して受信した無線信号を、復調、復号等してCPU210へ送る。また、通信部203は、CPU210から送られた信号を、符号化、変調等して、アンテナ204を介して外部へ送信する。   The communication unit 203 includes, for example, a radio frequency circuit, a baseband circuit, and a memory circuit. The communication unit 203 transmits and receives a radio signal based on BLE via the antenna 204. The communication unit 203 demodulates and decodes the radio signal received via the antenna 204 and sends the signal to the CPU 210. The communication unit 203 encodes and modulates the signal transmitted from the CPU 210 and transmits the signal to the outside via the antenna 204.

電力供給部205は、バッテリを備え、電子時計200の動作に係る電力を各部にその動作電圧で供給する。電力供給部205のバッテリとしては、本実施形態では、ボタン型乾電池などの一次電池が用いられている。或いは、バッテリとして、ソーラパネルと二次電池が用いられ、ソーラパネルへの入射光に応じた起電力の大小に応じて、二次電池が充放電されてもよい。   The power supply unit 205 includes a battery and supplies power related to the operation of the electronic timepiece 200 to each unit using the operating voltage. In the present embodiment, a primary battery such as a button-type dry battery is used as the battery of the power supply unit 205. Or a solar panel and a secondary battery are used as a battery, and a secondary battery may be charged / discharged according to the magnitude of the electromotive force according to the incident light to a solar panel.

表示部206は、例えば、液晶ディスプレイや有機ELディスプレイなどの表示画面を備え、ドットマトリクス方式及びセグメント方式の何れか又はこれらの組み合わせにより時刻や各種機能に係るデータをデジタル表示する。表示ドライバ207は、表示画面の種別に応じた駆動信号をCPU210からの制御信号に基づいて表示部206に出力し、表示画面上への表示を行う。或いは、表示部206は、複数の指針をステッピングモータにより輪列機構を介して回転動作させることで表示を行うアナログ式の構成を有するものであってもよい。   The display unit 206 includes, for example, a display screen such as a liquid crystal display or an organic EL display, and digitally displays data related to time and various functions by using either a dot matrix method or a segment method or a combination thereof. The display driver 207 outputs a drive signal corresponding to the type of the display screen to the display unit 206 based on a control signal from the CPU 210, and performs display on the display screen. Alternatively, the display unit 206 may have an analog configuration that performs display by rotating a plurality of hands with a stepping motor via a train wheel mechanism.

操作受付部208は、ユーザからの入力操作を受け付けて、当該入力操作に応じた電気信号を入力信号としてCPU210に出力する。この操作受付部208は、例えば、押しボタンスイッチやりゅうずを含む。或いは、タッチセンサが、操作受付部208として表示部206の表示画面に重ねて設けられ、表示画面とともにタッチパネルを構成してもよい。この場合、タッチパネルは、当該タッチセンサへのユーザの接触動作に係る接触位置や接触態様の検出に応じた操作信号をCPU210に出力する。   The operation reception unit 208 receives an input operation from the user and outputs an electrical signal corresponding to the input operation to the CPU 210 as an input signal. The operation reception unit 208 includes, for example, a push button switch crown. Alternatively, a touch sensor may be provided as an operation reception unit 208 so as to overlap the display screen of the display unit 206, and the touch screen may be configured together with the display screen. In this case, the touch panel outputs an operation signal to the CPU 210 according to the detection of the contact position and the contact mode related to the user's contact operation with the touch sensor.

次に、第1実施形態に係る電子時計200のCPU210の機能構成について説明する。   Next, a functional configuration of the CPU 210 of the electronic timepiece 200 according to the first embodiment will be described.

CPU210は、取得部221、選択部222、補正部223として機能する。これら取得部221、選択部222、補正部223の機能は、単一のCPUにより実現されてもよい、各々別個のCPUにより実現されてもよい。また、それらの機能は、通信部203のCPU等、マイクロコンピュータ201以外のプロセッサにより実現されてもよい。   The CPU 210 functions as an acquisition unit 221, a selection unit 222, and a correction unit 223. The functions of the acquisition unit 221, the selection unit 222, and the correction unit 223 may be realized by a single CPU or may be realized by separate CPUs. Further, these functions may be realized by a processor other than the microcomputer 201 such as a CPU of the communication unit 203.

取得部221としてのCPU210は、スマートフォン100から、時刻情報及び確度情報を含む送信情報を取得する。本実施形態では、CPU210は、スキャン動作により、送信情報の一例として、アドバタイズパケットを取得する。詳細には、CPU210は、アドバタイズパケットを受信するためのスキャン動作を開始するよう、通信部203に指示する。そして、CPU210は、スキャン動作を開始してから所定の時間が経過すると、スキャン動作を停止するよう、通信部203に指示する。   The CPU 210 as the acquisition unit 221 acquires transmission information including time information and accuracy information from the smartphone 100. In the present embodiment, the CPU 210 acquires an advertisement packet as an example of transmission information through a scanning operation. Specifically, the CPU 210 instructs the communication unit 203 to start a scanning operation for receiving the advertisement packet. Then, the CPU 210 instructs the communication unit 203 to stop the scanning operation when a predetermined time has elapsed since the scanning operation was started.

選択部222としてのCPU210は、取得された送信情報に含まれる確度情報に基づいて、取得された送信情報のうち、所定の条件を満たす送信情報を選択する。本実施形態において、CPU210は、所定の条件の例として、アドバタイズパケットに含まれる確度情報が表す確度が所定の閾値以上であるという条件を満たすアドバタイズパケットを選択する。   The CPU 210 as the selection unit 222 selects transmission information satisfying a predetermined condition from the acquired transmission information based on the accuracy information included in the acquired transmission information. In the present embodiment, as an example of the predetermined condition, the CPU 210 selects an advertisement packet that satisfies a condition that the accuracy represented by the accuracy information included in the advertisement packet is equal to or greater than a predetermined threshold.

また、選択部222としてのCPU210は、取得されたアドバタイズパケットのうち、予め定められた識別情報を含むアドバタイズパケットに含まれる確度情報に基づいて、アドバタイズパケットを選択する。本実施形態において、CPU210は、電子時計200と予めペアリングされたスマートフォン100が送信したアドバタイズパケットを選択する。詳細には、電子時計200は、スマートフォン100とのペアリングの際に、そのスマートフォン100の識別情報として、スマートフォンのアドレスを取得し、保持する。そして、CPU210は、アドバタイズパケットに含まれる、アドバタイズパケットを送信したスマートフォン100のアドレスが、電子時計200とペアリングされたスマートフォン100のアドレスと一致するアドバタイズパケットを選択する。   Further, the CPU 210 as the selection unit 222 selects an advertisement packet based on the accuracy information included in the advertisement packet including predetermined identification information among the acquired advertisement packets. In the present embodiment, the CPU 210 selects an advertisement packet transmitted by the smartphone 100 previously paired with the electronic timepiece 200. Specifically, the electronic timepiece 200 acquires and holds the address of the smartphone as identification information of the smartphone 100 when pairing with the smartphone 100. Then, the CPU 210 selects an advertisement packet in which the address of the smartphone 100 that has transmitted the advertisement packet included in the advertisement packet matches the address of the smartphone 100 paired with the electronic timepiece 200.

補正部223としてのCPU210は、選択された送信情報に含まれる時刻情報に基づいて、電子時計200が計時する時刻を補正する。本実施形態において、CPU210は、選択されたアドバタイズパケットに含まれる時刻情報が表す時刻に、計時回路214が計時する時刻を補正する。   The CPU 210 as the correction unit 223 corrects the time counted by the electronic timepiece 200 based on the time information included in the selected transmission information. In the present embodiment, the CPU 210 corrects the time counted by the clock circuit 214 to the time represented by the time information included in the selected advertisement packet.

次に、第1実施形態における無線通信システム1の動作について説明する。   Next, the operation of the wireless communication system 1 in the first embodiment will be described.

図5は、第1実施形態における無線通信システム1の動作の一例を示すシーケンス図である。以下では、スマートフォン100がペリフェラルとして、電子時計200がセントラルとして動作する場合の、スマートフォン100及び電子時計200のホスト及びリンク・レイヤーの動作について説明する。ここで、CPU110,210が、それぞれホストとして機能する。また、通信部103,203が、それぞれリンク・レイヤーとして機能する。なお、図5では、図1に示す4つのスマートフォン100のうち、1つのスマートフォン100の動作の一例を示しているが、他のスマートフォン100も同様に動作する。   FIG. 5 is a sequence diagram illustrating an example of the operation of the wireless communication system 1 in the first embodiment. Hereinafter, operations of the host and link layer of the smartphone 100 and the electronic timepiece 200 when the smart phone 100 operates as a peripheral and the electronic timepiece 200 operates as a central will be described. Here, the CPUs 110 and 210 each function as a host. In addition, the communication units 103 and 203 each function as a link layer. In addition, in FIG. 5, although an example of operation | movement of one smart phone 100 is shown among the four smart phones 100 shown in FIG. 1, the other smart phone 100 operate | moves similarly.

スマートフォン100及び電子時計200は、例えば、1日に1回の所定時刻Tに、電子時計200が計時する時刻を補正するための時刻補正処理を実行する。以下の説明において、スマートフォン100の計時回路114が計時する現在時刻をtp、電子時計200の計時回路御214が計時する現在時刻をtwと表す。   For example, the smartphone 100 and the electronic timepiece 200 execute time correction processing for correcting the time counted by the electronic timepiece 200 at a predetermined time T once a day. In the following description, the current time measured by the timing circuit 114 of the smartphone 100 is represented as tp, and the current time measured by the timing circuit 214 of the electronic timepiece 200 is represented as tw.

まず、電子時計200は、時刻tw=Tにスマートフォン100からのアドバタイズパケットを受信できるように、時刻tw=Tから時間Mwだけ早くスキャンを開始する。即ち、CPU210は、時刻tw=T−Mwに、通信部203へスキャンを開始するように指示する(ステップS10)。そして、通信部203は、CPU210から指示を受けると、スキャンを開始する。   First, the electronic timepiece 200 starts scanning earlier by the time Mw from the time tw = T so that the advertisement packet from the smartphone 100 can be received at the time tw = T. That is, the CPU 210 instructs the communication unit 203 to start scanning at time tw = T-Mw (step S10). When receiving an instruction from the CPU 210, the communication unit 203 starts scanning.

ここで、時間Mwは、スマートフォン100が計時する現在時刻tpに対する、電子時計200が計時する現在時刻twの誤差のためのマージンであり、スマートフォン100からのアドバタイズパケットをいち早く確実に受信できるようにするために予め設定されている。時間Mwは、例えば、計時回路114の歩度と、電子時計200の前回の時刻修正処理からの経過時間とを考慮し、電子時計200が計時する現在時刻twの誤差よりも長い時間とすることが好ましい。   Here, the time Mw is a margin for an error of the current time tw timed by the electronic timepiece 200 with respect to the current time tp timed by the smartphone 100, so that the advertisement packet from the smartphone 100 can be received quickly and reliably. Is set in advance. For example, the time Mw may be longer than the error of the current time tw timed by the electronic timepiece 200 in consideration of the rate of the timekeeping circuit 114 and the elapsed time from the previous time adjustment processing of the electronic timepiece 200. preferable.

スマートフォン100のCPU110は、所定時刻Tにアドバタイズパケットの送信を指示できるように、時刻tp=T−Mpにアドバタイズパケットを生成する(ステップS11)。ここで、時間Mpは、CPU110がアドバタイズパケットの生成にかかる時間のためのマージンであり、アドバタイズパケットの生成にかかる時間よりも長い時間に予め設定されている。ステップS11において生成されるアドバタイズパケットは、時刻Tを表す時刻情報と、確度情報とを含む。   The CPU 110 of the smartphone 100 generates an advertisement packet at time tp = T-Mp so that transmission of the advertisement packet can be instructed at a predetermined time T (step S11). Here, the time Mp is a margin for the time required for the CPU 110 to generate the advertisement packet, and is set in advance to a time longer than the time required for the generation of the advertisement packet. The advertisement packet generated in step S11 includes time information indicating time T and accuracy information.

CPU110は、時刻tp=Tに、通信部103にアドバタイズを開始するように指示する(ステップS12)。そして、通信部103は、アドバタイズパケットの送信を開始する(ステップS13)。以後、通信部103は、時間間隔Ta毎に、ステップS11において生成されたアドバタイズパケットを送信する。   CPU 110 instructs communication unit 103 to start advertising at time tp = T (step S12). And the communication part 103 starts transmission of an advertisement packet (step S13). Thereafter, the communication unit 103 transmits the advertisement packet generated in step S11 at each time interval Ta.

CPU110は、ステップS13においてアドバタイズの送信を開始してから時間Nが経過した時刻である時刻tp=T+Nに、通信部103にアドバタイズを停止するように指示する(ステップS14)。そして、CPU110は、次の所定時刻T2にアドバタイジングパケットの送信を指示できるように、所定時刻TをT2へと変更し、時刻tp=T2−Mpに時刻T2を表す時刻情報と、確度情報とを含むアドバタイズパケットを再生成する(ステップS15)。   CPU 110 instructs communication unit 103 to stop the advertisement at time tp = T + N, which is the time when time N has elapsed since the start of advertisement transmission in step S13 (step S14). Then, the CPU 110 changes the predetermined time T to T2 so that the transmission of the advertising packet can be instructed at the next predetermined time T2, and the time information indicating the time T2 at the time tp = T2-Mp and the accuracy information are changed. The advertisement packet including it is regenerated (step S15).

CPU110は、通信部103にアドバタイズを開始するように指示する(ステップS16)。そして、通信部103は、時刻tp=T2に、アドバタイズパケットの送信を開始する(ステップS17)。以後、通信部103は、時間間隔Ta毎に、ステップS15において生成されたアドバタイズパケットを送信する。   CPU 110 instructs communication unit 103 to start advertising (step S16). Then, the communication unit 103 starts transmitting an advertisement packet at time tp = T2 (step S17). Thereafter, the communication unit 103 transmits the advertisement packet generated in step S15 for each time interval Ta.

そして、CPU110は、ステップS17においてアドバタイズの送信を開始してから時間Nが経過した時刻である時刻tp=T2+Nに、通信部103にアドバタイズを停止するように指示する(ステップS18)。以後、CPU110は、ステップS15〜S18の処理を同様に繰り返し実行する。   Then, CPU 110 instructs communication unit 103 to stop the advertisement at time tp = T2 + N, which is the time when time N has elapsed since the start of advertisement transmission in step S17 (step S18). Thereafter, the CPU 110 repeatedly executes the processes of steps S15 to S18.

そして、CPU110は、ステップS12において最初にアドバタイズの開始を指示した所定時刻Tから時間Lが経過した時刻である時刻tp=T+Lに、通信部103にアドバタイズを停止するように指示する(ステップS19)。   Then, the CPU 110 instructs the communication unit 103 to stop advertising at time tp = T + L, which is the time when the time L has elapsed from the predetermined time T when the advertisement is first instructed in step S12 (step S19). .

また、電子時計200のCPU210は、時刻tw=T+L+Mwに、通信部203へスキャンを停止するように指示する(ステップS20)。そして、通信部203は、CPU210から指示を受けると、スキャンを停止する。   Further, the CPU 210 of the electronic timepiece 200 instructs the communication unit 203 to stop scanning at time tw = T + L + Mw (step S20). Then, when receiving an instruction from the CPU 210, the communication unit 203 stops scanning.

次に、第1実施形態に係るスマートフォン100の動作について説明する。   Next, the operation of the smartphone 100 according to the first embodiment will be described.

図6は、スマートフォン100のCPU110が実行する時刻補正処理のフローチャートである。この時刻補正処理は、本発明に係る送信情報生成方法の一例である。CPU110は、例えば、スマートフォン100の電源がオンになったことを契機として、時刻補正処理を開始する。   FIG. 6 is a flowchart of time correction processing executed by the CPU 110 of the smartphone 100. This time correction process is an example of a transmission information generation method according to the present invention. For example, the CPU 110 starts time correction processing when the power of the smartphone 100 is turned on.

まず、CPU110は、計時回路114が計時する現在時刻tpが、時刻T−Mpか否か判別する(ステップS101)。CPU110は、現在時刻tpが、時刻T−Mpでないと判別したとき(ステップS101;No)、現在時刻tpが時刻T−Mpに達するまで待機する。   First, the CPU 110 determines whether or not the current time tp counted by the timing circuit 114 is a time T-Mp (step S101). When determining that the current time tp is not the time T-Mp (step S101; No), the CPU 110 stands by until the current time tp reaches the time T-Mp.

CPU110は、現在時刻tpが、時刻T−Mpであると判別したとき(ステップS101;Yes)、時刻Tを表す時刻情報と、確度情報とを含むアドバタイズパケットを生成する(ステップS102)。   When the CPU 110 determines that the current time tp is the time T-Mp (step S101; Yes), the CPU 110 generates an advertisement packet including time information indicating the time T and accuracy information (step S102).

次に、CPU110は、現在時刻tpが、時刻Tか否か判別する(ステップS103)。CPU110は、現在時刻tpが、時刻Tでないと判別したとき(ステップS103;No)、現在時刻tpが時刻Tに達するまで待機する。   Next, the CPU 110 determines whether or not the current time tp is time T (step S103). When determining that the current time tp is not the time T (step S103; No), the CPU 110 waits until the current time tp reaches the time T.

CPU110は、現在時刻tpが、時刻Tであると判別したとき(ステップS103;Yes)、通信部103にアドバタイズの開始を指示する(ステップS104)。   When determining that the current time tp is the time T (step S103; Yes), the CPU 110 instructs the communication unit 103 to start advertising (step S104).

CPU110は、現在時刻tpが、時刻Tから時間Lが経過したか否かを判別する(ステップS105)。   The CPU 110 determines whether or not the current time tp has passed the time L from the time T (step S105).

CPU110は、現在時刻tpが、時刻Tから時間Lが経過していないと判別したとき(ステップS105;No)、現在時刻tpが、ステップS104においてアドバタイズの開始を指示してから時間Nが経過したか否かを判別する(ステップS106)。   When the CPU 110 determines that the current time tp has not passed the time L from the time T (step S105; No), the time N has elapsed since the current time tp instructed the start of advertisement in step S104. It is discriminate | determined (step S106).

CPU110は、現在時刻tpが、ステップS104においてアドバタイズの開始を指示してから時間Nが経過していないと判別したとき(ステップS106;No)、ステップS105に戻って処理を繰り返す。   When the CPU 110 determines that the time N has not elapsed since the current time tp instructed the start of advertisement in step S104 (step S106; No), the CPU 110 returns to step S105 and repeats the process.

CPU110は、現在時刻tpが、ステップS104においてアドバタイズの開始を指示してから時間Nが経過したと判別したとき(ステップS106;Yes)、通信部103にアドバタイズの停止を指示する(ステップS107)。   When the CPU 110 determines that the time N has elapsed since the current time tp instructed the start of advertisement in step S104 (step S106; Yes), the CPU 110 instructs the communication unit 103 to stop the advertisement (step S107).

CPU110は、次に送信する所定時刻を表す時刻情報(例えば所定時刻TをT2へと変更して)と、確度情報とを含むアドバタイズパケットを再生成する(ステップS108)。そして、CPU110は、ステップS101に戻って処理を繰り返す。この際、所定時刻を表す時刻Tは都度変更される。   CPU 110 regenerates an advertisement packet including time information indicating a predetermined time to be transmitted next (for example, changing predetermined time T to T2) and accuracy information (step S108). And CPU110 returns to step S101 and repeats a process. At this time, the time T representing the predetermined time is changed each time.

CPU110は、現在時刻tpが、最初にアドバタイジングを開始した時刻Tから時間Lが経過したと判別したとき(ステップS105;Yes)、通信部103にアドバタイズの停止を指示する(ステップS109)。そして、CPU110は、ステップS101に戻って処理を繰り返す。   When the CPU 110 determines that the current time tp has passed the time L from the time T when the advertisement was first started (step S105; Yes), the CPU 110 instructs the communication unit 103 to stop advertising (step S109). And CPU110 returns to step S101 and repeats a process.

次に、第1実施形態に係る電子時計200の動作について説明する。   Next, the operation of the electronic timepiece 200 according to the first embodiment will be described.

図7は、電子時計200のCPU210が実行する時刻補正処理のフローチャートである。この時刻補正処理は、本発明に係る時刻補正方法の一例である。CPU210は、例えば、電子時計200の電源がオンになったことを契機として、時刻補正処理を開始する。   FIG. 7 is a flowchart of time correction processing executed by the CPU 210 of the electronic timepiece 200. This time correction process is an example of a time correction method according to the present invention. For example, the CPU 210 starts time correction processing when the power of the electronic timepiece 200 is turned on.

まず、CPU210は、計時回路114が計時する現在時刻twが、時刻T−Mwか否か判別する(ステップS201)。CPU210は、現在時刻twが、時刻T−Mwでないと判別したとき(ステップS201;No)、現在時刻twが時刻T−Mwに達するまで待機する。   First, the CPU 210 determines whether or not the current time tw counted by the timing circuit 114 is a time T-Mw (step S201). When the CPU 210 determines that the current time tw is not the time T-Mw (step S201; No), the CPU 210 waits until the current time tw reaches the time T-Mw.

CPU210は、現在時刻twが、時刻T−Mwであると判別したとき(ステップS201;Yes)、通信部203にスキャンの開始を指示する(ステップS202)。   When the CPU 210 determines that the current time tw is the time T-Mw (step S201; Yes), the CPU 210 instructs the communication unit 203 to start scanning (step S202).

CPU210は、スキャン中に電子時計200とペアリングされたスマートフォン100からのアドバタイズパケットを取得したか否かを判別する(ステップS203)。CPU210は、ペアリングされたスマートフォン100からのアドバタイズパケットを取得していないと判別したとき(ステップS203;No)、ステップS206へと進む。   The CPU 210 determines whether or not an advertisement packet from the smart phone 100 paired with the electronic timepiece 200 has been acquired during scanning (step S203). When the CPU 210 determines that an advertisement packet from the paired smartphone 100 has not been acquired (step S203; No), the CPU 210 proceeds to step S206.

CPU210は、ペアリングされたスマートフォン100からアドバタイズパケットを取得したと判別したとき(ステップS203;Yes)、そのアドバタイズパケットに含まれる確度情報が表す確度Aが所定の閾値A0以上か否かを判別する(ステップS204)。CPU210は、確度Aが所定の閾値A0よりも小さいと判別したとき(ステップS204;No)、ステップS201に戻って処理を繰り返す。   When the CPU 210 determines that an advertisement packet has been acquired from the paired smartphone 100 (step S203; Yes), the CPU 210 determines whether or not the accuracy A represented by the accuracy information included in the advertisement packet is equal to or greater than a predetermined threshold A0. (Step S204). When the CPU 210 determines that the accuracy A is smaller than the predetermined threshold A0 (step S204; No), the CPU 210 returns to step S201 and repeats the process.

CPU210は、確度Aが所定の閾値A0以上であると判別したとき(ステップS204;Yes)、ペアリングされたスマートフォン100から取得されたアドバタイズパケットに含まれる時刻情報が表す時刻に基づいて、時刻twを補正する(ステップS205)。   When the CPU 210 determines that the accuracy A is equal to or greater than the predetermined threshold A0 (step S204; Yes), the time tw is based on the time represented by the time information included in the advertisement packet acquired from the paired smartphone 100. Is corrected (step S205).

一方、CPU210は、ペアリングされたスマートフォン100からアドバタイズパケットを取得していないと判別したとき(ステップS203;No)、現在時刻twが、時刻Tから時間L+Mwが経過したか否かを判別する(ステップS206)。   On the other hand, when determining that the advertisement packet has not been acquired from the paired smartphone 100 (step S203; No), the CPU 210 determines whether or not the current time tw has passed the time L + Mw from the time T ( Step S206).

CPU210は、現在時刻twが、時刻Tから時間L+Mwが経過していないと判別したとき(ステップS206;No)、ペアリングされたスマートフォン100からアドバタイズパケットを取得するか、現在時刻twが時刻L+Mwに達するまで待機する。   When the CPU 210 determines that the time L + Mw has not elapsed since the time T (step S206; No), the CPU 210 acquires an advertisement packet from the paired smartphone 100, or the current time tw becomes the time L + Mw. Wait until it reaches.

CPU210は、現在時刻twが、時刻Tから時間L+Mwが経過したと判別したとき(ステップS206;Yes)、通信部203にスキャンの停止を指示する(ステップS207)。   When the CPU 210 determines that the time L + Mw has elapsed from the time T (step S206; Yes), the CPU 210 instructs the communication unit 203 to stop scanning (step S207).

以上のように、第1実施形態に係る電子時計200は、スマートフォン100から、スマートフォン100が計時する時刻を表す時刻情報と、その時刻の確度を表す確度時報と、とを含むアドバタイズパケットを取得する。そして、電子時計200は、アドバタイズパケットに含まれる確度情報に基づいて、取得されたアドバタイズパケットのうち、所定の条件を満たすアドバタイズパケットを選択する。そして、電子時計200は、選択されたアドバタイズパケットに含まれる時刻情報に基づいて、自装置が計時する時刻を補正する。このように、電子時計200は、スマートフォン100との接続を確立することなく、自装置が計時する時刻を補正することができる。そのため、スマートフォン等の無線通信装置との接続を確立した後の通信において送受信されるデータに基づいて自装置が計時する時刻を補正する場合と比較して、消費電力を低減することができる。   As described above, the electronic timepiece 200 according to the first embodiment acquires, from the smartphone 100, an advertisement packet including time information indicating the time measured by the smartphone 100 and an accuracy time signal indicating the accuracy of the time. . Then, the electronic timepiece 200 selects an advertisement packet that satisfies a predetermined condition from the obtained advertisement packets based on the accuracy information included in the advertisement packet. Then, the electronic timepiece 200 corrects the time counted by the own device based on the time information included in the selected advertisement packet. In this way, the electronic timepiece 200 can correct the time counted by the own device without establishing a connection with the smartphone 100. Therefore, power consumption can be reduced as compared with a case where the time measured by the own device is corrected based on data transmitted and received in communication after establishing a connection with a wireless communication device such as a smartphone.

また、電子時計200は、アドバタイズパケットに含まれる確度情報に基づいて、取得されたアドバタイズパケットのうち、所定の条件を満たすアドバタイズパケットを選択する。従って、精度が高い時刻情報を含むアドバタイズパケットを、時刻の補正に利用することができ、補正後の時刻の精度を保つことができる。   In addition, the electronic timepiece 200 selects an advertisement packet that satisfies a predetermined condition from the acquired advertisement packets based on the accuracy information included in the advertisement packet. Therefore, an advertisement packet including time information with high accuracy can be used for time correction, and the time accuracy after correction can be maintained.

また、電子時計200は、電子時計200とペアリングされたスマートフォン100からのアドバタイズパケットを選択する。従って、特定のスマートフォン100の時刻情報を含むアドバタイズパケットを時刻の補正に利用することができ、補正後の時刻の精度を保つことができる。   In addition, the electronic timepiece 200 selects an advertisement packet from the smartphone 100 paired with the electronic timepiece 200. Therefore, the advertisement packet including the time information of the specific smartphone 100 can be used for time correction, and the corrected time accuracy can be maintained.

(第2実施形態)
上記の第1実施形態では、電子時計200とペアリングされたスマートフォン100が送信する送信情報に基づいて、電子時計200が計時する時刻を補正する例を説明した。第2実施形態では、電子時計200とペアリングされていないスマートフォン100からの送信情報に基づいて、電子時計200が計時する時刻を補正する例を説明する。なお、以下において、第1実施形態と同一の構成要素には同一の符号を付し、その詳細な説明を省略する。
(Second Embodiment)
In the first embodiment, the example in which the time measured by the electronic timepiece 200 is corrected based on the transmission information transmitted by the smartphone 100 paired with the electronic timepiece 200 has been described. 2nd Embodiment demonstrates the example which correct | amends the time which the electronic timepiece 200 measures based on the transmission information from the smart phone 100 which is not paired with the electronic timepiece 200. FIG. In the following, the same components as those in the first embodiment are denoted by the same reference numerals, and detailed description thereof is omitted.

図8は、本実施形態の電子時計200aの構成を示すブロック図である。電子時計200aは、第1実施形態の電子時計200の機能構成に対して、CPU210が、選択部222及び補正部223の代わりに、選択部222a及び補正部223aとして機能する点が異なる。   FIG. 8 is a block diagram showing the configuration of the electronic timepiece 200a of the present embodiment. The electronic timepiece 200a differs from the functional configuration of the electronic timepiece 200 of the first embodiment in that the CPU 210 functions as a selection unit 222a and a correction unit 223a instead of the selection unit 222 and the correction unit 223.

選択部222aとしてのCPU210は、所定の条件の例として、取得された送信情報に含まれる確度情報が表す確度が所定の閾値以上である送信情報をn個(nは自然数)以上受信したとき、n個の送信情報のうち、送信情報に含まれる確度情報が表す確度が高い順にm個(mは自然数かつm≦n)の送信情報を選択する。本実施形態において、CPU210は、スキャンにおいて、確度が所定の閾値A0以上である確度情報を含むアドバタイズパケットをn個以上取得したか否かを判別する。そして、CPU210は、アドバタイズパケットをn個以上取得したとき、その取得されたアドバタイズパケットのうち、確度が高い順にm個のアドバタイズパケットを、所定の条件を満たすアドバタイズパケットとして選択する。   As an example of the predetermined condition, the CPU 210 as the selection unit 222a receives n pieces (n is a natural number) of transmission information whose accuracy represented by the accuracy information included in the acquired transmission information is a predetermined threshold or more. Among the n pieces of transmission information, m pieces of transmission information (m is a natural number and m ≦ n) are selected in descending order of the accuracy represented by the accuracy information included in the transmission information. In the present embodiment, the CPU 210 determines whether or not n or more advertisement packets including accuracy information whose accuracy is greater than or equal to a predetermined threshold A0 have been acquired in the scan. Then, when the CPU 210 acquires n or more advertisement packets, the CPU 210 selects m advertisement packets in the descending order of accuracy from among the acquired advertisement packets as advertisement packets that satisfy a predetermined condition.

補正部223aとしてのCPU210は、選択された送信情報に含まれる時刻情報が表す時刻に対して、選択された送信情報に含まれる確度情報が表す確度に基づいて重み付けをすることにより、自装置が計時する時刻を補正する。本実施形態において、例えば、CPU210は、選択されたアドバタイズパケットに含まれる時刻情報が表す時刻に対して、選択されたアドバタイズパケットに含まれる確度情報が表す確度が高いほど、大きな重み付け係数を乗算し、集計することにより、補正すべき時刻を算出する。そして、CPU210は、計時装置214が計時する時刻を算出された時刻に補正する。   The CPU 210 as the correction unit 223a weights the time represented by the time information included in the selected transmission information based on the accuracy represented by the accuracy information included in the selected transmission information, so that the own apparatus Correct the time to be measured. In the present embodiment, for example, the CPU 210 multiplies the time represented by the time information included in the selected advertisement packet by a larger weighting coefficient as the accuracy represented by the accuracy information included in the selected advertisement packet is higher. The time to be corrected is calculated by summing up. Then, the CPU 210 corrects the time counted by the timing device 214 to the calculated time.

次に、第2実施形態に係る電子時計200の動作について説明する。   Next, the operation of the electronic timepiece 200 according to the second embodiment will be described.

図9は、電子時計200aのCPU210が実行する時刻補正処理のフローチャートである。この時刻補正処理は、本発明に係る時刻補正方法の一例である。CPU210は、例えば、電子時計200aの電源がオンになったことを契機として、時刻補正処理を開始する。   FIG. 9 is a flowchart of time correction processing executed by the CPU 210 of the electronic timepiece 200a. This time correction process is an example of a time correction method according to the present invention. For example, the CPU 210 starts time correction processing when the power of the electronic timepiece 200a is turned on.

まず、CPU210は、ステップS301〜S302において、図7に示す第1実施形態に係る時刻補正処理のステップS201〜S202と同様の処理を実行する。   First, in steps S301 to S302, the CPU 210 executes the same processing as steps S201 to S202 of the time correction processing according to the first embodiment shown in FIG.

そして、CPU210は、スキャン中に、所定の閾値A0以上の確度を表す確度情報を含むアドバタイズパケットをn個以上取得したか否かを判別する(ステップS303)。CPU210は、アドバタイズパケットをn個以上取得していないと判別したとき(ステップS303;No)、ステップS306〜S307において、図7に示す第1実施形態に係る時刻補正処理のステップS206〜S207と同様の処理を実行する。に進む。   Then, the CPU 210 determines whether or not n or more advertisement packets including accuracy information indicating the accuracy equal to or greater than the predetermined threshold A0 have been acquired during the scan (step S303). When the CPU 210 determines that n or more advertisement packets have not been acquired (step S303; No), in steps S306 to S307, similar to steps S206 to S207 of the time correction processing according to the first embodiment shown in FIG. Execute the process. Proceed to

CPU210は、アドバタイズパケットをn個以上取得したと判別したとき(ステップS303;Yes)、そのアドバタイズパケットに含まれる確度情報が表す確度が高い順にm個のアドバタイズパケットを選択する(ステップS304)。   When determining that n or more advertisement packets have been acquired (step S303; Yes), the CPU 210 selects m advertisement packets in descending order of the accuracy represented by the accuracy information included in the advertisement packet (step S304).

CPU210は、ステップS306において選択されたアドバタイズパケットに含まれる時刻情報が表す時刻に対して、そのアドバタイズパケットに含まれる確度情報が表す確度に基づいて重み付けをすることにより、時刻twを補正する(ステップS305)。   The CPU 210 corrects the time tw by weighting the time represented by the time information included in the advertisement packet selected in Step S306 based on the accuracy represented by the accuracy information included in the advertisement packet (Step S306). S305).

以上のように、第2実施形態に係る電子時計200aは、ペアリングされていない、不特定多数のスマートフォン100から、スマートフォン100が計時する時刻を表す時刻情報と、時刻の確度を表す確度情報と、を含むアドバタイズパケットを取得する。そして、電子時計200aは、取得されたアドバタイズパケットのうち、確度が高いアドバタイズパケットを、自装置が計時する時刻を補正に利用するアドバタイズパケットとして選択する。このように、電子時計200aは、不特定多数のスマートフォン100からのアドバタイズパケットのうち、確度が高い時刻に基づいて補正をするので、精度が低い時刻情報を排除し、補正後の時刻の精度を保つことができる。   As described above, the electronic timepiece 200a according to the second embodiment includes the time information indicating the time counted by the smartphone 100 from the unspecified number of smartphones 100 that are not paired, and the accuracy information indicating the accuracy of the time. , An advertisement packet including is acquired. Then, the electronic timepiece 200a selects an advertisement packet with high accuracy among the acquired advertisement packets as an advertisement packet that uses the time measured by the own device for correction. As described above, the electronic timepiece 200a corrects the time based on the time with high accuracy among the advertised packets from the unspecified number of smartphones 100. Therefore, the time information with low accuracy is excluded, and the time accuracy after correction is increased. Can keep.

また、電子時計200aは、選択されたアドバタイズパケットに含まれる時刻情報が表す時刻に対して、確度情報が表す確度に基づいて重み付けをすることにより、補正後の時刻の精度をより高めることができる。   Moreover, the electronic timepiece 200a can further improve the accuracy of the corrected time by weighting the time represented by the time information included in the selected advertisement packet based on the accuracy represented by the accuracy information. .

なお、本発明は、上記実施の形態に限られるものではなく、様々な変更が可能である。   The present invention is not limited to the above-described embodiment, and various modifications can be made.

例えば、上記実施形態では、時刻情報及び確度情報は、AD Typeが「Manufacturer Specific Data」であるAD Dataに含まれる例について説明した。しかし、時刻情報及び確度情報が含まれるアドバタイズパケットの領域は、これに限られず、ユーザまたは企業が任意に利用できる領域であればよい。   For example, in the above-described embodiment, the example in which the time information and the accuracy information are included in AD Data whose AD Type is “Manufacturer Specific Data” has been described. However, the area of the advertisement packet including the time information and the accuracy information is not limited to this, and may be an area that can be arbitrarily used by the user or the company.

また、上記実施形態では、確度情報は、スマートフォン100が計時する時刻の最新の補正を行ってからの経過時間を表す例について説明した。しかし、確度情報が表す時刻の確度は、これに限られない。例えば、確度情報は、スマートフォン100が、自装置が計時する時刻を補正する際に参照した時刻源の信頼性を表してもよい。例えば、時刻源が、GPS、NITZ、NTPである場合の確度がそれぞれA1、A2、A3、時刻が補正されない場合の確度がA4(ただし、A1>A2>A3>A4)のように、時刻源の信頼性が高いほど、高い確度を予め時刻源に対応して設定されていてもよい。   Moreover, in the said embodiment, accuracy information demonstrated the example showing the elapsed time after performing the newest correction | amendment of the time which the smart phone 100 time-measures. However, the accuracy of the time represented by the accuracy information is not limited to this. For example, the accuracy information may represent the reliability of the time source referred to when the smartphone 100 corrects the time counted by the own device. For example, when the time source is GPS, NITZ, and NTP, the accuracy is A1, A2, and A3, respectively, and when the time is not corrected, the accuracy is A4 (however, A1> A2> A3> A4). The higher the reliability, the higher accuracy may be set in advance corresponding to the time source.

また、上記実施形態では、電子時計200aのCPU210は、選択されたアドバタイズパケットに含まれる時刻情報が表す時刻に対して、確度情報が表す確度に基づいて重み付けをすることにより、自装置が計時する時刻を補正する例について説明した。しかし、CPU210は、さらに、選択されたアドバタイズパケットのRSSI(Received Signal Strength Indicator:受信電波強度)に基づいて重み付けをすることにより、自装置が計時する時刻を補正してもよい。例えば、RSSIが所定値I0よりも大きく、かつ確度が所定値A0よりも大きい場合、重み付け係数W1を割り当てる。また、RSSIが所定値I0以下であり、かつ確度が所定値A0よりも大きい場合、重み付け係数W2(W1>W2)を割り当てる。また、RSSIが所定値I0よりも大きく、かつ確度が所定値A0以下である場合、重み付け係数W2またはW3(W2>W3)を割り当てる。また、RSSIが所定値I0以下であり、かつ確度が所定値A0以下である場合、重み付け係数W3を割り当てる、またはそのアドバタイズパケットを排除する。このように、RSSI及び確度の組み合わせに応じて割り当てられた重み付け係数を時刻に乗算し、集計することにより、補正すべき時刻を算出してもよい。   In the above embodiment, the CPU 210 of the electronic timepiece 200a counts the time represented by the time information included in the selected advertisement packet based on the accuracy represented by the accuracy information, so that the own device keeps time. An example of correcting the time has been described. However, the CPU 210 may further correct the time counted by the own device by performing weighting based on the RSSI (Received Signal Strength Indicator) of the selected advertisement packet. For example, when the RSSI is larger than the predetermined value I0 and the accuracy is larger than the predetermined value A0, the weighting coefficient W1 is assigned. Further, when the RSSI is equal to or less than the predetermined value I0 and the accuracy is larger than the predetermined value A0, a weighting coefficient W2 (W1> W2) is assigned. Further, when the RSSI is larger than the predetermined value I0 and the accuracy is the predetermined value A0 or less, the weighting coefficient W2 or W3 (W2> W3) is assigned. Further, when the RSSI is equal to or smaller than the predetermined value I0 and the accuracy is equal to or smaller than the predetermined value A0, the weighting coefficient W3 is assigned or the advertisement packet is excluded. As described above, the time to be corrected may be calculated by multiplying the time by the weighting coefficient assigned according to the combination of the RSSI and the accuracy and tabulating the time.

また、上記実施形態では、スマートフォン100及び電子時計200,200aは、例えば、1日に1回の所定時刻Tに、電子時計200が計時する時刻を補正するための時刻補正処理を実行する例について説明した。しかし、時刻補正処理は、ユーザの操作入力を契機として実行されてもよい。   In the above embodiment, for example, the smartphone 100 and the electronic timepieces 200 and 200a execute time correction processing for correcting the time measured by the electronic timepiece 200 at a predetermined time T once a day. explained. However, the time correction process may be executed in response to a user operation input.

また、上記実施形態では、スマートフォン100から取得した送信情報に含まれる確度情報が表す確度が所定の閾値以上であれば、補正部223は、その送信情報に含まれる時刻情報に基づいて電子時計200が計時する時刻を補正する場合を述べたが、これに限られない。例えば、前回に補正部223が時刻を補正してからの経過時間をCPU210が測定し、保持する。この経過時間が長いほど電子時計200が保持する時刻情報の確度は低く、短いほど確度は高い数値とする。この時スマートフォン100から取得した送信情報に含まれる確度情報が表す確度が所定の閾値以上であり、かつ電子時計200のCPU210が保持する時刻情報の確度よりも高い数値である場合に補正部223は、その送信情報に含まれる時刻情報に基づいて時刻を補正してもよい。このようにすることで、時刻を補正してから経過した時間が短い場合は、確度が高い送信情報を受信したとしても時刻を補正せず、高頻度で時刻が補正されることを防ぐことができる。   In the above embodiment, if the accuracy represented by the accuracy information included in the transmission information acquired from the smartphone 100 is equal to or greater than a predetermined threshold value, the correction unit 223 uses the electronic timepiece 200 based on the time information included in the transmission information. Although the case of correcting the time counted by is described, it is not limited to this. For example, the CPU 210 measures and holds the elapsed time since the correction unit 223 corrected the time last time. The longer the elapsed time, the lower the accuracy of the time information held by the electronic timepiece 200, and the lower the accuracy, the higher the accuracy. At this time, when the accuracy represented by the accuracy information included in the transmission information acquired from the smartphone 100 is equal to or higher than a predetermined threshold and is higher than the accuracy of the time information held by the CPU 210 of the electronic timepiece 200, the correction unit 223 The time may be corrected based on the time information included in the transmission information. By doing in this way, when the time that has elapsed since the time was corrected is short, even if transmission information with high accuracy is received, the time is not corrected and the time is prevented from being corrected frequently. it can.

また、上記実施形態に限られず、スマートフォン100の計時における歩度を考慮してもよい。例えば、スマートフォン100が、計時する時刻に一定期間でどの程度の誤差が発生するかを表す歩度情報を更に送信情報に含めて送信し、電子時計200は送信情報に含まれる確度情報と、歩度情報とに基づいて時刻情報の信頼度を算出し、信頼度が所定の閾値を超えている場合に、その送信情報に含まれる時刻情報が表す時刻に基づいて、時刻を補正してもよい。これにより、スマートフォン100側が計時する時刻の誤差を考慮した時刻補正を行うことができる。   Moreover, you may consider the rate at the time measurement of the smart phone 100 not only in the said embodiment. For example, the smartphone 100 further transmits rate information indicating how much error occurs in a certain period at the time to be measured, and the transmission information includes the accuracy information included in the transmission information and the rate information. If the reliability of the time information is calculated based on the above and the reliability exceeds a predetermined threshold, the time may be corrected based on the time represented by the time information included in the transmission information. Thereby, the time correction which considered the error of the time which the smart phone 100 side measures can be performed.

また、上記実施形態では、スマートフォン100及び電子時計200,200aがブルートゥースで通信して電子時計200,200aの時刻を補正する例を説明したが、その他の通信方法、例えば、無線LANやWi−Fi(登録商標)で通信して時刻を補正してもよい。   In the above embodiment, the smartphone 100 and the electronic timepieces 200 and 200a communicate with each other via Bluetooth to correct the time of the electronic timepieces 200 and 200a. However, other communication methods such as a wireless LAN or Wi-Fi are described. (Registered trademark) may be used to correct the time.

また、上記実施形態では、電子時計200,200aが計時する時刻をスマートフォン100が計時する時刻に補正する例を説明したが、スマートフォン100が計時する時刻を電子時計200,200aが計時する時刻に補正してもよい。   In the above-described embodiment, an example in which the time measured by the electronic timepiece 200, 200a is corrected to the time measured by the smartphone 100, but the time measured by the smartphone 100 is corrected to the time measured by the electronic timepiece 200, 200a. May be.

また、上記実施形態では、スマートフォン100、電子時計200,200aを例に挙げて説明したが、本発明を適用可能な機器はこれらに限られず、スマートウォッチなどの無線通信が可能な電子機器であればよい。   In the above embodiment, the smartphone 100 and the electronic timepieces 200 and 200a have been described as examples. However, devices to which the present invention can be applied are not limited to these, and may be electronic devices such as smart watches that can perform wireless communication. That's fine.

また、上記実施形態では、制御動作を行うプロセッサがCPU110、CPU210である例を説明しているが、制御動作は、CPUによるソフトウェア制御に限られるものではない。制御動作の一部又は全部が専用の論理回路などのハードウェア構成を用いてなされても良い。   Moreover, although the said embodiment demonstrated the example which the processor which performs control operation is CPU110 and CPU210, control operation is not restricted to software control by CPU. Part or all of the control operation may be performed using a hardware configuration such as a dedicated logic circuit.

また、以上の説明では、本発明の時刻補正処理に係るプログラム115,215を記憶するコンピュータ読み取り可能な媒体としてフラッシュメモリなどの不揮発性メモリなどからなるROM102、202を例に挙げて説明したが、これらに限定されない。その他のコンピュータ読み取り可能な媒体として、HDD(Hard Disk Drive)、CD−ROMやDVD(Digital Versatile Disk)などの可搬型記録媒体を適用することが可能である。また、本発明に係るプログラムのデータを通信回線を介して提供する媒体として、キャリアウェーブ(搬送波)も本発明に適用される。   In the above description, the ROMs 102 and 202 including a nonvolatile memory such as a flash memory have been described as examples of the computer-readable medium that stores the programs 115 and 215 related to the time correction processing of the present invention. It is not limited to these. As other computer-readable media, portable recording media such as HDD (Hard Disk Drive), CD-ROM, and DVD (Digital Versatile Disk) 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, specific details such as the configuration, the control procedure, and the display example 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 numbers given in the appendix are as in the scope of the claims originally attached to the application for this application.

(付記1)
外部装置と通信する通信部と、
自装置の動作を制御する制御部と、を備え、
前記制御部は、
前記外部装置から、前記外部装置が計時する時刻情報と、前記時刻の確度を表す確度情報と、を含む送信情報を前記通信部を介して取得し、
前記取得された前記送信情報に含まれる前記確度情報に基づいて、前記取得された前記送信情報のうち、所定の条件を満たす前記送信情報を選択し、
前記選択された前記送信情報に含まれる前記時刻情報に基づいて、自装置が計時する時刻を補正する、
ことを特徴とする無線通信装置。
(Appendix 1)
A communication unit that communicates with an external device;
A control unit that controls the operation of the device itself,
The controller is
From the external device, acquisition of transmission information including time information timed by the external device and accuracy information indicating the accuracy of the time, via the communication unit,
Based on the accuracy information included in the acquired transmission information, the transmission information satisfying a predetermined condition is selected from the acquired transmission information,
Based on the time information included in the selected transmission information, correct the time counted by the device itself,
A wireless communication apparatus.

(付記2)
前記送信情報は、前記送信情報の送信元である前記外部装置を識別する識別情報をさらに含み、
前記制御部は、前記取得された前記送信情報のうち、予め定められた前記識別情報を含む前記送信情報に含まれる前記確度情報に基づいて、前記送信情報を選択する、
ことを特徴とする付記1に記載の無線通信装置。
(Appendix 2)
The transmission information further includes identification information for identifying the external device that is a transmission source of the transmission information,
The control unit selects the transmission information based on the accuracy information included in the transmission information including the predetermined identification information among the acquired transmission information.
The wireless communication apparatus according to Supplementary Note 1, wherein:

(付記3)
前記制御部は、前記予め定められた前記識別情報を含む前記送信情報に含まれる前記確度情報が表す確度が、所定の閾値以上である前記送信情報を選択する、
ことを特徴とする付記2に記載の無線通信装置。
(Appendix 3)
The control unit selects the transmission information whose accuracy represented by the accuracy information included in the transmission information including the predetermined identification information is a predetermined threshold value or more.
The wireless communication apparatus according to Supplementary Note 2, wherein

(付記4)
前記制御部は、
前記取得された前記送信情報に含まれる前記確度情報が表す確度が所定の閾値以上である前記送信情報をn個(nは自然数)以上受信したとき、前記n個の前記送信情報のうち、前記送信情報に含まれる前記確度情報が表す確度が高い順にm個(mは自然数かつm≦n)の前記送信情報を選択する、
ことを特徴とする付記1に記載の無線通信装置。
(Appendix 4)
The controller is
When the transmission information whose accuracy represented by the accuracy information included in the acquired transmission information is greater than or equal to a predetermined threshold (n is a natural number) or more, the transmission information among the n transmission information Selecting m pieces of transmission information (m is a natural number and m ≦ n) in descending order of the accuracy represented by the accuracy information included in the transmission information;
The wireless communication apparatus according to Supplementary Note 1, wherein:

(付記5)
前記制御部は、前記選択された前記送信情報に含まれる前記時刻情報が表す時刻に対して、前記選択された前記送信情報に含まれる前記確度情報が表す確度に基づいて重み付けをすることにより、自装置が計時する時刻を補正する、
ことを特徴とする付記1乃至4のいずれか1つに記載の無線通信装置。
(Appendix 5)
The control unit weights the time represented by the time information included in the selected transmission information based on the accuracy represented by the accuracy information included in the selected transmission information, Correct the time counted by the device itself,
The wireless communication device according to any one of appendices 1 to 4, characterized in that:

(付記6)
前記制御部は、前記選択された前記送信情報に含まれる前記時刻情報が表す時刻に対して、さらに前記選択された前記送信情報の受信電波強度に基づいて重み付けをすることにより、自装置が計時する時刻を補正する、
ことを特徴とする付記1乃至5のいずれか1つに記載の無線通信装置。
(Appendix 6)
The control unit weights the time indicated by the time information included in the selected transmission information based on the received radio wave intensity of the selected transmission information, so that the own device measures time. Correct the time to
The wireless communication device according to any one of appendices 1 to 5, characterized in that:

(付記7)
前記確度情報は、前記外部装置が計時する時刻の最新の補正を行ってからの経過時間を表す、
ことを特徴とする付記1乃至6のいずれか1つに記載の無線通信装置。
(Appendix 7)
The accuracy information represents an elapsed time since the latest correction of the time counted by the external device,
The wireless communication device according to any one of appendices 1 to 6, characterized in that:

(付記8)
前記確度情報は、前記外部装置が、前記外部装置が計時する時刻を補正する際に参照した時刻源の信頼性を表す、
ことを特徴とする付記1乃至6のいずれか1つに記載の無線通信装置。
(Appendix 8)
The accuracy information represents the reliability of the time source referred to when the external device corrects the time counted by the external device.
The wireless communication device according to any one of appendices 1 to 6, characterized in that:

(付記9)
前記制御部は、時刻の最新の補正を行ってからの経過時間を表す第2の確度情報を保持し、前記送信情報に含まれる前記確度情報と前記第2の確度情報とに基づいて自装置が計時する時刻を補正する、
ことを特徴とする付記1乃至8のいずれか1つに記載の無線通信装置。
(Appendix 9)
The control unit retains second accuracy information representing an elapsed time since the latest correction of time, and based on the accuracy information and the second accuracy information included in the transmission information To correct the time when
The wireless communication device according to any one of appendices 1 to 8, wherein

(付記10)
前記送信情報は、前記外部装置が計時する時刻に発生する一定期間の誤差を表す歩度情報をさらに含み、
前記制御部は、前記送信情報に含まれる前記確度情報と前記歩度情報とに基づいて自装置が計時する時刻を補正する、
ことを特徴とする付記1乃至8のいずれか1つに記載の無線通信装置。
(Appendix 10)
The transmission information further includes rate information representing an error of a certain period that occurs at a time measured by the external device,
The control unit corrects the time measured by the own device based on the accuracy information and the rate information included in the transmission information.
The wireless communication device according to any one of appendices 1 to 8, wherein

(付記11)
外部装置と通信する通信部と、
自装置の動作を制御する制御部を備え、
前記制御部は、
自装置が計時した時刻を表す時刻情報と、前記時刻の確度を表す確度情報と、を含む送信情報を生成し、
前記生成された送信情報を前記通信部を介して前記外部装置に定期的に送信し、
最新の前記生成された前記送信情報の送信を開始してから所定期間経過後に、前記時刻情報を更新し、更新された前記時刻情報と、前記確度情報と、を含む前記送信情報を生成する、
ことを特徴とする無線通信装置。
(Appendix 11)
A communication unit that communicates with an external device;
It has a control unit that controls the operation of its own device,
The controller is
Generate transmission information including time information representing the time measured by the own device and accuracy information representing the accuracy of the time,
Periodically transmitting the generated transmission information to the external device via the communication unit;
Updating the time information after elapse of a predetermined period from the start of transmission of the latest generated transmission information, and generating the transmission information including the updated time information and the accuracy information;
A wireless communication apparatus.

(付記12)
付記1乃至11のいずれか1つに記載の無線通信装置と、
時刻を表示する表示部と、
を備えることを特徴とする電子時計。
(Appendix 12)
The wireless communication device according to any one of appendices 1 to 11,
A display for displaying the time,
An electronic timepiece characterized by comprising:

(付記13)
外部装置と通信する通信部と、自装置の動作を制御する制御部と、を備える無線通信装置が実行する時刻補正方法であって、
前記外部装置から、前記外部装置が計時する時刻を表す時刻情報と、前記時刻の確度を表す確度情報と、を含む送信情報を前記通信部を介して取得する取得ステップと、
前記取得された前記送信情報に含まれる前記確度情報に基づいて、前記取得された前記送信情報のうち、所定の条件を満たす前記送信情報を選択する選択ステップと、
前記選択された前記送信情報に含まれる前記時刻情報に基づいて、自装置が計時する時刻を補正する補正ステップと、
を含むことを特徴とする時刻補正方法。
(Appendix 13)
A time correction method executed by a wireless communication device comprising a communication unit that communicates with an external device and a control unit that controls the operation of the device,
An acquisition step of acquiring transmission information including time information indicating the time measured by the external device and accuracy information indicating the accuracy of the time from the external device via the communication unit;
A selection step of selecting the transmission information satisfying a predetermined condition from the acquired transmission information based on the accuracy information included in the acquired transmission information;
Based on the time information included in the selected transmission information, a correction step for correcting the time counted by the own device;
A time correction method comprising:

(付記14)
外部装置と通信する通信部と、自装置の動作を制御する制御部と、を備える無線通信装置が実行する送信情報生成方法であって、
自装置が計時した時刻を表す時刻情報と、前記時刻の確度を表す確度情報と、を含む送信情報を生成する生成ステップと、
前記生成された送信情報を前記通信部を介して前記外部装置に定期的に送信する送信ステップと、
を含み、
前記生成ステップにおいて、最新の前記生成された前記送信情報の送信を開始してから所定期間経過後に、前記時刻情報を更新し、更新された前記時刻情報と、前記確度情報と、を含む前記送信情報を生成する、
ことを特徴とする送信情報生成方法。
(Appendix 14)
A transmission information generation method executed by a wireless communication device including a communication unit that communicates with an external device and a control unit that controls the operation of the device,
A generation step of generating transmission information including time information indicating the time measured by the own device and accuracy information indicating the accuracy of the time;
A transmission step of periodically transmitting the generated transmission information to the external device via the communication unit;
Including
In the generation step, the time information is updated after elapse of a predetermined period from the start of transmission of the latest generated transmission information, and the transmission includes the updated time information and the accuracy information. Generating information,
A transmission information generation method characterized by the above.

(付記15)
外部装置と通信する通信部と、自装置の動作を制御する制御部と、を備えるコンピュータを、
前記外部装置から、前記外部装置が計時する時刻を表す時刻情報と、前記時刻の確度を表す確度情報と、を含む送信情報を取得する取得手段、
前記取得された前記送信情報に含まれる前記確度情報に基づいて、前記取得された前記送信情報のうち、所定の条件を満たす前記送信情報を選択する選択手段、
前記選択された前記送信情報に含まれる前記時刻情報に基づいて、自装置が計時する時刻を補正する補正手段、
として機能させることを特徴とするプログラム。
(Appendix 15)
A computer comprising a communication unit that communicates with an external device, and a control unit that controls the operation of the device itself.
An acquisition means for acquiring transmission information including time information indicating the time measured by the external device and accuracy information indicating the accuracy of the time from the external device;
Selection means for selecting the transmission information satisfying a predetermined condition from the acquired transmission information based on the accuracy information included in the acquired transmission information;
Correction means for correcting the time counted by the own device based on the time information included in the selected transmission information;
A program characterized by functioning as

(付記16)
外部装置と通信する通信部と、自装置の動作を制御する制御部と、を備えるコンピュータを、
自装置が計時した時刻を表す時刻情報と、前記時刻の確度を表す確度情報と、を含む送信情報を生成する生成手段、
前記生成された送信情報を前記通信部を介して前記外部装置に定期的に送信する送信手段、
として機能させ、
前記生成手段は、最新の前記生成された前記送信情報の送信を開始してから所定期間経過後に、前記時刻情報を更新し、更新された前記時刻情報と、前記確度情報と、を含む前記送信情報を生成する、
ことを特徴とするプログラム。
(Appendix 16)
A computer comprising a communication unit that communicates with an external device, and a control unit that controls the operation of the device itself.
Generating means for generating transmission information including time information indicating the time measured by the own device and accuracy information indicating the accuracy of the time;
Transmission means for periodically transmitting the generated transmission information to the external device via the communication unit;
Function as
The generation means updates the time information after a predetermined period of time has elapsed from the start of transmission of the latest generated transmission information, and includes the updated time information and the accuracy information. Generating information,
A program characterized by that.

1…無線通信システム、10,20…無線通信装置、100…スマートフォン、101…マイクロコンピュータ、102…ROM、103…通信部、104…アンテナ、105…電力供給部、106…表示部、107…表示ドライバ、108…操作受付部、109…振動子、110…CPU、111…RAM、112…発信回路、113…分周回路、114…計時回路、115…プログラム、121…生成部、122…送信部、200,200a…電子時計、201…マイクロコンピュータ、202…ROM、203…通信部、204…アンテナ、205…電力供給部、206…表示部、207…表示ドライバ、208…操作受付部、209…振動子、210…CPU、211…RAM、212…発信回路、213…分周回路、214…計時回路、215…プログラム、221…取得部、222,222a…選択部、223,223a…補正部 DESCRIPTION OF SYMBOLS 1 ... Wireless communication system 10, 20 ... Wireless communication apparatus, 100 ... Smartphone, 101 ... Microcomputer, 102 ... ROM, 103 ... Communication part, 104 ... Antenna, 105 ... Electric power supply part, 106 ... Display part, 107 ... Display Driver, 108 ... Operation accepting unit, 109 ... Vibrator, 110 ... CPU, 111 ... RAM, 112 ... Transmission circuit, 113 ... Frequency dividing circuit, 114 ... Timing circuit, 115 ... Program, 121 ... Generation unit, 122 ... Transmission unit , 200, 200a ... electronic clock, 201 ... microcomputer, 202 ... ROM, 203 ... communication unit, 204 ... antenna, 205 ... power supply unit, 206 ... display unit, 207 ... display driver, 208 ... operation receiving unit, 209 ... Vibrator 210 ... CPU 211 ... RAM 212 ... Transmission circuit 213 ... Division circuit 214 ... Timekeeping Road, 215 ... program, 221 ... acquisition unit, 222,222A ... selection unit, 223,223A ... correcting section

Claims (16)

外部装置と通信する通信部と、
自装置の動作を制御する制御部と、を備え、
前記制御部は、
前記外部装置から、前記外部装置が計時する時刻情報と、前記時刻の確度を表す確度情報と、を含む送信情報を前記通信部を介して取得し、
前記取得された前記送信情報に含まれる前記確度情報に基づいて、前記取得された前記送信情報のうち、所定の条件を満たす前記送信情報を選択し、
前記選択された前記送信情報に含まれる前記時刻情報に基づいて、自装置が計時する時刻を補正する、
ことを特徴とする無線通信装置。
A communication unit that communicates with an external device;
A control unit that controls the operation of the device itself,
The controller is
From the external device, acquisition of transmission information including time information timed by the external device and accuracy information indicating the accuracy of the time, via the communication unit,
Based on the accuracy information included in the acquired transmission information, the transmission information satisfying a predetermined condition is selected from the acquired transmission information,
Based on the time information included in the selected transmission information, correct the time counted by the device itself,
A wireless communication apparatus.
前記送信情報は、前記送信情報の送信元である前記外部装置を識別する識別情報をさらに含み、
前記制御部は、前記取得された前記送信情報のうち、予め定められた前記識別情報を含む前記送信情報に含まれる前記確度情報に基づいて、前記送信情報を選択する、
ことを特徴とする請求項1に記載の無線通信装置。
The transmission information further includes identification information for identifying the external device that is a transmission source of the transmission information,
The control unit selects the transmission information based on the accuracy information included in the transmission information including the predetermined identification information among the acquired transmission information.
The wireless communication apparatus according to claim 1.
前記制御部は、前記予め定められた前記識別情報を含む前記送信情報に含まれる前記確度情報が表す確度が、所定の閾値以上である前記送信情報を選択する、
ことを特徴とする請求項2に記載の無線通信装置。
The control unit selects the transmission information whose accuracy represented by the accuracy information included in the transmission information including the predetermined identification information is a predetermined threshold value or more.
The wireless communication apparatus according to claim 2.
前記制御部は、
前記取得された前記送信情報に含まれる前記確度情報が表す確度が所定の閾値以上である前記送信情報をn個(nは自然数)以上受信したとき、前記n個の前記送信情報のうち、前記送信情報に含まれる前記確度情報が表す確度が高い順にm個(mは自然数かつm≦n)の前記送信情報を選択する、
ことを特徴とする請求項1に記載の無線通信装置。
The controller is
When the transmission information whose accuracy represented by the accuracy information included in the acquired transmission information is greater than or equal to a predetermined threshold (n is a natural number) or more, the transmission information among the n transmission information Selecting m pieces of transmission information (m is a natural number and m ≦ n) in descending order of the accuracy represented by the accuracy information included in the transmission information;
The wireless communication apparatus according to claim 1.
前記制御部は、前記選択された前記送信情報に含まれる前記時刻情報が表す時刻に対して、前記選択された前記送信情報に含まれる前記確度情報が表す確度に基づいて重み付けをすることにより、自装置が計時する時刻を補正する、
ことを特徴とする請求項1乃至4のいずれか1項に記載の無線通信装置。
The control unit weights the time represented by the time information included in the selected transmission information based on the accuracy represented by the accuracy information included in the selected transmission information, Correct the time counted by the device itself,
The wireless communication device according to claim 1, wherein the wireless communication device is a wireless communication device.
前記制御部は、前記選択された前記送信情報に含まれる前記時刻情報が表す時刻に対して、さらに前記選択された前記送信情報の受信電波強度に基づいて重み付けをすることにより、自装置が計時する時刻を補正する、
ことを特徴とする請求項1乃至5のいずれか1項に記載の無線通信装置。
The control unit weights the time indicated by the time information included in the selected transmission information based on the received radio wave intensity of the selected transmission information, so that the own device measures time. Correct the time to
The wireless communication apparatus according to claim 1, wherein the wireless communication apparatus is a wireless communication apparatus.
前記確度情報は、前記外部装置が計時する時刻の最新の補正を行ってからの経過時間を表す、
ことを特徴とする請求項1乃至6のいずれか1項に記載の無線通信装置。
The accuracy information represents an elapsed time since the latest correction of the time counted by the external device,
The wireless communication apparatus according to claim 1, wherein the wireless communication apparatus is a wireless communication apparatus.
前記確度情報は、前記外部装置が、前記外部装置が計時する時刻を補正する際に参照した時刻源の信頼性を表す、
ことを特徴とする請求項1乃至6のいずれか1項に記載の無線通信装置。
The accuracy information represents the reliability of the time source referred to when the external device corrects the time counted by the external device.
The wireless communication apparatus according to claim 1, wherein the wireless communication apparatus is a wireless communication apparatus.
前記制御部は、時刻の最新の補正を行ってからの経過時間を表す第2の確度情報を保持し、前記送信情報に含まれる前記確度情報と前記第2の確度情報とに基づいて自装置が計時する時刻を補正する、
ことを特徴とする請求項1乃至8のいずれか1項に記載の無線通信装置。
The control unit retains second accuracy information representing an elapsed time since the latest correction of time, and based on the accuracy information and the second accuracy information included in the transmission information To correct the time when
The wireless communication apparatus according to claim 1, wherein the wireless communication apparatus is a wireless communication apparatus.
前記送信情報は、前記外部装置が計時する時刻に発生する一定期間の誤差を表す歩度情報をさらに含み、
前記制御部は、前記送信情報に含まれる前記確度情報と前記歩度情報とに基づいて自装置が計時する時刻を補正する、
ことを特徴とする請求項1乃至8のいずれか1項に記載の無線通信装置。
The transmission information further includes rate information representing an error of a certain period that occurs at a time measured by the external device,
The control unit corrects the time measured by the own device based on the accuracy information and the rate information included in the transmission information.
The wireless communication apparatus according to claim 1, wherein the wireless communication apparatus is a wireless communication apparatus.
外部装置と通信する通信部と、
自装置の動作を制御する制御部を備え、
前記制御部は、
自装置が計時した時刻を表す時刻情報と、前記時刻の確度を表す確度情報と、を含む送信情報を生成し、
前記生成された送信情報を前記通信部を介して前記外部装置に定期的に送信し、
最新の前記生成された前記送信情報の送信を開始してから所定期間経過後に、前記時刻情報を更新し、更新された前記時刻情報と、前記確度情報と、を含む前記送信情報を生成する、
ことを特徴とする無線通信装置。
A communication unit that communicates with an external device;
It has a control unit that controls the operation of its own device,
The controller is
Generate transmission information including time information representing the time measured by the own device and accuracy information representing the accuracy of the time,
Periodically transmitting the generated transmission information to the external device via the communication unit;
Updating the time information after elapse of a predetermined period from the start of transmission of the latest generated transmission information, and generating the transmission information including the updated time information and the accuracy information;
A wireless communication apparatus.
請求項1乃至11のいずれか1項に記載の無線通信装置と、
時刻を表示する表示部と、
を備えることを特徴とする電子時計。
A wireless communication device according to any one of claims 1 to 11,
A display for displaying the time,
An electronic timepiece characterized by comprising:
外部装置と通信する通信部と、自装置の動作を制御する制御部と、を備える無線通信装置が実行する時刻補正方法であって、
前記外部装置から、前記外部装置が計時する時刻を表す時刻情報と、前記時刻の確度を表す確度情報と、を含む送信情報を前記通信部を介して取得する取得ステップと、
前記取得された前記送信情報に含まれる前記確度情報に基づいて、前記取得された前記送信情報のうち、所定の条件を満たす前記送信情報を選択する選択ステップと、
前記選択された前記送信情報に含まれる前記時刻情報に基づいて、自装置が計時する時刻を補正する補正ステップと、
を含むことを特徴とする時刻補正方法。
A time correction method executed by a wireless communication device comprising a communication unit that communicates with an external device and a control unit that controls the operation of the device,
An acquisition step of acquiring transmission information including time information indicating the time measured by the external device and accuracy information indicating the accuracy of the time from the external device via the communication unit;
A selection step of selecting the transmission information satisfying a predetermined condition from the acquired transmission information based on the accuracy information included in the acquired transmission information;
Based on the time information included in the selected transmission information, a correction step for correcting the time counted by the own device;
A time correction method comprising:
外部装置と通信する通信部と、自装置の動作を制御する制御部と、を備える無線通信装置が実行する送信情報生成方法であって、
自装置が計時した時刻を表す時刻情報と、前記時刻の確度を表す確度情報と、を含む送信情報を生成する生成ステップと、
前記生成された送信情報を前記通信部を介して前記外部装置に定期的に送信する送信ステップと、
を含み、
前記生成ステップにおいて、最新の前記生成された前記送信情報の送信を開始してから所定期間経過後に、前記時刻情報を更新し、更新された前記時刻情報と、前記確度情報と、を含む前記送信情報を生成する、
ことを特徴とする送信情報生成方法。
A transmission information generation method executed by a wireless communication device including a communication unit that communicates with an external device and a control unit that controls the operation of the device,
A generation step of generating transmission information including time information indicating the time measured by the own device and accuracy information indicating the accuracy of the time;
A transmission step of periodically transmitting the generated transmission information to the external device via the communication unit;
Including
In the generation step, the time information is updated after elapse of a predetermined period from the start of transmission of the latest generated transmission information, and the transmission includes the updated time information and the accuracy information. Generating information,
A transmission information generation method characterized by the above.
外部装置と通信する通信部と、自装置の動作を制御する制御部と、を備えるコンピュータを、
前記外部装置から、前記外部装置が計時する時刻を表す時刻情報と、前記時刻の確度を表す確度情報と、を含む送信情報を取得する取得手段、
前記取得された前記送信情報に含まれる前記確度情報に基づいて、前記取得された前記送信情報のうち、所定の条件を満たす前記送信情報を選択する選択手段、
前記選択された前記送信情報に含まれる前記時刻情報に基づいて、自装置が計時する時刻を補正する補正手段、
として機能させることを特徴とするプログラム。
A computer comprising a communication unit that communicates with an external device, and a control unit that controls the operation of the device itself.
An acquisition means for acquiring transmission information including time information indicating the time measured by the external device and accuracy information indicating the accuracy of the time from the external device;
Selection means for selecting the transmission information satisfying a predetermined condition from the acquired transmission information based on the accuracy information included in the acquired transmission information;
Correction means for correcting the time counted by the own device based on the time information included in the selected transmission information;
A program characterized by functioning as
外部装置と通信する通信部と、自装置の動作を制御する制御部と、を備えるコンピュータを、
自装置が計時した時刻を表す時刻情報と、前記時刻の確度を表す確度情報と、を含む送信情報を生成する生成手段、
前記生成された送信情報を前記通信部を介して前記外部装置に定期的に送信する送信手段、
として機能させ、
前記生成手段は、最新の前記生成された前記送信情報の送信を開始してから所定期間経過後に、前記時刻情報を更新し、更新された前記時刻情報と、前記確度情報と、を含む前記送信情報を生成する、
ことを特徴とするプログラム。
A computer comprising a communication unit that communicates with an external device, and a control unit that controls the operation of the device itself.
Generating means for generating transmission information including time information indicating the time measured by the own device and accuracy information indicating the accuracy of the time;
Transmission means for periodically transmitting the generated transmission information to the external device via the communication unit;
Function as
The generation means updates the time information after a predetermined period of time has elapsed from the start of transmission of the latest generated transmission information, and includes the updated time information and the accuracy information. Generating information,
A program characterized by that.
JP2016182912A 2016-09-20 2016-09-20 Radio communication device, electronic watch, time correction method, transmission information generation method, and program Pending JP2018048829A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016182912A JP2018048829A (en) 2016-09-20 2016-09-20 Radio communication device, electronic watch, time correction method, transmission information generation method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016182912A JP2018048829A (en) 2016-09-20 2016-09-20 Radio communication device, electronic watch, time correction method, transmission information generation method, and program

Publications (1)

Publication Number Publication Date
JP2018048829A true JP2018048829A (en) 2018-03-29

Family

ID=61767425

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016182912A Pending JP2018048829A (en) 2016-09-20 2016-09-20 Radio communication device, electronic watch, time correction method, transmission information generation method, and program

Country Status (1)

Country Link
JP (1) JP2018048829A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021081377A (en) * 2019-11-22 2021-05-27 セイコーエプソン株式会社 Time correction method and time correction system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021081377A (en) * 2019-11-22 2021-05-27 セイコーエプソン株式会社 Time correction method and time correction system

Similar Documents

Publication Publication Date Title
JP2018100912A (en) Electronic timepiece, time acquisition control method and program
JP6451666B2 (en) Communication device, electronic timepiece, communication method, and program
JP6428754B2 (en) Electronic timepiece, position information acquisition control method, and program
JP2016024018A (en) Electronic timepiece
JP2017015399A (en) Electronic watch, and program
CN110996383B (en) Wireless communication device, electronic timepiece, transmission power control method, and storage medium
JP2019168372A (en) Electronic clock and method for acquiring information
JP2018048829A (en) Radio communication device, electronic watch, time correction method, transmission information generation method, and program
JP2018124095A (en) Watch and control method for watch
CN109618396B (en) Wireless communication device, electronic timepiece, wireless communication method, and storage medium
JP6984245B2 (en) Electronic clock, processing selection method, and program
JP6834283B2 (en) Wireless communication device, electronic clock, wireless communication method, time change method, and program
JP6919305B2 (en) Communication device, electronic clock, time change method, notification signal generation method, and program
JP6855723B2 (en) Communication device, electronic clock, time change method, connection request generation method, and program
JP6798470B2 (en) Electronic clocks, display control methods, and programs
JP6658611B2 (en) Electronic clock, information acquisition control method, and program
JP6825525B2 (en) Electronic clocks, control methods and programs
JP7276409B2 (en) ELECTRONIC DEVICE, DISPLAY METHOD, AND PROGRAM
JP6841106B2 (en) Wireless communication devices, electronic clocks, wireless communication methods, and programs
JP6953956B2 (en) Wireless communication device, electronic clock, display format determination method, and program
JP2018044931A (en) Radio communication device, electronic timepiece, time change method, time information providing method, and program
JP2018157341A (en) Radio communication method, radio communication device, electronic watch, and program
JP2019007894A (en) Electronic clock, time correction method and program
JP2021039120A (en) Electronic time piece, display control method, and program
JP2019086387A (en) Display, electronic clock, display method, and program