JP5887231B2 - COMMUNICATION TERMINAL DEVICE, MESSAGE DISTRIBUTION SYSTEM, AND COMMUNICATION METHOD - Google Patents
COMMUNICATION TERMINAL DEVICE, MESSAGE DISTRIBUTION SYSTEM, AND COMMUNICATION METHOD Download PDFInfo
- Publication number
- JP5887231B2 JP5887231B2 JP2012196312A JP2012196312A JP5887231B2 JP 5887231 B2 JP5887231 B2 JP 5887231B2 JP 2012196312 A JP2012196312 A JP 2012196312A JP 2012196312 A JP2012196312 A JP 2012196312A JP 5887231 B2 JP5887231 B2 JP 5887231B2
- Authority
- JP
- Japan
- Prior art keywords
- maintenance interval
- connection maintenance
- communication
- connection
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Telephone Function (AREA)
- Telephonic Communication Services (AREA)
Description
本発明は、通信端末装置、メッセージ配信システム、及び通信方法に関し、例えば、WebSocketプロトコルを利用したプッシュ配信に関するものである。 The present invention relates to a communication terminal device, a message distribution system, and a communication method, for example, push distribution using a WebSocket protocol.
サーバからクライアント端末に、メッセージをプッシュ配信する方法として、SMS方式、WebSocket方式などがある。SMS方式については、例えば、特許文献1や非特許文献1に開示されている。
As a method for push-distributing a message from a server to a client terminal, there are an SMS method, a WebSocket method, and the like. The SMS method is disclosed in, for example,
一方、WebSocket方式は、非特許文献2に、IETFによりRFC6455として開示されている。WebSocket方式の規格策定時期は、2011年12月と比較的新しい。 On the other hand, the WebSocket method is disclosed in NPL 2 as RFC 6455 by IETF. The standard development time for the WebSocket method is relatively new as of December 2011.
一般にSMSは非特許文献1にあるように、通信事業者が提供するものであり、電話回線契約が必要であるため一般に料金が高い。一方、WebSocket方式は、電話回線契約が不要で、パケット通信費用のみであるためSMSに比べ低額である。この点で、WebSocket方式が注目されている。WebSocketは、接続を、通信を行う2者間で維持することを特徴とする方式である。例えば、WebSocket方式では、クライアント端末側からの接続要求に応じてサーバとの間で接続が確立され、その後サーバからのプッシュ配信が可能となる。
Generally, SMS is provided by a telecommunications carrier, as described in
プッシュ型配信方式においては、必ずしも即時性が保証されているわけではない。このため、サーバ側から移動体に設置したクライアント端末に対して、即時性のあるメッセージ送信が望まれる。即時性のあるメッセージを送るには、第1に接続を維持すること、第2に予期せぬ切断が発生しても即座に切断検知し、接続を再度行うこと、が必要である。 In the push delivery system, immediacy is not necessarily guaranteed. For this reason, immediate message transmission is desired from the server side to the client terminal installed in the mobile body. In order to send an immediate message, it is necessary to first maintain the connection, and secondly, to detect the disconnection immediately even if an unexpected disconnection occurs, and to connect again.
第1の要件に関し、メッセージ送信の際に経由するネットワーク装置の中には、非特許文献3に示すように、負荷軽減のため、無通信状態が一定時間に達すると切断を行うというアイドル切断の機能を備えているものがある。このような無通信状態継続による切断を防ぐため、送るべきメッセージが無くても無通信状態が一定時間経過すると接続維持のための接続維持信号を送付する。
Regarding the first requirement, some of the network devices that are used for message transmission, as shown in Non-Patent
第2の要件に関し、携帯電話回線上で利用する場合、電波不良のため、上記ネットワーク装置のアイドル切断の通知などを受け取れず、クライアントが切断に気付かないことが考えられる。また、携帯回線やWifiといったネットワーク種別変更に伴う切断にクラアイントが気付かないことが考えられる。当該課題に対する解決策として、接続維持信号に対する応答が一定期間無い場合に接続を切断する再送タイマを設ける方法がある。 Regarding the second requirement, when used on a mobile phone line, it is conceivable that the notification of disconnection of the network device is not received because the radio wave is poor, and the client does not notice the disconnection. In addition, it is conceivable that the client is not aware of the disconnection associated with the network type change such as the mobile line or the WiFi. As a solution to the problem, there is a method of providing a retransmission timer that disconnects the connection when there is no response to the connection maintenance signal for a certain period.
しかしながら、上述のような即時性のあるメッセージサービスを提供するプッシュ通信システムを開発するには、非常に多くの作業量が必要となってしまう。特に、次の3つ事項に関する作業量が課題である。 However, a very large amount of work is required to develop a push communication system that provides an immediate message service as described above. In particular, the amount of work related to the following three items is an issue.
(i)接続維持間隔の調査
顧客間で、又は同一顧客によって利用されているシステムにおいて、携帯回線またはWifi回線といったクライアント端末直結ネットワーク及びクラウド基盤網といったネットワーク構成要素のうち何れか1つでも変更されると、システム開発者は、その都度システム全体の接続維持間隔を調べ直す必要がある。ここで、基幹回線網(バックボーン)に関しては、上記要素より短いアイドルタイムアウトを設定している情報は公開されていないため、無いものとみなとして省略する。また、クラウド基盤を公開するためのインターネットサービスプロバイダ網もネットワーク構成要素の1つであるが、以降の実施形態の説明では、簡単のため省略するものとする。
(I) Connection maintenance interval survey In a system used between customers or by the same customer, any one of network components such as a client terminal direct connection network such as a mobile line or a WiFi line and a cloud infrastructure network is changed. Then, the system developer needs to reexamine the connection maintenance interval of the entire system each time. Here, regarding the backbone network (backbone), since information that sets an idle timeout shorter than the above elements is not disclosed, it is assumed that there is no information. An Internet service provider network for publishing the cloud infrastructure is also one of the network components. However, in the following description of the embodiments, it will be omitted for simplicity.
また、顧客の即時性(最大不通時間)要望値が変更された場合も、開発者は、その都度システム全体の接続維持間隔を調べ直す必要がある。 In addition, when the customer's immediacy (maximum downtime) desired value is changed, the developer needs to reexamine the connection maintenance interval of the entire system each time.
(ii)動的変更への対応
複数ネットワーク種別混在環境では、ネットワーク種別動的変更に対応できない。
(Ii) Response to dynamic change In an environment where multiple network types are mixed, network type dynamic change cannot be supported.
(iii)接続維持間隔の調査
特に、顧客の求める最大不通時間(即時性)に適合する接続維持間隔を調べるのに手間が掛かってしまう。
(Iii) Investigation of connection maintenance interval In particular, it takes time and effort to find a connection maintenance interval that matches the maximum interruption time (immediateness) required by the customer.
本発明はこのような状況に鑑みてなされたのであり、即時性のあるサービスを提供するプッシュ通信システムの開発に掛かる作業を軽減するための技術を提供するものである。 The present invention has been made in view of such circumstances, and provides a technique for reducing the work involved in the development of a push communication system that provides an immediate service.
上記課題を解決するために、本発明では、サーバ装置(配信装置)と通信端末装置(クライアント端末装置)との間で、WebSocketプロトコルを用いた、メッセージプッシュ配信が行われる。この通信においては、通信端末装置からサーバ装置に対しては、WebSocket接続維持のための信号が定期的に送信される。ここで、通信端末装置は、メモリに、少なくとも、携帯電話通信キャリア別の接続維持間隔情報と、クラウド基盤別の接続維持間隔情報と、利用者が利用するネットワークの構成要素を示す利用ネットワーク構成情報と、を保持している。そして、通信端末装置は、利用ネットワーク構成情報に基づいて、利用者が現在利用している携帯電話通信キャリアの接続維持間隔及びクラウド基盤の接続維持間隔を特定する接続維持間隔特定処理と、当該特定した携帯電話通信キャリアの接続維持間隔とクラウド基盤の接続維持間隔の何れが最小かを判定する最小接続維持間隔判定処理と、最小の接続維持間隔を用いてサーバ装置との通信接続を確立する接続確立処理と、を実行する。ここで、携帯電話通信キャリア別の接続維持間隔情報及びクラウド基盤別の接続維持間隔情報は書き換え不要の固定の情報であり、利用ネットワーク構成情報は利用者毎に設定される情報である。 In order to solve the above-described problem, in the present invention, message push delivery using the WebSocket protocol is performed between a server device (distribution device) and a communication terminal device (client terminal device). In this communication, a signal for maintaining the WebSocket connection is periodically transmitted from the communication terminal device to the server device. Here, the communication terminal device stores, in the memory, at least connection maintenance interval information for each mobile phone communication carrier, connection maintenance interval information for each cloud platform, and use network configuration information indicating network components used by the user. And hold. Then, the communication terminal device, based on the use network configuration information, the connection maintenance interval specifying process for specifying the connection maintenance interval of the mobile phone communication carrier currently used by the user and the connection maintenance interval of the cloud infrastructure, and the specification The minimum connection maintenance interval determination processing for determining which of the connection maintenance interval of the mobile phone communication carrier and the connection maintenance interval of the cloud infrastructure is the minimum, and the connection for establishing the communication connection with the server device using the minimum connection maintenance interval The establishment process is executed. Here, the connection maintenance interval information for each mobile phone communication carrier and the connection maintenance interval information for each cloud platform are fixed information that does not need to be rewritten, and the use network configuration information is information set for each user.
本発明によれば、即時性のあるサービスを提供するプッシュ通信システムの開発に掛かる作業を軽減することが可能となる。 According to the present invention, it is possible to reduce the work involved in developing a push communication system that provides an immediate service.
本発明に関連する更なる特徴は、本明細書の記述、添付図面から明らかになるものである。また、本発明の態様は、要素及び多様な要素の組み合わせ及び以降の詳細な記述と添付される特許請求の範囲の様態により達成され実現される。 Further features related to the present invention will become apparent from the description of the present specification and the accompanying drawings. The embodiments of the present invention can be achieved and realized by elements and combinations of various elements and the following detailed description and appended claims.
本明細書の記述は典型的な例示に過ぎず、本発明の特許請求の範囲又は適用例を如何なる意味に於いても限定するものではないことを理解する必要がある。 It should be understood that the description herein is merely exemplary and is not intended to limit the scope of the claims or the application of the invention in any way.
本発明は、例えば、WebSocketプロトコルを利用したプッシュ配信システムの開発に掛かる作業量を軽減するための技術を提供する。 The present invention provides a technique for reducing the amount of work required for development of a push delivery system using, for example, a WebSocket protocol.
本発明の各実施形態は、顧客間または同一顧客が利用しているネットワーク環境において、システム構成要素が変わった場合でもシステム全体の接続維持間隔を、全てのシステム構成要素について調べ直すことを不要とするものである。また、各実施形態は、電波が良好でない環境を含め、顧客の要望する時間内に即時性を確保するための作業量も軽減することである。 Each embodiment of the present invention eliminates the need to reexamine the connection maintenance interval of the entire system for all system components even when the system components change in a network environment between customers or used by the same customer. To do. In addition, each embodiment is to reduce the amount of work for ensuring immediacy within the time requested by the customer including an environment where radio waves are not good.
以下、添付図面を参照して本発明の実施形態について説明する。添付図面では、機能的に同じ要素は同じ番号で表示される場合もある。なお、添付図面は本発明の原理に則った具体的な実施形態と実装例を示しているが、これらは本発明の理解のためのものであり、決して本発明を限定的に解釈するために用いられるものではない。 Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the accompanying drawings, functionally identical elements may be denoted by the same numbers. The attached drawings show specific embodiments and implementation examples based on the principle of the present invention, but these are for understanding the present invention and are not intended to limit the present invention. Not used.
本実施形態では、当業者が本発明を実施するのに十分詳細にその説明がなされているが、他の実装・形態も可能で、本発明の技術的思想の範囲と精神を逸脱することなく構成・構造の変更や多様な要素の置き換えが可能であることを理解する必要がある。従って、以降の記述をこれに限定して解釈してはならない。 This embodiment has been described in sufficient detail for those skilled in the art to practice the present invention, but other implementations and configurations are possible without departing from the scope and spirit of the technical idea of the present invention. It is necessary to understand that the configuration and structure can be changed and various elements can be replaced. Therefore, the following description should not be interpreted as being limited to this.
更に、本発明の実施形態は、後述されるように、汎用コンピュータ上で稼動するソフトウェアで実装しても良いし専用ハードウェア又はソフトウェアとハードウェアの組み合わせで実装しても良い。 Furthermore, as will be described later, the embodiment of the present invention may be implemented by software running on a general-purpose computer, or may be implemented by dedicated hardware or a combination of software and hardware.
以後の説明では「テーブル」によって本発明の各情報について説明するが、これら情報は必ずしもテーブルによるデータ構造で表現されていなくても良く、リスト、DB、キュー等のデータ構造やそれ以外で表現されていても良い。そのため、データ構造に依存しないことを示すために「テーブル」、「リスト」、「DB」、「キュー」等について単に「情報」と呼ぶことがある。 In the following explanation, each information of the present invention will be explained by “table”. However, these information may not necessarily be represented by a data structure of a table, but may be represented by a data structure such as a list, a DB, a queue, or the like. May be. Therefore, “table”, “list”, “DB”, “queue”, etc. may be simply referred to as “information” to indicate that they do not depend on the data structure.
また、各情報の内容を説明する際に、「識別情報」、「識別子」、「名」、「名前」、「ID」という表現を用いることが可能であり、これらについてはお互いに置換が可能である。 In addition, when explaining the contents of each information, the expressions “identification information”, “identifier”, “name”, “name”, “ID” can be used, and these can be replaced with each other. It is.
以下では「・・・部」を主語(動作主体)として本発明の実施形態における各処理について説明を行うが、各「・・・部」はプログラムによって構成するようにしても良い。この場合、プログラムはプロセッサによって実行されることで定められた処理をメモリ及び通信ポート(通信制御装置)を用いながら行うため、プロセッサを動作主体として説明してもよい。また、プログラムを主語として開示された処理は管理サーバ等の計算機、情報処理装置が行う処理としてもよい。プログラムの一部または全ては専用ハードウェアで実現してもよく、また、モジュール化されていても良い。各種プログラムはプログラム配布サーバや記憶メディアによって各計算機にインストールされてもよい。 In the following, each process in the embodiment of the present invention will be described with “... Part” as a subject (operation subject), but each “... Part” may be configured by a program. In this case, since the program performs processing determined by being executed by the processor using the memory and the communication port (communication control device), the processor may be described as the operation subject. Further, the processing disclosed with the program as the subject may be processing performed by a computer such as a management server or an information processing apparatus. Part or all of the program may be realized by dedicated hardware, or may be modularized. Various programs may be installed in each computer by a program distribution server or a storage medium.
(1)第1の実施形態
第1の実施形態は、ネットワーク構成要素の静的な変更への対応を軽減するためのものである。
(1) 1st Embodiment 1st Embodiment is for reducing the response | compatibility to the static change of a network component.
<適用場面>
図1は、第1の実施形態を適用する場面を示す図である。図1A乃至Cは、それぞれ、携帯キャリアAのみを利用する場合、携帯キャリアBのみを利用する場合、顧客構内でWifi網のみを利用する場合の模式図である。上述のとおり、顧客間で、又は同一顧客によって利用されているシステムでは、このようなネットワーク構成要素は、変更されることがあり得る。
<Application scene>
FIG. 1 is a diagram illustrating a scene in which the first embodiment is applied. FIGS. 1A to 1C are schematic diagrams respectively when only the mobile carrier A is used, when only the mobile carrier B is used, and only the WiFi network is used on the customer premises. As mentioned above, in a system that is utilized between customers or by the same customer, such network components may change.
図1Aによる場面では、管理者端末装置1は、インターネット4を介して配信装置2と接続されている。また、配信装置2は、インターネット4及び携帯キャリアA網102を介して移動体101の中のクライアント端末装置3と接続されている。この移動体101の中のクライアント端末装置3は、顧客α構内103または顧客α構外104にあり、配信装置2と携帯キャリアA網102を使って通信する。
In the scene according to FIG. 1A, the
図1Bによる場面では、管理者端末装置1は、インターネット4を介して配信装置2と接続されている。また、配信装置2は、インターネット4及び携帯キャリアB網105を介して移動体101の中のクライアント端末装置3と接続されている。この移動体101の中のクライアント端末装置3は、顧客β構内106または顧客β構外107にあり、配信装置2と携帯キャリアB網105を使って通信する。
In the scene according to FIG. 1B, the
図1Cによる場面では、管理者端末装置1は、インターネット4を介して配信装置2と接続されている。また、配信装置2は、インターネット4及び顧客宅内のLANも含むWifi網6が接続されている。そして、顧客γ構内108内の移動体101の中のクライアント端末装置3は、Wifi網6を通じて配信装置2と通信を行う。顧客γ構外109では通信手段はない。
In the scene according to FIG. 1C, the
上述したように、図1Aで動作しているシステムを図1Bの場面で動作できるようにするためには、システムを変更する必要がある(ネットワーク構成要素の静的な変更)。このシステム変更を実現する場合、システム全体の接続維持間隔をあらゆる手段を尽くして調べなければならない。 As described above, in order to be able to operate the system operating in FIG. 1A in the scene of FIG. 1B, it is necessary to change the system (static change of network components). When implementing this system change, the connection maintenance interval of the entire system must be examined by every means.
しかし、この接続維持間隔の調査については作業量が多くなってしまう場合があり、この作業量を軽減できるような工夫が必要である。 However, there is a case where the amount of work increases in the investigation of the connection maintenance interval, and a device that can reduce the amount of work is necessary.
そこで、第1の実施形態では、このようなネットワーク構成要素を静的に変更する際の作業量を軽減するための構成を提供する。 Therefore, the first embodiment provides a configuration for reducing the amount of work when statically changing such network components.
<配信システムの構成>
図2は、本発明の第1の実施形態による配信システム概略構成を示す図である。
第1の実施形態による配信システムは、少なくとも1つの管理者端末装置1と、少なくとも1つの配信装置2と、少なくとも1つのクライアント端末装置3と、を有し、管理者端末装置1と配信装置2はインターネット4を介して接続され、配信装置2とクライアント端末装置3は携帯電話網5及びWifi網6を介して接続されている。
<Configuration of distribution system>
FIG. 2 is a diagram showing a schematic configuration of a distribution system according to the first embodiment of the present invention.
The distribution system according to the first embodiment includes at least one
管理者端末装置1は、CPU11A及びメモリ11Bを含む端末装置11と、通信ポート12と、外部記憶装置13と、を有している。外部記憶装置13は、管理者からのメッセージの送信などの操作を配信装置2に対して命令するための管理者操作送信部13Aと、送信結果などを表示するための表示処理部13Bと、を有している。なお、管理者操作送信部13A及び表示処理部13Bはプログラムとして格納されており、CPU11Aがこれらのプログラムを実行して、それぞれの機能を実現している。
The
配信装置2は、CPU21A及びメモリ21Bを含む端末装置21と、通信ポート22と、外部記憶装置23と、を有している。外部記憶装置23は、管理者操作の応答を管理者端末装置に返すための管理者操作応答部23Aと、同装置内の処理を取りまとめるサーバ管理部23Bと、WebSocketでメッセージ送付するためのWebSocketサーバ側通信部23Cと、を有している。サーバ管理部23Bは、よく送付する内容を保存する送信内容リストテーブル23B1と、クライアント端末装置3の情報を保存する送信先端末リストテーブル23B2とを有している。なお、管理者操作応答部23A、サーバ管理部23B、及びWebSocketサーバ側通信部23Cはプログラムとして格納されており、CPU21Aがこれらのプログラムを実行して、それぞれの機能を実現している。
The
クライアント端末装置3は、CPU31A及びメモリ31Bを含む端末装置31と、通信ポート32と、外部記憶装置33と、を有している。外部記憶装置33は、クライアント端末装置内の処理を取りまとめるクライアント管理部33Aと、WebSocketで通信を行うためのWebSocketクライアント側通信部33Bと、配信装置から配信されたメッセージを表示するための表示処理部33Cと、クライアント端末装置3が利用するネットワークが携帯電話網の場合に接続を行う携帯回線接続部33Dと、クライアント端末装置3が利用するネットワークがWifiである場合にWifi網を検索しさらに接続を行うWifi検索・接続部33Eと、を有している。なお、クライアント管理部33A、WebSocketクライアント側通信部33B、表示処理部33C、携帯回線接続部33D、及びWifi検索・接続部33Eはプログラムとして格納されており、CPU31Aがこれらのプログラムを実行して、それぞれの機能を実現している。
The
<WebSocketサーバ側通信部の機能>
図3は、WebSocketサーバ側通信部23Cの機能構成を示す図である。
WebSocketサーバ側通信部23Cは、WebSocketクライアント側通信部33Bからの接続・切断要求に対して応答するための接続・切断応答部23C1と、WebSocketクライアント側通信部33BからのWebSocket接続維持のためのパケットに対する応答を送信するための接続維持信号応答部23C2と、メッセージ送信を行うメッセージ送信部23C3と、を有している。
<Function of WebSocket server side communication unit>
FIG. 3 is a diagram illustrating a functional configuration of the WebSocket server
The WebSocket server
<WebSocketクライアント側通信部の機能>
図4は、WebSocketクライアント側通信部33Bの機能構成を示す図である。
WebSocketクライアント側通信部33Bは、WebSocketサーバ側通信部23Cに対して接続・切断を要求する接続・切断部33B1と、WebSocket接続維持部33B2と、メッセージ受信部33B3と、を有している。
<Functions of the WebSocket client side communication unit>
FIG. 4 is a diagram illustrating a functional configuration of the WebSocket client
The WebSocket client
接続・切断部33B1は、クライアント端末装置3が利用するネットワークが携帯電話網の場合の接続先の情報を格納するための携帯回線接続先テーブル33B100と、クライアント端末装置3が利用するネットワークがWifi網の場合の接続先の情報を格納するためのWifi接続先テーブル33B101と、を保持している。ここで、携帯回線接続先テーブル33B100は、接続先アドレスだけでなく、認証情報などその他の接続に必要な情報も記述しても良い。
The connection / disconnection unit 33B1 includes a mobile line connection destination table 33B100 for storing connection destination information when the network used by the
WebSocket接続維持部33B2は、WebSocketサーバ側通信部23Cに対して接続維持信号を送信するための接続維持信号送信部33B200と、接続維持信号の応答が一定期間無い場合に接続を切断するための切断検知部33B201と、携帯キャリア網、Wifi網、クラウド基盤ネットワークといったネットワーク種別毎に必要な接続維持間隔を事前に格納しておくための、携帯キャリア別接続維持間隔テーブル33B202と、Wifi接続維持間隔テーブル33B203と、クラウド基盤別接続維持間隔テーブル33B204と、顧客が要望する最大不通時間を満たす、最大接続維持間隔を記すための最大接続維持間隔テーブル33B205と、切断検知部33B201が接続維持信号の応答が無い場合に行う再送間隔、再送上限回数をそれぞれ記している接続維持再送間隔テーブル33B206と、接続維持再送回数テーブル33B207と、利用するネットワーク構成要素を指定するための利用ネットワーク構成要素指定テーブル33B208と、を含んでいる。
The WebSocket connection maintaining unit 33B2 includes a connection maintaining signal transmitting unit 33B200 for transmitting a connection maintaining signal to the WebSocket server
なお、メッセージ送信部23C3及びメッセージ受信部33B3に関し、WebSocketは、サーバからクライアント側のみといった一方向の通信だけでなく、逆方向も含めた双方向を特徴とするプロトコルであり、これらは本来は送受信することのできる通信手段であるが、ここでは説明の簡便化のため、サーバからクライアント側のみの一方向であるかのように、記述する。 Regarding the message transmission unit 23C3 and the message reception unit 33B3, the WebSocket is a protocol characterized not only in one-way communication from the server to the client side but also in the bidirectional direction including the reverse direction. Although it is a communication means that can be used, it is described here as if it is only one direction from the server to the client side for the sake of simplicity of explanation.
<携帯回線接続先テーブル>
図5は、携帯回線接続先テーブル33B100の構成例を示す図である。
携帯回線接続先テーブル33B100は、接続先URL501と、認証用ユーザ名502と、認証用パスワード503と、を構成項目として有している。図5の例では、それぞれの項目に、address_a、usr_a、及びpw_aが設定されている。
<Mobile line connection table>
FIG. 5 is a diagram illustrating a configuration example of the mobile line connection destination table 33B100.
The mobile line connection destination table 33B100 includes a
<Wifi接続先テーブル>
図6は、Wifi接続先テーブル33B101の構成例を示す図である。
Wifi接続先テーブル33B101は、接続先URL601と、認証用ユーザ名602と、認証用パスワード603と、を構成項目として有している。図6の例では、それぞれの項目に、address_wifi_a、usr_wifi_a、pw_wifi_aが設定されている。
<WiFi connection destination table>
FIG. 6 is a diagram illustrating a configuration example of the WiFi connection destination table 33B101.
The WiFi connection destination table 33B101 includes a
<携帯キャリア別接続維持間隔テーブル>
図7は、携帯キャリア別接続維持間隔テーブル33B202の構成例を示す図である。
携帯キャリア別接続維持間隔テーブル33B202は、携帯キャリア701と、必要な接続維持間隔702と、を構成項目として有している。ここで、接続維持間隔とは、無通信時間の計測タイマ動作開始を回避するために必要な時間間隔を示す情報である。
<Connection maintenance interval table by mobile carrier>
FIG. 7 is a diagram illustrating a configuration example of the connection maintenance interval table 33B202 for each mobile carrier.
The mobile carrier connection maintenance interval table 33B202 includes a
図7では、例えば、必要な接続維持間隔702として、A社、B社、及びC社に対してそれぞれ、1800秒、2400秒、及び3000秒と設定されている。
In FIG. 7, for example, the necessary
<Wifi接続維持間隔テーブル>
図8は、Wifi接続維持間隔テーブル33B203の構成例を示す図である。
Wifi接続維持間隔テーブル33B203は、Wifi接続維持間隔801の情報を保持しており、その値は、例えば30秒と設定される。
<WiFi connection maintenance interval table>
FIG. 8 is a diagram illustrating a configuration example of the WiFi connection maintenance interval table 33B203.
The WiFi connection maintenance interval table 33B203 holds information on the WiFi
<クラウド基盤別接続維持間隔テーブル>
図9は、クラウド基盤別接続維持間隔テーブル33B204の構成例を示す図である。
クラウド基盤別接続維持間隔テーブル33B204は、クラウド基盤901と、必要な接続維持間隔902と、を構成項目として有している。図9の例では、例えば、a社、b社、及びc社に対してそれぞれ、600秒、1200秒、及び1800秒が設定されている。
<Connection maintenance interval table by cloud platform>
FIG. 9 is a diagram illustrating a configuration example of the cloud platform-specific connection maintenance interval table 33B204.
The cloud infrastructure connection maintenance interval table 33B204 includes a
<最大接続維持間隔テーブル>
図10は、最大接続維持間隔テーブル33B205の構成例を示す図である。
最大接続維持間隔テーブル33B205は、最大接続維持間隔1001の情報を保持しており、その値は、例えば900秒と設定される。この最大接続維持間隔1001は、クライアント端末装置3のユーザが設定した要望値である。
<Maximum connection maintenance interval table>
FIG. 10 is a diagram illustrating a configuration example of the maximum connection maintenance interval table 33B205.
The maximum connection maintenance interval table 33B205 holds information of the maximum
<接続維持再送間隔テーブル>
図11は、接続維持再送間隔テーブル33B206の構成例を示す図である。
接続維持再送間隔テーブル33B206は、接続維持再送間隔1101の情報を保持しており、その値は、例えば4秒と設定される。
<Connection maintenance retransmission interval table>
FIG. 11 is a diagram illustrating a configuration example of the connection maintenance retransmission interval table 33B206.
The connection maintenance retransmission interval table 33B206 holds information of the connection
<接続維持再送回数テーブル>
図12は、接続維持再送回数テーブル33B207の構成例を示す図である。
接続維持再送回数テーブル33B207は、接続維持再送回数1201の情報を保持しており、その値は、例えば2回と設定される。なお、本明細書では、本テーブルで指定の再送回数の再送を行い、図11の再送間隔待っても、接続維持信号の応答が返ってこない場合に切断とみなすものとする。
<Connection maintenance retransmission count table>
FIG. 12 is a diagram illustrating a configuration example of the connection maintenance retransmission number table 33B207.
The connection maintenance retransmission count table 33B207 holds information of the connection
<利用ネットワーク構成要素指定テーブル>
図13は、利用ネットワーク構成要素指定テーブル33B208の構成例を示すである。
利用ネットワーク構成要素指定テーブル33B208は、利用構成要素の項目名1301と、利用構成要素の内容1302と、を構成項目として有している。利用構成要素の項目名1301は、ネットワーク種別、携帯キャリア、クラウド基盤の情報で構成され、図13の例では、それぞれ携帯回線、A社、及びa社と設定されている。
<Used network component specification table>
FIG. 13 shows a configuration example of the use network component specification table 33B208.
The usage network component designation table 33B208 includes a usage
<クライアント端末装置の接続処理>
図14は、第1の実施形態によるクライアント端末装置3の接続処理を説明するためのフローチャートである。当該処理は、クライアント端末装置3が起動した時、又は以降で説明する意図せぬ切断を検知した後に実行される処理である。
<Client terminal device connection processing>
FIG. 14 is a flowchart for explaining connection processing of the
まず、WebSocketクライアント側通信部33Bは、携帯回線接続先テーブル33B100、及びWifi接続先テーブル33B101を読み込む(ステップ200)。
First, the WebSocket client
次に、WebSocketクライアント側通信部33Bは、携帯キャリア別接続維持間隔テーブル33B202と、Wifi接続維持間隔テーブル33B203と、クラウド基盤別接続維持間隔テーブル33B204と、最大接続維持間隔テーブル33B205と、を読み込む(ステップ201)。
Next, the WebSocket client
また、WebSocketクライアント側通信部33Bは、利用ネットワーク構成要素指定テーブル33B208で指定されている、ネットワーク種別と、携帯回線の場合さらに携帯キャリアと、クラウド基盤の情報を読み込む(ステップ202)。つまり、現在使用している環境についての情報が取得される。
In addition, the WebSocket client
WebSocketクライアント側通信部33Bは、各テーブルから、指定の携帯キャリアの接続維持間隔702またはWifi接続維持間隔801と、クラウド基盤の接続維持間隔902を取得する(ステップ203)。
The WebSocket client
そして、WebSocketクライアント側通信部33Bは、接続維持再送間隔テーブル33B206と、接続維持再送回数テーブル33B207を読み込む(ステップ204)。
Then, the WebSocket client
続いて、WebSocketクライアント側通信部33Bは、利用ネットワーク構成要素指定テーブル33B208を参照して、ネットワーク種別が携帯回線であるか調べる(ステップ205)。使用しているネットワークが携帯回線の場合には、処理はステップ206に移行する。使用しているネットワークが携帯回線ではない場合には、処理はステップ212に移行する。
Subsequently, the WebSocket client
ステップ206において、WebSocketクライアント側通信部33Bは、接続先として携帯回線接続先を採用する。(ステップ206)。
In
そして、WebSocketクライアント側通信部33Bは、携帯キャリアの接続維持間隔702、クラウド基盤の接続維持間隔902、最大接続維持間隔1001を比較し、携帯キャリアの接続維持間隔702が最小であるか調べる(ステップ207)。携帯キャリアの接続維持間隔702が最小である場合、処理はステップ211に移行し、最小ではない場合には、処理はステップ208に移行する。
Then, the WebSocket client
ステップ211において、WebSocketクライアント側通信部33Bは、接続維持間隔として、携帯キャリアの接続維持間隔702を採用する(ステップ211)。
In
一方、ステップ208においては、WebSocketクライアント側通信部33Bは、クラウド基盤の接続維持間隔902が最小であるか調べる(ステップ208)。クラウド基盤の接続維持間隔902が最小の場合には、処理はステップ209に移行し、最小でない場合には、ステップ210に移行する。
On the other hand, in
ステップ209において、WebSocketクライアント側通信部33Bは、接続維持間隔として、クラウド基盤の接続維持間隔902を採用する(ステップ209)。
In
ステップ210では、WebSocketクライアント側通信部33Bは、接続維持間隔として、最大接続維持間隔1001を採用する。
In
一方、ステップ212において、WebSocketクライアント側通信部33Bは、接続先としてWifi接続先を採用する。(ステップ212)。
On the other hand, in
そして、WebSocketクライアント側通信部33Bは、Wifiの接続維持間隔801、クラウド基盤の接続維持間隔902、最大接続維持間隔1001を比較し、Wifiの接続維持間隔801が最小であるか調べる(ステップ213)。Wifiの接続維持間隔801が最小である場合、処理はステップ217に移行し、最小ではない場合には、処理はステップ214に移行する。
Then, the WebSocket client
ステップ217において、WebSocketクライアント側通信部33Bは、接続維持間隔として、Wifiの接続維持間隔801を採用する(ステップ217)。
In
ステップ214においては、WebSocketクライアント側通信部33Bは、クラウド基盤の接続維持間隔902が最小であるか調べる(ステップ214)。クラウド基盤の接続維持間隔902が最小の場合には、処理はステップ215に移行し、最小でない場合には、ステップ216に移行する。
In
ステップ215において、WebSocketクライアント側通信部33Bは、接続維持間隔として、クラウド基盤の接続維持間隔902を採用する(ステップ215)。
In
ステップ216では、WebSocketクライアント側通信部33Bは、接続維持間隔として、最大接続維持間隔1001を採用する。
In
ステップ218では、WebSocketクライアント側通信部33Bの接続・切断部33B1が、これまでの処理で採用した接続先、接続維持間隔を利用して、配信装置2に接続する(ステップ218)。
In
<接続中の接続信号送付処理>
図15は、第1の実施形態による、接続中の接続信号送付処理を説明するためのフローチャートである。
<Connection signal sending process during connection>
FIG. 15 is a flowchart for explaining connection signal sending processing during connection according to the first embodiment.
まず、WebSocketクライアント側通信部33Bは、一定時間無通信状態か否か判断する(ステップ301)。一定時間無通信状態に該当する場合、処理はステップ303に移行し、該当しない場合には、処理はステップ302に移行する。
First, the WebSocket client
ステップ302では、WebSocketクライアント側通信部33Bは、無通信時間計測用変数をリセットし、再度、ステップ301において一定時間無通信状態となっているか判断する。
In
ステップ303では、WebSocketクライアント側通信部33Bは、無通信時間計測用変数をインクリメントする(ステップ303)。
In
また、WebSocketクライアント側通信部33Bは、無通信時間計測用変数が接続維持間隔(702又は801)に到達したか否か判断する(ステップ304)。接続維持間隔に到達していない場合には、処理はステップ301に移行し、到達している場合には、処理はステップ305に移行する。
Further, the WebSocket client
ステップ305では、WebSocketクライアント側通信部33B(接続維持信号送信部33B200)は、配信装置2に対して接続維持信号を送付する(ステップ305)。
In
さらに、WebSocketクライアント側通信部33Bは、配信装置2からの応答信号を受信する前に、接続維持再送間隔テーブル33B206に記述された接続維持再送間隔(再送時間間隔)1101が経過したか判断する(ステップ306)。接続維持再送間隔(再送時間間隔)1101が経過していない場合には、処理はステップ307に移行し、接続維持再送間隔(再送時間間隔)1101が経過している場合には、処理はステップ308に移行する。
Further, the WebSocket client
ステップ307では、WebSocketクライアント側通信部33Bは、再送回数をリセットし(ステップ307)、さらに、無通信時間計測用変数をリセットし(ステップ302)、処理をステップ301に移行させる。
In
ステップ308では、WebSocketクライアント側通信部33Bは、接続維持信号を再送し(ステップ308)、再送回数に1加算し(ステップ309)する。
In
そして、WebSocketクライアント側通信部33Bは、接続維持再送回数テーブル33B207に記述された再送回数の上限1201に達したか判断する(ステップ310)。上限に達した場合は、処理はステップ311に移行し、上限に達していない場合には、処理はステップ306に移行する。
Then, the WebSocket client
ステップ311では、WebSocketクライアント側通信部33Bは、当該接続の切断が意図しない切断である判断し、そのことを表すフラグを設定して、接続を切断する(ステップ311)。
In
<再接続処理>
図16は、第1の実施形態による、接続中に切断が起こった場合の再接続処理を説明するためのフローチャートである。
<Reconnection processing>
FIG. 16 is a flowchart for explaining reconnection processing when disconnection occurs during connection according to the first embodiment.
WebSocketクライアント側通信部33Bの接続・切断部33B1は、配信装置2との間に張られた接続を常に監視しており、切断が発生した場合に本処理を行う。
The connection / disconnection unit 33B1 of the WebSocket client
まず、接続・切断部33B1は、発生した切断が意図しない切断か否か判断する(ステップ351)。ここで、ステップ311により発生した切断であれば、意図しない切断であることを表すフラグが設定されており、そうでない正常な切断であれば本フラグは設定されていない。
First, the connection / disconnection unit 33B1 determines whether or not the generated disconnection is an unintended disconnection (step 351). Here, if it is the cutting | disconnection which generate | occur | produced by
意図しない切断である場合、接続・切断部33B1は、再度図14の接続処理を実行する(ステップ352)。ここで、図14の接続処理を再度行う際、既に読み込んでいるテーブルの読み込みは省略してもよい。 If the disconnection is not intended, the connection / disconnection unit 33B1 executes the connection process of FIG. 14 again (step 352). Here, when the connection process of FIG. 14 is performed again, reading of the already read table may be omitted.
意図する切断ではなく、正常な切断である場合(フラグが設定されていない場合)、処理は終了する。 If it is not intended disconnection but normal disconnection (when no flag is set), the process ends.
<開発が必要な要素>
図17は、本発明の実施形態によるシステムにおいて開発が必要な要素を示す図である。
(i)図17Aは、サーバ側で、顧客毎または同一顧客のネットワーク構成要件の変更に対応するために必要な開発部分を表す模式図である。本発明が無ければ、ネットワーク構成に変更があれば、サーバ(配信装置2)側のシステム全体を設計、開発する必要があるが、本発明によると、斜線部分、つまり、送信内容リストテーブル23B1及び送信先リストテーブル23B2のみ変更すれば、サーバ(配信装置2)側は、ネットワーク構成要件の変更に対処することができるようになる。
<Elements that need to be developed>
FIG. 17 is a diagram showing elements that need to be developed in the system according to the embodiment of the present invention.
(I) FIG. 17A is a schematic diagram showing a development part necessary for responding to a change in network configuration requirements for each customer or the same customer on the server side. Without the present invention, if there is a change in the network configuration, it is necessary to design and develop the entire system on the server (distribution apparatus 2) side. According to the present invention, the hatched portion, that is, the transmission content list table 23B1 and If only the transmission destination list table 23B2 is changed, the server (distribution apparatus 2) side can cope with a change in network configuration requirements.
(ii)図17Bは、クライアント側で、顧客毎または同一顧客のネットワーク構成要件の変更に対応するために必要な開発部分を表す模式図である。上述同様、本発明が無ければ、ネットワーク構成に変更があれば、クライアント側のシステム全体を設計、開発する必要があるが、本発明によると、斜線部分、つまり、接続回線接続先テーブル33B100、Wifi接続先テーブル33B101、Wifi接続維持間隔テーブル33B203、最大接続維持間隔テーブル33B205、利用ネットワーク構成要素指定テーブル33B208を変更すれば、クライアント側は、ネットワーク構成要件の変更に対処することができるようになる。なお、図17Bでは、WebSocketクライアント側通信部33Bにおいて、その都度開発が不要な33B200などの要素は省略されている。
(Ii) FIG. 17B is a schematic diagram showing a development part necessary for responding to a change in network configuration requirements for each customer or the same customer on the client side. As described above, if the present invention is not present and the network configuration is changed, it is necessary to design and develop the entire system on the client side. By changing the connection destination table 33B101, the WiFi connection maintenance interval table 33B203, the maximum connection maintenance interval table 33B205, and the use network component designation table 33B208, the client side can cope with changes in network configuration requirements. In FIG. 17B, elements such as 33B200 that need not be developed each time are omitted in the WebSocket client
<サーバ側のメッセージ送信処理>
図18は、サーバ(配信装置2)側で実行されるメッセージ送信処理を説明するためのフローチャートである。
<Message transmission processing on the server side>
FIG. 18 is a flowchart for explaining message transmission processing executed on the server (distribution apparatus 2) side.
WebSocketサーバ側通信部23Cは、クライアントの状態がメッセージ送信してもOKか否か判断する(ステップ401)。ここでクライアントの状態とは、配信装置2とクライアント端末装置3との接続が確立・維持されていれば「OK」となり、切断状態であれば「NG」となる変数である。状態がNGであれば、処理はステップ402に移行し、状態がOKであれば、処理はステップ403に移行する。
The WebSocket server
ステップ402において、WebSocketサーバ側通信部23Cは、送信不可を管理者端末装置1に返却する(ステップ402)。
In
ステップ403において、WebSocketサーバ側通信部23Cは、メッセージをクライアント端末装置3に送信する。
In
<送信設定画面例>
図19は、管理者端末装置1の表示部に表示される設定画面(GUI)の例を示す図である。図19Aは送信先端末一覧画面例を示し、図19Bは送信内容一覧画面例を示している。図19Cは、送信設定画面例を示している。
<Send setting screen example>
FIG. 19 is a diagram illustrating an example of a setting screen (GUI) displayed on the display unit of the
(i)図19Aに示されるように、送信先端末一覧画面は、クライアント端末装置3を一意に特定・識別するための端末ID1901と、対応するクライアント端末装置3の利用者を示す利用者1902と、対応するクライアント端末装置3の状態を示す状態1903と、を構成要素として有している。
(I) As illustrated in FIG. 19A, the transmission destination terminal list screen includes a
管理者は、この画面を表示部に表示させ、状態1903がOKとなっているクライアント端末装置3の中から、メッセージを送信したいものを選択して、配信装置2にメッセージ送信を指示することができるようになっている。
The administrator can display this screen on the display unit, select the
(ii)図19Bに示されるように、送信内容一覧画面は、送信メッセージを一意に特定・識別するための送信内容ID1904と、メッセージの内容を示す送信内容1905と、を構成要素として有している。
(Ii) As shown in FIG. 19B, the transmission content list screen has a
管理者は、予め用意されている送信内容1905の中から所望のものと選択して、配信装置2が選択したクライアント端末装置3に選択したメッセージを送信するように指示することができる。送信内容1905は、説明の簡単化のため、ここでは固定としているが、その限りではない。従って、所望のメッセージが送信内容一覧画面にない場合には、図示しないメッセージ作成画面を表示し、管理者は所望のメッセージを作成することができるようにしても良い。
The administrator can select a desired one from
(iii)図19Cに示される送信設定画面では、送信端末設定と送信コンテンツ設定が1つの画面内の選択操作で行うことができるようになっている。なお、図19Bと同様に、送信コンテンツ(送信内容)は、予め固定でなくても良い。 (Iii) In the transmission setting screen shown in FIG. 19C, the transmission terminal setting and the transmission content setting can be performed by a selection operation in one screen. As in FIG. 19B, the transmission content (transmission content) does not have to be fixed in advance.
(2)第2の実施形態
第2の実施形態は、複数種類のネットワークが混在する環境において、ネットワークの種類が動的に変更した場合に容易に対応できるようにするための技術を提供する。
(2) Second Embodiment The second embodiment provides a technique for easily dealing with a case where the network type is dynamically changed in an environment where a plurality of types of networks are mixed.
<適用場面>
図20は、第2の実施形態の適用場面を示すための模式図である。
図20は、顧客構内でWifi網を利用し、顧客構外で携帯回線網を利用する場面を示している。この適用場面では、顧客構内から、顧客構外に移動時に、動的にネットワーク構成要素の変更が生じる。第2の実施形態は、この動的なネットワーク構成の変更に対応できるようにするシステムを提供するものである。
<Application scene>
FIG. 20 is a schematic diagram for illustrating an application scene of the second embodiment.
FIG. 20 shows a scene in which the WiFi network is used on the customer premises and the mobile line network is used outside the customer premises. In this application situation, the network component changes dynamically when moving from the customer premises to the customer premises. The second embodiment provides a system that can cope with this dynamic network configuration change.
図20では、管理者端末装置1が、インターネット4を介して配信装置2と接続されている。配信装置2は、インターネット4を介して、携帯キャリアC網113、顧客宅内のLANも含むWifi網6と接続されている。移動体101が顧客δ構内111内にある場合、その中のクライアント端末装置3は、Wifi網6を介して配信装置2と通信を行う。一方、移動体101が顧客δ構外にある場合には、クライアント端末装置3は、携帯キャリアC網113を介して配信装置2と通信を行う。
In FIG. 20, the
<配信システムの構成>
図21は、本発明の第2の実施形態による配信システムの概略構成を示す図である。
第2の実施形態による配信システムは、第1の実施形態による構成に加えて、さらに、ネットワーク種別自動判定部33Fと、携帯キャリア自動判定部33Gとを、有している。
<Configuration of distribution system>
FIG. 21 is a diagram showing a schematic configuration of a distribution system according to the second embodiment of the present invention.
In addition to the configuration according to the first embodiment, the distribution system according to the second embodiment further includes a network type
ネットワーク種別自動判定部33Fは、クライアント端末装置3のOSが有している情報を参照して、どのネットワークを利用しているか判定する処理を行う。また、携帯キャリア自動判定部33Gは、ネットワーク種別自動判定部33Fによって、携帯キャリア網を利用していると判定された場合に、同OSの情報から、どのキャリアを利用しているかを判定する処理を実行する。その他の構成については、図2と同じであるため、説明は省略する。
The network type
<接続処理>
図22は、第2の実施形態による、クライアント端末装置3が実行する接続処理を説明するためのフローチャートである。第2の実施形態による当該接続処理は、クライアント端末装置3を起動したとき、或いは、意図せぬ切断が発生したとき、配信装置2との接続を確立する処理を実行する際に、ネットワーク種別自動判別、及びネットワーク種別が携帯回線の場合は携帯キャリア自動判別を行うというものである。
<Connection process>
FIG. 22 is a flowchart for explaining connection processing executed by the
図14との違いは、ステップ202及び203が変更されてステップ901及び902となり、新たにステップ903乃至906が追加されている。従って、以下では、これらのステップのみについて説明する。
The difference from FIG. 14 is that
ステップ901及びステップ902では、それぞれ、読み込み対象及び取得対象をクラウド基盤のみに変更されている。第2の実施形態では、利用ネットワークを自動的に判別しているため、必要な情報はクラウド基盤についての情報のみだからである。
In
ステップ903では、ネットワーク種別自動判別部33Fが、クライアント端末装置3のOSが保持している情報を参照し、ネットワーク種別の自動判別を行う。
In
ステップ904では、携帯キャリア自動判定部33Gが、同様に、クライアント端末装置3のOSが保持している情報を参照し、携帯キャリア自動判別を行う。
In
ステップ905では、WebSocketクライアント側通信部33Bが、該当する携帯キャリア接続維持間隔702(図7参照)を取得する。
In
ステップ906では、WebSocketクライアント側通信部33Bが、該当するWifi接続維持間隔801(図8参照)を取得する。
In
以上のような処理を実行することにより、動的なネットワーク構成の変更に対応して接続処理を実行することができるようになる。 By executing the processing as described above, connection processing can be executed in response to a dynamic network configuration change.
(3)第3の実施形態
第3の実施形態は、顧客の即時性(最大不通時間)要望値から、接続維持間隔を直接決める手段を提供する。
(3) Third Embodiment The third embodiment provides means for directly determining the connection maintenance interval from the customer's immediacy (maximum downtime) desired value.
第1及び第2の実施形態では、クライアント端末装置3の利用者は、所望の接続維持間隔として、最大接続維持間隔1001(図10)を設定入力する必要がある。この最大接続維持間隔は、利用者からは分かりづらい概念であり、不慣れな利用者は間違って設定しまう場合もある。
In the first and second embodiments, the user of the
そこで、本発明の第3の実施形態では、顧客から見て分かりやすい「最大不通時間」という観点から、接続維持間隔を決定する処理を行っていることに特徴がある。なお、配信システムの構成は、WebSocketクライアント側通信部33Bの内部構成以外は、図2と同じであるため、説明は省略する。
Therefore, the third embodiment of the present invention is characterized in that the process of determining the connection maintenance interval is performed from the viewpoint of “maximum downtime” that is easy to understand from the customer. The configuration of the distribution system is the same as that in FIG. 2 except for the internal configuration of the WebSocket client
<WebSocketクライアント側通信部の内部構成>
図23は、第3の実施形態による、WebSocketクライアント側通信部33Bの内部構成を示す図である。
<Internal configuration of WebSocket client side communication unit>
FIG. 23 is a diagram illustrating an internal configuration of the WebSocket client
第1の実施形態との違いは、顧客から見てより分かりやすい概念である最大不通時間を入力値とするため、WebSocketクライアント側通信部33Bが、最大接続維持間隔テーブル33B205の代わりに、最大不通時間テーブル33B209を有している点である。
The difference from the first embodiment is that the maximum disconnection time, which is a concept that is easier to understand from the customer's perspective, is used as an input value. Therefore, the WebSocket client
最大不通時間は、「最大接続維持間隔」に「最終送信時刻からの再送タイムアウト時間」を加算した値である。再送タイムアウト時間は、接続維持間隔後に実行される再送処理の間隔(再送間隔)×(接続維持再送上限回数+1)で表される値である。 The maximum disconnection time is a value obtained by adding “retransmission timeout time from the last transmission time” to “maximum connection maintenance interval”. The retransmission timeout time is a value represented by the interval of retransmission processing (retransmission interval) executed after the connection maintenance interval × (connection maintenance retransmission upper limit count + 1).
<接続処理>
図24は、第3の実施形態による、クライアント端末装置が実行する接続処理を説明するためのフローチャートである。第1の実施形態による接続処理(図14)との違いは、ステップ201を変更してステップ1101とし、ステップ1102を追加したことである。
<Connection process>
FIG. 24 is a flowchart for explaining connection processing executed by the client terminal device according to the third embodiment. The difference from the connection processing (FIG. 14) according to the first embodiment is that
ステップ1101では、WebSocketクライアント側通信部33Bは、携帯キャリア別接続維持間隔テーブル33B202と、Wifi接続維持間隔テーブル33B203と、クラウド基盤別接続維持間隔テーブル33B204と、最大不通時間テーブル33B209を読み込む。最大不通時間テーブルには、利用者が設定した最大不通時間要望値が記述されている。
In
ステップ1102では、WebSocketクライアント側通信部33Bは、最大不通時間要望値から、最大接続維持間隔要望値を導出する。ここで、不通時間が最大となるのは、定期的な接続維持信号の送信成功の直後に切断が発生した場合である。この場合、上述のように、最大不通時間は、接続維持信号送信間隔と、「最終送信時刻からの再送タイムアウト値」の和で表される。よって、ステップ1102では、接続維持再送間隔と接続維持再送上限回数に1を加算した値を乗じることで得られる「最終送信時刻からの再送タイムアウト値」を、「最大不通時間要望値」から差し引くことで、最大接続維持間隔が算出される。
In
以上のようにして、クライアント端末装置3が自動的にその「最大不通時間」を「最大接続維持間隔」に変換するので、利用者は、より分かりやすい「最大不通時間」の要望値を入力するだけでよく、適切に接続処理を実行することが可能となる。
As described above, since the
(4)変形例
(i)WebSocketプロトコルの代わりに、COMETと呼ばれるプロトコルでもよい。
(4) Modification (i) Instead of the WebSocket protocol, a protocol called COMET may be used.
(ii)上述の各実施形態では、電波不良のため、各ネットワーク装置のアイドル切断の通知などを受け取れず、クライアントが切断に気付かない問題に対する解決策としては、接続維持信号に対する応答が一定期間無い場合に接続を切断する再送タイマを設ける方法で解決を図っている。しかし、この代わりに、電波状況を監視することにより切断を判定したり、ネットワーク種別の変更を監視することにより切断を判定する手法を採ってもよい。 (Ii) In each of the above-described embodiments, there is no response to the connection maintenance signal for a certain period as a solution to the problem that the client is not aware of the disconnection due to a radio wave failure and cannot receive an idle disconnection notification of each network device. In this case, a solution is provided by providing a retransmission timer for disconnecting the connection. However, instead of this, a method may be employed in which disconnection is determined by monitoring the radio wave condition, or disconnection is determined by monitoring a change in the network type.
(iii)第2の実施形態を、ネットワーク構成要素の静的な変更の用途に使ってもよい。 (Iii) You may use 2nd Embodiment for the use of the static change of a network component.
(iv)第2の実施形態において、さらに変更されないことが分かっている場合には、自動判別の処理を省くため、自動判別対象の「ネットワーク種別」及び「携帯キャリア」の内、いずれかを固定値としてもよい。 (Iv) In the second embodiment, when it is known that there is no further change, in order to omit automatic discrimination processing, either “network type” or “mobile carrier” to be automatically discriminated is fixed. It may be a value.
(v)第3の実施形態において、動的に変更されるネットワーク種別のいずれか一方で、WebSocketではなくポーリング方式を採用してもよい。 (V) In the third embodiment, instead of WebSocket, a polling method may be adopted for any one of network types that are dynamically changed.
(5)まとめ
(i)本発明は、サーバ装置(配信装置)から通信端末装置(クライアント端末装置)にメッセージをWebSocketプロトコルでプッシュ送信するメッセージプッシュ配信システムに関する。当該システムにおいて、クライアント端末装置は、ネットワーク構成要素毎にネットワークの無通信タイマを回避するのに必要な接続維持間隔(携帯通信のキャリア別の接続維持間隔、クラウド基盤別の接続維持間隔、Wifi通信の接続維持間隔)の情報(システム改変時でも変更不要な固定の情報)を事前に保持しておき、利用する構成要素を指定するだけで全要素の無通信タイマを回避できるように接続維持間隔の最小値を、接続維持間隔として採用する。このようにすることにより、顧客間で又は同一顧客によって利用されているネットワーク構成において、システム構成要素が静的に変わった場合でもシステム全体の接続維持間隔を、システム構成要素すべてに関し調べ直すことが不要となる。また、接続に必要な情報をネットワーク種別毎に分けて管理する構成とすることで、ネットワーク種別の静的変更に伴う接続先変更の作業量が軽減される。なお、当該システムでは、クライアント端末装置は、自動車等の乗り物に設置して利用することを想定している。
(5) Summary (i) The present invention relates to a message push delivery system that pushes a message from a server device (distribution device) to a communication terminal device (client terminal device) using the WebSocket protocol. In the system, the client terminal device maintains a connection maintenance interval (connection maintenance interval for each carrier of mobile communication, connection maintenance interval for each cloud platform, WiFi communication) necessary for avoiding a network non-communication timer for each network component. Connection maintenance interval) information (fixed information that does not need to be changed even when the system is modified) in advance, and the connection maintenance interval can be avoided so that the no-communication timer can be avoided by simply specifying the components to be used. Is used as the connection maintenance interval. In this way, in the network configuration used between customers or by the same customer, even if the system components are statically changed, the connection maintenance interval of the entire system can be reviewed for all the system components. It becomes unnecessary. Also, by configuring the information necessary for connection separately for each network type, the amount of work for changing the connection destination accompanying the static change of the network type is reduced. In this system, it is assumed that the client terminal device is installed and used on a vehicle such as an automobile.
また、クライアント端末装置は、無通信となった後に一定期間、接続維持のための信号を配信装置に再送するが、それに対する応答が配信装置から無い場合に切断を行う再送タイマ手段と再接続を行う再接続手段を有している。これにより、電波が良好でない環境を含め一定の即時性を確保することができるようになる。 In addition, the client terminal device retransmits a signal for maintaining the connection to the distribution device for a certain period of time after the absence of communication, but reconnects with the retransmission timer means for disconnecting when there is no response from the distribution device. Reconnect means to perform. This makes it possible to ensure a certain level of immediacy including an environment where radio waves are not good.
接続維持間隔の最小値を取得する際、クライアント端末装置は、携帯通信のキャリア別の接続維持間隔、クラウド基盤別の接続維持間隔、及びWifi通信の接続維持間隔の他に、利用者が指定する最大接続維持時間間隔(最低でもこの程度の接続維持間隔は満足すべきとする利用者の要望値)を含めて、最小値を判断するようにしている。これにより、電波が良好でない環境を含め、顧客の要望する即時性を確保することができるようになる。 When acquiring the minimum value of the connection maintenance interval, the client terminal device specifies in addition to the connection maintenance interval for each carrier of mobile communication, the connection maintenance interval for each cloud platform, and the connection maintenance interval for WiFi communication. The minimum value is determined including the maximum connection maintenance time interval (the user's desired value that this connection maintenance interval should satisfy at least). Thereby, the immediacy requested by the customer can be ensured including the environment where the radio wave is not good.
本発明(第2の実施形態)では、クライアント端末装置は、携帯通信回線かWifiかといったネットワーク種別を、クライアント端末装置が有するOSの保持情報を参照することにより自動判定し、さらに、ネットワーク種別が携帯通信回線の場合には自動で通信キャリアを判別する。このようにすることにより、動的にネットワーク種別、携帯キャリアが変更された際に、その変更を検知して再接続し、自動でネットワーク構成を切り替えることができるようになる。この場合、接続先アドレス、認証情報といった接続に必要な情報、そのネットワーク環境にあった接続維持間隔といった接続維持に必要な情報を自動で設定する。 In the present invention (second embodiment), the client terminal device automatically determines the network type such as the mobile communication line or the WiFi by referring to the OS holding information held by the client terminal device. In the case of a mobile communication line, the communication carrier is automatically determined. By doing so, when the network type and the mobile carrier are dynamically changed, the change can be detected and reconnected, and the network configuration can be automatically switched. In this case, information necessary for connection such as a connection destination address and authentication information, and information necessary for connection maintenance such as a connection maintenance interval suitable for the network environment are automatically set.
また、本発明(第3の実施形態)では、利用者は、最大接続維持間隔の代わりに、顧客から見てより分かり易い概念である最大不通時間を入力値として設定する。そして、最大不通時間と接続維持信号再送間隔、接続維持信号再送回数から、最大接続維持間隔を算出する。このようにすることにより、利用者にとってより分かり易いシステムを提供することができる。 Further, in the present invention (third embodiment), the user sets, as an input value, the maximum off time, which is a concept that is easier to understand from the customer, instead of the maximum connection maintenance interval. Then, the maximum connection maintenance interval is calculated from the maximum interruption time, the connection maintenance signal retransmission interval, and the connection maintenance signal retransmission count. By doing so, it is possible to provide a user-friendly system.
(ii)本発明は、実施形態の機能を実現するソフトウェアのプログラムコードによっても実現できる。この場合、プログラムコードを記録した記憶媒体をシステム或は装置に提供し、そのシステム或は装置のコンピュータ(又はCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出す。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコード自体、及びそれを記憶した記憶媒体は本発明を構成することになる。このようなプログラムコードを供給するための記憶媒体としては、例えば、フレキシブルディスク、CD−ROM、DVD−ROM、ハードディスク、光ディスク、光磁気ディスク、CD−R、磁気テープ、不揮発性のメモリカード、ROMなどが用いられる。 (Ii) The present invention can also be realized by software program codes that implement the functions of the embodiments. In this case, a storage medium in which the program code is recorded is provided to the system or apparatus, and the computer (or CPU or MPU) of the system or apparatus reads the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the program code itself and the storage medium storing the program code constitute the present invention. As a storage medium for supplying such program code, for example, a flexible disk, CD-ROM, DVD-ROM, hard disk, optical disk, magneto-optical disk, CD-R, magnetic tape, nonvolatile memory card, ROM Etc. are used.
また、プログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)などが実際の処理の一部又は全部を行い、その処理によって前述した実施の形態の機能が実現されるようにしてもよい。さらに、記憶媒体から読み出されたプログラムコードが、コンピュータ上のメモリに書きこまれた後、そのプログラムコードの指示に基づき、コンピュータのCPUなどが実際の処理の一部又は全部を行い、その処理によって前述した実施の形態の機能が実現されるようにしてもよい。 Also, based on the instruction of the program code, an OS (operating system) running on the computer performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing. May be. Further, after the program code read from the storage medium is written in the memory on the computer, the computer CPU or the like performs part or all of the actual processing based on the instruction of the program code. Thus, the functions of the above-described embodiments may be realized.
さらに、実施の形態の機能を実現するソフトウェアのプログラムコードを、ネットワークを介して配信することにより、それをシステム又は装置のハードディスクやメモリ等の記憶手段又はCD−RW、CD−R等の記憶媒体に格納し、使用時にそのシステム又は装置のコンピュータ(又はCPUやMPU)が当該記憶手段や当該記憶媒体に格納されたプログラムコードを読み出して実行するようにしても良い。 Further, by distributing the program code of the software that realizes the functions of the embodiment via a network, it is stored in a storage means such as a hard disk or memory of a system or apparatus, or a storage medium such as a CD-RW or CD-R And the computer (or CPU or MPU) of the system or apparatus may read and execute the program code stored in the storage means or the storage medium when used.
最後に、ここで述べたプロセス及び技術は本質的に如何なる特定の装置に関連することはなく、コンポーネントの如何なる相応しい組み合わせによってでも実装できることを理解する必要がある。更に、汎用目的の多様なタイプのデバイスがここで記述した教授に従って使用可能である。ここで述べた方法のステップを実行するのに、専用の装置を構築するのが有益であることが判るかもしれない。また、実施形態に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。さらに、異なる実施形態にわたる構成要素を適宜組み合わせてもよい。本発明は、具体例に関連して記述したが、これらは、すべての観点に於いて限定の為ではなく説明の為である。本分野にスキルのある者には、本発明を実施するのに相応しいハードウェア、ソフトウェア、及びファームウエアの多数の組み合わせがあることが解るであろう。例えば、記述したソフトウェアは、アセンブラ、C/C++、perl、Shell、PHP、Java(登録商標)等の広範囲のプログラム又はスクリプト言語で実装できる。 Finally, it should be understood that the processes and techniques described herein are not inherently related to any particular apparatus, and can be implemented by any suitable combination of components. In addition, various types of devices for general purpose can be used in accordance with the teachings described herein. It may prove useful to build a dedicated device to perform the method steps described herein. Various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the embodiments. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, constituent elements over different embodiments may be appropriately combined. Although the present invention has been described with reference to specific examples, these are in all respects illustrative rather than restrictive. Those skilled in the art will appreciate that there are numerous combinations of hardware, software, and firmware that are suitable for implementing the present invention. For example, the described software can be implemented in a wide range of programs or script languages such as assembler, C / C ++, perl, shell, PHP, Java (registered trademark).
さらに、上述の実施形態において、制御線や情報線は説明上必要と考えられるものを示しており、製品上必ずしも全ての制御線や情報線を示しているとは限らない。全ての構成が相互に接続されていても良い。 Furthermore, in the above-described embodiment, control lines and information lines are those that are considered necessary for explanation, and not all control lines and information lines on the product are necessarily shown. All the components may be connected to each other.
加えて、本技術分野の通常の知識を有する者には、本発明のその他の実装がここに開示された本発明の明細書及び実施形態の考察から明らかになる。記述された実施形態の多様な態様及び/又はコンポーネントは、データを管理する機能を有するコンピュータ化ストレージシステムに於いて、単独又は如何なる組み合わせでも使用することが出来る。明細書と具体例は典型的なものに過ぎず、本発明の範囲と精神は後続する請求範囲で示される。 In addition, other implementations of the invention will be apparent to those skilled in the art from consideration of the specification and embodiments of the invention disclosed herein. Various aspects and / or components of the described embodiments can be used singly or in any combination in a computerized storage system capable of managing data. The specification and specific examples are merely exemplary, and the scope and spirit of the invention are indicated in the following claims.
1・・・管理者端末装置
11A、21A、31A・・・CPU
11B、21B、31B・・・メモリ
13、23、33・・・外部記憶装置
2・・・配信装置
3・・・クライアント端末装置
4・・・インターネット
5・・・携帯電話網
6・・・Wifi網
13A・・・管理者操作送信部
13B、33C・・表示処理部
23A・・・管理者操作応答部
23B・・・サーバ管理部
23C・・・WebSocketサーバ側通信部
23B1・・・送信内容リストテーブル
23B2・・・送信先端末リストテーブル
33A・・・クライアント管理部
33B・・・WebSocketクライアント側通信部
33D・・・携帯回線接続部
33E・・・Wifi検索・接続部
1 ...
11B, 21B, 31B ...
Claims (15)
プログラムに従って、WebSocketプロトコルを用いて前記サーバ装置からメッセージを受信し、前記サーバ装置に対してWebSocket接続維持のための信号を送信するプロセッサと、
少なくとも、携帯電話通信キャリア別の接続維持間隔情報と、クラウド基盤別の接続維持間隔情報と、利用者が利用するネットワークの構成要素を示す利用ネットワーク構成情報と、を格納するメモリと、を備え、
前記通信端末装置は、前記サーバ装置及びクラウド基盤と、携帯電話通信キャリア又はwifi網とインターネットとを介してそれぞれ接続されており、
前記プロセッサは、前記利用ネットワーク構成情報に基づいて、前記利用者が現在利用している携帯電話通信キャリアの接続維持間隔及びクラウド基盤の接続維持間隔を特定する接続維持間隔特定処理と、当該特定した携帯電話通信キャリアの接続維持間隔とクラウド基盤の接続維持間隔の何れが最小かを判定する最小接続維持間隔判定処理と、前記最小接続維持間隔判定処理によって判定された最小の接続維持間隔を用いて前記サーバ装置との通信接続を確立する接続確立処理と、を実行し、
前記携帯電話通信キャリア別の接続維持間隔情報及び前記クラウド基盤別の接続維持間隔情報は書き換え不要の固定の情報であり、前記利用ネットワーク構成情報は利用者毎に設定される情報であることを特徴とする通信端末装置。 A communication terminal device that receives a message that the server device pushes,
A processor for receiving a message from the server device using a WebSocket protocol according to a program and transmitting a signal for maintaining a WebSocket connection to the server device;
A memory for storing at least connection maintenance interval information for each mobile phone communication carrier, connection maintenance interval information for each cloud platform, and use network configuration information indicating a network component used by a user ;
The communication terminal device is connected to the server device and the cloud infrastructure via a mobile phone communication carrier or a wifi network and the Internet, respectively.
Based on the use network configuration information, the processor specifies a connection maintenance interval specifying process for specifying a connection maintenance interval and a cloud-based connection maintenance interval of a mobile phone communication carrier currently used by the user, and the specified Using the minimum connection maintenance interval determination processing for determining which of the connection maintenance interval of the mobile phone communication carrier and the connection maintenance interval of the cloud infrastructure is minimum, and the minimum connection maintenance interval determined by the minimum connection maintenance interval determination processing A connection establishment process for establishing a communication connection with the server device,
The connection maintenance interval information for each mobile phone communication carrier and the connection maintenance interval information for each cloud platform are fixed information that does not need to be rewritten, and the use network configuration information is information set for each user. A communication terminal device.
前記メモリは、さらに、前記利用者が最低でも満足すべきであると要求する接続維持間隔を示す最大接続維持間隔の情報を格納し、
前記プロセッサは、前記接続維持間隔特定処理において、前記特定した携帯電話通信キャリアの接続維持間隔、前記特定したクラウド基盤の接続維持間隔、及び前記最大接続維持間隔のうち、何れが最小かを判定することを特徴とする通信端末装置。 In claim 1,
The memory further stores information on a maximum connection maintenance interval indicating a connection maintenance interval that the user should satisfy at least,
In the connection maintenance interval specifying process, the processor determines which of the specified mobile phone communication carrier connection maintenance interval, the specified cloud-based connection maintenance interval, and the maximum connection maintenance interval is the smallest. A communication terminal device.
前記メモリは、さらに、変更可能なWifi通信の接続維持間隔情報を格納し、
前記プロセッサは、さらに、前記利用ネットワーク構成情報を参照して、前記利用者が現在利用しているネットワークが携帯電話通信網かWifi通信網か判定する処理と、利用ネットワークがWifi通信網の場合に、前記Wifi通信の接続維持間隔、及び前記クラウド基盤の接続維持間隔を特定する処理と、当該特定したWifi通信の接続維持間隔、前記クラウド基盤の接続維持間隔、及び前記最大接続維持間隔の何れが最小かを判定する処理と、を実行することを特徴とする通信端末装置。 In claim 2,
The memory further stores changeable Wifi communication connection maintenance interval information,
The processor further refers to the use network configuration information to determine whether the network currently used by the user is a cellular phone communication network or a WiFi communication network, and when the use network is a WiFi communication network. The process of specifying the connection maintenance interval of the WiFi communication and the connection maintenance interval of the cloud infrastructure, and the connection maintenance interval of the specified WiFi communication, the connection maintenance interval of the cloud infrastructure, and the maximum connection maintenance interval are And a process for determining whether or not the communication terminal device is minimum.
前記メモリは、さらに、前記WebSocket接続維持のための信号の再送間隔及び再送回数を規定する再送処理関連情報を格納し、
前記再送処理関連情報は書き換え不要の固定の情報であり、
前記プロセッサは、さらに、一定時間の無通信状態を検知した場合に、前記再送間隔及び前記再送回数に従って、前記WebSocket接続維持のための信号を再送する処理と、前記再送回数の上限に達した場合には、前記利用者が意図しないWebSocket通信の切断であることを示すフラグ情報を前記通信端末装置内に設定することを特徴とする通信端末装置。 In claim 2,
The memory further stores retransmission processing related information defining a retransmission interval and the number of retransmissions of the signal for maintaining the WebSocket connection,
The retransmission processing related information is fixed information that does not require rewriting,
When the processor further detects a no-communication state for a certain period of time, the processing for retransmitting the signal for maintaining the WebSocket connection according to the retransmission interval and the number of retransmissions, and when the upper limit of the number of retransmissions is reached In the communication terminal apparatus, flag information indicating that disconnection of WebSocket communication not intended by the user is set in the communication terminal apparatus.
前記プロセッサは、前記フラグ情報を参照して直近の通信切断が前記利用者の意図しない切断であると判断する処理を実行し、
前記プロセッサは、前記通信切断が前記利用者の意図しない切断である場合に、前記接続維持間隔特定処理、前記最小接続維持間隔判定処理、及び前記接続確立処理を実行することを特徴とする通信端末装置。 In claim 4,
The processor executes a process of determining that the latest communication disconnection is a disconnection unintended by the user with reference to the flag information,
The processor performs the connection maintenance interval identification processing, the minimum connection maintenance interval determination processing, and the connection establishment processing when the communication disconnection is disconnection that is not intended by the user. apparatus.
前記メモリは、さらに、変更可能なWifi通信の接続維持間隔情報を格納し、
前記プロセッサは、さらに、前記通信端末装置のOSを参照して、前記利用者が現在利用しているネットワークが携帯電話通信網かWifi通信網か判定する処理と、利用ネットワークがWifi通信網の場合に、前記Wifi通信の接続維持間隔、及び前記クラウド基盤の接続維持間隔を特定する処理と、当該特定したWifi通信の接続維持間隔、前記クラウド基盤の接続維持間隔、及び前記最大接続維持間隔の何れが最小かを判定する処理と、を実行することを特徴とする通信端末装置。 In claim 2,
The memory further stores changeable Wifi communication connection maintenance interval information,
The processor further refers to the OS of the communication terminal device to determine whether the network currently used by the user is a cellular phone communication network or a WiFi communication network, and when the use network is a WiFi communication network The connection maintenance interval of the WiFi communication and the connection maintenance interval of the cloud infrastructure, and the connection maintenance interval of the specified WiFi communication, the connection maintenance interval of the cloud infrastructure, and the maximum connection maintenance interval And a process for determining whether or not the communication terminal is minimum.
前記メモリは、さらに、前記利用者が設定した通信の最大不通時間の情報を格納し、
前記プロセッサは、さらに、前記最大不通時間から前記利用者が要求する最大接続維持間隔を算出する処理を実行し、
前記プロセッサは、前記接続維持間隔特定処理において、前記特定した携帯電話通信キャリアの接続維持間隔、前記特定したクラウド基盤の接続維持間隔、及び前記算出した最大接続維持間隔のうち、何れが最小かを判定することを特徴とする通信端末装置。 In claim 1,
The memory further stores information on a maximum communication interruption time set by the user,
The processor further executes a process of calculating a maximum connection maintenance interval requested by the user from the maximum interruption time,
In the connection maintenance interval specifying process, the processor determines which is the minimum of the specified mobile phone communication carrier connection maintenance interval, the specified cloud-based connection maintenance interval, and the calculated maximum connection maintenance interval. A communication terminal device characterized by determining.
前記通信端末装置に対してWebSocket通信を用いてメッセージをプッシュ送信するサーバ装置と、
前記サーバ装置に対して、送信すべきメッセージの内容と当該メッセージを送信すべき対象である通信端末装置を指示する管理者端末装置と、
を有することを特徴とするメッセージ配信システム。 A communication terminal device according to claim 1;
A server device that pushes a message to the communication terminal device using WebSocket communication;
An administrator terminal device that instructs the server device to indicate the content of the message to be transmitted and the communication terminal device to which the message is to be transmitted;
A message delivery system comprising:
前記通信端末装置は、プログラムに従って、WebSocketプロトコルを用いて前記サーバ装置からメッセージを受信し、前記サーバ装置に対してWebSocket接続維持のための信号を送信するプロセッサと、少なくとも、携帯電話通信キャリア別の接続維持間隔情報と、クラウド基盤別の接続維持間隔情報と、利用者が利用するネットワークの構成要素を示す利用ネットワーク構成情報と、を格納するメモリと、を有し、
前記通信端末装置は、前記サーバ装置及びクラウド基盤と、携帯電話通信キャリア又はwifi網とインターネットとを介してそれぞれ接続されており、
前記通信方法は、
前記プロセッサが、前記利用ネットワーク構成情報に基づいて、前記利用者が現在利用している携帯電話通信キャリアの接続維持間隔及びクラウド基盤の接続維持間隔を特定する接続維持間隔特定ステップと、
前記プロセッサが、前記特定した携帯電話通信キャリアの接続維持間隔とクラウド基盤の接続維持間隔の何れが最小かを判定する最小接続維持間隔判定ステップと、
前記プロセッサが、前記最小接続維持間隔判定ステップにおいて判定された最小の接続維持間隔を用いて前記サーバ装置との通信接続を確立する接続確立ステップと、を有し、
前記携帯電話通信キャリア別の接続維持間隔情報及び前記クラウド基盤別の接続維持間隔情報は書き換え不要の固定の情報であり、前記利用ネットワーク構成情報は利用者毎に設定される情報であることを特徴とする通信方法。 A communication method executed between a server device that pushes a message and a communication terminal device that receives the message,
The communication terminal device receives a message from the server device using a WebSocket protocol according to a program, transmits a signal for maintaining a WebSocket connection to the server device, and at least for each mobile phone communication carrier A memory for storing connection maintenance interval information, connection maintenance interval information for each cloud platform, and use network configuration information indicating network components used by a user;
The communication terminal device is connected to the server device and the cloud platform via a mobile phone communication carrier or wifi network and the Internet, respectively.
The communication method is:
A connection maintenance interval specifying step in which the processor specifies a connection maintenance interval of a mobile phone communication carrier currently used by the user and a cloud-based connection maintenance interval based on the use network configuration information;
A minimum connection maintenance interval determination step for determining which of the connection maintenance interval of the identified mobile phone communication carrier and the cloud-based connection maintenance interval is the processor is minimum;
The processor has a connection establishment step of establishing a communication connection with the server device using the minimum connection maintenance interval determined in the minimum connection maintenance interval determination step ;
The connection maintenance interval information for each mobile phone communication carrier and the connection maintenance interval information for each cloud platform are fixed information that does not need to be rewritten, and the use network configuration information is information set for each user. Communication method.
前記メモリは、さらに、前記利用者が最低でも満足すべきであると要求する接続維持間隔を示す最大接続維持間隔の情報を格納し、
前記接続維持間隔特定ステップにおいて、前記プロセッサは、前記特定した携帯電話通信キャリアの接続維持間隔、前記特定したクラウド基盤の接続維持間隔、及び前記最大接続維持間隔のうち、何れが最小かを判定することを特徴とする通信方法。 In claim 9,
The memory further stores information on a maximum connection maintenance interval indicating a connection maintenance interval that the user should satisfy at least,
In the connection maintenance interval specifying step, the processor determines which of the specified mobile phone communication carrier connection maintenance interval, the specified cloud-based connection maintenance interval, and the maximum connection maintenance interval is minimum. A communication method characterized by the above.
前記メモリは、さらに、変更可能なWifi通信の接続維持間隔情報を格納し、
前記通信方法は、さらに、
前記プロセッサが、前記利用ネットワーク構成情報を参照して、前記利用者が現在利用しているネットワークが携帯電話通信網かWifi通信網か判定するステップと、
前記プロセッサが、利用ネットワークがWifi通信網の場合に、前記Wifi通信の接続維持間隔、及び前記クラウド基盤の接続維持間隔を特定するステップと、
前記プロセッサが、前記該特定したWifi通信の接続維持間隔、前記クラウド基盤の接続維持間隔、及び前記最大接続維持間隔の何れが最小かを判定するステップと、
を有することを特徴とする通信方法。 In claim 10,
The memory further stores changeable Wifi communication connection maintenance interval information,
The communication method further includes:
The processor refers to the use network configuration information to determine whether the network currently used by the user is a cellular phone communication network or a WiFi communication network;
The processor specifying a connection maintenance interval of the WiFi communication and a connection maintenance interval of the cloud infrastructure when a use network is a WiFi communication network; and
The processor determining which of the specified WiFi communication connection maintenance interval, the cloud-based connection maintenance interval, and the maximum connection maintenance interval is minimum;
A communication method characterized by comprising:
前記メモリは、さらに、前記WebSocket接続維持のための信号の再送間隔及び再送回数を規定する再送処理関連情報を格納し、
前記再送処理関連情報は書き換え不要の固定の情報であり、
前記通信方法は、さらに、
前記プロセッサが、一定時間の無通信状態を検知した場合に、前記再送間隔及び前記再送回数に従って、前記WebSocket接続維持のための信号を再送するステップと、
前記プロセッサが、前記再送回数の上限に達した場合には、前記利用者が意図しないWebSocket通信の切断であることを示すフラグ情報を前記通信端末装置内に設定するステップと、
を有することを特徴とする通信方法。 In claim 10,
The memory further stores retransmission processing related information defining a retransmission interval and the number of retransmissions of the signal for maintaining the WebSocket connection,
The retransmission processing related information is fixed information that does not require rewriting,
The communication method further includes:
Retransmitting the signal for maintaining the WebSocket connection according to the retransmission interval and the number of retransmissions when the processor detects a no-communication state for a predetermined time;
When the processor reaches the upper limit of the number of retransmissions, setting flag information indicating disconnection of WebSocket communication unintended by the user in the communication terminal device;
A communication method characterized by comprising:
前記プロセッサが、前記フラグ情報を参照して直近の通信切断が前記利用者の意図しない切断であると判断するステップと、
前記プロセッサが、前記通信切断が前記利用者の意図しない切断である場合に、前記接続維持間隔特定ステップ、前記最小接続維持間隔判定ステップ、及び前記接続確立ステップを実行することを特徴とする通信方法。 The claim 12, further comprising:
The processor refers to the flag information to determine that the latest communication disconnection is a disconnection unintended by the user;
The communication method, wherein the processor executes the connection maintenance interval specifying step, the minimum connection maintenance interval determination step, and the connection establishment step when the communication disconnection is a disconnection unintended by the user. .
前記メモリは、さらに、変更可能なWifi通信の接続維持間隔情報を格納し、
前記通信方法は、さらに、
前記プロセッサが、前記通信端末装置のOSを参照して、前記利用者が現在利用しているネットワークが携帯電話通信網かWifi通信網か判定するステップと、
前記プロセッサが、利用ネットワークがWifi通信網の場合に、前記Wifi通信の接続維持間隔、及び前記クラウド基盤の接続維持間隔を特定するステップと、
前記プロセッサが、前記特定したWifi通信の接続維持間隔、前記クラウド基盤の接続維持間隔、及び前記最大接続維持間隔の何れが最小かを判定するステップと、
を有することを特徴とする通信方法。 In claim 10,
The memory further stores changeable Wifi communication connection maintenance interval information,
The communication method further includes:
The processor refers to the OS of the communication terminal device to determine whether the network currently used by the user is a cellular phone communication network or a WiFi communication network;
The processor specifying a connection maintenance interval of the WiFi communication and a connection maintenance interval of the cloud infrastructure when a use network is a WiFi communication network; and
The processor determining which of the specified WiFi communication connection maintenance interval, the cloud-based connection maintenance interval, and the maximum connection maintenance interval is minimum;
A communication method characterized by comprising:
前記メモリは、さらに、前記利用者が設定した通信の最大不通時間の情報を格納し、
前記通信方法は、さらに、
前記プロセッサが、前記最大不通時間から前記利用者が要求する最大接続維持間隔を算
出するステップと、を有し、
前記プロセッサは、前記接続維持間隔特定ステップにおいて、前記特定した携帯電話通信キャリアの接続維持間隔、前記特定したクラウド基盤の接続維持間隔、及び前記算出した最大接続維持間隔のうち、何れが最小かを判定することを特徴とする通信方法。 In claim 9,
The memory further stores information on a maximum communication interruption time set by the user,
The communication method further includes:
The processor calculates a maximum connection maintenance interval requested by the user from the maximum outage time;
In the connection maintenance interval specifying step, the processor determines which is the minimum of the specified mobile phone communication carrier connection maintenance interval, the specified cloud-based connection maintenance interval, and the calculated maximum connection maintenance interval. A communication method characterized by determining.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012196312A JP5887231B2 (en) | 2012-09-06 | 2012-09-06 | COMMUNICATION TERMINAL DEVICE, MESSAGE DISTRIBUTION SYSTEM, AND COMMUNICATION METHOD |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012196312A JP5887231B2 (en) | 2012-09-06 | 2012-09-06 | COMMUNICATION TERMINAL DEVICE, MESSAGE DISTRIBUTION SYSTEM, AND COMMUNICATION METHOD |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2014053732A JP2014053732A (en) | 2014-03-20 |
JP5887231B2 true JP5887231B2 (en) | 2016-03-16 |
Family
ID=50611815
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012196312A Expired - Fee Related JP5887231B2 (en) | 2012-09-06 | 2012-09-06 | COMMUNICATION TERMINAL DEVICE, MESSAGE DISTRIBUTION SYSTEM, AND COMMUNICATION METHOD |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5887231B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6470966B2 (en) | 2014-12-24 | 2019-02-13 | 株式会社東芝 | COMMUNICATION DEVICE, SERVER DEVICE, COMMUNICATION METHOD, AND PROGRAM |
JP6251210B2 (en) * | 2015-03-25 | 2017-12-20 | Kddi株式会社 | Terminal device, communication session establishment method, and program |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007310738A (en) * | 2006-05-19 | 2007-11-29 | Softbank Telecom Corp | Content distribution system, content distribution method, and content distribution program |
JP4732523B2 (en) * | 2007-01-18 | 2011-07-27 | パナソニック株式会社 | Communication device and power supply method |
JP2009110412A (en) * | 2007-10-31 | 2009-05-21 | Iwatsu Electric Co Ltd | Pseudo server-push type data delivery method |
US20100124211A1 (en) * | 2008-11-17 | 2010-05-20 | Qualcomm Incorporated | Reducing an occurrence of a voip call on hold from being dropped in ev-do systems |
US8898487B2 (en) * | 2010-12-27 | 2014-11-25 | Microsoft Corporation | Power management via coordination and selective operation of timer-related tasks |
-
2012
- 2012-09-06 JP JP2012196312A patent/JP5887231B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2014053732A (en) | 2014-03-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6831467B2 (en) | Communication Systems Core Networks and Methods for Providing Heartbeat Messages | |
CN110012083B (en) | Data transmission method, server and data transmission device | |
US9503957B2 (en) | Low cost mesh network capability | |
US20130179558A1 (en) | Server management using a baseboard management controller to establish a wireless network | |
RU2663711C2 (en) | Method, device and d2d detection system | |
KR101531532B1 (en) | Method and apparatus for using service of home network device based on remote access | |
CN113783922A (en) | Load balancing method, system and device | |
WO2020253531A1 (en) | Communication method and apparatus, entity and storage medium | |
CN101621548A (en) | Method and system for realizing terminal resource sharing based on peer connection system | |
CN110771097B (en) | Connectivity monitoring for data tunneling between network device and application server | |
JP2012083891A (en) | Failover system, storage processor, and failover control method | |
JP5887231B2 (en) | COMMUNICATION TERMINAL DEVICE, MESSAGE DISTRIBUTION SYSTEM, AND COMMUNICATION METHOD | |
US9209991B1 (en) | Ad hoc networking | |
WO2014015743A1 (en) | Method for downloading application program, user equipment and application server | |
US8456671B2 (en) | Communication system, information storage device, management device, and terminal device | |
JP5739370B2 (en) | Message delivery system and message delivery method | |
US9866644B2 (en) | Terminal, message distribution system, message distribution method, and computer-readable medium | |
KR20120052444A (en) | File transmission management system and file transmission mangement method for supporting file transmission in mobile messaging service | |
JPWO2015059849A1 (en) | COMMUNICATION SYSTEM, COMMON SERVICE CONTROL DEVICE, DATA TRANSMISSION METHOD, AND PROGRAM | |
JP6555627B2 (en) | Information distribution apparatus, push notification transmission method, and computer program | |
JP6360143B2 (en) | Information distribution apparatus, push notification transmission method, and computer program | |
JP5292335B2 (en) | Connection destination node selection method, apparatus and program | |
JP5804794B2 (en) | COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM | |
JP6072114B2 (en) | Information distribution apparatus, push notification transmission method, and computer program | |
CN118018587A (en) | Long connection method, device and communication equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20150126 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20150909 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20151013 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20151214 |
|
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: 20160209 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20160215 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5887231 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |