JP6855723B2 - Communication device, electronic clock, time change method, connection request generation method, and program - Google Patents

Communication device, electronic clock, time change method, connection request generation method, and program Download PDF

Info

Publication number
JP6855723B2
JP6855723B2 JP2016183966A JP2016183966A JP6855723B2 JP 6855723 B2 JP6855723 B2 JP 6855723B2 JP 2016183966 A JP2016183966 A JP 2016183966A JP 2016183966 A JP2016183966 A JP 2016183966A JP 6855723 B2 JP6855723 B2 JP 6855723B2
Authority
JP
Japan
Prior art keywords
communication device
unit
time
communication
transmission information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2016183966A
Other languages
Japanese (ja)
Other versions
JP2018048882A (en
Inventor
和穂 姜
和穂 姜
中川 誠
誠 中川
宏 岩見谷
宏 岩見谷
高弘 冨田
高弘 冨田
寺崎 努
努 寺崎
亮 奥村
亮 奥村
智洋 高橋
智洋 高橋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2016183966A priority Critical patent/JP6855723B2/en
Publication of JP2018048882A publication Critical patent/JP2018048882A/en
Application granted granted Critical
Publication of JP6855723B2 publication Critical patent/JP6855723B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Description

この発明は、通信装置、電子時計、時刻変更方法、接続要求生成方法、及びプログラムに関する。 The present invention relates to communication devices, electronic clocks, time change methods, connection request generation methods, and programs.

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

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

特開2009−118403号公報Japanese Unexamined Patent Publication No. 2009-118403

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

この発明の目的は、通信接続を確立した後のデータ通信を要さずに時刻の変更が可能な通信装置、電子時計、時刻変更方法、接続要求生成方法、及びプログラムを提供することにある。 An object of the present invention is to provide a communication device, an electronic clock, a time changing method, a connection request generation method, and a program capable of changing the time without requiring data communication after establishing a communication connection.

本発明は、上記目的を達成するため、本発明の第1の観点に係る通信装置は、
他の通信装置と通信する通信部と、
時刻を計時する計時部と、
制御部と、を備え、
前記制御部は、
前記通信部を制御して、前記他の通信装置に前記計時部が計時する時刻を含む送信情報を送信させ、
前記通信部を制御して、前記送信情報に応答して前記他の通信装置から送信された接続要求であって、前記送信情報に含まれる前記計時部が計時する時刻と、前記他の通信装置が前記送信情報を受信した時刻との差分に基づく第1設定値が設定された第1パラメータを含む前記接続要求を受信し、
前記接続要求に含まれる前記第1パラメータに設定された前記第1設定値に基づいて、前記計時部が計時する時刻を変更する、
ことを特徴とする。
In order to achieve the above object, the communication device according to the first aspect of the present invention is
With a communication unit that communicates with other communication devices,
The timekeeping part that measures the time and
With a control unit
The control unit
The communication unit is controlled to cause the other communication device to transmit transmission information including the time measured by the timekeeping unit.
A connection request transmitted from the other communication device in response to the transmission information by controlling the communication unit, the time measured by the timekeeping unit included in the transmission information, and the other communication device. Receives the connection request including the first parameter in which the first set value is set based on the difference from the time when the transmission information is received.
Based on the first set value that is set in the first parameter included in the connection request, the timer unit changes the time measured,
It is characterized by that.

本発明は、上記目的を達成するため、本発明の第2の観点に係る通信装置は、
他の通信装置と通信する通信部と、
時刻を計時する計時部と、
制御部と、
を備え、
前記制御部は、
前記通信部を制御して、前記他の通信装置が送信した前記他の通信装置が計時する時刻を含む送信情報を受信し、
前記通信部を制御して、前記送信情報を受信したときに前記計時部が計時する時刻と、前記送信情報に含まれる前記他の通信装置が計時する時刻との差分に基づいて、第1設定値を生成し
記第1設定値が設定された第1パラメータを含む接続要求を、前記他の通信装置へ送信する、
ことを特徴とする。
In order to achieve the above object, the communication device according to the second aspect of the present invention is
With a communication unit that communicates with other communication devices,
The timekeeping part that measures the time and
Control unit and
With
The control unit
By controlling the communication unit, the transmission information including the time measured by the other communication device transmitted by the other communication device is received, and the transmission information is received.
The first setting is based on the difference between the time measured by the timing unit when the transmission information is received by controlling the communication unit and the time measured by the other communication device included in the transmission information. to generate a value,
The including connection requests a first parameter first set value before Symbol is set, and transmits to the other communication apparatus,
It is characterized by that.

本発明に従うと、通信接続を確立した後のデータ通信を要さずに時刻変更ができる。 According to the present invention, the time can be changed without requiring data communication after establishing a communication connection.

第1実施形態に係る通信システムの構成例を示す図である。It is a figure which shows the configuration example of the communication system which concerns on 1st Embodiment. 第1実施形態の電子時計の構成を示すブロック図である。It is a block diagram which shows the structure of the electronic clock of 1st Embodiment. 接続要求のPDUの構成を示す図である。It is a figure which shows the structure of the PDU of a connection request. 第1実施形態のスマートフォンの構成を示すブロック図である。It is a block diagram which shows the structure of the smartphone of 1st Embodiment. 第1実施形態の通信システムの動作を示すシーケンス図である。It is a sequence diagram which shows the operation of the communication system of 1st Embodiment. 第1実施形態の電子時計のCPUが実行する時刻変更処理の制御手順を示すフローチャートである。It is a flowchart which shows the control procedure of the time change processing executed by the CPU of the electronic timepiece of 1st Embodiment. 第1実施形態のスマートフォンのCPUが実行する接続要求生成処理の制御手順を示すフローチャートである。It is a flowchart which shows the control procedure of the connection request generation processing executed by the CPU of the smartphone of 1st Embodiment. 第2実施形態の電子時計の構成を示すブロック図である。It is a block diagram which shows the structure of the electronic clock of 2nd Embodiment. 第2実施形態のスマートフォンの構成を示すブロック図である。It is a block diagram which shows the structure of the smartphone of 2nd Embodiment. 第2実施形態の電子時計のCPUが実行する時刻変更処理の制御手順を示すフローチャートである。It is a flowchart which shows the control procedure of the time change processing executed by the CPU of the electronic timepiece of 2nd Embodiment. 第2実施形態のスマートフォンのCPUが実行する接続要求生成処理の制御手順を示すフローチャートである。It is a flowchart which shows the control procedure of the connection request generation processing executed by the CPU of the smartphone of 2nd Embodiment.

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

(第1実施形態)
図1は、本発明の第1実施形態に係る通信システム1の構成例を表す図である。図1に示す構成例において、通信システム1は、電子時計100とスマートフォン200とから構成される。電子時計100とスマートフォン200とは、Bluetooth(登録商標) low energy(以下、BLEという。)に基づいて、互いに無線通信を行う。BLEとは、Bluetooth(登録商標)と呼ばれる近距離無線通信規格において、低消費電力を目的として策定された規格(モード)である。本実施形態において、BLEに基づいて、電子時計100は、後述するアドバタイズパケットを送信するペリフェラルとして動作する。また、スマートフォン200は、アドバタイズパケットを受信するセントラルとして動作する。さらに、電子時計100とスマートフォン200との接続が確立した後の無線通信時において、電子時計100は、スレーブとして動作し、スマートフォン200は、マスターとして、動作する。
(First Embodiment)
FIG. 1 is a diagram showing a configuration example of the communication system 1 according to the first embodiment of the present invention. In the configuration example shown in FIG. 1, the communication system 1 is composed of an electronic clock 100 and a smartphone 200. The electronic watch 100 and the smartphone 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 electronic clock 100 operates as a peripheral that transmits an advertisement packet described later. In addition, the smartphone 200 operates as a central for receiving advertisement packets. Further, during wireless communication after the connection between the electronic clock 100 and the smartphone 200 is established, the electronic clock 100 operates as a slave and the smartphone 200 operates as a master.

次に、第1実施形態に係る電子時計100の構成について説明する。 Next, the configuration of the electronic clock 100 according to the first embodiment will be described.

まず、第1実施形態に係る電子時計100のハードウェア構成について説明する。図2は、本発明の第1実施形態に係る電子時計100の構成を示すブロック図である。電子時計100は、マイクロコンピュータ101と、ROM(Read Only Memory)102と、通信部103と、アンテナ104と、電力供給部105と、表示部106と、表示ドライバ107と、操作受付部108と、振動子109とを備える。 First, the hardware configuration of the electronic clock 100 according to the first embodiment will be described. FIG. 2 is a block diagram showing the configuration of the electronic clock 100 according to the first embodiment of the present invention. The electronic clock 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, and the like. It includes an oscillator 109.

マイクロコンピュータ101は、制御部としてのCPU(Central Processing Unit)110と、記憶部としてのRAM(Random Access Memory)111と、発振回路112と、分周回路113と、計時回路114などを備える。なお、RAM111、発振回路112、分周回路113、及び計時回路114は、マイクロコンピュータ101の内部に限られず、マイクロコンピュータ101の外部に設けられてもよい。また、ROM102と、表示ドライバ107と、電力供給部105と、振動子109と、通信部103と、アンテナ104とは、マイクロコンピュータ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, a time counting circuit 114, and the like. 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, but may be provided outside the microcomputer 101. Further, the ROM 102, the display driver 107, the power supply unit 105, the oscillator 109, the communication unit 103, and the antenna 104 are not limited to the outside of the microcomputer 101, but may be provided inside the microcomputer 101. Good.

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 electronic clock 100 in an integrated manner. The CPU 110 reads a control program from the ROM 102, loads it into the RAM 111, and performs various operation processes such as displaying the time and performing arithmetic control and display related to various functions. Further, the CPU 110 controls the communication unit 103 to perform data communication with the smartphone 200.

RAM111は、SRAM(Static Random Access Memory)やDRAM(Dynamic Random Access Memory)などの揮発性のメモリである。RAM111は、一時データを記憶すると共に、各種設定データを記憶する。 The RAM 111 is a volatile memory such as a SRAM (Static Random Access Memory) or a DRAM (Dynamic Random Access Memory). The RAM 111 stores temporary data and various setting data.

発振回路112は、振動子109を発振させて、所定の周波数信号(クロック信号)を生成して出力する。 The oscillation circuit 112 oscillates the oscillator 109 to generate and output a predetermined frequency signal (clock signal).

分周回路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が計時する時刻は、必ずしも年月日時分秒の形式でなくてもよい。また、計時回路114が計時する時刻は、変更部124からの指示によって変更される。 The timekeeping circuit 114 measures the current time by counting the number of times the signal input from the frequency dividing circuit 113 is input and adding it to the initial value. The timekeeping circuit 114 may be configured by software that changes the value stored in the RAM 111, or may be configured by dedicated hardware. The time measured by the timekeeping circuit 114 may be any of cumulative time from a predetermined timing, UTC (Coordinated Universal Time), preset city time (local time), and the like. Further, the time measured by the timekeeping circuit 114 does not necessarily have to be in the form of year, month, day, hour, minute, and second. Further, the time measured by the time measuring circuit 114 is changed by an instruction from the changing unit 124.

これら発振回路112、分周回路113及び計時回路114により計時部が構成される。 The timekeeping section is composed of the oscillation circuit 112, the frequency dividing circuit 113, and the timekeeping circuit 114.

ROM102は、不揮発性メモリなどであり、制御プログラムや初期設定データを記憶する。制御プログラムの中には、スマートフォン200から時刻を変更するためのデータを通信し、電子時計100が計時する時刻を変更するための各種処理の制御に係るプログラム115が含まれる。 The ROM 102 is a non-volatile memory or the like, and stores a control program and initial setting data. The control program includes a program 115 related to controlling various processes for changing the time measured by the electronic clock 100 by communicating data for changing the time from the smartphone 200.

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

電力供給部105は、例えば、バッテリ、及び電圧変換回路を備える。電力供給部105は、電子時計100内の各部の動作電圧で電力を供給する。電力供給部105のバッテリとしては、本実施形態では、ボタン型乾電池などの一次電池が用いられている。或いは、電力供給部105のバッテリとして、ソーラパネルと二次電池が用いられる。 The power supply unit 105 includes, for example, a battery and a voltage conversion circuit. The power supply unit 105 supplies electric power at the operating voltage of each unit in the electronic clock 100. As the battery of the power supply unit 105, a primary battery such as a button-type dry battery is used in the present embodiment. Alternatively, a solar panel and a secondary battery are used as the battery of the power supply unit 105.

これらマイクロコンピュータ101、ROM102、通信部103、アンテナ104、電力供給部105、及び振動子109により通信装置10が構成される。 The communication device 10 is composed of the microcomputer 101, the ROM 102, the communication unit 103, the antenna 104, the power supply unit 105, and the oscillator 109.

表示部106は、例えば、液晶ディスプレイ(LCD:Liquid Crystal Display)や有機EL(Electro-Luminescent)ディスプレイなどの表示パネルを備え、時刻や各種機能に係るデータを表示するデジタル表示動作を行う。表示ドライバ107は、表示部106の種別に応じた駆動信号をマイクロコンピュータ101からの制御信号に基づいて表示部106に出力して、表示パネルに時刻や各種機能の表示を行わせる。或いは、表示部106は、複数の指針をステッピングモータにより輪列機構を介して回転動作させることで表示を行うアナログ式の構成を有するものであっても良い。 The display unit 106 includes a display panel such as a liquid crystal display (LCD) or an organic EL (Electro-Luminescent) display, and performs a digital display operation for displaying data related to time and various functions. The display driver 107 outputs a drive signal according to the type of the display unit 106 to the display unit 106 based on the control signal from the microcomputer 101, and causes the display panel to display the time and various functions. Alternatively, the display unit 106 may have an analog configuration that displays by rotating a plurality of pointers by a stepping motor via a train wheel mechanism.

操作受付部108は、ユーザからの入力操作を受け付けて、当該入力操作に応じた電気信号を入力信号としてマイクロコンピュータ101に出力する。この操作受付部108は、例えば、押しボタンスイッチやりゅうずを含む。或いは、操作受付部108として、タッチセンサが、表示部106の表示画面に重ねて設けられ、表示画面とともにタッチパネルを構成してもよい。この場合、タッチセンサは、当該タッチセンサへのユーザの接触動作に係る接触位置や接触態様を検出し、検出された接触位置や接触態様に応じた操作信号をCPU110に出力する。 The operation reception unit 108 receives an input operation from the user and outputs an electric signal corresponding to the input operation to the microcomputer 101 as an input signal. The operation reception unit 108 includes, for example, a push button switch crown. Alternatively, a touch sensor may be provided as the operation receiving unit 108 so as to be superimposed on 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 sensor detects the contact position and contact mode related to the user's contact operation with the touch sensor, and outputs an operation signal corresponding to the detected contact position and contact mode to the CPU 110.

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

図2に示すように、CPU110は、送信制御部121、受信制御部122、算出部123、及び変更部124として機能する。これら送信制御部121、受信制御部122、算出部123、及び変更部124の機能は、単一のCPUにより実現されても良いし、各々別個のCPUにより実現されてもよい。また、それらの機能は、通信部103のCPU(図示せず)等、マイクロコンピュータ101以外のプロセッサにより実現されても良い。 As shown in FIG. 2, the CPU 110 functions as a transmission control unit 121, a reception control unit 122, a calculation unit 123, and a change unit 124. The functions of the transmission control unit 121, the reception control unit 122, the calculation unit 123, and the change unit 124 may be realized by a single CPU or may be realized by separate CPUs. Further, those 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は、通信部103を制御する。そして、これにより、通信部103が、スマートフォン200にアドバタイズパケットを送信する。ここで、アドバタイズパケットは、電子時計100が送信する送信情報の一例であり、スマートフォン200に電子時計100の存在を知らせるために送信される。本実施形態において、送信制御部121は、計時回路114が計時する時刻Twが所定の時刻Tであるとき、アドバタイズパケットの送信の開始を通信部103に指示する。そして、通信部103は、時間間隔Tiおきに、アドバタイズパケットを送信する。 The CPU 110 as the transmission control unit 121 controls the communication unit 103. Then, the communication unit 103 transmits the advertisement packet to the smartphone 200. Here, the advertisement packet is an example of transmission information transmitted by the electronic clock 100, and is transmitted to notify the smartphone 200 of the existence of the electronic clock 100. In the present embodiment, the transmission control unit 121 instructs the communication unit 103 to start transmitting the advertisement packet when the time Tw measured by the timekeeping circuit 114 is a predetermined time T. Then, the communication unit 103 transmits the advertisement packet at every time interval Ti.

受信制御部122としてのCPU110は、通信部103を制御して、スマートフォン200から、電子時計100との接続を要求する接続要求(Connection request)を受信する。例えば、通信部103は、スマートフォン200から、電子時計100がスマートフォン200との接続が確立した後のスマートフォン200との通信を管理するためのパラメータを含む接続要求を受信する。図3に接続要求のPDU(Payload Data Unit)の構成を示す。図3に示すように、接続要求のPDUは、接続要求を送信したスマートフォン200のアドレスを含むInitAと、アドバタイズパケットを送信した電子時計100のアドレスを含むAdvAと、LLDataと、を含む。さらに、LLDataは、Interval、Latency、Timeout等のパラメータを含む。Intervalは、コネクションイベントを開始してから次のコネクションイベントを開始するまでの時間間隔(Connection interval)を規定する。Latencyは、スレーブとして動作する電子時計100が連続してスキップできるコネクションイベントの数(Slave latency)を規定する。Timeoutは、スマートフォン200との接続が失われたと判定する際の、スマートフォン200との通信がない最大時間(Supervision timeout)を規定する。Interval、Latency、及びTimeoutに設定される設定値は、ブルートゥース仕様書で規定される条件の範囲内で自由に設定可能である。CPU110は、通信部103が接続要求を受信すると、例えば、通信部103から接続要求に含まれるInterval、Latency、及びTimeoutに設定された設定値を受け付ける。なお、Timeout及びTimeoutに設定される設定値は、それぞれ本発明に係る第1パラメータ及び第1設定値の一例である。また、Interval及びLatency、並びにそれらに設定される設定値は、それぞれ本発明に係る第2パラメータ及び第2設定値の一例である。 The CPU 110 as the reception control unit 122 controls the communication unit 103 to receive a connection request from the smartphone 200 requesting a connection with the electronic clock 100. For example, the communication unit 103 receives from the smartphone 200 a connection request including parameters for managing communication with the smartphone 200 after the electronic watch 100 has established a connection with the smartphone 200. FIG. 3 shows the configuration of the PDU (Payload Data Unit) of the connection request. As shown in FIG. 3, the PDU of the connection request includes InitA including the address of the smartphone 200 that transmitted the connection request, AdvA including the address of the electronic clock 100 that transmitted the advertisement packet, and LLData. In addition, LLData includes parameters such as Interval, Latency, Timeout and the like. Interval defines a time interval (Connection interval) from the start of a connection event to the start of the next connection event. Latency defines the number of connection events (Slave latency) that the electronic clock 100 operating as a slave can continuously skip. Timeout defines a maximum time (Supervision timeout) during which there is no communication with the smartphone 200 when it is determined that the connection with the smartphone 200 has been lost. The setting values set for Interval, Latency, and Timeout can be freely set within the range of the conditions specified in the Bluetooth specifications. When the communication unit 103 receives the connection request, the CPU 110 receives, for example, the set values set in the Interval, Latency, and Timeout included in the connection request from the communication unit 103. The set values set for Timeout and Timeout are examples of the first parameter and the first set value according to the present invention, respectively. In addition, Interval and Latency, and the set values set in them are examples of the second parameter and the second set value according to the present invention, respectively.

算出部123としてのCPU110は、受信制御部122としてのCPU110により受信された接続要求に含まれるパラメータに設定された設定値に基づいて、電子時計100が計時する時刻の変更値を算出する。例えば、変更値Eは、電子時計100が計時する時刻Twと、スマートフォン200が計時する時刻Tpとの差分である。ここで、電子時計100が、スマートフォン200にアドバタイズパケットを時刻Tw=Tに送信し、スマートフォン200が、そのアドバタイズパケットを時刻Tp=Trに受信したとすると、変更値Eは、以下の式1により表される。
E=Tp−Tw=Tr−T (式1)
すなわち、変更値Eが正の値のとき、電子時計100が計時する時刻Twは、スマートフォン200が計時する時刻Tpよりも変更値Eだけ遅れている。また、変更値Eが負の値のとき、電子時計100が計時する時刻Twは、スマートフォン200が計時する時刻Tpよりも変更値Eだけ進んでいる。
The CPU 110 as the calculation unit 123 calculates the change value of the time measured by the electronic clock 100 based on the set value set in the parameter included in the connection request received by the CPU 110 as the reception control unit 122. For example, the change value E is the difference between the time Tw measured by the electronic clock 100 and the time Tp measured by the smartphone 200. Here, assuming that the electronic clock 100 transmits an advertisement packet to the smartphone 200 at time Tw = T and the smartphone 200 receives the advertisement packet at time Tp = Tr, the change value E is calculated by the following equation 1. expressed.
E = Tp-Tw = Tr-T (Equation 1)
That is, when the change value E is a positive value, the time Tw measured by the electronic clock 100 is delayed by the change value E from the time Tp measured by the smartphone 200. Further, when the change value E is a negative value, the time Tw measured by the electronic clock 100 is advanced by the change value E from the time Tp measured by the smartphone 200.

そして、CPU110は、受信された接続要求に含まれるTimeoutに設定された設定値と、Timeoutに設定可能な最低値との差分に基づいて、変更値を算出する。具体的には、変更値Eは、Timeoutに設定された値STO、Timeoutに設定可能な最低値STOmin、及び所定の値Nを用いて、以下の式2により表される。
E=STO−STOmin−N (式2)
ここで、Nは、通信システム1において変更可能な最大誤差を示し、予め設定される。
Then, the CPU 110 calculates the change value based on the difference between the set value set in Timeout included in the received connection request and the minimum value set in Timeout. Specifically, the change value E is represented by the following equation 2 using the value STO set in Timeout, the minimum value STOmin that can be set in Timeout, and the predetermined value N.
E = STO-STOmin-N (Equation 2)
Here, N indicates the maximum error that can be changed in the communication system 1, and is preset.

さらに、Timeoutに設定可能な最低値STOminは、受信された接続要求に含まれるInterval及びLatencyにそれぞれ設定された設定値Int及びLatを用いて、以下の式3により表される。
STOmin=(1+Lat)×Int×2 (式3)
Further, the minimum value STOmin that can be set in Timeout is expressed by the following equation 3 using the set values Int and Lat set in Interval and Latency, respectively, included in the received connection request.
STOmin = (1 + Lat) x Int x 2 (Equation 3)

従って、CPU110は、式2及び式3から、受信された接続要求に含まれるInterval、Latency及びTimeoutにそれぞれ設定された設定値Int、Lat及びSTO、並びに所定の値Nを用いて、以下の式4により変更値Eを算出する。
E=STO−{(1+Lat)×Int×2}−N (式4)
Therefore, the CPU 110 uses the set values Int, Late and STO set in the International, Latency and Timeout included in the received connection request from Equations 2 and 3, respectively, and the predetermined values N, and uses the following equations. The change value E is calculated according to 4.
E = STO-{(1 + Lat) x Int x 2} -N (Equation 4)

変更部124としてのCPU110は、算出部123としてのCPU110により算出された変更値に基づいて計時回路114が計時する時刻を変更する。例えば、CPU110は、式2により算出された変更値Eを用いて、計時回路114が計時する時刻Twを、Tw+Eに変更する。 The CPU 110 as the change unit 124 changes the time measured by the timekeeping circuit 114 based on the change value calculated by the CPU 110 as the calculation unit 123. For example, the CPU 110 uses the change value E calculated by Equation 2 to change the time Tw measured by the timekeeping circuit 114 to Tw + E.

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

まず、第1実施形態に係るスマートフォン200のハードウェア構成について説明する図4は、本発明の第1実施形態に係るスマートフォン200の構成を示すブロック図である。スマートフォン200は、マイクロコンピュータ201と、ROM202と、通信部203と、アンテナ204と、電力供給部205と、表示部206と、表示ドライバ207と、操作受付部208と、振動子209とを備える。 First, FIG. 4 for explaining the hardware configuration of the smartphone 200 according to the first embodiment is a block diagram showing the configuration of the smartphone 200 according to the first embodiment of the present invention. The smartphone 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 an oscillator 209.

マイクロコンピュータ201は、制御部としてのCPU210と、記憶部としてのRAM211と、発振回路212と、分周回路213と、計時回路214とを備える。なお、RAM211、発振回路212、分周回路213、及び計時回路214は、マイクロコンピュータ201の内部に限られず、マイクロコンピュータ201の外部に設けられてもよい。また、ROM202と、通信部203と、電力供給部205と、表示ドライバ207と、振動子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 timekeeping circuit 214. The RAM 211, the oscillation circuit 212, the frequency dividing circuit 213, and the timekeeping circuit 214 are not limited to the inside of the microcomputer 201, but may be provided outside the microcomputer 201. Further, the ROM 202, the communication unit 203, the power supply unit 205, the display driver 207, and the oscillator 209 are not limited to the outside of the microcomputer 201, but 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 smartphone 200 in an integrated manner. The CPU 210 reads a control program from the ROM 202, loads it into the RAM 211, and performs various operation processes such as time display and arithmetic control and display related to various functions. Further, the CPU 210 controls the communication unit 203 to perform data communication with the electronic clock 100.

RAM211は、SRAMやDRAMなどの揮発性のメモリである。RAM211は、一時データを記憶すると共に、各種設定データを記憶する。 The RAM 211 is a volatile memory such as an SRAM or a DRAM. The RAM 211 stores temporary data and various setting data.

発振回路212は、振動子209を発振さることにより所定の周波数信号(クロック信号)を生成して出力する。 The oscillation circuit 212 generates and outputs a predetermined frequency signal (clock signal) by oscillating the oscillator 209.

分周回路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 timekeeping circuit 214 and the CPU 210, and outputs the frequency signal. The frequency of this output signal may be changed based on the setting by the CPU 210.

計時回路214は、分周回路213から入力された信号の入力回数を計数して初期値に加算することで現在の時刻を計時する。計時回路214は、RAM211に記憶させる値を変化させるソフトウェアにより構成されても良いし、或いは、専用のハードウェアにより構成されても良い。計時回路214が計時する時刻は、所定のタイミングからの累積時間、UTC、又は予め設定された地方時などのうち何れであっても良い。また、この計時回路214が計時する時刻は、必ずしも年月日時分秒の形式でなくてもよい。また、計時回路214が計時する時刻は、Wi−Fi(登録商標)等の外部から得られる時刻によって変更可能である。 The timekeeping circuit 214 measures the current time by counting the number of times the signal input from the frequency dividing circuit 213 is input and adding it to the initial value. The timekeeping circuit 214 may be configured by software that changes the value stored in the RAM 211, or may be configured by dedicated hardware. The time measured by the timekeeping circuit 214 may be any of cumulative time from a predetermined timing, UTC, preset local time, and the like. Further, the time measured by the timekeeping circuit 214 does not necessarily have to be in the form of year, month, day, hour, minute, and second. Further, the time measured by the time measuring circuit 214 can be changed by a time obtained from the outside such as Wi-Fi (registered trademark).

これら発振回路212、分周回路213及び計時回路214により計時部が構成される。 The timekeeping section is composed of the oscillation circuit 212, the frequency dividing circuit 213, and the timekeeping circuit 214.

ROM202は、マスクROMや書き換え可能な不揮発性メモリなどであり、制御プログラムや初期設定データが記憶されている。制御プログラムの中には、電子時計100と電子時計100の時刻を変更するためのデータを通信し、電子時計100が計時する時刻を変更するための各種処理の制御に係るプログラム215が含まれる。 The ROM 202 is a mask ROM, a rewritable non-volatile memory, or the like, and stores a control program and initial setting data. The control program includes a program 215 for communicating data for changing the time of the electronic clock 100 and the electronic clock 100, and controlling various processes for changing the time measured by the electronic clock 100.

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

電力供給部205は、例えば、バッテリ、及び電圧変換回路を備える。電力供給部205、スマートフォン200内の各部の動作電圧で電力を供給する。電力供給部205のバッテリとしては、本実施形態では、リチウムイオン電池等の二次電池が用いられる。 The power supply unit 205 includes, for example, a battery and a voltage conversion circuit. Power is supplied by the operating voltage of each part in the power supply unit 205 and the smartphone 200. As the battery of the power supply unit 205, a secondary battery such as a lithium ion battery is used in this embodiment.

これらマイクロコンピュータ201、ROM202、通信部203、アンテナ204、電力供給部205、及び振動子209により通信装置20が構成される。 The communication device 20 is composed of the microcomputer 201, the ROM 202, the communication unit 203, the antenna 204, the power supply unit 205, and the oscillator 209.

表示部206は、例えば、液晶ディスプレイや有機ELディスプレイなどの表示パネルを備える。表示ドライバ207は、表示部206の種別に応じた駆動信号をマイクロコンピュータ201からの制御信号に基づいて表示部206に出力して、表示パネルに各種情報の表示を行う。 The display unit 206 includes, for example, a display panel such as a liquid crystal display or an organic EL display. The display driver 207 outputs a drive signal according to the type of the display unit 206 to the display unit 206 based on the control signal from the microcomputer 201, and displays various information on the display panel.

操作受付部208は、ユーザからの入力操作を受け付けて、当該入力操作に応じた電気信号をマイクロコンピュータ201に出力する。例えば、操作受付部208としてタッチセンサが表示部206の表示パネルに重ねて設けられ、表示パネルとともにタッチパネルを構成してもよい。この場合、タッチセンサは、当該タッチセンサへのユーザの接触動作に係る接触位置や接触態様を検出し、検出された接触位置や接触態様に応じた操作信号をマイクロコンピュータ201に出力する。 The operation reception unit 208 receives an input operation from the user and outputs an electric signal corresponding to the input operation to the microcomputer 201. For example, a touch sensor may be provided as the operation receiving unit 208 so as to be superimposed on the display panel of the display unit 206, and a touch panel may be configured together with the display panel. In this case, the touch sensor detects the contact position and contact mode related to the user's contact operation with the touch sensor, and outputs an operation signal corresponding to the detected contact position and contact mode to the microcomputer 201.

次に、第1実施形態に係るスマートフォン200のCPU210の機能構成について説明する。 Next, the functional configuration of the CPU 210 of the smartphone 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 a reception control unit 221, a generation unit 222, and a transmission control unit 223. The functions of the reception control unit 221 and the generation unit 222 and the transmission control unit 223 may be realized by a single CPU or may be realized by separate CPUs. Further, those functions may be realized by a processor other than the microcomputer 201, such as a CPU (not shown) of the communication unit 203.

受信制御部221としてのCPU210は、通信部203を制御して、電子時計100から、アドバタイズパケットを受信する。本実施形態において、受信制御部221は、計時回路214が計時する時刻Tpが所定の時刻Tよりも所定時間前(T−M)になったとき、アドバタイズパケットを受信するためのスキャン動作の開始を通信部203に指示する。そして、通信部203は、スキャン動作を開始する。 The CPU 210 as the reception control unit 221 controls the communication unit 203 to receive the advertisement packet from the electronic clock 100. In the present embodiment, the reception control unit 221 starts a scanning operation for receiving the advertisement packet when the time Tp measured by the timekeeping circuit 214 becomes a predetermined time (TM) before the predetermined time T. Is instructed to the communication unit 203. Then, the communication unit 203 starts the scanning operation.

生成部222としてのCPU210は、アドバタイズパケットを受信したときにスマートフォン200が計時する時刻に基づいて、電子時計100との接続を要求する接続要求に含まれるパラメータに設定される設定値を生成する。例えば、CPU210は、アドバタイズパケットを受信したときにスマートフォン200が計時する時刻Tp=Trと、所定の時刻Tとの差分(変更値)Eに基づいて、接続要求に含まれるTimeoutに設定される設定値STOを生成する。より詳細には、CPU210は、差分Eと、Timeoutに設定可能な最低値STOminとに基づいて、Timeoutに設定される値STOを生成する。具体的には、設定値STOは、差分E、最低値STOmin、及び所定の値Nを用いて、以下の式5により表される。
STO=STOmin+E+N (式5)
The CPU 210 as the generation unit 222 generates setting values set in the parameters included in the connection request requesting the connection with the electronic clock 100 based on the time measured by the smartphone 200 when the advertisement packet is received. For example, the CPU 210 is set to Timeout included in the connection request based on the difference (change value) E between the time Tp = Tr measured by the smartphone 200 when the advertisement packet is received and the predetermined time T. Generate the value STO. More specifically, the CPU 210 generates a value STO set in Timeout based on the difference E and the minimum value STOmin that can be set in Timeout. Specifically, the set value STO is represented by the following equation 5 using the difference E, the minimum value STOmin, and the predetermined value N.
STO = STOmin + E + N (Equation 5)

さらに、STOminは、接続要求に含まれるInterval及びLatencyにそれぞれ設定される値Int及びLatを用いて式3により表される。従って、CPU210は、式3及び式5から得られる以下の式6に従って、設定値STOを生成する。
STO=(1+Lat)×Int×2+E+N (式6)
Further, STOmin is represented by Equation 3 using the values Int and Lat set in Interval and Latency, respectively, included in the connection request. Therefore, the CPU 210 generates the set value STO according to the following equation 6 obtained from the equations 3 and 5.
STO = (1 + Lat) x Int x 2 + E + N (Equation 6)

なお、CPU210は、設定値STOを、例えば、10ミリ秒単位で設定してもよい。 The CPU 210 may set the set value STO in units of 10 milliseconds, for example.

送信制御部223としてのCPU210は、通信部203を制御して、生成された設定値が設定されたパラメータを含む接続要求を、電子時計100へ送信する。CPU210は、例えば図3に示すように、生成部222としてのCPU210により生成された設定値STO、設定値STOの生成に用いられた設定値Int及びLatがそれぞれ設定されたTimeout、Interval、及びLatencyを含む接続要求の電子時計100への送信を通信部203に指示する。 The CPU 210 as the transmission control unit 223 controls the communication unit 203 to transmit a connection request including a parameter in which the generated set value is set to the electronic clock 100. As shown in FIG. 3, for example, the CPU 210 has a set value STO generated by the CPU 210 as a generation unit 222, and Timeout, Interval, and Latency in which the set values Int and Lat used to generate the set value STO are set, respectively. The communication unit 203 is instructed to transmit the connection request including the above to the electronic clock 100.

図5は、第1実施形態における通信システム1の動作の一例を示すシーケンス図である。図5に示す例では、電子時計100の通信装置10がペリフェラル、スマートフォン200の通信装置20がセントラルとして動作する場合の、各通信装置10、20のホスト及びリンク・レイヤーの動作について説明する。ここで、CPU110、210がホストとして機能する。また、通信部103、203がリンク・レイヤーとして機能する。 FIG. 5 is a sequence diagram showing an example of the operation of the communication system 1 according to the first embodiment. In the example shown in FIG. 5, when the communication device 10 of the electronic clock 100 operates as a peripheral and the communication device 20 of the smartphone 200 operates as a central, the operation of the host and the link layer of the communication devices 10 and 20 will be described. Here, the CPUs 110 and 210 function as hosts. Further, the communication units 103 and 203 function as a link layer.

通信装置10と通信装置20は、例えば、1日に1回の定期的な時刻である時刻Tに通信装置10の時刻を変更するための時刻変更動作を開始する。以下の説明において、電子時計100の計時回路114が計時する時刻をTw、スマートフォン200の計時回路214が計時する時刻をTp、と表す。 The communication device 10 and the communication device 20 start a time change operation for changing the time of the communication device 10 to time T, which is a periodic time once a day, for example. In the following description, the time measured by the time measuring circuit 114 of the electronic clock 100 is referred to as Tw, and the time measured by the time measuring circuit 214 of the smartphone 200 is referred to as Tp.

通信装置20は、時刻Tp=Tに通信装置10からのアドバタイズパケットを受信できるように、時刻Tpに対して時間Mだけ早くスキャン動作を開始する。即ち、通信装置20のCPU210は、時刻Tp=T−Mに、通信部203へスキャン動作を開始するように指示する(ステップS10)。 The communication device 20 starts the scanning operation earlier by the time M with respect to the time Tp so that the advertisement packet from the communication device 10 can be received at the time Tp = T. That is, the CPU 210 of the communication device 20 instructs the communication unit 203 to start the scanning operation at the time Tp = TM (step S10).

時間Mは時刻Tに対する通信装置10と通信装置20との間の計時誤差のためのマージンであり、通信装置10からのアドバタイズパケットをいち早く確実に受信するために設定される。時間Mは、例えば、計時回路214の歩度と、通信装置10の前回時刻変更動作からの経過時間とを考慮し、計時回路214が計時する時刻Tpの誤差よりも長い時間に設定されることが好ましい。 The time M is a margin for a timing error between the communication device 10 and the communication device 20 with respect to the time T, and is set to receive the advertisement packet from the communication device 10 quickly and reliably. The time M may be set to a time longer than the error of the time Tp measured by the timekeeping circuit 214 in consideration of, for example, the rate of the timekeeping circuit 214 and the elapsed time from the previous time change operation of the communication device 10. preferable.

通信装置10のCPU110は、時刻Tw=Tに、通信部103にアドバタイズパケットを送信するように指示する(ステップS11)。以後、通信部103は、時間間隔Tiおきに、アドバタイズパケットを送信する。 The CPU 110 of the communication device 10 instructs the communication unit 103 to transmit an advertisement packet at time Tw = T (step S11). After that, the communication unit 103 transmits the advertisement packet every time interval Ti.

通信装置20のCPU210は、通信部203から通信装置10からのアドバタイズパケットを受信したことが知らされると、そのアドバタイズパケットを受信した時に計時回路214が計時する時刻Tp=Trを取得する(ステップS12)。 When the CPU 210 of the communication device 20 is informed by the communication unit 203 that the advertisement packet from the communication device 10 has been received, the CPU 210 of the communication device 20 acquires the time Tp = Tr timed by the timekeeping circuit 214 when the advertisement packet is received (step). S12).

CPU210は、時刻Trと時刻Tとの差分Eを基に生成された設定値STOが設定されたTimeoutを含む接続要求を通信装置10に送信するよう、通信部203に指示する(ステップS13)。これにより、通信部203は、通信装置10へ接続要求を送信する。 The CPU 210 instructs the communication unit 203 to transmit the connection request including the Timeout in which the set value STO generated based on the difference E between the time Tr and the time T is set to the communication device 10 (step S13). As a result, the communication unit 203 transmits the connection request to the communication device 10.

通信装置10の通信部103は、接続要求を受信後に、CPU110に接続要求を受信したことを通知する(ステップS14)。 After receiving the connection request, the communication unit 103 of the communication device 10 notifies the CPU 110 that the connection request has been received (step S14).

その後、CPU110は、通信部103に通信装置20との通信接続の切断の要求を指示する(ステップS15)。通信部103は、通信装置20に接続切断要求を送信する。そして、CPU110は、接続要求に含まれるTimeoutに設定された設定値STOを基に、時刻を変更する(ステップS16)。 After that, the CPU 110 instructs the communication unit 103 to request the communication device 20 to disconnect the communication connection (step S15). The communication unit 103 transmits a connection disconnection request to the communication device 20. Then, the CPU 110 changes the time based on the set value STO set in Timeout included in the connection request (step S16).

通信装置20の通信部203は、接続切断要求を受信した後に、通信装置10との接続の切断をCPU210に通知する(ステップS17)。 After receiving the connection disconnection request, the communication unit 203 of the communication device 20 notifies the CPU 210 of the disconnection of the connection with the communication device 10 (step S17).

図6は、電子時計100のCPU110が実行する時刻変更処理の制御手順を示すフローチャートである。この時刻変更処理は、本発明の時刻変更方法の一実施形態である。CPU110は、例えば、電子時計100の電源がオンになったことを契機として、時刻変更処理を開始する。 FIG. 6 is a flowchart showing a control procedure of the time change process executed by the CPU 110 of the electronic clock 100. This time change process is an embodiment of the time change method of the present invention. The CPU 110 starts the time change process, for example, when the power of the electronic clock 100 is turned on.

時刻変更処理が開始されると、CPU110は、計時回路114が計時する現在の時刻Twが時刻Tか否かを判別する(ステップS101)。CPU110は、計時回路114が計時する現在の時刻Twが時刻でないと判別した場合には(ステップS101で“No”)、CPU110は、時刻Twが時刻Tになるまで待つ。CPU110は、時刻Twが時刻Tであると判別した場合には(ステップS101で“Yes”)、タイマを起動させる(ステップS102)。 When the time change process is started, the CPU 110 determines whether or not the current time Tw measured by the timekeeping circuit 114 is the time T (step S101). When the CPU 110 determines that the current time Tw measured by the timekeeping circuit 114 is not the time (“No” in step S101), the CPU 110 waits until the time Tw becomes the time T. When the CPU 110 determines that the time Tw is the time T (“Yes” in step S101), the CPU 110 activates the timer (step S102).

そして、CPU110は通信部103にアドバタイズパケットの送信の開始を指示する(ステップS103)。これにより、通信部103は、アドバタイズパケットを所定間隔Tiで繰り返し送信する。 Then, the CPU 110 instructs the communication unit 103 to start transmitting the advertisement packet (step S103). As a result, the communication unit 103 repeatedly transmits the advertisement packet at a predetermined interval Ti.

CPU110は、通信部103が通信装置20からの接続要求を受信したか否かを判別する(ステップS104)。CPU110は、通信部103が通信装置20からの接続要求を受信していないと判別した場合には(ステップS104で“No”)、タイマがカウントした時間tが所定の時間Taを超えたか否かを判別する(ステップ105)。CPU110は、時間tが所定の時間Taを超えていないと判別した場合には(ステップS105で“No”)、引き続き通信部103が通信装置20からの接続要求を受信するのを待つ(ステップS104に戻る)。CPU110は、時間Tが所定の時間Taを超えたと判別した場合には(ステップS105で“Yes”)、CPU110は、通信部103にアドバタイズパケットの送信の停止を指示する(ステップS106)。それから、CPU110は、表示ドライバ107を介して表示部106にエラーが発生した旨を表示する(ステップS107)。そして、CPU110は、ステップS101に戻って上述の処理を繰り返し実行する。 The CPU 110 determines whether or not the communication unit 103 has received the connection request from the communication device 20 (step S104). When the CPU 110 determines that the communication unit 103 has not received the connection request from the communication device 20 (“No” in step S104), whether or not the time t counted by the timer exceeds the predetermined time Ta. (Step 105). When the CPU 110 determines that the time t does not exceed the predetermined time Ta (“No” in step S105), the CPU 110 continuously waits for the communication unit 103 to receive the connection request from the communication device 20 (step S104). Return to). When the CPU 110 determines that the time T exceeds the predetermined time Ta (“Yes” in step S105), the CPU 110 instructs the communication unit 103 to stop transmitting the advertisement packet (step S106). Then, the CPU 110 displays to the display unit 106 via the display driver 107 that an error has occurred (step S107). Then, the CPU 110 returns to step S101 and repeatedly executes the above-mentioned process.

CPU110は、通信部103が通信装置20からの接続要求を受信したと判別した場合には(ステップS104で“Yes”)、通信部103が受信した接続要求に含まれるInterval、Latency、及びTimeoutに設定された設定値Int、Lat、及びSTOから、式4に従って、計時回路114が計時する時刻の変更値を算出する(ステップS108)。 When the CPU 110 determines that the communication unit 103 has received the connection request from the communication device 20 (“Yes” in step S104), the CPU 110 informs the Integer, Latency, and Timeout included in the connection request received by the communication unit 103. From the set set values Int, Late, and STO, the change value of the time measured by the timekeeping circuit 114 is calculated according to Equation 4 (step S108).

CPU110は、通信部103に通信装置20への接続切断要求の送信を指示する(ステップS109)。 The CPU 110 instructs the communication unit 103 to transmit a connection disconnection request to the communication device 20 (step S109).

CPU110は、ステップS108で算出された変更値に基づいて計時回路114が計時する時刻を変更することで、通信装置10の時刻を変更する(ステップS110)。そして、CPU110は、ステップS101に戻って上述の処理を繰り返し実行する。 The CPU 110 changes the time of the communication device 10 by changing the time measured by the time measuring circuit 114 based on the changed value calculated in step S108 (step S110). Then, the CPU 110 returns to step S101 and repeatedly executes the above-mentioned process.

図7は、スマートフォン200のCPU210が実行する接続要求生成処理の制御手順を示すフローチャートである。この接続要求生成処理は、本発明の接続要求生成方法の一実施形態である。CPU210は、例えば、スマートフォン200の電源がオンになったことを契機として、接続要求生成処理を開始する。 FIG. 7 is a flowchart showing a control procedure of the connection request generation process executed by the CPU 210 of the smartphone 200. This connection request generation process is an embodiment of the connection request generation method of the present invention. The CPU 210 starts the connection request generation process, for example, when the power of the smartphone 200 is turned on.

接続要求生成処理が開始されると、CPU210は、計時回路214が計時する現在の時刻Tpが時刻T−Mであるか否かを判別する(ステップS201)。CPU210は、時刻Tpが時刻T−Mでないと判別した場合には(ステップS201で“No”)、CPU210は、時刻Tpが時刻T−M以降になるまで待つ。CPU210は、時刻Tpが時刻T−Mであると判別した場合には(ステップS201で“Yes”)、タイマを起動させる(ステップS202)。 When the connection request generation process is started, the CPU 210 determines whether or not the current time Tp timed by the timekeeping circuit 214 is the time TM (step S201). When the CPU 210 determines that the time Tp is not the time TM (“No” in step S201), the CPU 210 waits until the time Tp becomes the time TM or later. When the CPU 210 determines that the time Tp is the time TM (“Yes” in step S201), the CPU 210 activates the timer (step S202).

そして、CPU210は通信部203にアドバタイズパケットを受信するためのスキャン動作の開始を指示する(ステップS203)。 Then, the CPU 210 instructs the communication unit 203 to start the scanning operation for receiving the advertisement packet (step S203).

CPU210は、タイマがカウントした時間tが所定の時間Tsを超えたか否かを判別する(ステップ204)。CPU210は、時間tが所定の時間Tsを超えたと判別した場合には(ステップS204で“Yes”)、CPU210は、通信部203にスキャン動作の停止を指示する(ステップS205)。それから、CPU210は、表示ドライバ207を介して表示部206にエラーが発生した旨を表示する(ステップS206)。そして、CPU210は、ステップS201に戻って上述の処理を繰り返し実行する。 The CPU 210 determines whether or not the time t counted by the timer exceeds a predetermined time Ts (step 204). When the CPU 210 determines that the time t exceeds the predetermined time Ts (“Yes” in step S204), the CPU 210 instructs the communication unit 203 to stop the scanning operation (step S205). Then, the CPU 210 displays to the display unit 206 via the display driver 207 that an error has occurred (step S206). Then, the CPU 210 returns to step S201 and repeatedly executes the above-mentioned process.

CPU210は、タイマがカウントした時間tが所定の時間Tsを超えていないと判別した場合には(ステップS204で“No”)、CPU210は、通信部203が通信装置10からのアドバタイズパケットを受信したか否かを判別する(ステップS206)。CPU210は、通信部203が通信装置10からのアドバタイズパケットを受信していないと判別した場合には(ステップS206で“No”)、CPU210は、タイマがカウントする時間tが所定の時間Tsを超えるまで、又は通信部203が通信装置10からのアドバタイズパケットを受信するまで待つ(ステップS204に戻る)。 When the CPU 210 determines that the time t counted by the timer does not exceed the predetermined time Ts (“No” in step S204), the CPU 210 receives the advertisement packet from the communication device 10 by the communication unit 203. Whether or not it is determined (step S206). When the CPU 210 determines that the communication unit 203 has not received the advertisement packet from the communication device 10 (“No” in step S206), the CPU 210 determines that the time t counted by the timer exceeds the predetermined time Ts. Wait until, or until the communication unit 203 receives the advertisement packet from the communication device 10 (return to step S204).

CPU210は、通信部203が通信装置10からのアドバタイズパケットを受信したと判別した場合には(ステップS206で“Yes”)、CPU210は、アドバタイズパケットを受信した時に計時回路214が計時する時刻Tp=Trを取得する(ステップS207)。そして、CPU210は、タイマを停止させる(ステップS208)。 When the CPU 210 determines that the communication unit 203 has received the advertisement packet from the communication device 10 (“Yes” in step S206), the CPU 210 clocks the time Tp = Acquire Tr (step S207). Then, the CPU 210 stops the timer (step S208).

CPU210は、時刻TとステップS207で取得された時刻Trとの差分Eと、接続要求に含まれるInterval及びLatencyにそれぞれ設定される値Int及びLatとを基に、式6に従って接続要求に含まれるTimeoutに設定される設定値STOを生成する(ステップS209)。 The CPU 210 is included in the connection request according to Equation 6 based on the difference E between the time T and the time Tr acquired in step S207 and the values Int and Late set in the Interval and Latency, respectively, included in the connection request. Generate the set value STO set in Timeout (step S209).

CPU210は、Int及びLatと、ステップS209で生成された設定値STOとがそれぞれ設定されたInterval、Latency、及びTimeoutを含む接続要求の通信装置10への送信を通信部203に指示する(ステップS210)。そして、CPU210は、ステップ201に戻って上述の処理を繰り返し実行する。 The CPU 210 instructs the communication unit 203 to transmit a connection request including the Interval, Latency, and Timeout in which the Int and Lat and the set value STO generated in step S209 are set, respectively, to the communication device 10 (step S210). ). Then, the CPU 210 returns to step 201 and repeatedly executes the above-mentioned process.

以上のように、第1実施形態の電子時計100のCPU110は、通信部103を制御して、スマートフォン200から、電子時計100との接続を要求する接続要求を受信し、接続要求に含まれるTimeoutに設定された設定値STOに基づいて、電子時計100が計時する時刻Twを変更する。このように、電子時計100は、接続が確立した後のデータ通信で得られる情報により時刻を変更する必要が無い。これにより、電子時計100は、従来のような接続が確立した後のデータ通信によって時刻を変更するため消費電力を低減できる。 As described above, the CPU 110 of the electronic clock 100 of the first embodiment controls the communication unit 103 to receive a connection request requesting connection with the electronic clock 100 from the smartphone 200, and Timeout included in the connection request. The time Tw measured by the electronic clock 100 is changed based on the set value STO set in. As described above, the electronic clock 100 does not need to change the time based on the information obtained in the data communication after the connection is established. As a result, the electronic clock 100 can reduce power consumption because the time is changed by data communication after the conventional connection is established.

また、CPU110は、設定値STOと、Timeoutに設定可能な最低値STOminとの差分に基づいて、電子時計100が計時する時刻を変更する。詳細には、接続要求は、Interval及びLatencyを含み、CPU110は、STOと、Interval及びLatentcyにそれぞれ設定された設定値Int及びLatに基づく最低値STOminとの差分に基づいて、電子時計100が計時する時刻Twを変更する。さらに詳細には、CPU110は、設定値STOから、最低値STOminと、所定値Nとを減算することにより、電子時計100が計時する時刻Twの変更値Eを算出する。そして、CPU110は、電子時計100が計時する時刻Twに算出された変更値Eを加算することにより、電子時計100が計時する時刻Twを変更する。このように、電子時計100は、接続要求に含まれるパラメータに設定された設定値から計時回路114が計時する時刻Twの変更値Eを算出するので、従来の通信接続完了イベントと同程度のデータ量を用いて時刻を変更可能である。 Further, the CPU 110 changes the time measured by the electronic clock 100 based on the difference between the set value STO and the minimum value STOmin that can be set in Timeout. Specifically, the connection request includes the Interval and Latency, and the CPU 110 clocks the electronic clock 100 based on the difference between the STO and the minimum value STOmin based on the set values Int and Late set in the Interval and Latency, respectively. Change the time Tw. More specifically, the CPU 110 calculates the change value E of the time Tw measured by the electronic clock 100 by subtracting the minimum value STOmin and the predetermined value N from the set value STO. Then, the CPU 110 changes the time Tw measured by the electronic clock 100 by adding the calculated change value E to the time Tw measured by the electronic clock 100. In this way, since the electronic clock 100 calculates the change value E of the time Tw measured by the timekeeping circuit 114 from the set value set in the parameter included in the connection request, the data is equivalent to that of the conventional communication connection completion event. The time can be changed using the quantity.

また、以上のように、第1実施形態のスマートフォン200のCPU210は、通信部203を制御して、電子時計100が送信したアドバタイズパケットを受信し、アドバタイズパケットを受信したときにスマートフォン200が計時する時刻Tpに基づいて、電子時計100との接続を要求する接続要求に含まれるTimeoutに設定される設定値STOを生成する。そして、CPU210は、通信部203を制御して、生成された設定値STOが設定されたTimeoutを含む接続要求を、電子時計100へ送信する。このように、スマートフォン200は、接続を確立した後のデータ通信を要さずに、電子時計100に電子時計100との時刻差を通知する接続要求を送信できる。これにより、電子時計100は、接続を確立した後のデータ通信を要さずに時刻変更が可能となり、時刻変更のためのデータ通信により消費される電力を低減できる。 Further, as described above, the CPU 210 of the smartphone 200 of the first embodiment controls the communication unit 203 to receive the advertisement packet transmitted by the electronic clock 100, and the smartphone 200 clocks when the advertisement packet is received. Based on the time Tp, the set value STO set in Timeout included in the connection request requesting the connection with the electronic clock 100 is generated. Then, the CPU 210 controls the communication unit 203 to transmit the connection request including the Timeout in which the generated set value STO is set to the electronic clock 100. In this way, the smartphone 200 can transmit a connection request for notifying the electronic clock 100 of the time difference from the electronic clock 100 without requiring data communication after the connection is established. As a result, the electronic clock 100 can change the time without requiring data communication after establishing the connection, and the power consumed by the data communication for changing the time can be reduced.

また、CPU210は、アドバタイズパケットを受信したときにスマートフォン200が計時する時刻Trと、時刻Tpとの差分Eに基づいて、設定値STOを生成する。これにより、スマートフォン200からの接続要求を受信した電子時計100は、受信した接続要求に含まれるTimeoutに設定された設定値STOに基づいて、計時回路114が計時する時刻を容易に変更することができる。 Further, the CPU 210 generates a set value STO based on the difference E between the time Tr measured by the smartphone 200 when the advertisement packet is received and the time Tp. As a result, the electronic clock 100 that has received the connection request from the smartphone 200 can easily change the time measured by the timekeeping circuit 114 based on the set value STO set in Timeout included in the received connection request. it can.

また、CPU210は、設定値STOを10ミリ秒単位で設定する。これにより、電子時計100は、時刻を計時するのに十分な精度で計時回路114が計時する時刻Twを変更することができる。 Further, the CPU 210 sets the set value STO in units of 10 milliseconds. As a result, the electronic clock 100 can change the time Tw measured by the time measuring circuit 114 with sufficient accuracy to measure the time.

また、CPU210は、差分Eと、Timeoutに設定可能な最低値STOminとに基づいて、設定値STOを生成する。詳細には、接続要求は、IntervalとLatencyをさらに含み、CPU210は、差分Eと、Interval及びLatencyにそれぞれ設定される設定値Int及びLatとに基づく最低値STOminとに基づいて、設定値STOを生成する。さらに詳細には、CPU210は、差分Eに、最低値STOminと、所定値Nとを加算することにより、設定値STOを生成する。このように、CPU210は、接続要求に基づいて、電子時計100が計時回路114が計時する時刻Twを変更可能となるように、接続要求を生成するので、電子時計100は、従来の通信接続完了イベントと同程度のデータ量で時刻を変更できる。 Further, the CPU 210 generates a set value STO based on the difference E and the minimum value STOmin that can be set in Timeout. Specifically, the connection request further includes Interval and Latency, and the CPU 210 sets the set value STO based on the difference E and the minimum value STOmin based on the set values Int and Lat set in the Interval and Latency, respectively. Generate. More specifically, the CPU 210 generates the set value STO by adding the minimum value STOmin and the predetermined value N to the difference E. In this way, the CPU 210 generates a connection request so that the electronic clock 100 can change the time Tw measured by the timekeeping circuit 114 based on the connection request. Therefore, the electronic clock 100 completes the conventional communication connection. The time can be changed with the same amount of data as the event.

(第2実施形態)
次に、第2実施形態の電子時計100aについて説明する。図8は、本実施形態の電子時計100aの機能構成を示すブロック図である。この電子時計100aは、第1実施形態の電子時計100の構成に対してCPU110が、送信制御部121の代わりに、送信制御部121aとして機能する点を除き同一である。なお、第1実施形態と同一の構成要素には同一の符号を付すこととして説明を省略する。
(Second Embodiment)
Next, the electronic clock 100a of the second embodiment will be described. FIG. 8 is a block diagram showing a functional configuration of the electronic clock 100a of the present embodiment. The electronic clock 100a is the same as the configuration of the electronic clock 100 of the first embodiment except that the CPU 110 functions as a transmission control unit 121a instead of the transmission control unit 121. The same components as those in the first embodiment are designated by the same reference numerals, and the description thereof will be omitted.

送信制御部121aとしてのCPU110は、通信部103を制御して、電子時計100が計時する時刻を含むアドバタイズパケットをスマートフォン200に送信する。例えば、CPU110は、計時回路114が計時する現在時刻Tw=T1を示す値を、種別がADV_INDであるアドバタイズパケットのデータフィールドAdvDataに設定する。ここで、Adv_INDは、アドバタイズパケットの種別を示し、アドバタイズパケットの送信元がどのデバイスとも接続可能であり、かつ簡易情報の問合せが可能であることを示す。そして、CPU110は、時刻T1を示す値が設定されたAdvDataを含み、種別がADV_INDであるアドバタイズパケットを送信するよう、通信部103に指示する。 The CPU 110 as the transmission control unit 121a controls the communication unit 103 to transmit an advertisement packet including a time measured by the electronic clock 100 to the smartphone 200. For example, the CPU 110 sets a value indicating the current time Tw = T1 measured by the timekeeping circuit 114 in the data field AdvData of the advertisement packet of the type ADV_IND. Here, Adv_IND indicates the type of the advertisement packet, and indicates that the source of the advertisement packet can be connected to any device and can inquire about simple information. Then, the CPU 110 instructs the communication unit 103 to transmit an advertisement packet in which the value indicating the time T1 is set and the advertisement packet of the type is ADV_IND.

次に、第2実施形態のスマートフォン200aについて説明する。図9は、本実施形態のスマートフォン200aの機能構成を示すブロック図である。このスマートフォン200aは、第1実施形態のスマートフォン200の構成に対してCPU210が、生成部222の代わりに、生成部222aとして機能する点を除き同一であり、同一の構成要素には同一の符号を付すこととして説明を省略する。 Next, the smartphone 200a of the second embodiment will be described. FIG. 9 is a block diagram showing a functional configuration of the smartphone 200a of the present embodiment. The smartphone 200a is the same as the configuration of the smartphone 200 of the first embodiment except that the CPU 210 functions as the generation unit 222a instead of the generation unit 222, and the same components are designated by the same reference numerals. The description will be omitted as an attachment.

生成部222aとしてのCPU210は、アドバタイズパケットを受信したときにスマートフォン200aが計時する時刻と、アドバタイズパケットに含まれる電子時計100aが計時する時刻との差分に基づいて、設定値STOを生成する。例えば、CPU210は、電子時計100aから送信されたアドバタイズパケットに含まれるAdv_INDのデータフィールドに設定された値が示す時刻T1を特定する。そして、CPU210は、アドバタイズパケットを受信したときにスマートフォン200aが計時する時刻Tp=Trと、特定された時刻T1との差分Eに基づいて、第1実施形態と同様に設定値STOを生成する。 The CPU 210 as the generation unit 222a generates the set value STO based on the difference between the time measured by the smartphone 200a when the advertisement packet is received and the time measured by the electronic clock 100a included in the advertisement packet. For example, the CPU 210 specifies the time T1 indicated by the value set in the data field of Adv_IND included in the advertisement packet transmitted from the electronic clock 100a. Then, the CPU 210 generates a set value STO based on the difference E between the time Tp = Tr measured by the smartphone 200a when the advertisement packet is received and the specified time T1 as in the first embodiment.

図10は、本実施形態の電子時計100aのCPU110が実行する時刻変更処理の制御手順を示すフローチャートである。この時刻変更処理は、第1実施形態の電子時計100による時刻変更処理に対してステップS111の処理が追加された点を除き、第1実施形態の電子時計100による時刻変更処理と同一であり、同一の処理内容には同一の符号を付して詳しい説明を省略する。 FIG. 10 is a flowchart showing a control procedure of the time change process executed by the CPU 110 of the electronic clock 100a of the present embodiment. This time change process is the same as the time change process by the electronic clock 100 of the first embodiment, except that the process of step S111 is added to the time change process by the electronic clock 100 of the first embodiment. The same processing contents are designated by the same reference numerals, and detailed description thereof will be omitted.

ステップS102でタイマが起動されると、CPU110は、この時点の、即ちアドバタイズパケットの送信を開始させる時点の、計時回路114が計時する現在時刻Tw=T1を示す値を、種別がAdv_INDであるアドバタイズパケットのデータフィールドAdvDataに設定する(ステップS111)。 When the timer is started in step S102, the CPU 110 advertises a value indicating the current time Tw = T1 timed by the timekeeping circuit 114 at this time, that is, at the time when the transmission of the advertisement packet is started, and the type is Adv_IND. Set in the packet data field AdvData (step S111).

図11は、本実施形態のスマートフォン200aが実行する接続要求生成処理の制御手順を示すフローチャートである。この接続要求生成処理は、第1実施形態のスマートフォン200による接続要求生成処理に対してステップS211の処理が追加され、第1実施形態のスマートフォン200による接続要求生成処理におけるステップS209の処理の代わりにステップS212の処理が追加された点を除き、第1実施形態のスマートフォン200による接続要求生成処理と同一であり、同一の処理内容には同一の符号を付して詳しい説明を省略する。 FIG. 11 is a flowchart showing a control procedure of the connection request generation process executed by the smartphone 200a of the present embodiment. In this connection request generation process, the process of step S211 is added to the connection request generation process of the smartphone 200 of the first embodiment, and instead of the process of step S209 of the connection request generation process of the smartphone 200 of the first embodiment. Except for the point that the process of step S212 is added, it is the same as the connection request generation process by the smartphone 200 of the first embodiment, and the same process contents are designated by the same reference numerals and detailed description thereof will be omitted.

ステップS208でCPU210がタイマを停止させると、CPU210は、通信部203が受信したアドバタイズパケットに含まれるAdvDataに設定された値が示す時刻T1を特定する(ステップS211)。すなわち、CPU210は、電子時計100aのCPU110がその値をAdvDataに設定した時の、即ちアドバタイズパケットの送信を開始させる時の、電子時計100aの計時回路114が計時した時刻Tw=T1を特定する。 When the CPU 210 stops the timer in step S208, the CPU 210 identifies the time T1 indicated by the value set in AdvData included in the advertisement packet received by the communication unit 203 (step S211). That is, the CPU 210 specifies the time Tw = T1 timed by the timekeeping circuit 114 of the electronic clock 100a when the CPU 110 of the electronic clock 100a sets the value to AdvData, that is, when the transmission of the advertisement packet is started.

CPU210は、ステップS211で特定された時刻T1と、ステップS207で取得された時刻Trとの差分Eに基づいて、第1実施形態と同様に設定値STOを生成する(ステップS212)。 The CPU 210 generates a set value STO in the same manner as in the first embodiment based on the difference E between the time T1 specified in step S211 and the time Tr acquired in step S207 (step S212).

以上のように、第2実施形態の電子時計100aのCPU110は、種別がAdv_INDであるアドバタイズパケットのデータフィールドAdvDataに計時回路114が計時する時刻T1を示す値を設定する。そして、CPU110は、通信部103を制御して、そのアドバタイズパケットをスマートフォン200aに送信する。これにより、スマートフォン200aは、アドバタイズパケットを受信した時刻Trと、電子時計100aが計時する時刻T1との差分Eに基づくTimeoutの設定値STOを生成し、生成された設定値STOが設定されたTimeoutを含む接続要求を電子時計100aに送信することができる。そのため、電子時計100aは、受信した接続要求に基づいて、簡易に時刻を変更することが可能である。 As described above, the CPU 110 of the electronic clock 100a of the second embodiment sets a value indicating the time T1 measured by the timekeeping circuit 114 in the data field AdvData of the advertisement packet of the type Adv_IND. Then, the CPU 110 controls the communication unit 103 to transmit the advertisement packet to the smartphone 200a. As a result, the smartphone 200a generates a Timeout set value STO based on the difference E between the time Tr when the advertisement packet is received and the time T1 measured by the electronic clock 100a, and the generated set value STO is set. The connection request including the above can be transmitted to the electronic clock 100a. Therefore, the electronic clock 100a can easily change the time based on the received connection request.

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

例えば、スマートフォン200、200aの計時回路214の歩度を考慮しない前提として説明したが、CPU210が計時回路214の歩度を予め保持してもよい。そして、CPU210は、スマートフォン200、200aがGPS(Global Positioning System)等の電波を受信することから得られる正確な時刻により計時回路214が計時する時刻を変更した時点からの経過時間と上記予め保持している歩度とを基に求めた時刻ずれ量を考慮して、Timeoutの設定値STOを生成しても良い。 For example, although the description has been made on the premise that the pace of the timekeeping circuit 214 of the smartphones 200 and 200a is not considered, the CPU 210 may hold the pace of the timekeeping circuit 214 in advance. Then, the CPU 210 holds in advance the elapsed time from the time when the time counting circuit 214 changes the time measured by the accurate time obtained from the reception of radio waves such as GPS (Global Positioning System) by the smartphones 200 and 200a. The set value STO of Timeout may be generated in consideration of the amount of time lag obtained based on the rate.

また、スマートフォン200,200aのCPU210は、例えば、電子時計100,100aとスマートフォン200,200aとの通信遅延時間、電子時計100,100aでの処理遅延時間、スマートフォン200,200aでの処理遅延時間を考慮して、Timeoutの設定値STOを生成しても良い。 Further, the CPU 210 of the smartphones 200 and 200a considers, for example, the communication delay time between the electronic clocks 100 and 100a and the smartphones 200 and 200a, the processing delay time of the electronic clocks 100 and 100a, and the processing delay time of the smartphones 200 and 200a. Then, the set value STO of Timeout may be generated.

また、上記実施の形態では、電子時計100、100aが、スマートフォン200、200aとブルートゥースで通信して電子時計100、100aの時刻を変更することを説明した。しかし、電子時計100、100aは、スマートフォン200、200aとその他の通信方法、例えば、無線LAN(Local Area Network)やWi−Fi(登録商標)、または有線で通信して時刻を変更しても良い。 Further, in the above embodiment, it has been described that the electronic clocks 100 and 100a communicate with the smartphones 200 and 200a via Bluetooth to change the time of the electronic clocks 100 and 100a. However, the electronic clocks 100 and 100a may change the time by communicating with the smartphones 200 and 200a by other communication methods such as wireless LAN (Local Area Network), Wi-Fi (registered trademark), or by wire. ..

また、上記実施の形態では、電子時計100、100aが計時する時刻をスマートフォン200、200aが計時する時刻で変更する例を説明した。しかし、スマートフォン200、200aが計時する時刻を電子時計100、100aが計時する時刻で変更しても良い。 Further, in the above-described embodiment, an example of changing the time measured by the electronic clocks 100 and 100a to the time measured by the smartphones 200 and 200a has been described. However, the time measured by the smartphones 200 and 200a may be changed by the time measured by the electronic clocks 100 and 100a.

また、上記実施の形態では、電子時計100、100a、スマートフォン200、200aを例に挙げて説明したが、これらはスマートウォッチなどの各種電子機器であって良い。 Further, in the above-described embodiment, the electronic watches 100 and 100a and the smartphones 200 and 200a have been described as examples, but these may be various electronic devices such as smart watches.

また、上記実施の形態では、CPU110,210が、制御動作を行う例を説明した。しかし、制御動作は、CPUによるソフトウェア制御に限られるものではない。制御動作の一部又は全部が専用の論理回路などのハードウェア構成を用いてなされても良い。 Further, in the above-described embodiment, an example in which the CPUs 110 and 210 perform a control operation has been described. However, the control operation is not limited to software control by the 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(Compact Disc Read Only Memory)やDVD(Digital Versatile Disc)などの可搬型記録媒体を適用してもよい。また、本発明に係るプログラムのデータを通信回線を介して提供する媒体として、キャリアウェーブ(搬送波)も本発明に適用される。 Further, in the above description, ROMs 102 and 202 made of a non-volatile memory such as a flash memory as a computer-readable medium for storing the program 115 related to the time change processing and the program 215 related to the connection request generation processing of the present invention will be taken as an example. I mentioned and explained. However, the computer-readable medium is not limited to these, and even if a portable recording medium such as an HDD (Hard Disk Drive), a CD-ROM (Compact Disc Read Only Memory) or a DVD (Digital Versatile Disc) is applied. Good. A carrier wave is also applied to the present invention as a medium for providing data of a program according to the present invention via a communication line.

その他、上記実施の形態で示した構成、制御手順や表示例などの具体的な細部は、本発明の趣旨を逸脱しない範囲において適宜変更可能である。 In addition, specific details such as the configuration, control procedure, and display example shown in the above embodiment can be appropriately changed without departing from the spirit of the present invention.

本発明のいくつかの実施形態を説明したが、本発明の範囲は、上述の実施の形態に限定するものではなく、特許請求の範囲に記載された発明の範囲とその均等の範囲を含む。以下に、この出願の願書に最初に添付した特許請求の範囲に記載した発明を付記する。付記の番号は、この出願の願書に最初に添付した特許請求の範囲の通りである。 Although some 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 the equivalent scope thereof. The inventions described in the claims originally attached to the application of this application are added below. The additional numbers are as specified in the claims originally attached to the application for this application.

(付記1)
他の通信装置と通信する通信部と、
時刻を計時する計時部と、
制御部と、を備え、
前記制御部は、
前記通信部を制御して、前記他の通信装置から、自装置との接続を要求する接続要求を受信し、
前記接続要求に含まれる第1パラメータに設定された第1設定値に基づいて、前記計時部が計時する時刻を変更する、
ことを特徴とする通信装置。
(Appendix 1)
With a communication unit that communicates with other communication devices,
The timekeeping part that measures the time and
With a control unit
The control unit
The communication unit is controlled to receive a connection request requesting connection with the own device from the other communication device.
The time measured by the clock unit is changed based on the first set value set in the first parameter included in the connection request.
A communication device characterized by that.

(付記2)
前記制御部は、前記第1設定値と、前記第1パラメータに設定可能な最低値との差分に基づいて、前記計時部が計時する時刻を変更する、
ことを特徴とする付記1に記載の通信装置。
(Appendix 2)
The control unit changes the time measured by the time measuring unit based on the difference between the first set value and the minimum value that can be set in the first parameter.
The communication device according to Appendix 1, wherein the communication device is characterized by the above.

(付記3)
前記接続要求は、前記第1パラメータと異なる第2パラメータをさらに含み、
前記制御部は、前記第1設定値と、前記第2パラメータに設定された第2設定値に基づく前記最低値との差分に基づいて、前記計時部が計時する時刻を変更する、
ことを特徴とする付記2に記載の通信装置。
(Appendix 3)
The connection request further includes a second parameter different from the first parameter.
The control unit changes the time measured by the timekeeping unit based on the difference between the first set value and the minimum value based on the second set value set in the second parameter.
The communication device according to Appendix 2, wherein the communication device is characterized by the above.

(付記4)
前記制御部は、
前記第1設定値から、前記最低値と、所定値とを減算することにより、前記計時部が計時する時刻の変更値を算出し、
前記計時部が計時する時刻に算出された前記変更値を加算することにより、前記計時部が計時する時刻を変更する、
ことを特徴とする付記2または3に記載の通信装置。
(Appendix 4)
The control unit
By subtracting the minimum value and the predetermined value from the first set value, the change value of the time measured by the timekeeping unit is calculated.
By adding the changed value calculated to the time measured by the time unit, the time measured by the time unit is changed.
The communication device according to Appendix 2 or 3, wherein the communication device is characterized by the above.

(付記5)
前記制御部は、
前記通信部を制御して、送信情報を所定の時刻に前記他の通信装置に送信し、
前記通信部を制御して、前記送信情報に応答して前記他の通信装置から送信された前記接続要求であって、前記他の通信装置が前記送信情報を受信した時刻と、前記所定の時刻とに基づく前記第1設定値が設定された前記第1パラメータを含む前記接続要求を受信する、
ことを特徴とする付記1乃至4のいずれか1つに記載の通信装置。
(Appendix 5)
The control unit
The communication unit is controlled to transmit transmission information to the other communication device at a predetermined time.
The connection request transmitted from the other communication device in response to the transmission information by controlling the communication unit, the time when the other communication device receives the transmission information, and the predetermined time. Receives the connection request including the first parameter for which the first set value is set based on
The communication device according to any one of Supplementary Provisions 1 to 4, wherein the communication device is characterized by the above.

(付記6)
前記制御部は、
前記通信部を制御して、前記計時部が計時する時刻を含む送信情報を前記他の通信装置に送信し、
前記通信部を制御して、前記送信情報に応答して前記他の通信装置から送信された前記接続要求であって、前記送信情報に含まれる、前記計時部が計時する時刻と、前記他の通信装置が前記送信情報を受信した時刻とに基づく前記第1設定値が設定された前記第1パラメータを含む前記接続要求を受信する、
ことを特徴とする付記1乃至4のいずれか1つに記載の通信装置。
(Appendix 6)
The control unit
By controlling the communication unit, transmission information including the time measured by the timekeeping unit is transmitted to the other communication device.
The connection request transmitted from the other communication device in response to the transmission information by controlling the communication unit, the time measured by the timekeeping unit included in the transmission information, and the other The communication device receives the connection request including the first parameter in which the first set value is set based on the time when the transmission information is received.
The communication device according to any one of Supplementary Provisions 1 to 4, wherein the communication device is characterized by the above.

(付記7)
前記通信部は、前記他の通信装置とBluetooth(登録商標) Low Energyに基づいて無線通信し、
前記制御部は、
前記送信情報として、種別がAdv_INDであるアドバタイズパケットを送信し、
前記アドバタイズパケットのデータフィールドに、前記計時部が計時する時刻を示す値を設定する、
ことを特徴とする付記6に記載の通信装置。
(Appendix 7)
The communication unit wirelessly communicates with the other communication device based on Bluetooth® Low Energy.
The control unit
As the transmission information, an advertisement packet of the type Adv_IND is transmitted, and the advertisement packet is transmitted.
In the data field of the advertisement packet, a value indicating the time measured by the timekeeping unit is set.
The communication device according to Appendix 6, wherein the communication device is characterized by the above.

(付記8)
他の通信装置と通信する通信部と、
時刻を計時する計時部と、
制御部と、
を備え、
前記制御部は、
前記通信部を制御して、前記他の通信装置が送信した送信情報を受信し、
前記送信情報を受信したときに前記計時部が計時する時刻に基づいて、前記他の通信装置との接続を要求する接続要求に含まれる第1パラメータに設定される第1設定値を生成し、
前記通信部を制御して、前記制御部により生成された前記第1設定値が設定された前記第1パラメータを含む前記接続要求を、前記他の通信装置へ送信する、
ことを特徴とする通信装置。
(Appendix 8)
With a communication unit that communicates with other communication devices,
The timekeeping part that measures the time and
Control unit and
With
The control unit
By controlling the communication unit, the transmission information transmitted by the other communication device is received, and the transmission information is received.
Based on the time measured by the timekeeping unit when the transmission information is received, a first setting value set in the first parameter included in the connection request requesting connection with the other communication device is generated.
The communication unit is controlled, and the connection request including the first parameter in which the first set value generated by the control unit is set is transmitted to the other communication device.
A communication device characterized by that.

(付記9)
前記制御部は、前記送信情報を受信したときに前記計時部が計時する時刻と、所定の時刻との差分に基づいて、前記第1設定値を生成する、
ことを特徴とする付記8に記載の通信装置。
(Appendix 9)
The control unit generates the first set value based on the difference between the time measured by the time measuring unit when the transmission information is received and the predetermined time.
The communication device according to Appendix 8, wherein the communication device is characterized by the above.

(付記10)
前記制御部は、
前記通信部を制御して、前記他の通信装置が計時する時刻を含む前記送信情報を、前記他の通信装置から受信し、
前記送信情報を受信したときに前記計時部が計時する時刻と、前記送信情報に含まれる前記他の通信装置が計時する時刻との差分に基づいて、前記第1設定値を生成する、
ことを特徴とする付記8に記載の通信装置。
(Appendix 10)
The control unit
By controlling the communication unit, the transmission information including the time measured by the other communication device is received from the other communication device.
The first set value is generated based on the difference between the time measured by the timing unit when the transmission information is received and the time measured by the other communication device included in the transmission information.
The communication device according to Appendix 8, wherein the communication device is characterized by the above.

(付記11)
前記制御部は、前記差分と、前記第1パラメータに設定可能な最低値とに基づいて、前記第1設定値を生成する、
ことを特徴とする付記9または10に記載の通信装置。
(Appendix 11)
The control unit generates the first set value based on the difference and the lowest value that can be set for the first parameter.
The communication device according to Appendix 9 or 10, characterized in that.

(付記12)
前記接続要求は、前記第1パラメータと異なる第2パラメータをさらに含み、
前記制御部は、前記差分と、前記第2パラメータに設定される第2設定値とに基づく前記最低値とに基づいて、前記第1設定値を生成する、
ことを特徴とする付記11に記載の通信装置。
(Appendix 12)
The connection request further includes a second parameter different from the first parameter.
The control unit generates the first set value based on the difference and the minimum value based on the second set value set in the second parameter.
The communication device according to Appendix 11, wherein the communication device is characterized by the above.

(付記13)
前記制御部は、前記差分に、前記最低値と、所定値とを加算することにより、前記第1設定値を生成する、
ことを特徴とする付記12に記載の通信装置。
(Appendix 13)
The control unit generates the first set value by adding the minimum value and the predetermined value to the difference.
The communication device according to Appendix 12, wherein the communication device is characterized by the above.

(付記14)
前記制御部は、10ミリ秒単位で前記第1設定値を生成する、
ことを特徴とする付記8乃至13のいずれか1つに記載の通信装置。
(Appendix 14)
The control unit generates the first set value in units of 10 milliseconds.
The communication device according to any one of Supplementary Provisions 8 to 13, characterized in that.

(付記15)
前記第1パラメータは、前記制御部が前記他の通信装置との接続が失われたと判定する際の、前記他の通信装置との通信がない最大時間を規定するパラメータである、
ことを特徴とする付記1乃至14のいずれか1つに記載の通信装置。
(Appendix 15)
The first parameter is a parameter that defines the maximum time during which the control unit determines that the connection with the other communication device has been lost and there is no communication with the other communication device.
The communication device according to any one of Supplementary Provisions 1 to 14, characterized in that.

(付記16)
前記計時部が計時する時刻を表示する表示部と、
付記1乃至15のいずれか1つに記載の通信装置と、
を備えることを特徴とする電子時計。
(Appendix 16)
A display unit that displays the time measured by the timekeeping unit and
The communication device according to any one of the appendices 1 to 15 and the communication device.
An electronic clock characterized by being equipped with.

(付記17)
他の通信装置と通信する通信部と、時刻を計時する計時部と、を備える通信装置が実行する時刻変更方法であって、
前記通信部を制御して、前記他の通信装置から、自装置との接続を要求する接続要求を受信する受信制御ステップと、
前記接続要求に含まれる第1パラメータに設定された第1設定値に基づいて、前記計時部が計時する時刻を変更する変更ステップと、
を含むことを特徴とする時刻変更方法。
(Appendix 17)
It is a time changing method executed by a communication device including a communication unit that communicates with another communication device and a timekeeping unit that measures the time.
A reception control step that controls the communication unit and receives a connection request requesting connection with the own device from the other communication device.
A change step of changing the time measured by the timekeeping unit based on the first set value set in the first parameter included in the connection request, and
A time change method characterized by including.

(付記18)
他の通信装置と通信する通信部と、時刻を計時する計時部と、を備える通信装置が実行する接続要求生成方法であって、
前記通信部を制御して、前記他の通信装置が送信した送信情報を受信する受信制御ステップと、
前記送信情報を受信したときに前記計時部が計時する時刻に基づいて、前記他の通信装置との接続を要求する接続要求に含まれる第1パラメータに設定される第1設定値を生成する生成ステップと、
前記通信部を制御して、生成された前記第1設定値が設定された前記第1パラメータを含む前記接続要求を、前記他の通信装置へ送信する送信制御ステップと、
を含むことを特徴とする接続要求生成方法。
(Appendix 18)
A connection request generation method executed by a communication device including a communication unit that communicates with another communication device and a timekeeping unit that measures the time.
A reception control step that controls the communication unit and receives transmission information transmitted by the other communication device, and
Generation that generates the first set value set in the first parameter included in the connection request requesting the connection with the other communication device based on the time measured by the timekeeping unit when the transmission information is received. Steps and
A transmission control step that controls the communication unit and transmits the connection request including the first parameter in which the generated first set value is set to the other communication device.
A method for generating a connection request, which comprises.

(付記19)
通信装置と通信する通信部と、時刻を計時する計時部と、を備えるコンピュータを、
前記通信部を制御して、前記通信装置から、前記コンピュータとの接続を要求する接続要求を受信する受信制御手段、
前記接続要求に含まれる第1パラメータに設定された第1設定値に基づいて、前記計時部が計時する時刻を変更する変更手段、
として機能させることを特徴とするプログラム。
(Appendix 19)
A computer equipped with a communication unit that communicates with a communication device and a timekeeping unit that measures time.
A reception control means that controls the communication unit and receives a connection request requesting connection with the computer from the communication device.
A changing means for changing the time measured by the clock unit based on the first set value set in the first parameter included in the connection request.
A program characterized by functioning as.

(付記20)
通信装置と通信する通信部と、時刻を計時する計時部と、を備えるコンピュータを、
前記通信部を制御して、前記通信装置が送信した送信情報を受信する受信制御手段、
前記送信情報を受信したときに前記計時部が計時する時刻に基づいて、前記通信装置との接続を要求する接続要求に含まれる第1パラメータに設定される第1設定値を生成する生成手段、
前記通信部を制御して、生成された前記第1設定値が設定された前記第1パラメータを含む前記接続要求を、前記通信装置へ送信制御手段、
として機能させることを特徴とするプログラム。
(Appendix 20)
A computer equipped with a communication unit that communicates with a communication device and a timekeeping unit that measures time.
A reception control means that controls the communication unit and receives transmission information transmitted by the communication device.
A generation means for generating a first set value set in a first parameter included in a connection request requesting connection with the communication device based on a time measured by the timekeeping unit when the transmission information is received.
A control means for controlling the communication unit and transmitting the connection request including the first parameter in which the generated first set value is set to the communication device.
A program characterized by functioning as.

1…通信システム、10,20…通信装置、100,100a…電子時計、101…マイクロコンピュータ、102…ROM、103…通信部、104…アンテナ、105…電源供給部、106…表示部、107…表示ドライバ、108…操作受付部、109…振動子、110…CPU、111…RAM、112…発振回路、113…分周回路、114…計時回路、115…プログラム、121,121a…送信制御部、122…受信制御部、123…算出部、124…変更部、200,200a…スマートフォン、201…マイクロコンピュータ、202…ROM、203…通信部、204…アンテナ、205…電源供給部、206…表示部、207…表示ドライバ、208…操作受付部、209…振動子、210…CPU、211…RAM、212…発振回路、213…分周回路、214…計時回路、215…プログラム、221…受信制御部、222,222a…生成部、223…送信制御部 1 ... Communication system, 10, 20 ... Communication device, 100, 100a ... Electronic clock, 101 ... Microcomputer, 102 ... ROM, 103 ... Communication unit, 104 ... Antenna, 105 ... Power supply unit, 106 ... Display unit, 107 ... Display driver, 108 ... operation reception unit, 109 ... oscillator, 110 ... CPU, 111 ... RAM, 112 ... oscillation circuit, 113 ... frequency division circuit, 114 ... timing circuit, 115 ... program, 121, 121a ... transmission control unit, 122 ... Reception control unit, 123 ... Calculation unit, 124 ... Change unit, 200, 200a ... Smartphone, 201 ... Microcomputer, 202 ... ROM, 203 ... Communication unit, 204 ... Antenna, 205 ... Power supply unit, 206 ... Display unit , 207 ... display driver, 208 ... operation reception unit, 209 ... oscillator, 210 ... CPU, 211 ... RAM, 212 ... oscillation circuit, 213 ... frequency division circuit, 214 ... timing circuit, 215 ... program, 221 ... reception control unit , 222, 222a ... Generation unit, 223 ... Transmission control unit

Claims (16)

他の通信装置と通信する通信部と、
時刻を計時する計時部と、
制御部と、を備え、
前記制御部は、
前記通信部を制御して、前記他の通信装置に前記計時部が計時する時刻を含む送信情報を送信させ、
前記通信部を制御して、前記送信情報に応答して前記他の通信装置から送信された接続要求であって、前記送信情報に含まれる前記計時部が計時する時刻と、前記他の通信装置が前記送信情報を受信した時刻との差分に基づく第1設定値が設定された第1パラメータを含む前記接続要求を受信し、
前記接続要求に含まれる前記第1パラメータに設定された前記第1設定値に基づいて、前記計時部が計時する時刻を変更する、
ことを特徴とする通信装置。
With a communication unit that communicates with other communication devices,
The timekeeping part that measures the time and
With a control unit
The control unit
The communication unit is controlled to cause the other communication device to transmit transmission information including the time measured by the timekeeping unit.
A connection request transmitted from the other communication device in response to the transmission information by controlling the communication unit, the time measured by the timekeeping unit included in the transmission information, and the other communication device. Receives the connection request including the first parameter in which the first set value is set based on the difference from the time when the transmission information is received.
Based on the first set value that is set in the first parameter included in the connection request, the timer unit changes the time measured,
A communication device characterized by that.
前記制御部は、前記第1設定値と、前記第1パラメータに設定可能な最低値との差分に基づいて、前記計時部が計時する時刻を変更する、
ことを特徴とする請求項1に記載の通信装置。
The control unit changes the time measured by the time measuring unit based on the difference between the first set value and the minimum value that can be set in the first parameter.
The communication device according to claim 1.
前記接続要求は、前記第1パラメータと異なる第2パラメータをさらに含み、
前記制御部は、前記第1設定値と、前記第2パラメータに設定された第2設定値に基づく前記最低値との差分に基づいて、前記計時部が計時する時刻を変更する、
ことを特徴とする請求項2に記載の通信装置。
The connection request further includes a second parameter different from the first parameter.
The control unit changes the time measured by the timekeeping unit based on the difference between the first set value and the minimum value based on the second set value set in the second parameter.
The communication device according to claim 2.
前記制御部は、
前記第1設定値から、前記最低値と、所定値とを減算することにより、前記計時部が計時する時刻の変更値を算出し、
前記計時部が計時する時刻に算出された前記変更値を加算することにより、前記計時部が計時する時刻を変更する、
ことを特徴とする請求項2または3に記載の通信装置。
The control unit
By subtracting the minimum value and the predetermined value from the first set value, the change value of the time measured by the timekeeping unit is calculated.
By adding the changed value calculated to the time measured by the time unit, the time measured by the time unit is changed.
The communication device according to claim 2 or 3.
前記通信部は、前記他の通信装置とBluetooth(登録商標) Low Energyに基づいて無線通信し、
前記制御部は、
前記送信情報として、種別がAdv_INDであるアドバタイズパケットを送信し、
前記アドバタイズパケットのデータフィールドに、前記計時部が計時する時刻を示す値を設定する、
ことを特徴とする請求項1乃至4のいずれか1項に記載の通信装置。
The communication unit wirelessly communicates with the other communication device based on Bluetooth® Low Energy.
The control unit
As the transmission information, an advertisement packet of the type Adv_IND is transmitted, and the advertisement packet is transmitted.
In the data field of the advertisement packet, a value indicating the time measured by the timekeeping unit is set.
The communication device according to any one of claims 1 to 4, wherein the communication device is characterized by the above.
他の通信装置と通信する通信部と、
時刻を計時する計時部と、
制御部と、
を備え、
前記制御部は、
前記通信部を制御して、前記他の通信装置が送信した前記他の通信装置が計時する時刻を含む送信情報を受信し、
前記通信部を制御して、前記送信情報を受信したときに前記計時部が計時する時刻と、前記送信情報に含まれる前記他の通信装置が計時する時刻との差分に基づいて、第1設定値を生成し
記第1設定値が設定された第1パラメータを含む接続要求を、前記他の通信装置へ送信する、
ことを特徴とする通信装置。
With a communication unit that communicates with other communication devices,
The timekeeping part that measures the time and
Control unit and
With
The control unit
By controlling the communication unit, the transmission information including the time measured by the other communication device transmitted by the other communication device is received, and the transmission information is received.
The first setting is based on the difference between the time measured by the timing unit when the transmission information is received by controlling the communication unit and the time measured by the other communication device included in the transmission information. to generate a value,
The including connection requests a first parameter first set value before Symbol is set, and transmits to the other communication apparatus,
A communication device characterized by that.
前記制御部は、前記差分と、前記第1パラメータに設定可能な最低値とに基づいて、前記第1設定値を生成する、
ことを特徴とする請求項に記載の通信装置。
The control unit generates the first set value based on the difference and the lowest value that can be set for the first parameter.
The communication device according to claim 6.
前記接続要求は、前記第1パラメータと異なる第2パラメータをさらに含み、
前記制御部は、前記差分と、前記第2パラメータに設定される第2設定値とに基づく前記最低値とに基づいて、前記第1設定値を生成する、
ことを特徴とする請求項に記載の通信装置。
The connection request further includes a second parameter different from the first parameter.
The control unit generates the first set value based on the difference and the minimum value based on the second set value set in the second parameter.
The communication device according to claim 7.
前記制御部は、前記差分に、前記最低値と、所定値とを加算することにより、前記第1設定値を生成する、
ことを特徴とする請求項に記載の通信装置。
The control unit generates the first set value by adding the minimum value and the predetermined value to the difference.
The communication device according to claim 8.
前記制御部は、10ミリ秒単位で前記第1設定値を生成する、
ことを特徴とする請求項6乃至9のいずれか1項に記載の通信装置。
The control unit generates the first set value in units of 10 milliseconds.
The communication device according to any one of claims 6 to 9 , wherein the communication device is characterized by the above.
前記第1パラメータは、前記制御部が前記他の通信装置との接続が失われたと判定する際の、前記他の通信装置との通信がない最大時間を規定するパラメータである、
ことを特徴とする請求項1乃至10のいずれか1項に記載の通信装置。
The first parameter is a parameter that defines the maximum time during which the control unit determines that the connection with the other communication device has been lost and there is no communication with the other communication device.
The communication device according to any one of claims 1 to 10.
前記計時部が計時する時刻を表示する表示部と、
請求項1乃至11のいずれか1項に記載の通信装置と、
を備えることを特徴とする電子時計。
A display unit that displays the time measured by the timekeeping unit and
The communication device according to any one of claims 1 to 11.
An electronic clock characterized by being equipped with.
他の通信装置と通信する通信部と、時刻を計時する計時部と、を備える通信装置が実行する時刻変更方法であって、
前記通信部を制御して、前記他の通信装置に前記計時部が計時する時刻を含む送信情報を送信させる送信ステップと、
前記送信情報に応答して前記他の通信装置から送信された接続要求であって、前記送信情報に含まれる前記計時部が計時する時刻と、前記他の通信装置が前記送信情報を受信した時刻との差分に基づく第1設定値が設定された第1パラメータを含む前記接続要求を受信する受信制御ステップと、
前記接続要求に含まれる前記第1パラメータに設定された前記第1設定値に基づいて、前記計時部が計時する時刻を変更する変更ステップと、
を含むことを特徴とする時刻変更方法。
It is a time changing method executed by a communication device including a communication unit that communicates with another communication device and a timekeeping unit that measures the time.
A transmission step of controlling the communication unit to cause the other communication device to transmit transmission information including a time measured by the timekeeping unit.
A connection request transmitted from the other communication device in response to the transmission information, the time measured by the timekeeping unit included in the transmission information and the time when the other communication device receives the transmission information. A reception control step for receiving the connection request including the first parameter in which the first set value is set based on the difference between
A changing step of, based on the connection of the first set value that is set in the first parameter included in the request, the time counting unit changes the time measured,
A time change method characterized by including.
他の通信装置と通信する通信部と、時刻を計時する計時部と、を備える通信装置が実行する接続要求生成方法であって、
前記通信部を制御して、前記他の通信装置が送信した前記他の通信装置が計時する時刻を含む送信情報を受信する受信制御ステップと、
前記通信部を制御して、前記送信情報を受信したときに前記計時部が計時する時刻と、前記送信情報に含まれる前記他の通信装置が計時する時刻との差分に基づいて、第1設定値を生成する生成ステップと
記第1設定値が設定された第1パラメータを含む接続要求を、前記他の通信装置へ送信する送信制御ステップと、
を含むことを特徴とする接続要求生成方法。
A connection request generation method executed by a communication device including a communication unit that communicates with another communication device and a timekeeping unit that measures the time.
A reception control step that controls the communication unit and receives transmission information including a time measured by the other communication device transmitted by the other communication device.
The first setting is based on the difference between the time measured by the timing unit when the transmission information is received by controlling the communication unit and the time measured by the other communication device included in the transmission information. a generation step of generating a value,
The including connection requests a first parameter first set value before Symbol is set, a transmission control step of transmitting to the other communication apparatus,
A method for generating a connection request, which comprises.
通信装置と通信する通信部と、時刻を計時する計時部と、を備えるコンピュータを、
前記通信部を制御して、前記通信装置に前記計時部が計時する時刻を含む送信情報を送信させる送信手段、
前記送信情報に応答して前記通信装置から送信された接続要求であって、前記送信情報に含まれる前記計時部が計時する時刻と、前記通信装置が前記送信情報を受信した時刻との差分に基づく第1設定値が設定された第1パラメータを含む前記接続要求を受信する受信制御手段、
前記接続要求に含まれる前記第1パラメータに設定された前記第1設定値に基づいて、前記計時部が計時する時刻を変更する変更手段、
として機能させることを特徴とするプログラム。
A computer equipped with a communication unit that communicates with a communication device and a timekeeping unit that measures time.
A transmission means that controls the communication unit to cause the communication device to transmit transmission information including a time measured by the timekeeping unit.
The difference between the time measured by the timekeeping unit included in the transmission information and the time when the communication device receives the transmission information, which is a connection request transmitted from the communication device in response to the transmission information. A reception control means for receiving the connection request including the first parameter in which the first setting value based on the setting is set.
Changing means based on the first set value that is set in the first parameter included in the connection request, the timer unit changes the time measured,
A program characterized by functioning as.
通信装置と通信する通信部と、時刻を計時する計時部と、を備えるコンピュータを、
前記通信部を制御して、前記通信装置が送信した前記通信装置が計時する時刻を含む送信情報を受信する受信制御手段、
前記通信部を制御して、前記送信情報を受信したときに前記計時部が計時する時刻と、前記送信情報に含まれる前記通信装置が計時する時刻との差分に基づいて、第1設定値を生成する生成手段
記第1設定値が設定された第1パラメータを含む接続要求を、前記通信装置へ送信する送信制御手段、
として機能させることを特徴とするプログラム。
A computer equipped with a communication unit that communicates with a communication device and a timekeeping unit that measures time.
A reception control means that controls the communication unit and receives transmission information including a time measured by the communication device transmitted by the communication device.
The first set value is set based on the difference between the time measured by the timing unit when the transmission information is received by controlling the communication unit and the time measured by the communication device included in the transmission information. Generation means to generate ,
Before Symbol of including connection requests a first parameter first set value is set, the transmission control means for transmitting to the communication device,
A program characterized by functioning as.
JP2016183966A 2016-09-21 2016-09-21 Communication device, electronic clock, time change method, connection request generation method, and program Active JP6855723B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016183966A JP6855723B2 (en) 2016-09-21 2016-09-21 Communication device, electronic clock, time change method, connection request generation method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016183966A JP6855723B2 (en) 2016-09-21 2016-09-21 Communication device, electronic clock, time change method, connection request generation method, and program

Publications (2)

Publication Number Publication Date
JP2018048882A JP2018048882A (en) 2018-03-29
JP6855723B2 true JP6855723B2 (en) 2021-04-07

Family

ID=61766266

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016183966A Active JP6855723B2 (en) 2016-09-21 2016-09-21 Communication device, electronic clock, time change method, connection request generation method, and program

Country Status (1)

Country Link
JP (1) JP6855723B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5852620B2 (en) * 2013-09-26 2016-02-03 有限会社Gh9 Low power short-range wireless communication system
JP2015184102A (en) * 2014-03-24 2015-10-22 セイコーエプソン株式会社 Program for electronic apparatus and watch, and communication system
JP6394177B2 (en) * 2014-08-22 2018-09-26 カシオ計算機株式会社 Wireless communication device, wireless communication system, wireless communication method, program, and slave device
JP6582372B2 (en) * 2014-08-26 2019-10-02 カシオ計算機株式会社 Electronic device and communication connection control method
JP6472202B2 (en) * 2014-10-02 2019-02-20 キヤノン株式会社 COMMUNICATION SYSTEM, COMMUNICATION METHOD, COMMUNICATION DEVICE, ITS CONTROL METHOD, AND PROGRAM
US20160184635A1 (en) * 2014-12-24 2016-06-30 Lg Electronics Inc. Method and apparatus for transmitting and receiving data using bluetooth

Also Published As

Publication number Publication date
JP2018048882A (en) 2018-03-29

Similar Documents

Publication Publication Date Title
JP6939838B2 (en) Electronic clock, information update control method and program
US10365108B2 (en) Information acquisition method, wireless communication device, electronic timepiece and recording medium
JP2018044842A (en) Electronic watch, time change method of electronic watch, and program
JP6451666B2 (en) Communication device, electronic timepiece, communication method, and program
JP2017015399A (en) Electronic watch, and program
CN110996383B (en) Wireless communication device, electronic timepiece, transmission power control method, and storage medium
US11550269B2 (en) Electronic timepiece, information update control method and storage medium
JP7006102B2 (en) Wireless communication devices, electronic clocks, wireless communication methods, and programs
JP2019168372A (en) Electronic clock and method for acquiring information
JP6855723B2 (en) Communication device, electronic clock, time change method, connection request generation method, and program
JP6919305B2 (en) Communication device, electronic clock, time change method, notification signal generation method, and program
JP6834283B2 (en) Wireless communication device, electronic clock, wireless communication method, time change method, and program
JP6798470B2 (en) Electronic clocks, display control methods, and programs
JP2018048829A (en) Radio communication device, electronic watch, time correction method, transmission information generation method, and program
JP6984245B2 (en) Electronic clock, processing selection method, and program
JP2021141428A (en) Communication device, communication connection control method, and program
JP6841106B2 (en) Wireless communication devices, electronic clocks, wireless communication methods, and programs
JP2018157341A (en) Radio communication method, radio communication device, electronic watch, and program
JP2018044931A (en) Radio communication device, electronic timepiece, time change method, time information providing method, and program
JP7207388B2 (en) Electronic clock, display control method, and program
JP7156323B2 (en) Electronic clock, time adjustment method, and program
JP7276409B2 (en) ELECTRONIC DEVICE, DISPLAY METHOD, AND PROGRAM
JP6950469B2 (en) Display devices, electronic clocks, display methods, and programs
JP2022008875A (en) Radio communication device, electronic clock, radio communication method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190909

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200821

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200929

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201126

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20210216

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210301

R150 Certificate of patent or registration of utility model

Ref document number: 6855723

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150