JP2005106696A - Apparatus for controlling time synchronization, method therefor, program therefor, and method for controlling event and program therefor - Google Patents

Apparatus for controlling time synchronization, method therefor, program therefor, and method for controlling event and program therefor Download PDF

Info

Publication number
JP2005106696A
JP2005106696A JP2003342092A JP2003342092A JP2005106696A JP 2005106696 A JP2005106696 A JP 2005106696A JP 2003342092 A JP2003342092 A JP 2003342092A JP 2003342092 A JP2003342092 A JP 2003342092A JP 2005106696 A JP2005106696 A JP 2005106696A
Authority
JP
Japan
Prior art keywords
time
server
event
internal
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2003342092A
Other languages
Japanese (ja)
Inventor
Takaomi Nagamatsu
貴臣 永松
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.)
Dwango Co Ltd
Original Assignee
Dwango 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 Dwango Co Ltd filed Critical Dwango Co Ltd
Priority to JP2003342092A priority Critical patent/JP2005106696A/en
Publication of JP2005106696A publication Critical patent/JP2005106696A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)
  • Electric Clocks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To enable timing the time with high precision approximated when a terminal is supplied by a server in a network, such as mobile wireless communication having slow communication line. <P>SOLUTION: A plurality of portable phones, including a cellular phone 1, start each application MAP, and then a server time timed by a server clock 51 from a server 5 operating in an application SAP via a network (i.e., a base station 2, a mobile communication network 3, and an internet 4) is obtained a plurality of times. Each portable phone takes into consideration the communication time (a delayed time) spent by each time communication while acquiring the server time from the server 5, and then approximates the server time from the comparison with the internal time timed in an internal clock 11. By using this approximated server time and the internal time timed in the internal clock 11, each cellular phone is made to synchronize with the time which is to become the reference of a portable phone side to the server time timed by the server clock 51. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、時刻同期制御装置、時刻同期制御方法、時刻同期制御プログラム、イベント制御システム、イベント制御方法およびイベント制御プログラムに関するものである。   The present invention relates to a time synchronization control device, a time synchronization control method, a time synchronization control program, an event control system, an event control method, and an event control program.

端末の一種である携帯電話には、あらかじめ時計機能が内蔵されており、表示部にシステム時刻を表示させることが可能である。携帯電話に内蔵されているシステム時刻は、グリニッジ標準時刻に基づいて誤差を修正してもいずれは誤差が大きくなって次の修正機会が訪れることになる。   A mobile phone, which is a type of terminal, has a built-in clock function in advance, and can display the system time on the display unit. Even if the system time built in the mobile phone is corrected based on the Greenwich Mean Time, the error will increase and the next correction opportunity will come.

この誤差は当然に携帯電話上で実行されるアプリケーション上の時刻にも誤差を反映させることになり、アプリケーション上の時刻に精度が必要な場合にはその都度システム時刻の誤差を修正する必要が生じる。   This error naturally reflects the error on the time on the application executed on the mobile phone. When the time on the application requires accuracy, it is necessary to correct the error of the system time each time. .

通常は、アプリケーション側から携帯電話のシステム時刻を修正することは禁止されているので、システム時刻の修正はせずにアプリケーション側で正確な時刻を得る手法が提案されている(特許文献1)。   Usually, since it is prohibited to correct the system time of the mobile phone from the application side, a method for obtaining an accurate time on the application side without correcting the system time has been proposed (Patent Document 1).

特開2003−248073号公報JP 2003-248073 A

しかしながら、上述した手法では、携帯電話の内蔵時刻を得た後にサーバから標準時刻を得て両時刻の差分を求め、内臓時刻にその差分を加味してアプリ時刻を得るようにしていた。通常、携帯電話とサーバ間の通信では、通信手続き、回線速度による待ち時間などが大きく影響して通信時の遅延はまちまちとなることが一般的である。   However, in the above-described method, after obtaining the built-in time of the mobile phone, the standard time is obtained from the server, the difference between the two times is obtained, and the application time is obtained by adding the difference to the internal time. In general, in communication between a mobile phone and a server, communication delays and communication delays are generally greatly affected by communication procedures, waiting time due to line speed, and the like.

したがって、従来の手法では、通信時の遅延を考慮していないので、サーバから取得した標準時刻を携帯電話側で正確に計時させることは困難であった。   Therefore, in the conventional method, since the delay at the time of communication is not considered, it is difficult to accurately measure the standard time acquired from the server on the mobile phone side.

本発明の目的は、通信回線が遅い移動体無線通信のようなネットワークにおいて端末がサーバから供給される時刻に精度高く近時した時刻を計時することが可能な時刻同期制御装置、時刻同期制御方法、時刻同期制御プログラム、イベント制御システム、イベント制御方法およびイベント制御プログラムを提供する点にある。   An object of the present invention is to provide a time synchronization control device and a time synchronization control method capable of measuring the time at which a terminal is close to the time supplied from a server with high accuracy in a network such as mobile radio communication with a slow communication line. The present invention provides a time synchronization control program, an event control system, an event control method, and an event control program.

上述した課題を解決し、上記目的を達成するため、請求項1の発明に係る時刻同期制御装置は、時刻同期制御装置であって、内部時刻を計時する計時手段と、ネットワークを介して所定のサーバに対して複数回のアクセスを実行し、アクセス毎に前記所定のサーバで計時されるサーバ時刻を取得するサーバ時刻取得手段と、前記計時手段で計時される内部時刻を参照して、アクセス毎に、前記所定のサーバに対してアクセスした時の第1内部時刻と前記サーバ時刻取得手段でサーバ時刻を取得した時の第2内部時刻とを取得する内部時刻取得手段と、前記サーバ時刻取得手段、前記内部時刻取得手段でそれぞれ取得された時刻をアクセス別に記憶する記憶手段と、前記複数回のアクセスのうちで前記記憶手段に記憶された第1内部時刻と第2内部時刻とに基づいて前記所定のサーバに対するアクセス時の最短通信時間を決定する最短通信時間決定手段と、前記最短通信時間決定手段で決定された最短通信時間と前記記憶手段に記憶されたサーバ時刻のうち前記決定された最短通信時間と同アクセス時のサーバ時刻とに基づいて当該サーバ時刻の近似時刻を取得するサーバ時刻近似手段と、前記サーバ時刻近似手段で取得された近時時刻から当該近時時刻と同アクセス時の前記記憶手段に記憶された第1内部時刻を差し引いてギャップ時間を取得するギャップ取得手段と、前記計時手段で計時される内部時刻に前記ギャップ取得手段で取得されたギャップ時間を加算して前記サーバ時刻の同期時刻を計時する同期時刻計時手段と、を備えたことを特徴とするものである。   In order to solve the above-described problem and achieve the above object, a time synchronization control apparatus according to the invention of claim 1 is a time synchronization control apparatus, and includes a time measuring means for measuring an internal time, and a predetermined time via a network. Referring to the server time acquisition unit that executes a plurality of accesses to the server and acquires the server time counted by the predetermined server for each access, and the internal time measured by the timing unit, Internal time acquisition means for acquiring a first internal time when the predetermined server is accessed and a second internal time when the server time is acquired by the server time acquisition means; and the server time acquisition means Storage means for storing each time acquired by the internal time acquisition means for each access; first internal time stored in the storage means among the plurality of accesses; The shortest communication time determining means for determining the shortest communication time when accessing the predetermined server based on the part time, the shortest communication time determined by the shortest communication time determining means, and the server time stored in the storage means Server time approximation means for obtaining an approximate time of the server time based on the determined shortest communication time and the server time at the time of the access, and the near time from the recent time obtained by the server time approximation means. Gap acquisition means for acquiring a gap time by subtracting the first internal time stored in the storage means at the same time as the access time, and the gap acquired by the gap acquisition means at the internal time measured by the time measurement means Synchronous time counting means for adding the time and counting the synchronous time of the server time.

また、請求項2の発明は、請求項1において、イベントを実行する実行手段と、前記実行手段で実行されるイベントで記録すべき時刻を前記同期時刻計時手段で計時される同期時刻で記録する時刻記録手段と、をさらに備えるようにしてもよい。   The invention of claim 2 records the execution time for executing the event and the time to be recorded by the event executed by the execution means as the synchronization time measured by the synchronization time counting means. And a time recording means.

また、請求項3の発明は、請求項2において、前記時刻記録手段で記録された時刻を任意のタイミングで前記所定のサーバに送信する時刻送信手段をさらに備えるようにしてもよい。 The invention of claim 3 may further comprise time transmitting means for transmitting the time recorded by the time recording means to the predetermined server at an arbitrary timing in claim 2.

そして、請求項4の発明に係る時刻同期制御方法は、時刻同期制御方法であって、ネットワークを介して所定のサーバに対して複数回のアクセスを実行し、アクセス毎に前記所定のサーバで計時されるサーバ時刻を取得する第1ステップと、計時手段で計時される内部時刻を参照して、アクセス毎に、前記所定のサーバに対してアクセスした時の第1内部時刻と前記第1ステップでサーバ時刻を取得した時の第2内部時刻とを取得する第2ステップと、前記第1ステップ、前記第2ステップでそれぞれ取得された時刻をアクセス別に記憶する第3ステップと、前記複数回のアクセスのうちで前記第3ステップで記憶した第1内部時刻と第2内部時刻とに基づいて前記所定のサーバに対するアクセス時の最短通信時間を決定する第4ステップと、前記第4ステップで決定された最短通信時間と前記第3ステップで記憶したサーバ時刻のうち前記決定された最短通信時間と同アクセス時のサーバ時刻とに基づいて当該サーバ時刻の近似時刻を取得する第5ステップと、前記第5ステップで取得された近時時刻から当該近時時刻と同アクセス時の前記第3ステップで記憶した第1内部時刻を差し引いてギャップ時間を取得する第6ステップと、前記計時手段で計時される内部時刻に前記第6ステップで取得されたギャップ時間を加算して前記サーバ時刻の同期時刻を計時する第7ステップと、を含んだことを特徴とするものである。 The time synchronization control method according to the invention of claim 4 is a time synchronization control method, wherein a plurality of accesses are made to a predetermined server via a network, and the predetermined server counts time for each access. The first step of acquiring the server time, the internal time measured by the time measuring means, the first internal time when the predetermined server is accessed and the first step for each access A second step of acquiring a second internal time when the server time is acquired, a third step of storing the times acquired in the first step and the second step for each access, and the plurality of accesses A fourth step of determining the shortest communication time for accessing the predetermined server based on the first internal time and the second internal time stored in the third step, Based on the shortest communication time determined in step 4 and the server time stored in the third step, the approximated time of the server time is acquired based on the determined shortest communication time and the server time at the time of access. A sixth step of obtaining a gap time by subtracting the first internal time stored in the third step at the same access time from the recent time obtained in the fifth step from the recent time obtained in the fifth step; And a seventh step of measuring the synchronization time of the server time by adding the gap time acquired in the sixth step to the internal time measured by the time measuring means.

また、請求項5の発明は、請求項4の発明において、イベントを実行する第8ステップと、前記第8ステップで実行されるイベントで記録すべき時刻を前記第7ステップで計時される同期時刻で記録し、その記録された時刻を任意のタイミングで前記所定のサーバに送信する第8ステップをさらに含むようにしてもよい。 According to a fifth aspect of the present invention, in the fourth aspect of the invention, the eighth step of executing an event, and the synchronization time measured in the seventh step of the time to be recorded in the event executed in the eighth step And may further include an eighth step of transmitting the recorded time to the predetermined server at an arbitrary timing.

そして、請求項6の発明に係る時刻同期制御プログラムは、端末のコンピュータにより実行可能な時刻同期制御プログラムであって、前記コンピュータに、ネットワークを介して所定のサーバに対して複数回のアクセスを実行し、アクセス毎に前記所定のサーバで計時されるサーバ時刻を取得する第1ステップと、計時手段で計時される内部時刻を参照して、アクセス毎に、前記所定のサーバに対してアクセスした時の第1内部時刻と前記第1ステップでサーバ時刻を取得した時の第2内部時刻とを取得する第2ステップと、前記第1ステップ、前記第2ステップでそれぞれ取得された時刻をアクセス別に記憶する第3ステップと、前記複数回のアクセスのうちで前記第3ステップで記憶した第1内部時刻と第2内部時刻とに基づいて前記所定のサーバに対するアクセス時の最短通信時間を決定する第4ステップと、前記第4ステップで決定された最短通信時間と前記第3ステップで記憶したサーバ時刻のうち前記決定された最短通信時間と同アクセス時のサーバ時刻とに基づいて当該サーバ時刻の近似時刻を取得する第5ステップと、前記第5ステップで取得された近時時刻から当該近時時刻と同アクセス時の前記第3ステップで記憶した第1内部時刻を差し引いてギャップ時間を取得する第6ステップと、前記計時手段で計時される内部時刻に前記第6ステップで取得されたギャップ時間を加算して前記サーバ時刻の同期時刻を計時する第7ステップと、を実行させることを特徴とするものである。 A time synchronization control program according to the invention of claim 6 is a time synchronization control program that can be executed by a computer of a terminal, and accesses the computer a plurality of times via a network. When the access is made to the predetermined server for each access with reference to the first step of acquiring the server time measured by the predetermined server for each access and the internal time measured by the time measuring means The second step of acquiring the first internal time and the second internal time when the server time is acquired in the first step, and the times acquired in the first step and the second step are stored for each access. And the predetermined step based on the first internal time and the second internal time stored in the third step of the plurality of accesses. A fourth step of determining the shortest communication time when accessing the server, the shortest communication time determined in the fourth step and the server time stored in the third step at the same time as the determined shortest communication time The fifth step of acquiring the approximate time of the server time based on the server time of the server and the third step stored in the third step of the same time as the recent time from the recent time acquired in the fifth step A sixth step of acquiring a gap time by subtracting one internal time, and a time of counting the synchronization time of the server time by adding the gap time acquired in the sixth step to the internal time measured by the time measuring means 7 steps are executed.

また、請求項7の発明は、請求項6において、イベントを実行する第8ステップと、前記第8ステップで実行されるイベントで記録すべき時刻を前記第7ステップで計時される同期時刻で記録し、その記録された時刻を任意のタイミングで前記所定のサーバに送信する第8ステップをさらに実行させるプログラムであってもよい。 The invention according to claim 7 is the invention according to claim 6, wherein the eighth step of executing the event and the time to be recorded by the event executed in the eighth step are recorded at the synchronous time measured in the seventh step. The program may further execute an eighth step of transmitting the recorded time to the predetermined server at an arbitrary timing.

そして、請求項8の発明に係るイベント制御システムは、ネットワークを介して端末と接続してイベント進行を管理するイベント制御システムであって、前記ネットワークを介して端末との間で断続的に通信を行いながらイベントの進行を制御するイベント制御手段と、前記イベントで用いるイベント時刻を計時する計時手段と、前記ネットワークを介して端末からイベント時刻を要求された場合に前記計時手段で計時されるイベント時刻を供給するサーバ時刻供給手段と、前記端末より前記イベント時刻にしたがって記録された情報を収集する収集手段と、を備えたことを特徴とするものである。 The event control system according to the invention of claim 8 is an event control system for managing event progress by connecting to a terminal via a network, and intermittently communicating with the terminal via the network. Event control means for controlling the progress of the event while performing, time measuring means for measuring the event time used in the event, and event time measured by the time measuring means when the event time is requested from the terminal via the network Server time supplying means for supplying information and collecting means for collecting information recorded from the terminal according to the event time.

また、請求項9の発明は、請求項8の発明において、前記収集手段は、サーバ自身が能動的に収集を行うか、前記端末から能動的に収集を行うかのいずれかであってもよい。 The invention according to claim 9 is the invention according to claim 8, wherein the collection means may be one in which the server itself actively collects or actively collects from the terminal. .

また、請求項10の発明は、請求項8または9において、前記イベント制御手段は、あらかじめ登録された複数の端末に対してイベントを制御するようにしてもよい。 Further, in the invention of claim 10 according to claim 8 or 9, the event control means may control an event for a plurality of pre-registered terminals.

また、請求項11の発明は、請求項8、9または10において、前記イベント制御手段は、多人数参加型ゲームの進行を制御するようにしてもよい。 Also, in the invention of claim 11 according to claim 8, 9 or 10, the event control means may control the progress of the multiplayer game.

そして、請求項12の発明に係るイベント制御方法は、ネットワークを介して端末と接続してイベント進行を管理するイベント制御方法であって、前記ネットワークを介して端末との間で断続的に通信を行いながらイベントの進行を制御する第1ステップと、前記イベントで用いるイベント時刻を計時する第2ステップと、前記ネットワークを介して端末からイベント時刻を要求された場合に前記第2ステップで計時されるイベント時刻を供給する第3ステップと、前記端末より前記イベント時刻にしたがって記録された情報を収集する第4ステップと、を含んだことを特徴とするものである。 An event control method according to a twelfth aspect of the present invention is an event control method for managing event progress by connecting to a terminal via a network, and intermittently communicating with the terminal via the network. The first step of controlling the progress of the event while performing, the second step of timing the event time used in the event, and the second step when the event time is requested from the terminal via the network A third step of supplying an event time and a fourth step of collecting information recorded according to the event time from the terminal are included.

そして、請求項13の発明に係るイベント制御プログラムは、ネットワークを介して端末と接続してイベント進行を管理するサーバのコンピュータにより実行されるイベント制御プログラムであって、前記コンピュータに、前記ネットワークを介して端末との間で断続的に通信を行いながらイベントの進行を制御する第1ステップと、前記イベントで用いるイベント時刻を計時する第2ステップと、前記ネットワークを介して端末からイベント時刻を要求された場合に前記第2ステップで計時されるイベント時刻を供給する第3ステップと、前記端末より前記イベント時刻にしたがって記録された情報を収集する第4ステップと、を実行させることを特徴とするものである。 An event control program according to a thirteenth aspect of the present invention is an event control program executed by a computer of a server that manages event progress by connecting to a terminal via a network, and is connected to the computer via the network. A first step for controlling the progress of the event while intermittently communicating with the terminal, a second step for measuring the event time used in the event, and the event time is requested from the terminal via the network. A third step for supplying the event time counted in the second step and a fourth step for collecting information recorded in accordance with the event time from the terminal. It is.

そして、請求項14の発明に係るイベント制御システムは、ネットワークを介してサーバと端末とを接続してイベント進行を管理するイベント制御システムであって、前記サーバにおいては、前記ネットワークを介して端末からの要求に応じて通信を行いながらイベントの進行に必要な情報を供給するイベント情報供給手段と、サーバ時刻を計時するサーバ計時手段と、前記ネットワークを介して端末からサーバ時刻を要求された場合に前記サーバ計時手段で計時されるサーバ時刻を供給するサーバ時刻供給手段と、前記端末より前記イベントで発生した情報とその情報を記録した時刻とを組み合わせた情報を収集する収集手段と、を備え、前記端末においては、内部時刻を計時する内部時刻計時手段と、前記イベント情報供給手段により供給された情報にしたがってイベントを実行するイベント実行手段と、前記サーバ時刻供給手段により供給されたサーバ時刻と当該サーバ時刻を要求して受信するまでの前記内部時刻計時手段に基づいて得られる通信時間とに基づいてサーバ時刻に近時させた近時時刻を計時する近時時刻計時手段と、前記近似時刻計時手段で計時される近似時刻に対応させて前記イベント実行手段で発生した情報を記録する情報記録手段と、前記収集手段の収集のために前記情報記録手段で記録された情報とその情報を記録した時刻とを組み合わせた情報を送信する情報送信手段と、を備えたことを特徴とするものである。 An event control system according to the invention of claim 14 is an event control system for managing an event progress by connecting a server and a terminal via a network, wherein the server includes a terminal from the terminal via the network. Event information supplying means for supplying information necessary for the progress of the event while performing communication in response to the request, server timing means for timing the server time, and when the server time is requested from the terminal via the network Server time supply means for supplying a server time measured by the server time measurement means, and a collection means for collecting information combining the information generated by the event and the time when the information was recorded from the terminal, In the terminal, the internal time keeping means for keeping the internal time is provided by the event information supply means. Event execution means for executing an event according to the received information, a server time supplied by the server time supply means, and a communication time obtained based on the internal time counting means until the server time is requested and received Information recording the information generated by the event execution means in correspondence with the approximate time measured by the approximate time measurement means A recording unit; and an information transmission unit configured to transmit information obtained by combining the information recorded by the information recording unit and the time when the information was recorded for collection by the collecting unit. It is.

また、請求項15の発明は、請求項14の発明において、前記イベント実行手段は、前記サーバとの間の非通信時にイベントを実行するようにしてもよい。 Further, in the invention of claim 15 according to the invention of claim 14, the event execution means may execute an event during non-communication with the server.

以上説明したように、本発明によれば、通信回線が遅い移動体無線通信のようなネットワークにおいて端末がサーバから供給される時刻に精度高く近時した時刻を計時することが可能である。 As described above, according to the present invention, in a network such as mobile wireless communication with a slow communication line, it is possible to measure the time when the terminal is close to the time supplied from the server with high accuracy.

以下、添付図面を参照して本発明に係る一実施の形態を詳述する。 Hereinafter, an embodiment according to the present invention will be described in detail with reference to the accompanying drawings.

まず、図1を用いて全体構成について説明する。本実施の形態においては、通信回線の遅いネットワークシステムのひとつとして、移動体通信ネットワークを例に挙げる。図1は本発明の一実施の形態による時刻同期システムを示す概略図である。本実施の形態による時刻同期システムは、たとえば図1に示したように、複数の携帯端末(携帯電話1を代表例とする)とサーバ5間を基地局2(代表)、移動体通信網3およびインターネット4を介して通信を行う構成である。   First, the overall configuration will be described with reference to FIG. In this embodiment, a mobile communication network is taken as an example as one of network systems with slow communication lines. FIG. 1 is a schematic diagram showing a time synchronization system according to an embodiment of the present invention. As shown in FIG. 1, for example, the time synchronization system according to the present embodiment includes a base station 2 (representative) and a mobile communication network 3 between a plurality of portable terminals (mobile phone 1 is a representative example) and a server 5. And it is the structure which communicates via the internet 4.

携帯電話1は、内部システムとして時刻を計時する内部時計11、本実施の形態による時刻同期システムを実現するアプリケーションMAPなどを備え、サーバ5は、時刻を計時するサーバ時計51、本実施の形態による時刻同期システムを実現するアプリケーションSAPなどを備えている。 The mobile phone 1 includes an internal clock 11 that measures time as an internal system, an application MAP that implements the time synchronization system according to the present embodiment, and the server 5 includes a server clock 51 that measures time, according to the present embodiment. An application SAP for realizing a time synchronization system is provided.

携帯電話1を含む複数の携帯電話は、それぞれアプリケーションMAPを起動させた後、ネットワーク(たとえば基地局2、移動体通信網3、インターネット4)を介してアプリケーションSAPで動作するサーバ5よりサーバ時計51で計時される時刻情報を複数回取得する。 A plurality of mobile phones including the mobile phone 1 activates the application MAP, and then the server clock 51 from the server 5 operating in the application SAP via the network (for example, the base station 2, the mobile communication network 3, the Internet 4). Get time information counted multiple times.

各携帯電話は、サーバ5から時刻情報を取得するとともに各回の通信で費やす通信時間を考慮して内部時計11で計時される時刻との比較からサーバ時刻を近似する。この近似された時刻と内部時計11で計時される時刻とを用いて携帯電話側の時刻をサーバ時計51で計時される時刻に同期させることが可能となる。 Each mobile phone obtains time information from the server 5 and approximates the server time from a comparison with the time measured by the internal clock 11 in consideration of the communication time spent in each communication. Using this approximated time and the time measured by the internal clock 11, the time on the mobile phone side can be synchronized with the time measured by the server clock 51.

つづいて図2〜図7を用いて構成や処理について詳述する。図2は本実施の形態による携帯電話の内部構成例を示すブロック図、図3は本実施の形態によるサーバの内部構成例を示すブロック図、図4は本実施の形態による時刻同期システムの機能を説明するブロック図、図5は本実施の形態による携帯電話側で記憶する内容を説明する図、図6は本実施の形態による携帯電話側で記憶する内容を説明する図、そして、図7は本実施の形態によるサーバ側で記憶する内容を説明する図である。   Next, the configuration and processing will be described in detail with reference to FIGS. 2 is a block diagram showing an example of the internal configuration of the mobile phone according to the present embodiment, FIG. 3 is a block diagram showing an example of the internal configuration of the server according to the present embodiment, and FIG. 4 is a function of the time synchronization system according to the present embodiment. FIG. 5 is a diagram for explaining contents stored on the mobile phone side according to the present embodiment, FIG. 6 is a diagram for explaining contents stored on the mobile phone side according to the present embodiment, and FIG. These are the figures explaining the contents memorized by the server side by this embodiment.

本実施の形態の携帯電話1は、たとえば図2に示したように、内部バス112に、通信処理部102、音声処理部105、CPU106、ROM107、RAM108、キー群110、ディスプレイ111、内部時計11などを接続させ、データ、アドレス信号、制御信号などを伝送させることで各種の処理を実現する構成である。 For example, as shown in FIG. 2, the mobile phone 1 according to the present embodiment includes a communication processing unit 102, a voice processing unit 105, a CPU 106, a ROM 107, a RAM 108, a key group 110, a display 111, and an internal clock 11. Etc. are connected to transmit various data, address signals, control signals, and the like.

通信処理部102は、アンテナ101に接続され、アンテナ101を介してあとえば基地局2と通信を行うものである。この通信処理部102により、音声通話やサーバ5との通信を実現することができる。音声処理部105は、音声出力のためのスピーカ103、音声入力のためのマイク104をそれぞれ接続させており、受話時や送話時の音声処理を行うものである。 The communication processing unit 102 is connected to the antenna 101 and communicates with the base station 2 via the antenna 101 later. With this communication processing unit 102, voice communication and communication with the server 5 can be realized. The voice processing unit 105 is connected to a speaker 103 for voice output and a microphone 104 for voice input, and performs voice processing during reception and transmission.

CPU106は、携帯電話1全体の制御をROM107に格納されたOSにしたがって行うものである。ROM107は、あらかじめインストールされているOSなどのプログラムを格納している。CPU106は、携帯用の各種アプリケーション(たとえばJAVA(登録商標)アプリケーション)により本実施の形態による時刻同期などの処理を制御する。また、このCPU106は、キー群110からの入力を受け付けて各種の処理を実行させたり、各種の処理に応じて表示を制御する。 The CPU 106 controls the entire mobile phone 1 according to the OS stored in the ROM 107. The ROM 107 stores programs such as an OS installed in advance. The CPU 106 controls processing such as time synchronization according to the present embodiment by various portable applications (for example, JAVA (registered trademark) application). In addition, the CPU 106 receives input from the key group 110 and executes various processes, and controls display according to the various processes.

RAM108は、本実施の形態による時刻同期を実現するためのアプリケーションMAP、各種処理を行うためのワークエリア109などを備えている。キー群110は、電話番号、アドレスなどの入力を行ったり、後述するイベント実行時の入力を行ったりするための各種キーを備えている。ディスプレイ111は、画面を表示したり、電話やメールの機能を使うときに表示画面を形成するものである。 The RAM 108 includes an application MAP for realizing time synchronization according to the present embodiment, a work area 109 for performing various processes, and the like. The key group 110 includes various keys for inputting a telephone number, an address, and the like, and for performing an input at the time of event execution described later. The display 111 forms a display screen when displaying a screen or using a telephone or mail function.

サーバ5は、たとえば図3に示したように、インターネット4に接続され、インターネット4を介して携帯電話との通信を制御したり、インターネット4に接続される各種端末との通信を制御する通信制御部501、サーバ全体の制御を司る制御部502、アプリケーションSAPを記憶するとともに、ワークエリアなどの領域を有する記憶部503、サーバ時刻を計時するサーバ時計51などを備えている。 For example, as shown in FIG. 3, the server 5 is connected to the Internet 4, controls communication with a mobile phone via the Internet 4, and controls communication with various terminals connected to the Internet 4. 501, a control unit 502 that controls the entire server, an application SAP, a storage unit 503 having an area such as a work area, a server clock 51 that counts server time, and the like.

そして機能においては、携帯電話1は、たとえば図4に示したように、内部時計11、サーバ時刻取得制御部12、サーバ時刻問い合わせ部13、サーバ時刻受信部14、内部時刻・サーバ時刻記憶部15、最短通信時間決定部16、サーバ時刻近似部17、ギャップ取得部18、イベント時刻計時部19、イベント実行およびイベント情報通信部20、イベント情報記録部21などにより構成される。   In terms of functions, the mobile phone 1 is, for example, as shown in FIG. 4, the internal clock 11, the server time acquisition control unit 12, the server time inquiry unit 13, the server time reception unit 14, the internal time / server time storage unit 15. The shortest communication time determination unit 16, the server time approximation unit 17, the gap acquisition unit 18, the event time counter 19, the event execution and event information communication unit 20, the event information recording unit 21, and the like.

一方、サーバ5は、たとえば図4に示したように、サーバ時計51、サーバ時刻問い合わせ受付部52、サーバ時刻読み出し部53、サーバ時刻送信部54、イベント実行情報供給部55、イベント情報収集部56、イベント情報分析部57などにより構成される。 On the other hand, for example, as shown in FIG. 4, the server 5 includes a server clock 51, a server time inquiry reception unit 52, a server time reading unit 53, a server time transmission unit 54, an event execution information supply unit 55, and an event information collection unit 56. The event information analysis unit 57 and the like.

以上の機能ブロックによれば、携帯電話1、サーバ5はそれぞれ内部時計11、サーバ時計51により時刻を計時していることが前提となる。携帯電話1において、まずサーバ時刻取得制御部12の制御によりサーバ時刻問い合わせ部13がサーバ5に対してサーバ時刻を要求する。   According to the functional blocks described above, it is assumed that the mobile phone 1 and the server 5 are measuring the time using the internal clock 11 and the server clock 51, respectively. In the cellular phone 1, first, the server time inquiry unit 13 requests the server 5 for the server time under the control of the server time acquisition control unit 12.

この問い合わせ時の内部時刻は、内部時計11より内部時刻・サーバ時刻記憶部15に供給され、記憶される。本実施の形態では、一例として3回(N=3)繰り返して問い合わせ(アクセス)を実施するので、問い合わせ時の内部時刻をIT1−n(n=1,2,3)とする。 The internal time at the time of this inquiry is supplied from the internal clock 11 to the internal time / server time storage unit 15 and stored therein. In this embodiment, as an example, an inquiry (access) is repeated three times (N = 3), so that the internal time at the time of inquiry is IT1-n (n = 1, 2, 3).

一方のサーバ5においては、サーバ時刻問い合わせ受付部52は、携帯電話1からの問い合わせを受け付けると、サーバ時刻読み出し部53によりサーバ時計51で計時されるサーバ時刻を読み出させる。サーバ時刻読み出し部53は、サーバ時計51より読み出したサーバ時刻をサーバ時刻送信部54に供給する。サーバ時刻送信部54は、携帯電話1に対してサーバ時刻を送信する。   In one server 5, when the server time inquiry reception unit 52 receives an inquiry from the mobile phone 1, the server time reading unit 53 reads the server time counted by the server clock 51. The server time reading unit 53 supplies the server time read from the server clock 51 to the server time transmission unit 54. The server time transmission unit 54 transmits the server time to the mobile phone 1.

携帯電話1において、サーバ時刻受信部14は、サーバ5より送信されるサーバ時刻を受信すると、その受信時の内部時刻が内部時計11を通じて内部時計・サーバ時刻記憶部15に供給される。このとき、問い合わせ時の内部時刻IT1−n(n=1,2,3)にそれぞれ対応するサーバ時刻の取得時における内部時刻をIT2−n(n=1,2,3)とする。なお、サーバ時刻は、アクセス毎にそれぞれST1、ST2、ST3とする。 In the mobile phone 1, when the server time receiving unit 14 receives the server time transmitted from the server 5, the internal time at the time of reception is supplied to the internal clock / server time storage unit 15 through the internal clock 11. At this time, let IT2-n (n = 1, 2, 3) be the internal time when obtaining the server time corresponding to the internal time IT1-n (n = 1, 2, 3) at the time of inquiry. The server time is ST1, ST2, and ST3 for each access.

内部時計・サーバ時刻記憶部15には、たとえば図5に示したように、アクセス回数に対応させて内部時刻とサーバ時刻とが記憶される。すなわち、第1回目のアクセスに対して問い合わせ時刻IT1−1、取得時の内部時刻IT2−1およびサーバ時刻ST1が記憶される。以下同様に、第2回目のアクセスに対して問い合わせ時刻IT1−2、取得時の内部時刻IT2−2およびサーバ時刻ST2が記憶される。第3回目のアクセスに対して問い合わせ時刻IT1−3、取得時の内部時刻IT2−3およびサーバ時刻ST3が記憶される。   For example, as shown in FIG. 5, the internal clock / server time storage unit 15 stores the internal time and the server time in correspondence with the number of accesses. That is, the inquiry time IT1-1, the internal time IT2-1 at the time of acquisition, and the server time ST1 are stored for the first access. Similarly, the inquiry time IT1-2, the internal time IT2-2 at the time of acquisition, and the server time ST2 are stored for the second access. Inquiry time IT1-3, internal time IT2-3 at the time of acquisition, and server time ST3 are stored for the third access.

内部時計・サーバ時刻記憶部15に3回分の内部時刻およびサーバ時刻が取得されると、最短通信時間決定部16は、内部時刻から最短通信時間DTminを決定する。すなわち、各アクセスについて、DT=(IT2−n)−(IT1−n)を算出し、最小値となったDTを最短通信時間DTminとして決定する。   When the internal time and server time for three times are acquired in the internal clock / server time storage unit 15, the shortest communication time determination unit 16 determines the shortest communication time DTmin from the internal time. That is, for each access, DT = (IT2-n)-(IT1-n) is calculated, and the DT having the minimum value is determined as the shortest communication time DTmin.

つづいてサーバ時刻近似部17は、サーバ時刻STnに最短通信時間DTmin/2を求め、これを同アクセス回数nのサーバ時刻STnに加算して時刻Tを得る。この時刻Tから同アクセス回数nの内部時刻IT1−nを減算することによりギャップ時間GAPを取得することができる。   Subsequently, the server time approximation unit 17 obtains the shortest communication time DTmin / 2 for the server time STn, and adds this to the server time STn for the same access count n to obtain the time T. The gap time GAP can be acquired by subtracting the internal time IT1-n of the same access count n from this time T.

イベント時刻計時部19は、このギャップ時間GAPを内部時計11の計時により得られる内部時刻ITに加算してイベント時刻を得て、IVTサーバ時計51で計時されるサーバ時刻STとの時刻同期を実現する。 The event time counter 19 adds the gap time GAP to the internal time IT obtained by measuring the internal clock 11 to obtain the event time, and realizes time synchronization with the server time ST timed by the IVT server clock 51. To do.

イベント時刻計時部19で計時されるイベント時刻IVTは、各携帯電話で実行するイベントの基準時刻となり、後にイベント実行結果すなわちイベント情報の発生時刻として扱われる。各携帯電話においてイベント時刻IVTをサーバ時刻STに近似させるようにしたので、携帯電話間のイベント実行時の基準時刻がほぼ一致することになる。   The event time IVT timed by the event time counter 19 is a reference time for an event executed by each mobile phone, and is later treated as an event execution result, that is, an event information generation time. Since the event time IVT is approximated to the server time ST in each mobile phone, the reference time at the time of event execution between the mobile phones is almost the same.

イベント実行およびイベント情報通信部20は、イベント時刻IVTにしたがってイベントを実行し、イベント情報記録部21にイベント時刻IVTを対応付けてイベント情報を記録する。   The event execution and event information communication unit 20 executes the event according to the event time IVT, and records the event information in association with the event time IVT in the event information recording unit 21.

たとえば3台の携帯電話A,B,Cでイベントを実行する場合、それぞれ図6(A)、(B)、(C)に示したように、イベント情報記録部21には記録対象の情報が発生した時のイベント時刻をその発生した情報に対応付けて記録することが可能である。たとえば、図6(A)には、携帯電話Aでイベント実行中に発生した情報DA1、DA2、DA3・・・に対応させてイベント時刻として10:03、10:12、10:21・・・が記録される。   For example, when an event is executed by three mobile phones A, B, and C, as shown in FIGS. 6 (A), (B), and (C), information to be recorded is stored in the event information recording unit 21. It is possible to record the event time when it occurs in association with the information that has occurred. For example, FIG. 6A shows the event times 10:03, 10:12, 10:21... Corresponding to the information DA1, DA2, DA3. Is recorded.

以下同様に、図6(B)には、携帯電話Bでイベント実行中に発生した情報DB1、DB2、DB3・・・に対応させてイベント時刻として10:06、10:12、10:25・・・が記録される。図6(C)には、携帯電話Cでイベント実行中に発生した情報DC1、DC2、DC3・・・に対応させてイベント時刻として10:06、10:11、10:20・・・が記録される。   Similarly, FIG. 6B shows the event times corresponding to information DB1, DB2, DB3,... Generated during the event execution on the mobile phone B as 10:06, 10:12, 10:25,・ ・ Is recorded. In FIG. 6C, 10:06, 10:11, 10:20... Are recorded as event times corresponding to information DC1, DC2, DC3. Is done.

イベント実行およびイベント情報通信部20は、イベント実行中もしくはイベント実行後に、イベント情報記録部21に記録されたイベント情報をサーバ5に送信する。サーバ5においては、イベント情報分析部56は、サーバ時刻STを参照してイベント情報収集部56で収集されたイベント情報を分析して、その分析結果をイベント実行情報供給部55に供給する。イベント実行情報供給部55は、サーバ時刻STを参照してイベント実行のための情報を携帯電話1のイベント実行およびイベント情報通信部20に供給する。   The event execution and event information communication unit 20 transmits the event information recorded in the event information recording unit 21 to the server 5 during or after the event execution. In the server 5, the event information analysis unit 56 analyzes the event information collected by the event information collection unit 56 with reference to the server time ST, and supplies the analysis result to the event execution information supply unit 55. The event execution information supply unit 55 refers to the server time ST and supplies information for event execution to the event execution and event information communication unit 20 of the mobile phone 1.

イベント情報収集部56に収集されたイベント情報はたとえば図7のように記録管理される。各携帯電話A,B、Cなどからそれぞれ収集されたイベント情報は、サーバ時刻に対応させて記録管理される。たとえば、イベントが10:00開始の場合には、10:00以降を5分刻みで各携帯電話A、B、Cのイベント情報を振り分けたものである。このようにして、ある程度の時間間隔でイベント情報の発生時刻の分布を知ることが可能となる。   The event information collected by the event information collection unit 56 is recorded and managed as shown in FIG. Event information collected from each mobile phone A, B, C, etc. is recorded and managed in correspondence with the server time. For example, when the event starts at 10:00, the event information of each mobile phone A, B, and C is distributed every 1 minute after 10:00. In this way, it is possible to know the distribution of the occurrence time of event information at a certain time interval.

本実施の形態におけるイベントとして、たとえばサーバ時刻を仮想空間内の基準時刻として進行させる大多数参加型ロールプレイングゲーム、たとえばサーバ時刻を携帯電話間の基準時刻としてユーザの操作時間を記録・集計するイベントなどが挙げられる。   As an event in the present embodiment, for example, a majority participation type role playing game in which server time is advanced as a reference time in the virtual space, for example, an event for recording / aggregating user operation time using server time as a reference time between mobile phones Etc.

つぎに図8、図9そして図10を用いて動作について説明する。図8は本実施の形態において携帯電話とサーバ間におけるイベント処理時の動作例を説明するフローチャート、そして、図9は本実施の形態において携帯電話とサーバ間の時刻同期処理を説明するフローチャートである。 Next, the operation will be described with reference to FIG. 8, FIG. 9, and FIG. FIG. 8 is a flowchart for explaining an example of operation during event processing between the mobile phone and the server in this embodiment, and FIG. 9 is a flowchart for explaining time synchronization processing between the mobile phone and the server in this embodiment. .

まず、複数の携帯電話を用いてイベントを実行するため、サーバ5のサーバ時刻に同期させる必要がある。携帯電話とサーバ5間には無線回線が介在するので、各携帯電話がサーバ5よりサーバ時刻を取得しても完全に時刻を一致させることは不可能である。そこで、各携帯電話でイベント時に基準となるイベント時刻は、サーバ時刻に近似させることで対処するものとする。   First, in order to execute an event using a plurality of mobile phones, it is necessary to synchronize with the server time of the server 5. Since a wireless line is interposed between the mobile phone and the server 5, even if each mobile phone acquires the server time from the server 5, it is impossible to match the time completely. Therefore, the event time that is a reference at the time of an event in each mobile phone is dealt with by approximating the server time.

携帯電話1を代表として説明すると、まずイベント処理を開始できるように事前準備として時刻同期処理が実行される(ステップS11)。このとき、サーバ5では、時刻同期処理に対応してサーバ時刻を供給する処理が実行される(ステップS21)。   When the mobile phone 1 is described as a representative, first, time synchronization processing is executed as advance preparation so that event processing can be started (step S11). At this time, in the server 5, the process which supplies server time corresponding to a time synchronous process is performed (step S21).

携帯電話1において、ステップS301の時刻同期処理が完了すると、サーバ時刻に同期させたイベント時刻にしたがってイベントが実行開始される(ステップS12)。このようにしてイベントが実行され、終了するまでは(ステップS13のNOルート)、記録すべきイベント情報が発生した時に(ステップS14のYESルート)、同期時刻であるイベント時刻に対応させてイベント情報がRAM108のワークエリア109に記録される(ステップS15)。   In the mobile phone 1, when the time synchronization process in step S301 is completed, the event starts to be executed according to the event time synchronized with the server time (step S12). Until an event is executed in this way and ends (NO route of step S13), when event information to be recorded occurs (YES route of step S14), the event information is associated with the event time that is the synchronization time. Is recorded in the work area 109 of the RAM 108 (step S15).

イベントが終了すると(ステップS13のYESルート)、ワークエリア109に記録されたイベント情報はサーバ5に送信される(ステップS16)。このとき、サーバ5では、各携帯電話から送信されるイベント情報が受信され、記憶部503のワークエリア504に記憶される(ステップS22)。なお、大量のイベント情報を扱う場合には、ワークエリア504に代わってデータベースを別途用意すればよい。   When the event ends (YES route in step S13), the event information recorded in the work area 109 is transmitted to the server 5 (step S16). At this time, the server 5 receives event information transmitted from each mobile phone and stores it in the work area 504 of the storage unit 503 (step S22). When handling a large amount of event information, a database may be prepared separately in place of the work area 504.

ここで、携帯電話1の時刻同期処理(ステップS11)とこれに対応するサーバ5の処理(ステップS21)について詳述する(図9参照)。まず携帯電話1においてアクセス回数のn(nは自然数)が1にセットされる(ステップS101)。そして、携帯電話1よりサーバ5に対してサーバ時刻の問い合わせが実行される(ステップS102)。   Here, the time synchronization process (step S11) of the mobile phone 1 and the process (step S21) of the server 5 corresponding thereto will be described in detail (see FIG. 9). First, n (n is a natural number) of the number of accesses in the mobile phone 1 is set to 1 (step S101). Then, an inquiry about the server time is executed from the mobile phone 1 to the server 5 (step S102).

これに対して、サーバ5では、時刻問い合わせを受付け(ステップS201)、サーバ時計51より問い合わせ時のサーバ時刻ST1が読み出され(ステップS20)、その読み出されたサーバ時刻ST1が問い合わせ元の携帯電話1に送信される(ステップS203)。   On the other hand, the server 5 receives the time inquiry (step S201), reads the server time ST1 at the time of inquiry from the server clock 51 (step S20), and the read server time ST1 is the mobile phone of the inquiry source. It is transmitted to the telephone 1 (step S203).

携帯電話1では、内部時計11により問い合わせ時の内部時刻が読み出され、その内部時刻はIT1−1としてワークエリア109に記憶される(ステップS103)。そして、サーバ5よりサーバ時刻ST1が受信されると、アクセス1回目として内部時刻IT1−1に対応させてサーバ時刻ST1が記憶される(ステップS104)。   In the mobile phone 1, the internal time at the time of inquiry is read by the internal clock 11, and the internal time is stored in the work area 109 as IT1-1 (step S103). When the server time ST1 is received from the server 5, the server time ST1 is stored corresponding to the internal time IT1-1 as the first access (step S104).

また、サーバ5よりサーバ時刻ST1が受信された時の内部時刻IT12−1が内部時計11から読み出され、アクセス1回目として対応付けて記憶される(ステップS105)。   Also, the internal time IT12-1 when the server time ST1 is received from the server 5 is read from the internal clock 11 and stored in association with the first access (step S105).

そして、アクセス回数が3回(N=3)に達したかどうかの判断がなされ(ステップS106)、達していなければ、nがひとつインクリメントされる(ステップS107)。この後、処理はステップS102に戻り、上述の処理が繰り返し実行される。   Then, it is determined whether or not the number of accesses has reached 3 (N = 3) (step S106). If not reached, n is incremented by one (step S107). Thereafter, the process returns to step S102, and the above-described process is repeatedly executed.

アクセス回数が3回(N=3)に達した場合には(ステップS106)、各アクセス時の通信往復時間の最短時間DTminが算出され、記憶される(ステップS108)。そして、この最短時刻DTminを2で割り、その結果に同アクセス時に取得されたサーバ時刻が加算されて時刻Tが得られる(ステップS109)。   When the number of accesses reaches 3 (N = 3) (step S106), the shortest time DTmin of the communication round trip time at each access is calculated and stored (step S108). Then, the shortest time DTmin is divided by 2, and the server time acquired at the time of the access is added to the result to obtain time T (step S109).

つづいて、時刻Tから同アクセス時の内部時刻IT1が減算されてギャップ時間GAPが求められ(ステップS110)、そのギャップGAPがRAM109に記憶される(ステップS111)。イベントが開始されると、このギャップ時間GAPが実時間の内部時刻ITに加算され、その結果がイベント時刻IVTとしてステップS15(図8参照)で使用される。   Subsequently, the internal time IT1 at the time of the access is subtracted from the time T to obtain the gap time GAP (step S110), and the gap GAP is stored in the RAM 109 (step S111). When the event is started, the gap time GAP is added to the real time internal time IT, and the result is used as the event time IVT in step S15 (see FIG. 8).

以上説明したように本実施の形態によれば、携帯電話とサーバ間の通信回線の遅延に着目し、複数の携帯電話間で基準とすべき時刻をサーバから供給されるサーバ時刻、携帯電話の内部時刻および遅延時間に基づいてサーバ時刻に近似させて得るようにしたので、携帯電話においてサーバから供給される時刻に精度高く近時した時刻を計時できるようになる。その結果、各携帯電話で記録されるイベント情報の発生時刻をほぼ同一の時刻で精度高く記録することが可能である。また、サーバにおいては、複数の携帯電話からイベント情報をサーバ時刻に精度高く近似させたイベント時刻にしたがって収集することが可能である。   As described above, according to the present embodiment, paying attention to the delay of the communication line between the mobile phone and the server, the server time supplied from the server as the reference time between the plurality of mobile phones, Since it is obtained by approximating the server time based on the internal time and the delay time, it becomes possible to measure the time that is close to the time supplied from the server in the mobile phone with high accuracy. As a result, it is possible to record the occurrence time of the event information recorded by each mobile phone with high accuracy at almost the same time. Further, in the server, it is possible to collect event information from a plurality of mobile phones according to the event time approximated to the server time with high accuracy.

さて、本実施の形態では、通信回線の遅いネットワークシステムのひとつとして、移動体通信ネットワークを例に挙げていたが、本発明はこれに限定されず、ADSLなどのシステムにも適用可能であることはいうまでもない。   In this embodiment, a mobile communication network is taken as an example of a network system with a slow communication line. However, the present invention is not limited to this and can be applied to a system such as ADSL. Needless to say.

本発明は、時刻同期制御装置、時刻同期制御方法、時刻同期制御プログラム、イベント制御システム、イベント制御方法およびイベント制御プログラムを製造する産業で利用される。 The present invention is used in industries that manufacture time synchronization control devices, time synchronization control methods, time synchronization control programs, event control systems, event control methods, and event control programs.

本発明の一実施の形態による時刻同期システムを示す概略図である。It is the schematic which shows the time synchronization system by one embodiment of this invention. 本実施の形態による携帯電話の内部構成例を示すブロック図である。It is a block diagram which shows the example of an internal structure of the mobile telephone by this Embodiment.

本実施の形態によるサーバの内部構成例を示すブロック図である。It is a block diagram which shows the internal structural example of the server by this Embodiment. 本実施の形態による時刻同期システムの機能を説明するブロック図である。It is a block diagram explaining the function of the time synchronization system by this Embodiment.

本実施の形態による携帯電話側で記憶する内容を説明する図である。It is a figure explaining the content memorize | stored by the mobile telephone side by this Embodiment. 本実施の形態による携帯電話側で記憶する内容を説明する図である。It is a figure explaining the content memorize | stored by the mobile telephone side by this Embodiment.

本実施の形態によるサーバ側で記憶する内容を説明する図である。It is a figure explaining the content memorize | stored by the server side by this Embodiment. 本実施の形態において携帯電話とサーバ間におけるイベント処理時の動作例を説明するフローチャートである。It is a flowchart explaining the operation example at the time of the event process between a mobile telephone and a server in this Embodiment.

本実施の形態において携帯電話とサーバ間の時刻同期処理を説明するフローチャートである。It is a flowchart explaining the time synchronous process between a mobile telephone and a server in this Embodiment.

符号の説明Explanation of symbols

1 携帯電話
5 サーバ
11 内部時計
12 サーバ時刻取得制御部
13 サーバ時刻問い合わせ部
14 サーバ時刻受信部
15 内部時刻・サーバ時刻記憶部
16 最短通信時間決定部
17 サーバ時刻近似部
18 ギャップ取得部
19 イベント時刻計時部
20 イベント実行およびイベント情報通信部
21 イベント情報記録部
51 サーバ時計
52 サーバ時刻問い合わせ受付部
53 サーバ時刻読み出し部
54 サーバ時刻送信部
55 イベント実行情報供給部
56 イベント情報収集部
57 イベント情報分析部
102 通信処理部
106 CPU
107 ROM
108 RAM
109 ワークエリア
110 キー群
111 ディスプレイ
501 通信制御部
502 制御部
503 記憶部
504 ワークエリア
MAP アプリケーション
SAP アプリケーション
DESCRIPTION OF SYMBOLS 1 Cellular phone 5 Server 11 Internal clock 12 Server time acquisition control part 13 Server time inquiry part 14 Server time reception part 15 Internal time and server time storage part 16 Shortest communication time determination part 17 Server time approximation part 18 Gap acquisition part 19 Event time Timekeeping unit 20 Event execution and event information communication unit 21 Event information recording unit 51 Server clock 52 Server time inquiry reception unit 53 Server time reading unit 54 Server time transmission unit 55 Event execution information supply unit 56 Event information collection unit 57 Event information analysis unit 102 communication processing unit 106 CPU
107 ROM
108 RAM
109 Work Area 110 Key Group 111 Display 501 Communication Control Unit 502 Control Unit 503 Storage Unit 504 Work Area MAP Application SAP Application

Claims (15)

時刻同期制御装置であって、
内部時刻を計時する計時手段と、
ネットワークを介して所定のサーバに対して複数回のアクセスを実行し、アクセス毎に前記所定のサーバで計時されるサーバ時刻を取得するサーバ時刻取得手段と、
前記計時手段で計時される内部時刻を参照して、アクセス毎に、前記所定のサーバに対してアクセスした時の第1内部時刻と前記サーバ時刻取得手段でサーバ時刻を取得した時の第2内部時刻とを取得する内部時刻取得手段と、
前記サーバ時刻取得手段、前記内部時刻取得手段でそれぞれ取得された時刻をアクセス別に記憶する記憶手段と、
前記複数回のアクセスのうちで前記記憶手段に記憶された第1内部時刻と第2内部時刻とに基づいて前記所定のサーバに対するアクセス時の最短通信時間を決定する最短通信時間決定手段と、
前記最短通信時間決定手段で決定された最短通信時間と前記記憶手段に記憶されたサーバ時刻のうち前記決定された最短通信時間と同アクセス時のサーバ時刻とに基づいて当該サーバ時刻の近似時刻を取得するサーバ時刻近似手段と、
前記サーバ時刻近似手段で取得された近時時刻から当該近時時刻と同アクセス時の前記記憶手段に記憶された第1内部時刻を差し引いてギャップ時間を取得するギャップ取得手段と、
前記計時手段で計時される内部時刻に前記ギャップ取得手段で取得されたギャップ時間を加算して前記サーバ時刻の同期時刻を計時する同期時刻計時手段と、
を備えたことを特徴とする時刻同期制御装置。
A time synchronization control device,
A time measuring means for measuring the internal time;
Server time acquisition means for executing a plurality of accesses to a predetermined server via a network and acquiring a server time counted by the predetermined server for each access;
With reference to the internal time measured by the time measuring means, the first internal time when the predetermined server is accessed and the second internal when the server time is acquired by the server time acquisition means for each access Internal time acquisition means for acquiring the time;
Storage means for storing the time acquired by the server time acquisition means and the internal time acquisition means for each access;
Shortest communication time determining means for determining the shortest communication time for accessing the predetermined server based on the first internal time and the second internal time stored in the storage means among the plurality of accesses;
Based on the shortest communication time determined by the shortest communication time determining means and the server time stored in the storage means and the determined shortest communication time and the server time at the time of access, an approximate time of the server time is obtained. A server time approximation means to obtain;
A gap acquisition means for acquiring a gap time by subtracting the first internal time stored in the storage means at the same time as the recent time from the recent time acquired by the server time approximation means;
Synchronous time measuring means for adding the gap time acquired by the gap acquiring means to the internal time measured by the time measuring means and measuring the synchronous time of the server time;
A time synchronization control device comprising:
イベントを実行する実行手段と、
前記実行手段で実行されるイベントで記録すべき時刻を前記同期時刻計時手段で計時される同期時刻で記録する時刻記録手段と、
をさらに備えたことを特徴とする請求項1に記載の時刻同期制御装置。
An execution means for executing the event;
Time recording means for recording the time to be recorded in the event executed by the execution means at the synchronous time measured by the synchronous time counting means;
The time synchronization control apparatus according to claim 1, further comprising:
前記時刻記録手段で記録された時刻を任意のタイミングで前記所定のサーバに送信する時刻送信手段をさらに備えたことを特徴とする請求項2に記載の時刻同期制御装置。 The time synchronization control apparatus according to claim 2, further comprising a time transmission unit that transmits the time recorded by the time recording unit to the predetermined server at an arbitrary timing. 時刻同期制御方法であって、
ネットワークを介して所定のサーバに対して複数回のアクセスを実行し、アクセス毎に前記所定のサーバで計時されるサーバ時刻を取得する第1ステップと、
計時手段で計時される内部時刻を参照して、アクセス毎に、前記所定のサーバに対してアクセスした時の第1内部時刻と前記第1ステップでサーバ時刻を取得した時の第2内部時刻とを取得する第2ステップと、
前記第1ステップ、前記第2ステップでそれぞれ取得された時刻をアクセス別に記憶する第3ステップと、
前記複数回のアクセスのうちで前記第3ステップで記憶した第1内部時刻と第2内部時刻とに基づいて前記所定のサーバに対するアクセス時の最短通信時間を決定する第4ステップと、
前記第4ステップで決定された最短通信時間と前記第3ステップで記憶したサーバ時刻のうち前記決定された最短通信時間と同アクセス時のサーバ時刻とに基づいて当該サーバ時刻の近似時刻を取得する第5ステップと、
前記第5ステップで取得された近時時刻から当該近時時刻と同アクセス時の前記第3ステップで記憶した第1内部時刻を差し引いてギャップ時間を取得する第6ステップと、
前記計時手段で計時される内部時刻に前記第6ステップで取得されたギャップ時間を加算して前記サーバ時刻の同期時刻を計時する第7ステップと、
を含んだことを特徴とする時刻同期制御方法。
A time synchronization control method,
A first step of executing a plurality of accesses to a predetermined server via a network, and acquiring a server time counted by the predetermined server for each access;
With reference to the internal time measured by the time measuring means, for each access, a first internal time when the predetermined server is accessed and a second internal time when the server time is acquired in the first step A second step of obtaining
A third step of storing the times acquired in the first step and the second step for each access;
A fourth step of determining a shortest communication time when accessing the predetermined server based on the first internal time and the second internal time stored in the third step among the plurality of accesses;
Based on the shortest communication time determined in the fourth step and the server time stored in the third step and the determined shortest communication time and the server time at the time of access, an approximate time of the server time is acquired. The fifth step;
A sixth step of obtaining a gap time by subtracting the first internal time stored in the third step at the same access time from the recent time obtained in the fifth step;
A seventh step of measuring the synchronization time of the server time by adding the gap time acquired in the sixth step to the internal time measured by the time measuring means;
A time synchronization control method comprising:
イベントを実行する第8ステップと、
前記第8ステップで実行されるイベントで記録すべき時刻を前記第7ステップで計時される同期時刻で記録し、その記録された時刻を任意のタイミングで前記所定のサーバに送信する第8ステップをさらに含んだことを特徴とする請求項4に記載の時刻同期制御方法。
An eighth step of executing the event;
An eighth step of recording a time to be recorded in the event executed in the eighth step at a synchronous time counted in the seventh step, and transmitting the recorded time to the predetermined server at an arbitrary timing; The time synchronization control method according to claim 4, further comprising:
端末のコンピュータにより実行可能な時刻同期制御プログラムであって、
前記コンピュータに、
ネットワークを介して所定のサーバに対して複数回のアクセスを実行し、アクセス毎に前記所定のサーバで計時されるサーバ時刻を取得する第1ステップと、
計時手段で計時される内部時刻を参照して、アクセス毎に、前記所定のサーバに対してアクセスした時の第1内部時刻と前記第1ステップでサーバ時刻を取得した時の第2内部時刻とを取得する第2ステップと、
前記第1ステップ、前記第2ステップでそれぞれ取得された時刻をアクセス別に記憶する第3ステップと、
前記複数回のアクセスのうちで前記第3ステップで記憶した第1内部時刻と第2内部時刻とに基づいて前記所定のサーバに対するアクセス時の最短通信時間を決定する第4ステップと、
前記第4ステップで決定された最短通信時間と前記第3ステップで記憶したサーバ時刻のうち前記決定された最短通信時間と同アクセス時のサーバ時刻とに基づいて当該サーバ時刻の近似時刻を取得する第5ステップと、
前記第5ステップで取得された近時時刻から当該近時時刻と同アクセス時の前記第3ステップで記憶した第1内部時刻を差し引いてギャップ時間を取得する第6ステップと、
前記計時手段で計時される内部時刻に前記第6ステップで取得されたギャップ時間を加算して前記サーバ時刻の同期時刻を計時する第7ステップと、
を実行させることを特徴とする時刻同期制御プログラム。
A time synchronization control program executable by a terminal computer,
In the computer,
A first step of executing a plurality of accesses to a predetermined server via a network, and acquiring a server time counted by the predetermined server for each access;
With reference to the internal time measured by the time measuring means, for each access, a first internal time when the predetermined server is accessed and a second internal time when the server time is acquired in the first step A second step of obtaining
A third step of storing the times acquired in the first step and the second step for each access;
A fourth step of determining a shortest communication time when accessing the predetermined server based on the first internal time and the second internal time stored in the third step among the plurality of accesses;
Based on the shortest communication time determined in the fourth step and the server time stored in the third step and the determined shortest communication time and the server time at the time of access, an approximate time of the server time is acquired. The fifth step;
A sixth step of obtaining a gap time by subtracting the first internal time stored in the third step at the same access time from the recent time obtained in the fifth step;
A seventh step of measuring the synchronization time of the server time by adding the gap time acquired in the sixth step to the internal time measured by the time measuring means;
A time synchronization control program characterized in that
イベントを実行する第8ステップと、
前記第8ステップで実行されるイベントで記録すべき時刻を前記第7ステップで計時される同期時刻で記録し、その記録された時刻を任意のタイミングで前記所定のサーバに送信する第8ステップをさらに実行させることを特徴とする請求項6に記載の時刻同期制御プログラム。
An eighth step of executing the event;
An eighth step of recording a time to be recorded in the event executed in the eighth step at a synchronous time counted in the seventh step, and transmitting the recorded time to the predetermined server at an arbitrary timing; The time synchronization control program according to claim 6, further executed.
ネットワークを介して端末と接続してイベント進行を管理するイベント制御システムであって、
前記ネットワークを介して端末との間で断続的に通信を行いながらイベントの進行を制御するイベント制御手段と、
前記イベントで用いるイベント時刻を計時する計時手段と、
前記ネットワークを介して端末からイベント時刻を要求された場合に前記計時手段で計時されるイベント時刻を供給するサーバ時刻供給手段と、
前記端末より前記イベント時刻にしたがって記録された情報を収集する収集手段と、
を備えたことを特徴とするイベント制御システム。
An event control system for managing event progress by connecting to a terminal via a network,
Event control means for controlling the progress of the event while intermittently communicating with the terminal via the network;
A time measuring means for measuring an event time used in the event;
Server time supply means for supplying an event time measured by the time measuring means when an event time is requested from a terminal via the network;
Collecting means for collecting information recorded according to the event time from the terminal;
An event control system comprising:
前記収集手段は、サーバ自身が能動的に収集を行うか、前記端末から能動的に収集を行うかのいずれかであることを特徴とする請求項8に記載のイベント制御システム。 9. The event control system according to claim 8, wherein the collection unit is one in which the server itself actively collects or actively collects from the terminal. 前記イベント制御手段は、あらかじめ登録された複数の端末に対してイベントを制御することを特徴とする請求項8または9に記載のイベント制御システム。 10. The event control system according to claim 8, wherein the event control unit controls an event for a plurality of terminals registered in advance. 前記イベント制御手段は、多人数参加型ゲームの進行を制御することを特徴とする請求項8、9または10に記載のイベント制御システム。 The event control system according to claim 8, 9 or 10, wherein the event control means controls the progress of a multiplayer game. ネットワークを介して端末と接続してイベント進行を管理するイベント制御方法であって、
前記ネットワークを介して端末との間で断続的に通信を行いながらイベントの進行を制御する第1ステップと、
前記イベントで用いるイベント時刻を計時する第2ステップと、
前記ネットワークを介して端末からイベント時刻を要求された場合に前記第2ステップで計時されるイベント時刻を供給する第3ステップと、
前記端末より前記イベント時刻にしたがって記録された情報を収集する第4ステップと、
を含んだことを特徴とするイベント制御方法。
An event control method for managing event progress by connecting to a terminal via a network,
A first step of controlling the progress of the event while intermittently communicating with the terminal via the network;
A second step of measuring the event time used in the event;
A third step of supplying an event time measured in the second step when an event time is requested from a terminal via the network;
A fourth step of collecting information recorded according to the event time from the terminal;
The event control method characterized by including.
ネットワークを介して端末と接続してイベント進行を管理するサーバのコンピュータにより実行されるイベント制御プログラムであって、
前記コンピュータに、
前記ネットワークを介して端末との間で断続的に通信を行いながらイベントの進行を制御する第1ステップと、
前記イベントで用いるイベント時刻を計時する第2ステップと、
前記ネットワークを介して端末からイベント時刻を要求された場合に前記第2ステップで計時されるイベント時刻を供給する第3ステップと、
前記端末より前記イベント時刻にしたがって記録された情報を収集する第4ステップと、
を実行させることを特徴とするイベント制御プログラム。
An event control program executed by a computer of a server that manages event progress by connecting to a terminal via a network,
In the computer,
A first step of controlling the progress of the event while intermittently communicating with the terminal via the network;
A second step of measuring the event time used in the event;
A third step of supplying an event time measured in the second step when an event time is requested from a terminal via the network;
A fourth step of collecting information recorded according to the event time from the terminal;
An event control program characterized in that
ネットワークを介してサーバと端末とを接続してイベント進行を管理するイベント制御システムであって、
前記サーバにおいては、
前記ネットワークを介して端末からの要求に応じて通信を行いながらイベントの進行に必要な情報を供給するイベント情報供給手段と、
サーバ時刻を計時するサーバ計時手段と、
前記ネットワークを介して端末からサーバ時刻を要求された場合に前記サーバ計時手段で計時されるサーバ時刻を供給するサーバ時刻供給手段と、
前記端末より前記イベントで発生した情報とその情報を記録した時刻とを組み合わせた情報を収集する収集手段と、
を備え、
前記端末においては、
内部時刻を計時する内部時刻計時手段と、
前記イベント情報供給手段により供給された情報にしたがってイベントを実行するイベント実行手段と、
前記サーバ時刻供給手段により供給されたサーバ時刻と当該サーバ時刻を要求して受信するまでの前記内部時刻計時手段に基づいて得られる通信時間とに基づいてサーバ時刻に近時させた近時時刻を計時する近時時刻計時手段と、
前記近似時刻計時手段で計時される近似時刻に対応させて前記イベント実行手段で発生した情報を記録する情報記録手段と、
前記収集手段の収集のために前記情報記録手段で記録された情報とその情報を記録した時刻とを組み合わせた情報を送信する情報送信手段と、
を備えたことを特徴とするイベント制御システム。
An event control system for managing event progress by connecting a server and a terminal via a network,
In the server,
Event information supply means for supplying information necessary for the progress of the event while performing communication in response to a request from the terminal via the network;
A server timing means for timing the server time;
Server time supply means for supplying a server time measured by the server time measuring means when a server time is requested from a terminal via the network;
Collection means for collecting information generated by combining the information generated in the event and the time at which the information was recorded from the terminal;
With
In the terminal,
An internal time measuring means for measuring the internal time;
Event execution means for executing an event according to the information supplied by the event information supply means;
A recent time which is made close to the server time based on the server time supplied by the server time supply means and the communication time obtained based on the internal time measuring means until the server time is requested and received. A timekeeping means for measuring a recent time;
Information recording means for recording information generated by the event execution means corresponding to the approximate time measured by the approximate time counting means;
Information transmitting means for transmitting information that is a combination of the information recorded by the information recording means and the time when the information was recorded for collection by the collecting means;
An event control system comprising:
前記イベント実行手段は、前記サーバとの間の非通信時にイベントを実行することを特徴とする請求項14に記載のイベント制御システム。

The event control system according to claim 14, wherein the event execution unit executes an event during non-communication with the server.

JP2003342092A 2003-09-30 2003-09-30 Apparatus for controlling time synchronization, method therefor, program therefor, and method for controlling event and program therefor Pending JP2005106696A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003342092A JP2005106696A (en) 2003-09-30 2003-09-30 Apparatus for controlling time synchronization, method therefor, program therefor, and method for controlling event and program therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003342092A JP2005106696A (en) 2003-09-30 2003-09-30 Apparatus for controlling time synchronization, method therefor, program therefor, and method for controlling event and program therefor

Publications (1)

Publication Number Publication Date
JP2005106696A true JP2005106696A (en) 2005-04-21

Family

ID=34536489

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003342092A Pending JP2005106696A (en) 2003-09-30 2003-09-30 Apparatus for controlling time synchronization, method therefor, program therefor, and method for controlling event and program therefor

Country Status (1)

Country Link
JP (1) JP2005106696A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013520948A (en) * 2010-02-22 2013-06-06 クアルコム,インコーポレイテッド Method and apparatus for time synchronization and measurement of distribution systems
US8825441B2 (en) 2007-03-28 2014-09-02 Fujitsu Limited Information processing apparatus and time measurement method
CN104460309A (en) * 2014-12-08 2015-03-25 陈昀 Method for time setting, calibrating and setting of timer through Internet of Things

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8825441B2 (en) 2007-03-28 2014-09-02 Fujitsu Limited Information processing apparatus and time measurement method
JP2013520948A (en) * 2010-02-22 2013-06-06 クアルコム,インコーポレイテッド Method and apparatus for time synchronization and measurement of distribution systems
KR20160013268A (en) * 2010-02-22 2016-02-03 퀄컴 인코포레이티드 Methods and apparatus for time synchronization and measurement of power distribution systems
US9271057B2 (en) 2010-02-22 2016-02-23 Qualcomm Incorporated Methods and apparatus for time synchronization and measurement of power distribution systems
KR101701099B1 (en) 2010-02-22 2017-01-31 퀄컴 인코포레이티드 Methods and apparatus for time synchronization and measurement of power distribution systems
CN104460309A (en) * 2014-12-08 2015-03-25 陈昀 Method for time setting, calibrating and setting of timer through Internet of Things

Similar Documents

Publication Publication Date Title
CN104978383B (en) A kind of method of data interchange, and data interchange equipment
US20130198264A1 (en) Method and device for synchronizing a clock between a server communication device and a client communication device
WO2014145728A2 (en) System and method of an event timing system having integrated geodetic timing points
CN103475392B (en) Information getting method, device and terminal
CN104185141A (en) Bluetooth beacon device based system and method for detecting stay time of user in area
CN106341713B (en) A kind of multimedia synchronous plays method, apparatus, system and terminal
CN107645682A (en) Carry out live method and system
CN106448714A (en) Synchronous playing method of playing devices, apparatus and system thereof
CN112540996A (en) Service data verification method and device, electronic equipment and storage medium
CN111158999B (en) Formatting time calculation method and device
CN111984606A (en) Data query method, device, terminal equipment and storage medium
CN108291954A (en) The establishment system and its control method of wave condition map
CN103324651B (en) Information processor, information processing system and information processing method
JP2005106696A (en) Apparatus for controlling time synchronization, method therefor, program therefor, and method for controlling event and program therefor
CN102232274A (en) Synchronization device, reception device, synchronization method, and reception method
JP2012211840A (en) Position information correction system
JP2001228271A (en) Clock device
CN114885412A (en) LTE frame offset value calculation method, device, system, equipment and storage medium
JP2012113504A (en) Communication terminal, control method and program thereof
CN109064248A (en) Order data synchronous method of calibration, device and equipment
WO2021244548A1 (en) Instant message processing method and device
JP5169173B2 (en) Information distribution system, information distribution method, and information distribution program
CN112688793B (en) Data packet obtaining method and device and electronic equipment
CN114579421A (en) Method and device for testing stuck-in state
CN106485583B (en) Data updating method and device

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20050112