JP5385889B2 - Communication apparatus and operation method thereof - Google Patents

Communication apparatus and operation method thereof Download PDF

Info

Publication number
JP5385889B2
JP5385889B2 JP2010261002A JP2010261002A JP5385889B2 JP 5385889 B2 JP5385889 B2 JP 5385889B2 JP 2010261002 A JP2010261002 A JP 2010261002A JP 2010261002 A JP2010261002 A JP 2010261002A JP 5385889 B2 JP5385889 B2 JP 5385889B2
Authority
JP
Japan
Prior art keywords
communication
device identifier
unit
message
communication method
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
Application number
JP2010261002A
Other languages
Japanese (ja)
Other versions
JP2012114619A (en
Inventor
秀樹 五郎丸
実 池田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2010261002A priority Critical patent/JP5385889B2/en
Publication of JP2012114619A publication Critical patent/JP2012114619A/en
Application granted granted Critical
Publication of JP5385889B2 publication Critical patent/JP5385889B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、通信装置およびその動作方法に関するものである。   The present invention relates to a communication device and an operation method thereof.

近年にあっては、非接触ICカードを使った入退室システムや改札システムが増えている。   In recent years, the number of entrance / exit systems and ticket gate systems using contactless IC cards has increased.

これらのシステムは、ポーリングコマンドを作成する上位装置(例えば入退管理サーバ)と、ポーリングコマンドを所定の通信方法によるポーリング電文へ変換し送出する中継装置(例えばICカードRW)と、任意の通信手段と通信する変換部および入退時に必要な識別情報を管理する識別情報管理部を有するモバイル端末(例えばICカード)とを備える構成になっており、上位装置がポーリングコマンドを中継装置へ送り、中継装置はそれをトリガーにして任意の間隔でポーリング電文を繰り返し送出し、モバイル端末を検知している。   These systems include a host device (for example, an entry / exit management server) that creates a polling command, a relay device (for example, an IC card RW) that converts the polling command into a polling message using a predetermined communication method, and arbitrary communication means. And a mobile terminal (for example, an IC card) having an identification information management unit for managing identification information necessary for entry / exit, and a host device sends a polling command to the relay device and relays The device uses it as a trigger to repeatedly send polling messages at arbitrary intervals to detect the mobile terminal.

ワイヤレスカードシステムの応用 技術資料 ARIB TR−T10 1.0版、P.13、[online]、社団法人 電波産業会、[平成22年6月14日検索]、インターネット<URL: http://www.arib.or.jp/english/html/overview/doc/3−TR−T10v1_0.pdf>Application of Wireless Card System Technical Document ARIB TR-T10 1.0 Edition 13, [online], The Japan Radio Industry Association, [June 14, 2010 search], Internet <URL: http: // www. arib. or. jp / english / html / overview / doc / 3-TR-T10v1_0. pdf>

図10は、従来の通信システムの動作を示すシーケンス図であり、通信装置1A、2Aの間の距離が長く通信範囲外の場合の様子を示すものである。   FIG. 10 is a sequence diagram showing the operation of the conventional communication system, and shows a situation where the distance between the communication devices 1A and 2A is long and out of the communication range.

通信装置1Aでは、通信部12が既存の通信部、通信部13Aが新たな通信部である。また、通信装置2Aでは、通信部22が既存の通信部、通信部23Aが新たな通信部である。   In the communication device 1A, the communication unit 12 is an existing communication unit, and the communication unit 13A is a new communication unit. In the communication device 2A, the communication unit 22 is an existing communication unit, and the communication unit 23A is a new communication unit.

情報処理部11は、通信装置1Aが起動されると、通信部12にポーリングコマンドを送信し(T101)、通信部12は、ポーリングコマンドを受信したら、通信方法Mによるポーリング電文を作成し、通信部13Aに送信する(T102)。   When the communication device 1A is activated, the information processing unit 11 transmits a polling command to the communication unit 12 (T101). Upon receiving the polling command, the communication unit 12 creates a polling message by the communication method M and performs communication. The data is transmitted to the unit 13A (T102).

通信部13Aは、通信方法Mによりポーリング電文を受信したなら、通信方法Nによるポーリング電文を作成し、通信方法Nにより外部に送出する(T103)。   If the communication unit 13A receives the polling message by the communication method M, the communication unit 13A creates a polling message by the communication method N and sends it to the outside by the communication method N (T103).

通信装置1A、2Aの間の距離が長く通信範囲外であると、通信部13Aからの通信方法Nによるポーリング電文は通信装置2Aに届かず、通信部13Aは、やがてタイムアウトとなる。   When the distance between the communication devices 1A and 2A is long and out of the communication range, the polling message by the communication method N from the communication unit 13A does not reach the communication device 2A, and the communication unit 13A eventually times out.

通信部12は、通信部13Aからの応答がないので、タイムアウトとポーリング電文の送信を繰り返す。   Since there is no response from the communication unit 13A, the communication unit 12 repeats timeout and transmission of a polling message.

図11は、従来の通信システムの動作を示すシーケンス図であり、通信装置1A、2Aの間の距離が短く通信範囲内の場合の様子を示すものである。   FIG. 11 is a sequence diagram showing the operation of the conventional communication system, and shows the situation when the distance between the communication devices 1A and 2A is short and within the communication range.

情報処理部11は、通信装置1Aが起動されると、通信部12にポーリングコマンドを送信し(T101)、通信部12は、ポーリングコマンドを受信したら、通信方法Mによるポーリング電文を作成し、通信部13Aに送信する(T102)。   When the communication device 1A is activated, the information processing unit 11 transmits a polling command to the communication unit 12 (T101). Upon receiving the polling command, the communication unit 12 creates a polling message by the communication method M and performs communication. The data is transmitted to the unit 13A (T102).

通信部13Aは、通信方法Mによりポーリング電文を受信したなら、通信方法Nによるポーリング電文を作成し、通信方法Nにより外部に送出する(T103)。   If the communication unit 13A receives the polling message by the communication method M, the communication unit 13A creates a polling message by the communication method N and sends it to the outside by the communication method N (T103).

通信部23Aは、通信方法Nによりポーリング電文を受信したなら、ポーリング電文に対する応答の電文を作成し、応答の電文を通信方法Nにより外部に送出する(T111)。   When receiving the polling message by the communication method N, the communication unit 23A creates a response message for the polling message, and sends the response message to the outside by the communication method N (T111).

通信部13Aは、通信方法Nにより応答の電文を受信したなら、それが肯定応答の電文であることを条件に、応答の送信元つまり通信部23Aとで通信方法Nによる通信が可能となるように準備を行う。   If the communication unit 13A receives a response message using the communication method N, the communication unit N can communicate with the response source, that is, the communication unit 23A, on the condition that the response message is an affirmative response message. Make preparations.

通信部13Aは、通信部23Aとの通信方法Nによる通信が可能となったなら、先に受信していた通信方法Mによりポーリング電文をデータとして含む通信方法Nによる電文を作成し、通信部23Aに送信する(T113)。   When communication by communication method N with communication unit 23A becomes possible, communication unit 13A creates a message by communication method N that includes a polling message as data by previously received communication method M, and communication unit 23A. (T113).

通信部23Aは、通信方法Nにより電文を受信し、電文からデータつまり通信方法Mによるポーリング電文を取り出し、通信方法Mにより通信部22に送信する(T115)。   The communication unit 23A receives a message by the communication method N, extracts data from the message, that is, a polling message by the communication method M, and transmits it to the communication unit 22 by the communication method M (T115).

通信部22は、通信方法Mによりポーリング電文を受信し、ポーリング電文をポーリングコマンドに変換し、ポーリングコマンドを情報処理部21に送信する(T117)。   The communication unit 22 receives the polling message by the communication method M, converts the polling message into a polling command, and transmits the polling command to the information processing unit 21 (T117).

情報処理部21は、ポーリングコマンドを受信し、ポーリングコマンドに対する応答コマンド(例えば、肯定応答のコマンド)を作成し、応答コマンドを通信部22に送信する(T119)。   The information processing unit 21 receives the polling command, creates a response command (for example, a positive response command) to the polling command, and transmits the response command to the communication unit 22 (T119).

通信部22は、応答コマンドを通信方法Mによるポーリング電文に対する応答の電文に変換し、通信方法Mにより通信部23Aに送信する(T121)。   The communication unit 22 converts the response command into a response message to the polling message by the communication method M, and transmits the response command to the communication unit 23A by the communication method M (T121).

通信部23Aは、通信方法Mにより電文を受信し、通信方法Mによる電文をデータとして含む通信方法Nによる電文を生成し、通信方法Nにより通信部13Aに送信する(T123)。   The communication unit 23A receives a message by the communication method M, generates a message by the communication method N including the message by the communication method M as data, and transmits the message to the communication unit 13A by the communication method N (T123).

通信部13Aは、通信方法Nにより電文を受信し、通信方法Nによる電文からデータつまり通信方法Mによるポーリング電文に対する応答の電文を取り出し、通信方法Mにより通信部12に送信する(T125)。   The communication unit 13A receives a message by the communication method N, extracts data, that is, a response message to the polling message by the communication method M, from the message by the communication method N, and transmits it to the communication unit 12 by the communication method M (T125).

通信部12は、通信方法Mにより応答の電文を受信したなら、電文を情報処理部21が作成した応答コマンドに変換し、情報処理部11に有線にて送信する(T127)。   When the communication unit 12 receives a response message by the communication method M, the communication unit 12 converts the message into a response command created by the information processing unit 21, and transmits the response command to the information processing unit 11 by wire (T127).

例えば、既存の入退室システムや改札システムなどの非接触ICカードを使用したシステムにおいて、非接触ICカードに使用される既存の通信方法だけでなく、新たにPAN(Personal Area Network)や電界通信等の通信方法も使用できるようにし、さらに既存の通信方法によるポーリング電文は変更せず、あるいは変更を最小限にして、新たな通信方法と同時に使用できるようにすることを考えた場合、下記の実現要件に対応することが必要となる。   For example, in a system using a non-contact IC card such as an existing entrance / exit system or a ticket gate system, not only the existing communication method used for the non-contact IC card but also a new PAN (Personal Area Network), electric field communication, etc. If you want to be able to use the same communication method and not change the polling message by the existing communication method, or minimize the change so that it can be used at the same time as the new communication method, realize the following: It is necessary to meet the requirements.

1)いずれの通信方法においても、当該通信方法で使用するポーリング電文は、ポーリング電文を受信する通信部まで送信された後、その処理結果を当該通信装置から返信されること。   1) In any communication method, the polling message used in the communication method is transmitted to the communication unit that receives the polling message, and then the processing result is returned from the communication device.

2)既存の通信部と新たな通信部との間で通信を行う場合、それぞれの通信部から発信されるポーリング電文は受信側の通信部では単なるデータでしかなくポーリング電文であることを認識できない。このため、新たな通信部は,新たな通信方法のポーリング処理の後、新たな通信方法による電文の中にデータとして既存の通信方法によるポーリング電文を含むこととし、当該新たな通信方法のポーリング電文を受信する既存の通信方法を使用する通信部では、電文に含まれる既存の通信方法によるポーリング電文を取り出し、処理を行うこと。   2) When communication is performed between an existing communication unit and a new communication unit, the polling message transmitted from each communication unit is merely data in the receiving communication unit and cannot be recognized as a polling message. . Therefore, after the polling process of the new communication method, the new communication unit includes the polling message according to the existing communication method as data in the message according to the new communication method, and the polling message of the new communication method is included. In the communication unit using the existing communication method for receiving the message, the polling message by the existing communication method included in the message is taken out and processed.

なお、既存の通信方法を使用する装置から新たな通信方法の装置に対してポーリング電文を送信する場合も同様の処理を要する。   Similar processing is required when a polling message is transmitted from a device using an existing communication method to a device using a new communication method.

前記1),2)の要件を満たすためには,既存の通信方法と比較して、「新たな通信方法によるポーリング処理」と「新たな通信方法によるデータ(既存のポーリング電文とその応答電文)伝送処理」と「通信装置内での既存の通信方法によるポーリング処理」が新たに追加される。   In order to satisfy the requirements 1) and 2), “polling processing by a new communication method” and “data by a new communication method (existing polling message and its response message) are compared with the existing communication method. "Transmission process" and "Polling process by existing communication method in communication apparatus" are newly added.

しかし、前記1)、2)の実現要件に対応して新たな処理が追加されることにより新たな処理時間を要し、既存の通信方法で通信を行う場合においては制限時間内に終わっていたポーリング処理が、新たな通信方法と既存の通信方法の通信を行う場合においてはタイムアウトが発生し、制限時間以内にポーリングを終了させることができないという問題が出てくる。このため、新たな通信方法と既存の通信方法の通信を行うために必要な要件のうち,「新たな通信方法によるデータ(既存のポーリング電文とその応答電文)伝送処理」と「通信装置内での既存の通信方法によるポーリング処理」に関する処理時間を短縮する手段を提示し、異なる通信方法を使用する場合の通信におけるタイムアウトを抑制し、制限時間内のポーリング処理完了を実現することが必要である。   However, new processing time is added due to the addition of new processing corresponding to the realization requirements of 1) and 2), and when communication is performed using the existing communication method, the processing time is over. When the polling process performs communication between a new communication method and an existing communication method, a time-out occurs and polling cannot be completed within the time limit. For this reason, among the requirements necessary for communication between the new communication method and the existing communication method, “data (existing polling message and its response message) transmission processing by the new communication method” and “in the communication device It is necessary to provide a means to shorten the processing time related to "polling processing by existing communication method", to suppress timeout in communication when using a different communication method, and to complete polling processing within the time limit .

本発明は、上記の課題に鑑みてなされたものであり、その目的とするところは、2つの通信方法を使用する通信装置におけるポーリングを早期に終了させることのできる技術を提供することにある。   The present invention has been made in view of the above-described problems, and an object of the present invention is to provide a technique capable of ending polling in a communication apparatus using two communication methods at an early stage.

上記の課題を解決するために、第1の本発明は、第1の通信方法で通信する第1の通信部と第2の通信方法で通信する第2の通信部とを備える通信装置であって、前記第2の通信部は、前記第1の通信方法によるポーリング電文に対する応答の電文である応答電文が予め記憶される応答電文記憶部、前記第2の通信方法によるポーリング電文を外部に送出し、当該ポーリング電文に対する応答の電文を外部から受信したなら、前記第1の通信部から第1の通信方法によるポーリング電文を既に受信しているなら、前記応答電文記憶部から応答電文を読み出す中継処理部を有する第1の中継部と、当該応答電文を前記第1の通信部へ送信する第2の中継部とを備えることを特徴とする通信装置をもって解決手段とする。   In order to solve the above-described problem, a first aspect of the present invention is a communication device including a first communication unit that communicates using a first communication method and a second communication unit that communicates using a second communication method. The second communication unit is a response message storage unit in which a response message that is a response message to the polling message according to the first communication method is stored in advance, and the polling message according to the second communication method is transmitted to the outside. If a response message for the polling message is received from the outside, and if a polling message by the first communication method is already received from the first communication unit, the response message is read from the response message storage unit. The communication device includes a first relay unit having a processing unit and a second relay unit that transmits the response message to the first communication unit.

第2の本発明は、第1の本発明に係る通信装置とともに使用される通信装置であって、第1の通信方法で通信する第1の通信部と第2の通信方法で通信する第2の通信部とを備え、前記第2の通信部は、前記第1の通信方法によるポーリング電文が予め記憶されるポーリング電文記憶部、前記第2の通信方法によるポーリング電文を外部から受信したなら、当該ポーリング電文に対する応答の電文を外部に送出し、前記ポーリング電文記憶部からポーリング電文を読み出す中継処理部を有する第1の中継部と、当該ポーリング電文を前記第1の通信部へ送信する第2の中継部とを備えることを特徴とする通信装置をもって解決手段とする。   2nd this invention is a communication apparatus used with the communication apparatus which concerns on 1st this invention, Comprising: The 2nd communication method communicates with the 1st communication part which communicates with the 1st communication method The second communication unit, a polling message storage unit in which a polling message according to the first communication method is stored in advance, and a polling message according to the second communication method are received from the outside, A first relay unit having a relay processing unit that sends a response message to the polling message to the outside and reads the polling message from the polling message storage unit; and a second relay unit that transmits the polling message to the first communication unit A communication device including a relay unit is used as a solving means.

第3の本発明は、第1の通信方法で通信する第1の通信部と第2の通信方法で通信する第2の通信部とを備える通信装置であって、前記第2の通信部は、前記第1の通信方法によるポーリング電文に対する応答の電文である応答電文が予め記憶される応答電文記憶部、前記第2の通信方法で使用される当該通信装置の装置識別子が予め記憶される装置識別子記憶部、前記第1の通信方法で使用される通信相手の装置識別子並びに前記第2の通信方法で使用される当該通信相手の装置識別子を含む装置識別子情報が予め記憶される装置識別子情報記憶部、前記装置識別子記憶部から装置識別子を読み出し、前記第2の通信方法によるポーリング電文を作成し、当該ポーリング電文に当該装置識別子を含ませ、当該装置識別子を含ませたポーリング電文を外部に送出する中継処理部、当該ポーリング電文に対する応答の電文を外部から受信したなら、当該応答の電文に含まれる装置識別子を読み出し、当該装置識別子と同じ装置識別子を含む装置識別子情報を前記装置識別子情報記憶部から検索し、当該装置識別子情報から前記第1の通信方法で使用される装置識別子を読み出し、前記応答電文記憶部から応答電文を読み出し、当該応答電文に、前記装置識別子情報から読み出した装置識別子を含ませる応答電文作成部を有する第1の中継部と、前記第1の通信部から第1の通信方法によるポーリング電文を既に受信している場合において、当該応答電文を前記第1の通信部へ送信する第2の中継部とを備えることを特徴とする通信装置をもって解決手段とする。   3rd this invention is a communication apparatus provided with the 1st communication part which communicates by the 1st communication method, and the 2nd communication part which communicates by the 2nd communication method, Comprising: The said 2nd communication part is A response message storage unit in which a response message, which is a response message to the polling message according to the first communication method, is stored in advance, and a device identifier of the communication device used in the second communication method is stored in advance Device identifier information storage in which device identifier information including an identifier storage unit, a device identifier of a communication partner used in the first communication method, and a device identifier of the communication partner used in the second communication method is stored in advance A device identifier is read from the device identifier storage unit, a polling message is generated by the second communication method, the device identifier is included in the polling message, and the polling message including the device identifier is included. Relay processing unit for sending a message to the outside, if a response message to the polling message is received from the outside, the device identifier included in the response message is read, and the device identifier information including the same device identifier as the device identifier is Search from the device identifier information storage unit, read out the device identifier used in the first communication method from the device identifier information, read out the response message from the response message storage unit, and read the response message from the device identifier information In the case where a first relay unit having a response message creating unit including the read device identifier and a polling message by the first communication method from the first communication unit have already been received, the response message is And a second relay unit that transmits to the first communication unit.

第4の本発明は、第3の本発明に係る通信装置とともに使用される通信装置であって、第1の通信方法で通信する第1の通信部と第2の通信方法で通信する第2の通信部とを備え、前記第2の通信部は、前記第1の通信方法によるポーリング電文が予め記憶されるポーリング電文記憶部、前記第2の通信方法で使用される当該通信装置の装置識別子が予め記憶される装置識別子記憶部、前記第1の通信方法で使用される通信相手の装置識別子並びに前記第2の通信方法で使用される当該通信相手の装置識別子を含む装置識別子情報が予め記憶される装置識別子情報記憶部、前記第2の通信方法によるポーリング電文を外部から受信したなら、前記装置識別子記憶部から装置識別子を読み出し、前記第2の通信方法によるポーリング電文に対する応答の電文を作成し、当該応答の電文に当該装置識別子を含ませ、当該装置識別子を含ませた応答の電文を外部に送出する中継処理部、当該ポーリング電文に含まれる装置識別子を読み出し、当該装置識別子と同じ装置識別子を含む装置識別子情報を前記装置識別子情報記憶部から検索し、当該装置識別子情報から前記第1の通信方法で使用される装置識別子を読み出し、前記ポーリング電文記憶部からポーリング電文を読み出し、当該ポーリング電文に、前記装置識別子情報から読み出した装置識別子を含ませるポーリング電文作成部を有する第1の中継部と、当該ポーリング電文を前記第1の通信部へ送信する第2の中継部とを備えることを特徴とする通信装置をもって解決手段とする。   4th this invention is a communication apparatus used with the communication apparatus which concerns on 3rd this invention, Comprising: The 2nd communication method communicates with the 1st communication part which communicates with the 1st communication method The second communication unit includes a polling message storage unit in which a polling message according to the first communication method is stored in advance, and a device identifier of the communication device used in the second communication method. Is stored in advance, and device identifier information including a device identifier of a communication partner used in the first communication method and a device identifier of the communication partner used in the second communication method is stored in advance. If the device identifier information storage unit that receives the polling message by the second communication method is received from the outside, the device identifier is read from the device identifier storage unit, and the polling message by the second communication method is received. Create a response message, include the device identifier in the response message, send the response message including the device identifier to the outside, read out the device identifier included in the polling message, The device identifier information including the same device identifier as the device identifier is searched from the device identifier information storage unit, the device identifier used in the first communication method is read from the device identifier information, and the polling message is stored from the polling message storage unit. And a second relay that transmits the polling message to the first communication unit. The first relay unit includes a polling message generation unit that includes the device identifier read from the device identifier information in the polling message. And a communication device characterized by comprising a unit.

第5の本発明は、第1の通信方法で通信する第1の通信部と第2の通信方法で通信する第2の通信部とを備える通信装置の動作方法であって、前記第2の通信部は、前記第1の通信方法によるポーリング電文に対する応答の電文である応答電文が予め記憶される応答電文記憶部を備え、前記動作方法は、前記第2の通信部が、前記第2の通信方法によるポーリング電文を外部に送出し、当該ポーリング電文に対する応答の電文を外部から受信したなら、前記第1の通信部から第1の通信方法によるポーリング電文を既に受信しているなら、前記応答電文記憶部から応答電文を読み出し、前記第1の通信部へ送信することを特徴とする通信装置の動作方法をもって解決手段とする。   A fifth aspect of the present invention is an operation method of a communication device including a first communication unit that communicates by a first communication method and a second communication unit that communicates by a second communication method, wherein the second communication unit The communication unit includes a response message storage unit in which a response message that is a response message to the polling message according to the first communication method is stored in advance, and the operation method includes the second communication unit, the second communication unit, If the polling message by the communication method is transmitted to the outside and the response message for the polling message is received from the outside, the response if the polling message by the first communication method has already been received from the first communication unit. The response means reads out the response message from the message storage unit and transmits it to the first communication unit.

第6の本発明は、第1の本発明に係る通信装置とともに使用される通信装置の動作方法であって、当該通信装置は、第1の通信方法で通信する第1の通信部と第2の通信方法で通信する第2の通信部とを備え、前記第2の通信部は、前記第1の通信方法によるポーリング電文が予め記憶されるポーリング電文記憶部を備え、前記動作方法は、前記第2の通信部が、前記第2の通信方法によるポーリング電文を外部から受信したなら、当該ポーリング電文に対する応答の電文を外部に送出し、前記ポーリング電文記憶部からポーリング電文を読み出し、前記第1の通信部へ送信することを特徴とする通信装置の動作方法をもって解決手段とする。   The sixth aspect of the present invention is an operation method of a communication apparatus used together with the communication apparatus according to the first aspect of the present invention, wherein the communication apparatus includes a first communication unit that communicates with the first communication method and a second communication unit. A second communication unit that communicates with the communication method, wherein the second communication unit includes a polling message storage unit in which a polling message according to the first communication method is stored in advance, and the operation method includes: If the second communication unit receives the polling message from the second communication method from the outside, the second communication unit sends a response message to the polling message to the outside, reads the polling message from the polling message storage unit, and The communication unit operating method is characterized by transmitting to the communication unit.

第7の本発明は、第1の通信方法で通信する第1の通信部と第2の通信方法で通信する第2の通信部とを備える通信装置の動作方法であって、前記第2の通信部は、前記第1の通信方法によるポーリング電文に対する応答の電文である応答電文が予め記憶される応答電文記憶部、前記第2の通信方法で使用される当該通信装置の装置識別子が予め記憶される装置識別子記憶部、前記第1の通信方法で使用される通信相手の装置識別子並びに前記第2の通信方法で使用される当該通信相手の装置識別子を含む装置識別子情報が予め記憶される装置識別子情報記憶部を有し、前記動作方法は、前記第2の通信部が、前記装置識別子記憶部から装置識別子を読み出し、前記第2の通信方法によるポーリング電文を作成し、当該ポーリング電文に当該装置識別子を含ませ、当該装置識別子を含ませたポーリング電文を外部に送出し、前記第2の通信部が、当該ポーリング電文に対する応答の電文を外部から受信したなら、当該応答の電文に含まれる装置識別子を読み出し、当該装置識別子と同じ装置識別子を含む装置識別子情報を前記装置識別子情報記憶部から検索し、当該装置識別子情報から前記第1の通信方法で使用される装置識別子を読み出し、前記応答電文記憶部から応答電文を読み出し、当該応答電文に、前記装置識別子情報から読み出した装置識別子を含ませ、前記第2の通信部が、前記第1の通信部から第1の通信方法によるポーリング電文を既に受信している場合において、当該応答電文を前記第1の通信部へ送信することを特徴とする通信装置の動作方法をもって解決手段とする。   A seventh aspect of the present invention is an operation method of a communication device including a first communication unit that communicates by a first communication method and a second communication unit that communicates by a second communication method, wherein the second communication unit The communication unit stores in advance a response message storage unit that stores a response message that is a response message to the polling message by the first communication method, and stores in advance a device identifier of the communication device used in the second communication method. Device identifier storage unit, device identifier of communication partner used in the first communication method, and device identifier information including the device identifier of the communication partner used in the second communication method are stored in advance An identifier information storage unit, wherein the second communication unit reads a device identifier from the device identifier storage unit, creates a polling message according to the second communication method, and adds the polling message to the polling message. If the second communication unit receives a response message to the polling message from the outside, the message is included in the response message. A device identifier is read, device identifier information including the same device identifier as the device identifier is retrieved from the device identifier information storage unit, a device identifier used in the first communication method is read from the device identifier information, and the response A response message is read from the message storage unit, the device identifier read from the device identifier information is included in the response message, and the second communication unit polls the first communication method from the first communication unit. Is already received, the response message is transmitted to the first communication unit. To.

第8の本発明は、第3の本発明に係る通信装置とともに使用される通信装置の動作方法であって、当該通信装置は、第1の通信方法で通信する第1の通信部と第2の通信方法で通信する第2の通信部とを備え、前記第2の通信部は、前記第1の通信方法によるポーリング電文が予め記憶されるポーリング電文記憶部、前記第2の通信方法で使用される当該通信装置の装置識別子が予め記憶される装置識別子記憶部、前記第1の通信方法で使用される通信相手の装置識別子並びに前記第2の通信方法で使用される当該通信相手の装置識別子を含む装置識別子情報が予め記憶される装置識別子情報記憶部を有し、前記動作方法は、前記第2の通信部が、前記第2の通信方法によるポーリング電文を外部から受信したなら、前記装置識別子記憶部から装置識別子を読み出し、前記第2の通信方法によるポーリング電文に対する応答の電文を作成し、当該応答の電文に当該装置識別子を含ませ、当該装置識別子を含ませた応答の電文を外部に送出し、前記第2の通信部が、当該ポーリング電文に含まれる装置識別子を読み出し、当該装置識別子と同じ装置識別子を含む装置識別子情報を前記装置識別子情報記憶部から検索し、当該装置識別子情報から前記第1の通信方法で使用される装置識別子を読み出し、前記ポーリング電文記憶部からポーリング電文を読み出し、当該ポーリング電文に、前記装置識別子情報から読み出した装置識別子を含ませ、前記第2の通信部が、当該ポーリング電文を前記第1の通信部へ送信することを特徴とする通信装置の動作方法をもって解決手段とする。   The eighth aspect of the present invention is an operation method of a communication apparatus used together with the communication apparatus according to the third aspect of the present invention. The communication apparatus includes a first communication unit that communicates with the first communication method and a second communication unit. A second communication unit that communicates using the communication method, and the second communication unit is a polling message storage unit that stores in advance a polling message according to the first communication method, and is used in the second communication method. A device identifier storage unit in which a device identifier of the communication device to be stored is stored in advance, a device identifier of a communication partner used in the first communication method, and a device identifier of the communication partner used in the second communication method A device identifier information storage unit in which device identifier information including the device identifier information is stored in advance, and when the second communication unit receives a polling message from the second communication method from the outside, the operation method Identifier storage Read the device identifier, create a response message for the polling message by the second communication method, include the device identifier in the response message, send the response message including the device identifier to the outside, The second communication unit reads a device identifier included in the polling message, retrieves device identifier information including the same device identifier as the device identifier from the device identifier information storage unit, and uses the device identifier information to retrieve the first identifier. The device identifier used in the communication method is read, the polling message is read from the polling message storage unit, the device identifier read from the device identifier information is included in the polling message, and the second communication unit The communication device operating method is characterized in that a polling message is transmitted to the first communication unit.

本発明によれば、2つの通信方法を使用する通信装置におけるポーリングを早期に終了させることのできる技術を提供することができる。   ADVANTAGE OF THE INVENTION According to this invention, the technique which can complete | finish polling in the communication apparatus which uses two communication methods at an early stage can be provided.

第1の実施の形態に係る通信システムの構成図である。It is a block diagram of the communication system which concerns on 1st Embodiment. 第1の実施の形態における中継部132、232の構成図である。It is a block diagram of the relay parts 132 and 232 in 1st Embodiment. 第1の実施の形態における通信部13における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process in the communication part 13 in 1st Embodiment. 第1の実施の形態における通信部23における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process in the communication part 23 in 1st Embodiment. 第1の実施の形態における通信システムの動作の一例を示すシーケンス図である。It is a sequence diagram which shows an example of operation | movement of the communication system in 1st Embodiment. 第1の実施の形態における通信システムの動作の別な一例を示すシーケンス図である。It is a sequence diagram which shows another example of operation | movement of the communication system in 1st Embodiment. 第2の実施の形態における中継部132、232の構成図である。It is a block diagram of the relay parts 132 and 232 in 2nd Embodiment. 第2の実施の形態における通信部13における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process in the communication part 13 in 2nd Embodiment. 第2の実施の形態における通信部23における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process in the communication part 23 in 2nd Embodiment. 従来の通信システムの動作を示すシーケンス図であり、通信装置1A、2の間の距離が長く通信範囲外の場合の様子を示すものである。It is a sequence diagram which shows operation | movement of the conventional communication system, and shows the mode in case the distance between communication apparatus 1A, 2 is long and is outside a communication range. 従来の通信システムの動作を示すシーケンス図であり、通信装置1A、2の間の距離が短く通信範囲内の場合の様子を示すものである。It is a sequence diagram which shows operation | movement of the conventional communication system, and shows the mode in case the distance between communication apparatus 1A and 2 is short, and is in a communication range.

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

[第1の実施の形態]
図1は、第1の実施の形態に係る通信システムの構成図である。
[First Embodiment]
FIG. 1 is a configuration diagram of a communication system according to the first embodiment.

通信装置1は、通信装置2内の情報を用いて情報処理を行う情報処理部11と、情報処理部11と有線で接続された通信部12と、通信方法M(例えば、非接触カードに使用される)によって通信部12と通信し、通信装置2とは通信方法N(例えば、電界通信)によって通信する通信部13を備える。   The communication device 1 includes an information processing unit 11 that performs information processing using information in the communication device 2, a communication unit 12 that is connected to the information processing unit 11 through a wire, and a communication method M (for example, a contactless card). The communication unit 12 includes a communication unit 13 that communicates with the communication unit 12 using the communication method N (for example, electric field communication).

通信部13は、通信装置1に新たに設けられたものであり、通信部13が設けられる前の通信装置1は通信装置2と、つまり、通信部12は、通信方法Mによって、通信装置2と通信していた。   The communication unit 13 is newly provided in the communication device 1. The communication device 1 before the communication unit 13 is provided is the communication device 2, that is, the communication unit 12 is connected to the communication device 2 by the communication method M. Was communicating with.

しかし、通信部13が設けられてからは、通信装置1は通信装置2と、つまり、通信部13は、新たな通信方法、つまり、通信方法Mとは異なる通信方法Nで、通信装置2と通信する。   However, after the communication unit 13 is provided, the communication device 1 is connected to the communication device 2, that is, the communication unit 13 is connected to the communication device 2 using a new communication method, that is, a communication method N different from the communication method M. connect.

通信部13は、通信方法Mによって通信部12と通信する中継部131と、中継部131と有線で接続され、通信方法Nで通信装置2と通信する中継部132とを備える。   The communication unit 13 includes a relay unit 131 that communicates with the communication unit 12 using the communication method M, and a relay unit 132 that is connected to the relay unit 131 via a wire and communicates with the communication device 2 using the communication method N.

通信装置2は、通信装置1にとって必要な情報を有する情報処理部21と、情報処理部21と有線で接続された通信部22と、通信方法Mによって通信部22と通信し、通信装置1とは通信方法Nによって通信する通信部23を備える。   The communication device 2 communicates with the communication unit 22 by the information processing unit 21 having information necessary for the communication device 1, the communication unit 22 connected to the information processing unit 21 by wire, and the communication method M. Includes a communication unit 23 that communicates by the communication method N.

通信部23は、通信装置2に新たに設けられたものであり、通信部23が設けられる前の通信装置2は通信装置1と、つまり、通信部22は、通信方法Mによって、通信装置1と通信していた。   The communication unit 23 is newly provided in the communication device 2. The communication device 2 before the communication unit 23 is provided is the communication device 1, that is, the communication unit 22 is connected to the communication device 1 by the communication method M. Was communicating with.

しかし、通信部23が設けられてからは、通信装置2は通信装置1と、つまり、通信部23は、通信方法Nで、通信装置2と通信する。   However, after the communication unit 23 is provided, the communication device 2 communicates with the communication device 1, that is, the communication unit 23 communicates with the communication device 2 by the communication method N.

通信部23は、通信方法Mによって通信部22と通信する中継部231と、中継部231と有線で接続され、通信方法Nで通信装置1(つまり通信装置1の中継部132)と通信する中継部232とを備える。   The communication unit 23 is connected to the relay unit 231 that communicates with the communication unit 22 by the communication method M and the relay unit 231 via a wire, and communicates with the communication device 1 (that is, the relay unit 132 of the communication device 1) by the communication method N. Part 232.

図2は、第1の実施の形態における中継部132、232の構成図である。   FIG. 2 is a configuration diagram of the relay units 132 and 232 according to the first embodiment.

中継部132は、予め中継部132に記憶された電文(後述の応答電文MR)を通信部12に送信する中継処理部1321と、通信部12から通信部13の中継部131に送信される通信方法Mによるポーリング電文に対する肯定応答つまり通信方法Mによる応答電文MRが記憶された応答電文記憶部1322とを備える。   The relay unit 132 transmits a message (a response message MR described later) stored in the relay unit 132 in advance to the communication unit 12 and a communication transmitted from the communication unit 12 to the relay unit 131 of the communication unit 13. A response message storage unit 1322 in which a response to a polling message by the method M, that is, a response message MR by the communication method M is stored;

図示しないが、中継部132には、通信部12からポーリング電文の送信が既にあったか否かによらずポーリング電文を送出すべき場合には、その旨の設定情報(以下、設定情報AUTOという)が記憶される。   Although not shown, the relay unit 132 has setting information (hereinafter referred to as setting information AUTO) indicating that a polling message should be sent regardless of whether or not the polling message has already been transmitted from the communication unit 12. Remembered.

中継部232は、予め中継部232に記憶されたポーリング電文(後述のポーリング電文)を通信部22に送信する中継処理部2321と、通信部12から通信部13の中継部131に送信される通信方法Mによるポーリング電文と同じポーリング電文MPが記憶されたポーリング電文記憶部2322とを備える。   The relay unit 232 transmits a polling message (a polling message described later) stored in the relay unit 232 in advance to the communication unit 22, and a communication transmitted from the communication unit 12 to the relay unit 131 of the communication unit 13. And a polling message storage unit 2322 in which the same polling message MP as the polling message by the method M is stored.

図3は、第1の実施の形態における通信部13における処理の流れを示すフローチャートである。   FIG. 3 is a flowchart illustrating a processing flow in the communication unit 13 according to the first embodiment.

通信部13は、設定情報AUTOがあるか否かを判定する(S1)。通信部13は、設定情報AUTOがないなら(S1:NO)、通信部12からポーリング電文の送信が既にあったか否かを判定し(S3)、送信がなければ、ステップS3へ戻る。   The communication unit 13 determines whether there is setting information AUTO (S1). If there is no setting information AUTO (S1: NO), the communication unit 13 determines whether or not a polling message has already been transmitted from the communication unit 12 (S3). If there is no transmission, the process returns to step S3.

通信部13の中継部132の中継処理部1321は、通信部12からポーリング電文の送信が既にあったなら(S3:YES)、または、設定情報AUTOがある(S1:YES)なら、通信方法Nによるポーリング電文を作成し、通信方法Nにより外部に送出する(S5)。   The relay processing unit 1321 of the relay unit 132 of the communication unit 13 determines that the communication method N if the polling message has already been transmitted from the communication unit 12 (S3: YES) or there is setting information AUTO (S1: YES). Is created and sent to the outside by the communication method N (S5).

次に、中継部132は、ポーリング電文に対する応答の電文を受信したか否かを判定する(S7)。中継部132は、応答の電文を受信していないと判定したら(S7:NO)、タイムアウト(ステップS5の時刻から所定の時間が経過した)か否かを判定し(S9)、タイムアウトでないなら、ステップS7へ戻り、タイムアウトなら、ステップS11へ進む。   Next, the relay unit 132 determines whether or not a response message to the polling message has been received (S7). If the relay unit 132 determines that a response message has not been received (S7: NO), the relay unit 132 determines whether a timeout has occurred (a predetermined time has elapsed from the time in step S5) (S9). The process returns to step S7, and if time is out, the process proceeds to step S11.

ステップS11では、中継部132は、ポーリング電文の送信回数が予め設定された規定回数より多いか否かを判定し、規定回数より多いならステップS1へ戻り、超えていないなら、ステップS5へ戻る。   In step S11, the relay unit 132 determines whether or not the number of polling message transmissions is greater than a predetermined number of times set in advance. If the number is greater than the predetermined number of times, the relay unit 132 returns to step S1.

通信部13は、応答の電文を受信したなら(S7:YES)、それが肯定応答の電文であることを条件に、設定情報AUTOがあるか否かを判定する(S21)。   If the communication unit 13 receives a response message (S7: YES), the communication unit 13 determines whether there is setting information AUTO on the condition that it is a positive response message (S21).

通信部13は、設定情報AUTOがあるなら(S21:YES)、通信部12からのポーリング電文の送信が既にあったか否かを判定し(S23)、送信が未だないならば、ステップS23へ戻る。   If there is setting information AUTO (S21: YES), the communication unit 13 determines whether or not a polling message has already been transmitted from the communication unit 12 (S23). If there is no transmission yet, the communication unit 13 returns to step S23.

通信部13の中継部132の中継処理部1321は、通信部12からのポーリング電文の送信が既にあった(S23:YES)なら、または、設定情報AUTOがない(S21:NO)なら、応答電文記憶部1322から応答電文MRを読み出し、有線にて中継部131に送信する(S25)。   The relay processing unit 1321 of the relay unit 132 of the communication unit 13 sends a response message if the polling message has already been transmitted from the communication unit 12 (S23: YES) or if there is no setting information AUTO (S21: NO). The response message MR is read from the storage unit 1322 and transmitted to the relay unit 131 by wire (S25).

中継部131は、応答電文MRを通信方法Mにより通信部12に送信し(S27)、ステップS1に戻る。   The relay unit 131 transmits the response message MR to the communication unit 12 by the communication method M (S27), and returns to step S1.

図4は、第1の実施の形態における通信部23における処理の流れを示すフローチャートである。   FIG. 4 is a flowchart illustrating a processing flow in the communication unit 23 according to the first embodiment.

通信部23の中継部232の中継処理部2321は、通信方法Nによるポーリング電文を外部から受信した(S101)なら、ポーリング電文に対する応答の電文を作成し、応答の電文を通信方法Nにより外部に送出する(S103)。   If the relay processing unit 2321 of the relay unit 232 of the communication unit 23 receives a polling message by the communication method N from the outside (S101), it creates a response message to the polling message and sends the response message to the outside by the communication method N. Send out (S103).

また、中継部232の中継処理部2321は、ポーリング電文記憶部2322からポーリング電文MPを読み出し、有線にて中継部231に送信し、中継部231は、ポーリング電文MPを通信方法Mにより通信部22に送信する(S111)。   Further, the relay processing unit 2321 of the relay unit 232 reads the polling message MP from the polling message storage unit 2322 and transmits it to the relay unit 231 by wire, and the relay unit 231 uses the communication method M to transmit the polling message MP to the communication unit 22. (S111).

次に、通信部23は、通信部22から応答電文MRと同じ応答の電文を受信したか否かを判定する(S113)。通信部23は、応答の電文を受信していないと判定したら(S113:NO)、タイムアウト(ステップS111の時刻から所定の時間が経過した)か否かを判定し(S115)、タイムアウトでないなら、ステップS113へ戻り、タイムアウトなら、ステップS117へ進む。   Next, the communication unit 23 determines whether or not a message having the same response as the response message MR is received from the communication unit 22 (S113). If it is determined that the response message has not been received (S113: NO), the communication unit 23 determines whether or not a timeout has occurred (a predetermined time has elapsed from the time of step S111) (S115). Returning to step S113, if timed out, the process proceeds to step S117.

ステップS117では、通信部23は、ポーリング電文MPの送信回数が予め設定された規定回数より多いか否かを判定し、超えていないなら、ステップS111へ戻る。   In step S117, the communication unit 23 determines whether or not the number of transmissions of the polling message MP is greater than a predetermined number of times set in advance, and if not, returns to step S111.

通信部23の中継部232は、規定回数より多いなら、ポーリング電文MPに対する否定応答の電文を作成し、電文を通信方法Nにより外部に送出し(S119)、処理が終了する。   If the relay unit 232 of the communication unit 23 exceeds the specified number of times, the relay unit 232 creates a negative response message for the polling message MP, sends the message to the outside by the communication method N (S119), and the process ends.

中継部232は、応答の電文を受信したなら(S113:YES)、応答の電文を廃棄し(S121)、処理が終了する。   When the relay unit 232 receives the response message (S113: YES), the relay unit 232 discards the response message (S121), and the process ends.

図示しないが、通信装置1は、ステップS119で送出される電文を受信したら、例えば、実行中のポーリングや通信を途中で中止する。   Although not shown, when the communication device 1 receives the message sent in step S119, for example, the polling or the communication being executed is stopped halfway.

図5は、第1の実施の形態における通信システムの動作の一例を示すシーケンス図である。   FIG. 5 is a sequence diagram illustrating an example of the operation of the communication system according to the first embodiment.

図5は、通信装置1、2が互いに近づき、通信が開始される様子を示すものである。   FIG. 5 shows a state in which the communication devices 1 and 2 approach each other and communication is started.

通信部13は、通信装置1が起動されると、設定情報AUTOがあるなら、通信方法Nによるポーリング電文を外部に送出する(T1)。   When the communication device 1 is activated, the communication unit 13 sends out a polling message by the communication method N to the outside if there is setting information AUTO (T1).

通信装置1、2の間の距離が長いと、通信部13からの通信方法Nによるポーリング電文は通信装置2に届かず、通信部13は、タイムアウトとポーリング電文の送信を繰り返す。   When the distance between the communication devices 1 and 2 is long, the polling message by the communication method N from the communication unit 13 does not reach the communication device 2, and the communication unit 13 repeats the timeout and the transmission of the polling message.

情報処理部11は、通信装置1が起動されると、通信部12に有線にてポーリングコマンドを送信し(T2)、通信部12は、ポーリングコマンドを受信したら、通信方法Mによるポーリング電文を作成し、通信部13に送信する(T3)。   When the communication apparatus 1 is activated, the information processing unit 11 transmits a polling command to the communication unit 12 by wire (T2). When the communication unit 12 receives the polling command, the communication unit 12 creates a polling message using the communication method M. Then, the data is transmitted to the communication unit 13 (T3).

通信部12も、通信部13から応答の電文を受信しないので、タイムアウトと通信方法Mによるポーリング電文の送信を繰り返す。   Since the communication unit 12 does not receive a response message from the communication unit 13, the communication unit 12 repeats the transmission of the polling message by the timeout and the communication method M.

情報処理部11については、ここでは、タイムアウトとなるような設定がなされていないこととする。よって、情報処理部11は、ポーリングコマンドに対する応答を待機する。   Here, it is assumed that the information processing unit 11 is not set to time out. Therefore, the information processing unit 11 waits for a response to the polling command.

通信装置1、2が互いに近づき、通信部23の中継部232は、通信部13からの通信方法Nによるポーリング電文が受信されたら、ポーリング電文に対する応答の電文を作成し、応答の電文を通信方法Nにより外部に送出する(T11)。   When the communication devices 1 and 2 approach each other and the relay unit 232 of the communication unit 23 receives a polling message by the communication method N from the communication unit 13, the relay unit 232 creates a response message to the polling message and transmits the response message to the communication method. N is sent to the outside (T11).

通信部13の中継部132は、通信方法Nにより応答の電文を受信し、通信部12からポーリング電文を既に受信しているので、応答電文MRを読み出し、有線にて中継部131に送信し、中継部131は、応答電文MRを通信方法Mにより通信部12に送信する(T13)。   The relay unit 132 of the communication unit 13 receives the response message by the communication method N and has already received the polling message from the communication unit 12, so reads the response message MR and transmits it to the relay unit 131 by wire. The relay unit 131 transmits the response message MR to the communication unit 12 by the communication method M (T13).

通信部12は、通信方法Mにより応答電文MRを受信し、応答電文MRを応答コマンドに変換し、情報処理部11に有線にて送信する(T15)。   The communication unit 12 receives the response message MR by the communication method M, converts the response message MR into a response command, and transmits it to the information processing unit 11 by wire (T15).

一方、通信部23の中継部232は、通信部13からの通信方法Nによるポーリング電文が受信されたら、ポーリング電文MPを読み出し、有線にて中継部231に送信し、中継部231は、ポーリング電文MPを通信方法Mにより通信部22に送信する(T21)。   On the other hand, when the polling message by the communication method N from the communication unit 13 is received, the relay unit 232 of the communication unit 23 reads the polling message MP and transmits it to the relay unit 231 by wire, and the relay unit 231 receives the polling message. The MP is transmitted to the communication unit 22 by the communication method M (T21).

通信部22は、通信方法Mによりポーリング電文MPを受信し、ポーリング電文MPをポーリングコマンドに変換し、ポーリングコマンドを情報処理部21に送信する(T23)。   The communication unit 22 receives the polling message MP by the communication method M, converts the polling message MP into a polling command, and transmits the polling command to the information processing unit 21 (T23).

情報処理部21は、ポーリングコマンドを受信し、ポーリングコマンドに対する応答コマンド(例えば、肯定応答のコマンド)を作成し、有線にて応答コマンドを通信部22に送信する(T25)。   The information processing unit 21 receives the polling command, creates a response command (for example, a positive response command) to the polling command, and transmits the response command to the communication unit 22 by wire (T25).

通信部22は、応答コマンドをポーリング電文MPに対する応答の電文つまり応答電文MRと同じ応答の電文に変換し、通信方法Mにより通信部23の中継部231に送信し(T27)、電文は通信部23にて廃棄される。   The communication unit 22 converts the response command into a response message to the polling message MP, that is, a response message same as the response message MR, and transmits the response command to the relay unit 231 of the communication unit 23 by the communication method M (T27). It is discarded at 23.

図6は、第1の実施の形態における通信システムの動作の別な一例を示すシーケンス図である。   FIG. 6 is a sequence diagram illustrating another example of the operation of the communication system according to the first embodiment.

図6は、通信装置1、2が互いに近づき、通信が開始される様子を示すものである。   FIG. 6 shows a state in which the communication devices 1 and 2 approach each other and communication is started.

通信部13は、通信装置1が起動されると、設定情報AUTOがないなら、ポーリング電文が送信される(T3)のを待機する。つまり、通信部13は、情報処理部11から通信部12にポーリングコマンドが送信され(T2)、通信部12から通信部13にポーリング電文が送信される(T3)のを待機する。   When the communication device 1 is activated, the communication unit 13 waits for a polling message to be transmitted (T3) if there is no setting information AUTO. That is, the communication unit 13 waits for a polling command to be transmitted from the information processing unit 11 to the communication unit 12 (T2) and a polling message to be transmitted from the communication unit 12 to the communication unit 13 (T3).

通信部13は、ポーリング電文を受信した(T3)ら、通信方法Nによるポーリング電文を外部に送出する(T1)。   When receiving the polling message (T3), the communication unit 13 sends out a polling message by the communication method N (T1).

通信装置1、2の間の距離が長いと、通信部13からの通信方法Nによるポーリング電文は通信装置2に届かず、通信部13は、タイムアウトとポーリング電文の送信を繰り返す。   When the distance between the communication devices 1 and 2 is long, the polling message by the communication method N from the communication unit 13 does not reach the communication device 2, and the communication unit 13 repeats the timeout and the transmission of the polling message.

通信部12も、通信部13から通信部12に応答の電文が送信されないので、タイムアウトと通信方法Mによるポーリング電文の送信を繰り返す。   Since no response message is transmitted from the communication unit 13 to the communication unit 12, the communication unit 12 also repeats transmission of a polling message using the timeout and the communication method M.

情報処理部11については、ここでは、タイムアウトとなるような設定がなされていないこととする。よって、情報処理部11は、ポーリングコマンドに対する応答コマンドを待機する。   Here, it is assumed that the information processing unit 11 is not set to time out. Therefore, the information processing unit 11 waits for a response command to the polling command.

通信装置1、2が互いに近づき、通信部23の中継部232は、通信部13からの通信方法Nによるポーリング電文が受信されたら、ポーリング電文に対する応答の電文を作成し、応答の電文を通信方法Nにより外部に送出する(T11)。   When the communication devices 1 and 2 approach each other and the relay unit 232 of the communication unit 23 receives a polling message by the communication method N from the communication unit 13, the relay unit 232 creates a response message to the polling message and transmits the response message to the communication method. N is sent to the outside (T11).

通信部13の中継部132は、通信方法Nにより応答の電文を受信したなら、応答電文MRを読み出し、有線にて中継部131に送信し、中継部131は、応答電文MRを通信方法Mにより通信部12に送信する(T13)。   When the relay unit 132 of the communication unit 13 receives a response message by the communication method N, the relay unit 132 reads the response message MR and transmits the response message MR to the relay unit 131 by wire, and the relay unit 131 transmits the response message MR by the communication method M. It transmits to the communication part 12 (T13).

以下、図5の例と同様であるので、説明を省略する。   Hereinafter, since it is the same as that of the example of FIG. 5, description is abbreviate | omitted.

こうして、第1の実施の形態では、情報処理部11、21間のポーリングが終了し、その期間においては、通信部12、22間のポーリング、および、通信部13、23間のポーリングも終了する。   Thus, in the first embodiment, polling between the information processing units 11 and 21 is completed, and during that period, polling between the communication units 12 and 22 and polling between the communication units 13 and 23 are also completed. .

なお、情報処理部11は、応答コマンドが肯定応答を示すものなら、同様のシーケンスで、通信部12、通信部13、通信部23、通信部22を介して、情報処理部21に対し通信を行い、通信が終了したなら、通信部12にポーリングコマンドを送信し、応答コマンドが肯定応答を示すまで、これを繰り返す。   If the response command indicates an affirmative response, the information processing unit 11 communicates with the information processing unit 21 through the communication unit 12, the communication unit 13, the communication unit 23, and the communication unit 22 in the same sequence. If the communication is completed, a polling command is transmitted to the communication unit 12, and this is repeated until the response command indicates an affirmative response.

情報処理部11は、応答コマンドが否定応答を示すものであった場合でも、通信部12にポーリングコマンドを送信し、応答コマンドが肯定応答を示すまで、これを繰り返す。   Even when the response command indicates a negative response, the information processing unit 11 transmits a polling command to the communication unit 12 and repeats this until the response command indicates an affirmative response.

したがって、第1の実施の形態によれば、通信方法Nによる応答の電文を受信したなら(T11)、事前に通信方法Mによる応答電文MRを送信し(T13)、これにより、情報処理部11へ応答コマンドが事前に送信される(T15)ので、ポーリングを早期に終了させることができる。   Therefore, according to the first embodiment, when a response message according to the communication method N is received (T11), a response message MR according to the communication method M is transmitted in advance (T13), whereby the information processing unit 11 Since the response command is transmitted in advance (T15), polling can be terminated early.

つまり、通信部13が、通信方法Nによるポーリング電文を外部に送出し(S5、T1)、当該ポーリング電文に対する応答の電文を外部から受信したなら(S7:YES)、通信部12から通信方法Mによるポーリング電文を既に受信しているなら(S3:S23:YES)、応答電文記憶部1322から応答電文を読み出し、通信部12へ送信する。   That is, if the communication unit 13 sends a polling message by the communication method N to the outside (S5, T1) and receives a message from the outside in response to the polling message (S7: YES), the communication method M from the communication unit 12 If the polling message has been received (S3: S23: YES), the response message is read from the response message storage unit 1322 and transmitted to the communication unit 12.

そして、通信部23が、通信方法Nによるポーリング電文を外部から受信したなら、当該ポーリング電文に対する応答の電文を外部に送出し(S103、T11)、ポーリング電文記憶部2322からポーリング電文を読み出し、通信部22へ送信する。   If the communication unit 23 receives a polling message by the communication method N from the outside, it sends out a response message to the polling message (S103, T11), reads the polling message from the polling message storage unit 2322, and communicates. To the unit 22.

これにより、第1の実施の形態においては、ポーリングを早期に終了させることができる。   Thereby, in 1st Embodiment, polling can be terminated early.

[第2の実施の形態]
次に、本発明の第2の実施の形態について説明する。第2の実施の形態では、第1の実施の形態に同一または類似の装置および装置構成を用い、かかるもののについては第1の実施の形態で使用した符号を使用して重複説明を略し、第1の実施の形態とは異なる事項を中心に説明を行う。
[Second Embodiment]
Next, a second embodiment of the present invention will be described. In the second embodiment, the same or similar apparatus and apparatus configuration as those in the first embodiment are used, and the description thereof is omitted by using the reference numerals used in the first embodiment. The description will focus on matters different from those of the first embodiment.

図7は、第2の実施の形態における中継部132、232の構成図である。   FIG. 7 is a configuration diagram of the relay units 132 and 232 according to the second embodiment.

中継部132は、中継処理部1321と、応答電文記憶部1322と、応答電文作成部1323と、装置識別子記憶部1324と、装置識別子情報記憶部1325とを備える。   The relay unit 132 includes a relay processing unit 1321, a response message storage unit 1322, a response message generation unit 1323, a device identifier storage unit 1324, and a device identifier information storage unit 1325.

装置識別子記憶部1324は、通信方法Nで使用される通信装置1の装置識別子N1を記憶している。   The device identifier storage unit 1324 stores the device identifier N1 of the communication device 1 used in the communication method N.

装置識別子情報記憶部1325は、装置識別子N2並びに通信方法Mで使用される通信装置2の装置識別子M2を含む装置識別子情報を記憶している。また、装置識別子情報記憶部1325は、通信装置2以外にも通信する可能性のある通信装置に関する装置識別子情報を記憶している。   The device identifier information storage unit 1325 stores device identifier information including the device identifier N2 and the device identifier M2 of the communication device 2 used in the communication method M. Further, the device identifier information storage unit 1325 stores device identifier information related to communication devices that may communicate in addition to the communication device 2.

中継部232は、中継処理部2321と、ポーリング電文記憶部2322と、ポーリング電文作成部2323と、装置識別子記憶部2324と、装置識別子情報記憶部2325とを備える。   The relay unit 232 includes a relay processing unit 2321, a polling message storage unit 2322, a polling message creation unit 2323, a device identifier storage unit 2324, and a device identifier information storage unit 2325.

装置識別子記憶部2324は、通信方法Nで使用される通信装置2の装置識別子N2を記憶している。   The device identifier storage unit 2324 stores the device identifier N2 of the communication device 2 used in the communication method N.

装置識別子情報記憶部2325は、装置識別子N1並びに通信方法Mで使用される通信装置1の装置識別子M1を含む装置識別子情報を記憶している。また、装置識別子情報記憶部2325は、通信装置1以外にも通信する可能性のある通信装置に関する装置識別子情報を記憶している。   The device identifier information storage unit 2325 stores device identifier information including the device identifier N1 and the device identifier M1 of the communication device 1 used in the communication method M. Further, the device identifier information storage unit 2325 stores device identifier information related to communication devices that may communicate in addition to the communication device 1.

図8は、第2の実施の形態における通信部13における処理の流れを示すフローチャートである。図8においては、図3におけるステップと同一のステップには同一の符号を使用する。   FIG. 8 is a flowchart illustrating a processing flow in the communication unit 13 according to the second embodiment. In FIG. 8, the same reference numerals are used for the same steps as those in FIG.

ステップS1〜S3については、図3におけるステップと同一であるから、説明を省略する。   Steps S1 to S3 are the same as the steps in FIG.

通信部13の中継部132の中継処理部1321は、通信部12からポーリング電文の送信が既にあったなら(S3:YES)、または、設定情報AUTOがある(S1:YES)なら、装置識別子記憶部1324から装置識別子N1を読み出し、通信方法Nによるポーリング電文を作成し、ポーリング電文に装置識別子N1を含ませ、装置識別子N1を含ませたポーリング電文を通信方法Nにより外部に送出する(S5a)。   The relay processing unit 1321 of the relay unit 132 of the communication unit 13 stores a device identifier if a polling message has already been transmitted from the communication unit 12 (S3: YES), or if there is setting information AUTO (S1: YES). The device identifier N1 is read from the unit 1324, a polling message is generated by the communication method N, the device identifier N1 is included in the polling message, and the polling message including the device identifier N1 is transmitted to the outside by the communication method N (S5a). .

ステップS7〜S11については、図3におけるステップと同一であるから、説明を省略する。   Steps S7 to S11 are the same as the steps in FIG.

中継処理部1321は、応答の電文を受信したなら(S7:YES)、それが肯定応答の電文であることを条件に、応答の電文を応答電文作成部1323へ転送する(S13)。   If the relay processing unit 1321 receives the response message (S7: YES), the relay processing unit 1321 transfers the response message to the response message creation unit 1323 on the condition that the response message is an affirmative response message (S13).

応答電文作成部1323は、応答の電文に含まれる装置識別子(例えば、装置識別子N2)を読み出し、これと同じ装置識別子を含む装置識別子情報を装置識別子情報記憶部1325から検索し、この装置識別子情報から、通信方法Mで使用される装置識別子(例えば、装置識別子M2)を読み出す(S15)。   The response message creating unit 1323 reads the device identifier (for example, device identifier N2) included in the response message, searches the device identifier information storage unit 1325 for device identifier information including the same device identifier, and this device identifier information. Then, a device identifier (for example, device identifier M2) used in the communication method M is read (S15).

次に、応答電文作成部1323は、応答電文記憶部1322から応答電文MRを読み出し、応答電文MRに、ステップS15で読み出した装置識別子(例えば、装置識別子M2)を含ませる(S17)。   Next, the response message creating unit 1323 reads the response message MR from the response message storage unit 1322, and includes the device identifier (for example, device identifier M2) read in step S15 in the response message MR (S17).

次に、通信部13は、設定情報AUTOがあるか否かを判定する(S21)。   Next, the communication unit 13 determines whether there is setting information AUTO (S21).

通信部13は、設定情報AUTOがないなら(S21:NO)、通信部12からのポーリング電文の送信が既にあったか否かを判定し(S23)、送信が未だないならば、ステップS23へ戻る。   If there is no setting information AUTO (S21: NO), the communication unit 13 determines whether or not a polling message has already been transmitted from the communication unit 12 (S23). If there is no transmission yet, the communication unit 13 returns to step S23.

通信部13の中継部132の中継処理部1321は、通信部12からのポーリング電文の送信が既にあったなら(S23:YES)、または、設定情報AUTOがある(S21:YES)なら、装置識別子(例えば、装置識別子M2)を含んだ応答電文MRを有線にて中継部131に送信する(S25)。   The relay processing unit 1321 of the relay unit 132 of the communication unit 13 determines that the device identifier has been transmitted if the polling message has already been transmitted from the communication unit 12 (S23: YES) or there is setting information AUTO (S21: YES). A response message MR including (for example, the device identifier M2) is transmitted to the relay unit 131 by wire (S25).

中継部131は、応答電文MRを通信方法Mにより通信部12に送信し(S27)、ステップS1に戻る。   The relay unit 131 transmits the response message MR to the communication unit 12 by the communication method M (S27), and returns to step S1.

図9は、第2の実施の形態における通信部23における処理の流れを示すフローチャートである。図9においては、図4におけるステップと同一のステップには同一の符号を使用する。   FIG. 9 is a flowchart illustrating a flow of processing in the communication unit 23 according to the second embodiment. In FIG. 9, the same reference numerals are used for the same steps as those in FIG.

通信部23の中継部232の中継処理部2321は、通信方法Nによるポーリング電文を外部から受信した(S101)なら、装置識別子記憶部2324から装置識別子N2を読み出し、通信方法Nによる応答の電文を作成し、応答の電文に装置識別子N2を含ませ、装置識別子N2を含ませた応答の電文を通信方法Nにより外部に送出する(S103a)。   If the relay processing unit 2321 of the relay unit 232 of the communication unit 23 has received a polling message by the communication method N from the outside (S101), the relay processing unit 2321 reads the device identifier N2 from the device identifier storage unit 2324 and sends a response message by the communication method N. The device identifier N2 is created and included in the response message, and the response message including the device identifier N2 is transmitted to the outside by the communication method N (S103a).

また、中継処理部2321は、通信方法Nによるポーリング電文を外部から受信した(S101)なら、ポーリング電文をポーリング電文作成部2323へ転送する(S105)。   Further, if the polling message by the communication method N is received from the outside (S101), the relay processing unit 2321 transfers the polling message to the polling message creating unit 2323 (S105).

ポーリング電文作成部2323は、ポーリング電文に含まれる装置識別子(例えば、装置識別子N1)を読み出し、これと同じ装置識別子を含む装置識別子情報を装置識別子情報記憶部2325から検索し、この装置識別子情報から、通信方法Mで使用される装置識別子(例えば、装置識別子M1)を読み出す(S107)。   The polling message creation unit 2323 reads a device identifier (for example, device identifier N1) included in the polling message, searches the device identifier information storage unit 2325 for device identifier information including the same device identifier, and uses this device identifier information. Then, a device identifier (for example, device identifier M1) used in the communication method M is read (S107).

次に、ポーリング電文作成部2323は、ポーリング電文記憶部2322からポーリング電文MPを読み出し、ポーリング電文MPに、ステップS107で読み出した装置識別子(例えば、装置識別子M1)を含ませる(S109)。   Next, the polling message creation unit 2323 reads the polling message MP from the polling message storage unit 2322, and includes the device identifier (for example, device identifier M1) read in step S107 in the polling message MP (S109).

中継部232の中継処理部2321は、装置識別子(例えば、装置識別子M1)を含むポーリング電文MPを有線にて中継部231に送信し、中継部231は、ポーリング電文MPを通信方法Mにより通信部22に送信する(S111)。   The relay processing unit 2321 of the relay unit 232 transmits a polling message MP including a device identifier (for example, device identifier M1) to the relay unit 231 by wire, and the relay unit 231 uses the communication method M to transmit the polling message MP to the communication unit. 22 (S111).

ステップS113〜S121については、図4におけるステップと同一であるから、説明を省略する。   Steps S113 to S121 are the same as the steps in FIG.

次に、図5を援用し、第2の実施の形態における通信システムの動作の一例を説明する。   Next, an example of the operation of the communication system according to the second embodiment will be described with reference to FIG.

通信部13は、通信装置1が起動されると、設定情報AUTOがあるなら、装置識別子N1を含むポーリング電文を外部に送出する(T1)。   When the communication device 1 is activated, the communication unit 13 sends a polling message including the device identifier N1 to the outside if there is setting information AUTO (T1).

ポーリング電文が通信装置2に届かないと、通信部13は、タイムアウトとポーリング電文の送信を繰り返す。   If the polling message does not reach the communication device 2, the communication unit 13 repeats timeout and transmission of the polling message.

情報処理部11は、通信装置1が起動されると、通信部12にポーリングコマンドを送信し(T2)、通信部12は、通信方法Mによるポーリング電文を作成し、通信部13に送信する(T3)。   When the communication device 1 is activated, the information processing unit 11 transmits a polling command to the communication unit 12 (T2), and the communication unit 12 creates a polling message by the communication method M and transmits it to the communication unit 13 ( T3).

通信部12も、通信部13から応答の電文が送信されないので、タイムアウトとポーリング電文の送信を繰り返す。   Since the response message is not transmitted from the communication unit 13, the communication unit 12 also repeats transmission of timeout and polling message.

情報処理部11は、タイムアウトとなるような設定がなされていないので、ポーリングコマンドに対する応答コマンドを待機する。   Since the information processing unit 11 is not set to time out, the information processing unit 11 waits for a response command to the polling command.

通信部23の中継部232は、通信部13からのポーリング電文が受信されたら、装置識別子N2を含む応答の電文を作成し、応答の電文を通信方法Nにより外部に送出する(T11)。   When the polling message from the communication unit 13 is received, the relay unit 232 of the communication unit 23 creates a response message including the device identifier N2, and sends the response message to the outside by the communication method N (T11).

通信部13の中継部132は、通信方法Nにより電文を受信し、通信部12からポーリング電文を既に受信しているので、応答の電文から装置識別子N2を読み出し、これと同じ装置識別子を含む装置識別子情報を検索し、この装置識別子情報から、通信方法Mで使用される装置識別子M2を読み出し、応答電文MRを読み出し、応答電文MRに装置識別子M2を含ませ、中継部131に送信し、中継部131は、応答電文MRを通信部12に送信する(T13)。   The relay unit 132 of the communication unit 13 receives the message by the communication method N and has already received the polling message from the communication unit 12, and therefore reads the device identifier N2 from the response message, and includes the same device identifier The identifier information is searched, the device identifier M2 used in the communication method M is read from the device identifier information, the response message MR is read, the response message MR includes the device identifier M2, and is transmitted to the relay unit 131. The unit 131 transmits the response message MR to the communication unit 12 (T13).

通信部12は、応答電文MRを受信し、応答電文MRを、装置識別子M2を含んだまま応答コマンドに変換し、情報処理部11に送信する(T15)。   The communication unit 12 receives the response message MR, converts the response message MR into a response command including the device identifier M2, and transmits the response command to the information processing unit 11 (T15).

ここで、情報処理部11は、応答コマンドから装置識別子M2を読み出し、例えば、装置識別子M2によるいわゆる認証のような、装置識別子M2に応じた処理を行うことができる。   Here, the information processing unit 11 reads the device identifier M2 from the response command, and can perform processing according to the device identifier M2, such as so-called authentication using the device identifier M2.

一方、通信部23の中継部232は、通信部13からの、装置識別子N1を含むポーリング電文が受信されたら、装置識別子N1を読み出し、これと同じ装置識別子を含む装置識別子情報を検索し、この装置識別子情報から装置識別子M1を読み出し、ポーリング電文MPを読み出し、ポーリング電文MPに装置識別子M1を含ませ、中継部231に送信し、中継部231は、装置識別子M1を含むポーリング電文MPを通信部22に送信する(T21)。   On the other hand, when the polling message including the device identifier N1 is received from the communication unit 13, the relay unit 232 of the communication unit 23 reads the device identifier N1, searches for device identifier information including the same device identifier, The device identifier M1 is read from the device identifier information, the polling message MP is read, the device identifier M1 is included in the polling message MP, and transmitted to the relay unit 231. The relay unit 231 transmits the polling message MP including the device identifier M1 to the communication unit. 22 (T21).

通信部22は、ポーリング電文MPを受信し、ポーリング電文MPを、装置識別子M1を含んだままポーリングコマンドに変換し、情報処理部21に送信する(T23)。   The communication unit 22 receives the polling message MP, converts the polling message MP into a polling command while including the device identifier M1, and transmits it to the information processing unit 21 (T23).

情報処理部21は、ポーリングコマンドを受信し、ポーリングコマンドに対する応答コマンド(例えば、肯定応答のコマンド)を作成し、有線にて応答コマンドを通信部22に送信する(T25)。   The information processing unit 21 receives the polling command, creates a response command (for example, a positive response command) to the polling command, and transmits the response command to the communication unit 22 by wire (T25).

ここで、情報処理部21は、ポーリングコマンドから装置識別子M1を読み出し、例えば、装置識別子M1によるいわゆる認証を行い、認証結果に基づいて、応答コマンドを肯定応答のコマンドとするか否定応答のコマンドとするかを決定する処理のような、装置識別子M1に応じた処理を行うことができる。   Here, the information processing unit 21 reads out the device identifier M1 from the polling command, performs so-called authentication with the device identifier M1, for example, and sets a response command as a positive response command or a negative response command based on the authentication result. A process according to the device identifier M1, such as a process for determining whether to perform the process, can be performed.

通信部22は、情報処理部21からの応答コマンドをポーリング電文MPに対する応答の電文つまり応答電文MRと同じ応答の電文に変換し、通信部23の中継部231に送信し(T27)、電文は通信部23にて廃棄される。   The communication unit 22 converts the response command from the information processing unit 21 into a response message to the polling message MP, that is, a response message having the same response as the response message MR, and transmits it to the relay unit 231 of the communication unit 23 (T27). Discarded at the communication unit 23.

次に、図6を援用し、第2の実施の形態における通信システムの動作の別な一例を説明する。   Next, another example of the operation of the communication system according to the second embodiment will be described with reference to FIG.

通信部13は、通信装置1が起動されると、設定情報AUTOがないなら、通信部12からポーリング電文が送信される(T3)のを待機する。   When the communication device 1 is activated, the communication unit 13 waits for a polling message to be transmitted from the communication unit 12 (T3) if there is no setting information AUTO.

通信部13は、ポーリング電文を受信した(T3)ら、装置識別子N1を含むポーリング電文を外部に送出する(T1)。   When receiving the polling message (T3), the communication unit 13 sends a polling message including the device identifier N1 to the outside (T1).

ポーリング電文が通信装置2に届かないと、通信部13は、タイムアウトとポーリング電文の送信を繰り返す。   If the polling message does not reach the communication device 2, the communication unit 13 repeats timeout and transmission of the polling message.

通信部12も、通信部13から応答の電文が送信されないので、タイムアウトとポーリング電文の送信を繰り返す。   Since the response message is not transmitted from the communication unit 13, the communication unit 12 also repeats transmission of timeout and polling message.

情報処理部11は、タイムアウトとなるような設定がなされていないので、ポーリングコマンドに対する応答コマンドを待機する。   Since the information processing unit 11 is not set to time out, the information processing unit 11 waits for a response command to the polling command.

通信部23の中継部232は、通信部13からのポーリング電文が受信されたら、装置識別子N2を含む応答の電文を作成し、応答の電文を通信方法Nにより外部に送出する(T11)。   When the polling message from the communication unit 13 is received, the relay unit 232 of the communication unit 23 creates a response message including the device identifier N2, and sends the response message to the outside by the communication method N (T11).

ステップS13〜S27については、図5を援用して説明したステップと同一であるから、説明を省略する。   Steps S13 to S27 are the same as those described with reference to FIG.

したがって、第2の実施の形態によれば、各通信装置1、2は、装置識別子により、相手が通信装置2、1であることを認識でき、相手に応じた処理を行うことができる。   Therefore, according to the second embodiment, each of the communication devices 1 and 2 can recognize that the other party is the communication device 2 or 1 by the device identifier, and can perform processing according to the other party.

つまり、通信部13が、装置識別子記憶部1322から装置識別子を読み出し、通信方法Nによるポーリング電文を作成し、ポーリング電文に装置識別子を含ませ、ポーリング電文を外部に送出し(S5a、T1)、通信部13が、ポーリング電文に対する応答の電文を外部から受信したなら(S7:YES)、応答の電文に含まれる装置識別子を読み出し、同じ装置識別子を含む装置識別子情報を装置識別子情報記憶部1325から検索し、装置識別子情報から通信方法Mで使用される装置識別子を読み出し(S15)、応答電文記憶部1322から応答電文を読み出し、応答電文に装置識別子を含ませ(S17)、通信部12から通信方法Nによるポーリング電文が既に送信されている(S3:S23:YES)場合において、応答電文を通信部12へ送信する(S27)。   That is, the communication unit 13 reads the device identifier from the device identifier storage unit 1322, creates a polling message using the communication method N, includes the device identifier in the polling message, and sends the polling message to the outside (S5a, T1). If the communication unit 13 receives a response message for the polling message from the outside (S7: YES), the device identifier included in the response message is read, and the device identifier information including the same device identifier is read from the device identifier information storage unit 1325. The device identifier used in communication method M is retrieved from the device identifier information (S15), the response message is read from the response message storage unit 1322, the device identifier is included in the response message (S17), and communication is performed from the communication unit 12. When a polling message by method N has already been transmitted (S3: S23: YES), a response message And it transmits to the communication unit 12 (S27).

また、通信部23が、通信方法Nによるポーリング電文を外部から受信したなら、装置識別子記憶部2324から装置識別子を読み出し、通信方法Nによるポーリング電文に対する応答の電文を作成し、応答の電文に装置識別子を含ませ、外部に送出し(S111、T11)、通信部23が、ポーリング電文に含まれる装置識別子を読み出し、同じ装置識別子を含む装置識別子情報を装置識別子情報記憶部2325から検索し、通信方法Mで使用される装置識別子を読み出し(S107)、ポーリング電文記憶部2322からポーリング電文を読み出し、ポーリング電文に装置識別子を含ませ(S109)、通信部23が、ポーリング電文を通信部22へ送信する(S111a)。   If the communication unit 23 receives a polling message by the communication method N from the outside, the communication unit 23 reads the device identifier from the device identifier storage unit 2324, creates a response message for the polling message by the communication method N, and sets the device as a response message. The identifier is included and sent to the outside (S111, T11), the communication unit 23 reads the device identifier included in the polling message, searches for device identifier information including the same device identifier from the device identifier information storage unit 2325, and performs communication. The device identifier used in the method M is read (S107), the polling message is read from the polling message storage unit 2322, the device identifier is included in the polling message (S109), and the communication unit 23 transmits the polling message to the communication unit 22. (S111a).

これにより、第2の実施の形態においては、ポーリングを早期に終了させることができ、通信相手を認識することができる。   Thereby, in 2nd Embodiment, polling can be terminated at an early stage and a communication partner can be recognized.

なお、本実施の形態では、通信方法を例として説明を行ったが、各通信方法は、有線を用いて行うものであってもよい。   In the present embodiment, the communication method has been described as an example. However, each communication method may be performed using wired communication.

なお、本実施の形態に係る通信装置1や通信装置2の動作方法を装置に実行させるためのコンピュータを機能させるためのコンピュータプログラムは、半導体メモリ、磁気ディスク、光ディスク、光磁気ディスク、磁気テープなどのコンピュータ読み取り可能な記録媒体に記録でき、また、インターネットなどの通信網を介して伝送させて、広く流通させることができる。   A computer program for causing a computer to cause the apparatus to execute the operation method of the communication apparatus 1 or the communication apparatus 2 according to the present embodiment is a semiconductor memory, a magnetic disk, an optical disk, a magneto-optical disk, a magnetic tape, or the like Can be recorded on a computer-readable recording medium, and can be widely distributed by being transmitted through a communication network such as the Internet.

1、2…通信装置
11、21…情報処理部
12、13、22、23…通信部
131、132、231、232…中継部
1321、2321…中継処理部
1322…応答電文記憶部
1323…応答電文作成部
1324、2324…装置識別子記憶部
1325、2325…装置識別子情報記憶部
2322…ポーリング電文記憶部
2323…ポーリング電文作成部
DESCRIPTION OF SYMBOLS 1, 2 ... Communication apparatus 11, 21 ... Information processing part 12, 13, 22, 23 ... Communication part 131, 132, 231, 232 ... Relay part 1321, 321 ... Relay processing part 1322 ... Response message memory | storage part 1323 ... Response message Creation unit 1324, 2324 ... Device identifier storage unit 1325, 2325 ... Device identifier information storage unit 2322 ... Polling message storage unit 2323 ... Polling message creation unit

Claims (8)

第1の通信方法で通信する第1の通信部と第2の通信方法で通信する第2の通信部とを備える通信装置であって、
前記第2の通信部は、
前記第1の通信方法によるポーリング電文に対する応答の電文である応答電文が予め記憶される応答電文記憶部、
前記第2の通信方法によるポーリング電文を外部に送出し、当該ポーリング電文に対する応答の電文を外部から受信したなら、前記第1の通信部から第1の通信方法によるポーリング電文を既に受信しているなら、前記応答電文記憶部から応答電文を読み出す中継処理部を有する第1の中継部と、
当該応答電文を前記第1の通信部へ送信する第2の中継部と
を備えることを特徴とする通信装置。
A communication device comprising a first communication unit that communicates with a first communication method and a second communication unit that communicates with a second communication method,
The second communication unit is
A response message storage unit that stores in advance a response message that is a response message to the polling message according to the first communication method;
If a polling message by the second communication method is sent to the outside and a response message to the polling message is received from the outside, the polling message by the first communication method has already been received from the first communication unit. Then, a first relay unit having a relay processing unit that reads a response message from the response message storage unit,
A communication apparatus comprising: a second relay unit that transmits the response message to the first communication unit.
請求項1記載の通信装置とともに使用される通信装置であって、
第1の通信方法で通信する第1の通信部と第2の通信方法で通信する第2の通信部とを備え、
前記第2の通信部は、
前記第1の通信方法によるポーリング電文が予め記憶されるポーリング電文記憶部、
前記第2の通信方法によるポーリング電文を外部から受信したなら、当該ポーリング電文に対する応答の電文を外部に送出し、前記ポーリング電文記憶部からポーリング電文を読み出す中継処理部を有する第1の中継部と、
当該ポーリング電文を前記第1の通信部へ送信する第2の中継部と
を備えることを特徴とする通信装置。
A communication device used with the communication device according to claim 1,
A first communication unit that communicates using a first communication method and a second communication unit that communicates using a second communication method;
The second communication unit is
A polling message storage unit in which a polling message according to the first communication method is stored in advance;
A first relay unit having a relay processing unit that transmits a response message to the polling message to the outside and reads the polling message from the polling message storage unit when the polling message by the second communication method is received from the outside; ,
A communication apparatus comprising: a second relay unit that transmits the polling message to the first communication unit.
第1の通信方法で通信する第1の通信部と第2の通信方法で通信する第2の通信部とを備える通信装置であって、
前記第2の通信部は、
前記第1の通信方法によるポーリング電文に対する応答の電文である応答電文が予め記憶される応答電文記憶部、
前記第2の通信方法で使用される当該通信装置の装置識別子が予め記憶される装置識別子記憶部、
前記第1の通信方法で使用される通信相手の装置識別子並びに前記第2の通信方法で使用される当該通信相手の装置識別子を含む装置識別子情報が予め記憶される装置識別子情報記憶部、
前記装置識別子記憶部から装置識別子を読み出し、前記第2の通信方法によるポーリング電文を作成し、当該ポーリング電文に当該装置識別子を含ませ、当該装置識別子を含ませたポーリング電文を外部に送出する中継処理部、
当該ポーリング電文に対する応答の電文を外部から受信したなら、当該応答の電文に含まれる装置識別子を読み出し、当該装置識別子と同じ装置識別子を含む装置識別子情報を前記装置識別子情報記憶部から検索し、当該装置識別子情報から前記第1の通信方法で使用される装置識別子を読み出し、前記応答電文記憶部から応答電文を読み出し、当該応答電文に、前記装置識別子情報から読み出した装置識別子を含ませる応答電文作成部を有する第1の中継部と、
前記第1の通信部から第1の通信方法によるポーリング電文を既に受信している場合において、当該応答電文を前記第1の通信部へ送信する第2の中継部と
を備えることを特徴とする通信装置。
A communication device comprising a first communication unit that communicates with a first communication method and a second communication unit that communicates with a second communication method,
The second communication unit is
A response message storage unit that stores in advance a response message that is a response message to the polling message according to the first communication method;
A device identifier storage unit in which a device identifier of the communication device used in the second communication method is stored in advance;
A device identifier information storage unit in which device identifier information including a device identifier of a communication partner used in the first communication method and a device identifier of the communication partner used in the second communication method is stored in advance;
A relay that reads a device identifier from the device identifier storage unit, creates a polling message by the second communication method, includes the device identifier in the polling message, and sends the polling message including the device identifier to the outside Processing section,
If a response message to the polling message is received from the outside, the device identifier included in the response message is read, and device identifier information including the same device identifier as the device identifier is retrieved from the device identifier information storage unit, Read a device identifier used in the first communication method from the device identifier information, read a response message from the response message storage unit, and include a device identifier read from the device identifier information in the response message A first relay section having a section;
A second relay unit that transmits the response message to the first communication unit when a polling message by the first communication method has already been received from the first communication unit. Communication device.
請求項3記載の通信装置とともに使用される通信装置であって、
第1の通信方法で通信する第1の通信部と第2の通信方法で通信する第2の通信部とを備え、
前記第2の通信部は、
前記第1の通信方法によるポーリング電文が予め記憶されるポーリング電文記憶部、
前記第2の通信方法で使用される当該通信装置の装置識別子が予め記憶される装置識別子記憶部、
前記第1の通信方法で使用される通信相手の装置識別子並びに前記第2の通信方法で使用される当該通信相手の装置識別子を含む装置識別子情報が予め記憶される装置識別子情報記憶部、
前記第2の通信方法によるポーリング電文を外部から受信したなら、前記装置識別子記憶部から装置識別子を読み出し、前記第2の通信方法によるポーリング電文に対する応答の電文を作成し、当該応答の電文に当該装置識別子を含ませ、当該装置識別子を含ませた応答の電文を外部に送出する中継処理部、
当該ポーリング電文に含まれる装置識別子を読み出し、当該装置識別子と同じ装置識別子を含む装置識別子情報を前記装置識別子情報記憶部から検索し、当該装置識別子情報から前記第1の通信方法で使用される装置識別子を読み出し、前記ポーリング電文記憶部からポーリング電文を読み出し、当該ポーリング電文に、前記装置識別子情報から読み出した装置識別子を含ませるポーリング電文作成部を有する第1の中継部と、
当該ポーリング電文を前記第1の通信部へ送信する第2の中継部と
を備えることを特徴とする通信装置。
A communication device used with the communication device according to claim 3,
A first communication unit that communicates using a first communication method and a second communication unit that communicates using a second communication method;
The second communication unit is
A polling message storage unit in which a polling message according to the first communication method is stored in advance;
A device identifier storage unit in which a device identifier of the communication device used in the second communication method is stored in advance;
A device identifier information storage unit in which device identifier information including a device identifier of a communication partner used in the first communication method and a device identifier of the communication partner used in the second communication method is stored in advance;
If a polling message according to the second communication method is received from the outside, a device identifier is read from the device identifier storage unit, a response message to the polling message according to the second communication method is created, and the response message includes A relay processing unit that includes a device identifier and sends a response message including the device identifier to the outside;
A device identifier included in the polling message is read out, device identifier information including the same device identifier as the device identifier is retrieved from the device identifier information storage unit, and the device used in the first communication method from the device identifier information A first relay unit having a polling message creation unit that reads an identifier, reads a polling message from the polling message storage unit, and includes the device identifier read from the device identifier information in the polling message;
A communication apparatus comprising: a second relay unit that transmits the polling message to the first communication unit.
第1の通信方法で通信する第1の通信部と第2の通信方法で通信する第2の通信部とを備える通信装置の動作方法であって、
前記第2の通信部は、前記第1の通信方法によるポーリング電文に対する応答の電文である応答電文が予め記憶される応答電文記憶部を備え、
前記動作方法は、
前記第2の通信部が、前記第2の通信方法によるポーリング電文を外部に送出し、当該ポーリング電文に対する応答の電文を外部から受信したなら、前記第1の通信部から第1の通信方法によるポーリング電文を既に受信しているなら、前記応答電文記憶部から応答電文を読み出し、前記第1の通信部へ送信する
ことを特徴とする通信装置の動作方法。
An operation method of a communication apparatus including a first communication unit that communicates with a first communication method and a second communication unit that communicates with a second communication method,
The second communication unit includes a response message storage unit in which a response message that is a response message to the polling message according to the first communication method is stored in advance.
The operation method is as follows:
If the second communication unit sends a polling message according to the second communication method to the outside and receives a response message to the polling message from the outside, the first communication unit uses the first communication method. If the polling message has already been received, the response message is read from the response message storage unit and transmitted to the first communication unit.
請求項1記載の通信装置とともに使用される通信装置の動作方法であって、
当該通信装置は、第1の通信方法で通信する第1の通信部と第2の通信方法で通信する第2の通信部とを備え、
前記第2の通信部は、前記第1の通信方法によるポーリング電文が予め記憶されるポーリング電文記憶部を備え、
前記動作方法は、
前記第2の通信部が、前記第2の通信方法によるポーリング電文を外部から受信したなら、当該ポーリング電文に対する応答の電文を外部に送出し、前記ポーリング電文記憶部からポーリング電文を読み出し、前記第1の通信部へ送信する
ことを特徴とする通信装置の動作方法。
A method of operating a communication device used with the communication device according to claim 1,
The communication apparatus includes a first communication unit that communicates using a first communication method and a second communication unit that communicates using a second communication method.
The second communication unit includes a polling message storage unit in which a polling message according to the first communication method is stored in advance.
The operation method is as follows:
If the second communication unit receives a polling message from the second communication method from the outside, it sends a response message to the polling message to the outside, reads the polling message from the polling message storage unit, and A communication apparatus operating method, comprising: transmitting to one communication unit.
第1の通信方法で通信する第1の通信部と第2の通信方法で通信する第2の通信部とを備える通信装置の動作方法であって、
前記第2の通信部は、
前記第1の通信方法によるポーリング電文に対する応答の電文である応答電文が予め記憶される応答電文記憶部、
前記第2の通信方法で使用される当該通信装置の装置識別子が予め記憶される装置識別子記憶部、
前記第1の通信方法で使用される通信相手の装置識別子並びに前記第2の通信方法で使用される当該通信相手の装置識別子を含む装置識別子情報が予め記憶される装置識別子情報記憶部を有し、
前記動作方法は、
前記第2の通信部が、前記装置識別子記憶部から装置識別子を読み出し、前記第2の通信方法によるポーリング電文を作成し、当該ポーリング電文に当該装置識別子を含ませ、当該装置識別子を含ませたポーリング電文を外部に送出し、
前記第2の通信部が、当該ポーリング電文に対する応答の電文を外部から受信したなら、当該応答の電文に含まれる装置識別子を読み出し、当該装置識別子と同じ装置識別子を含む装置識別子情報を前記装置識別子情報記憶部から検索し、当該装置識別子情報から前記第1の通信方法で使用される装置識別子を読み出し、前記応答電文記憶部から応答電文を読み出し、当該応答電文に、前記装置識別子情報から読み出した装置識別子を含ませ、
前記第2の通信部が、前記第1の通信部から第1の通信方法によるポーリング電文を既に受信している場合において、当該応答電文を前記第1の通信部へ送信する
ことを特徴とする通信装置の動作方法。
An operation method of a communication apparatus including a first communication unit that communicates with a first communication method and a second communication unit that communicates with a second communication method,
The second communication unit is
A response message storage unit that stores in advance a response message that is a response message to the polling message according to the first communication method;
A device identifier storage unit in which a device identifier of the communication device used in the second communication method is stored in advance;
A device identifier information storage unit which stores in advance device identifier information including a device identifier of a communication partner used in the first communication method and a device identifier of the communication partner used in the second communication method; ,
The operation method is as follows:
The second communication unit reads a device identifier from the device identifier storage unit, creates a polling message according to the second communication method, includes the device identifier in the polling message, and includes the device identifier Send a polling message to the outside,
If the second communication unit receives a response message for the polling message from the outside, the second communication unit reads a device identifier included in the response message, and stores device identifier information including the same device identifier as the device identifier. A search is made from the information storage unit, the device identifier used in the first communication method is read from the device identifier information, the response message is read from the response message storage unit, and the response message is read from the device identifier information. Include the device identifier,
In the case where the second communication unit has already received a polling message by the first communication method from the first communication unit, the second communication unit transmits the response message to the first communication unit. Operation method of communication device.
請求項3記載の通信装置とともに使用される通信装置の動作方法であって、
当該通信装置は、第1の通信方法で通信する第1の通信部と第2の通信方法で通信する第2の通信部とを備え、
前記第2の通信部は、
前記第1の通信方法によるポーリング電文が予め記憶されるポーリング電文記憶部、
前記第2の通信方法で使用される当該通信装置の装置識別子が予め記憶される装置識別子記憶部、
前記第1の通信方法で使用される通信相手の装置識別子並びに前記第2の通信方法で使用される当該通信相手の装置識別子を含む装置識別子情報が予め記憶される装置識別子情報記憶部を有し、
前記動作方法は、
前記第2の通信部が、前記第2の通信方法によるポーリング電文を外部から受信したなら、前記装置識別子記憶部から装置識別子を読み出し、前記第2の通信方法によるポーリング電文に対する応答の電文を作成し、当該応答の電文に当該装置識別子を含ませ、当該装置識別子を含ませた応答の電文を外部に送出し、
前記第2の通信部が、当該ポーリング電文に含まれる装置識別子を読み出し、当該装置識別子と同じ装置識別子を含む装置識別子情報を前記装置識別子情報記憶部から検索し、当該装置識別子情報から前記第1の通信方法で使用される装置識別子を読み出し、前記ポーリング電文記憶部からポーリング電文を読み出し、当該ポーリング電文に、前記装置識別子情報から読み出した装置識別子を含ませ、
前記第2の通信部が、当該ポーリング電文を前記第1の通信部へ送信する
ことを特徴とする通信装置の動作方法。
A method of operating a communication device used with the communication device according to claim 3,
The communication apparatus includes a first communication unit that communicates using a first communication method and a second communication unit that communicates using a second communication method.
The second communication unit is
A polling message storage unit in which a polling message according to the first communication method is stored in advance;
A device identifier storage unit in which a device identifier of the communication device used in the second communication method is stored in advance;
A device identifier information storage unit which stores in advance device identifier information including a device identifier of a communication partner used in the first communication method and a device identifier of the communication partner used in the second communication method; ,
The operation method is as follows:
If the second communication unit receives a polling message from the outside by the second communication method, the device identifier is read from the device identifier storage unit, and a response message to the polling message by the second communication method is created. And including the device identifier in the response message, sending the response message including the device identifier to the outside,
The second communication unit reads a device identifier included in the polling message, retrieves device identifier information including the same device identifier as the device identifier from the device identifier information storage unit, and uses the device identifier information to retrieve the first identifier. The device identifier used in the communication method is read, the polling message is read from the polling message storage unit, and the polling message includes the device identifier read from the device identifier information,
The second communication unit transmits the polling message to the first communication unit.
JP2010261002A 2010-11-24 2010-11-24 Communication apparatus and operation method thereof Expired - Fee Related JP5385889B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010261002A JP5385889B2 (en) 2010-11-24 2010-11-24 Communication apparatus and operation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010261002A JP5385889B2 (en) 2010-11-24 2010-11-24 Communication apparatus and operation method thereof

Publications (2)

Publication Number Publication Date
JP2012114619A JP2012114619A (en) 2012-06-14
JP5385889B2 true JP5385889B2 (en) 2014-01-08

Family

ID=46498358

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010261002A Expired - Fee Related JP5385889B2 (en) 2010-11-24 2010-11-24 Communication apparatus and operation method thereof

Country Status (1)

Country Link
JP (1) JP5385889B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5478548B2 (en) * 2011-04-14 2014-04-23 日本電信電話株式会社 Communication apparatus and operation method thereof

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3688664B2 (en) * 2002-07-29 2005-08-31 株式会社東芝 Relay device and network relay method
JP2005309726A (en) * 2004-04-21 2005-11-04 Matsushita Electric Works Ltd Contactless id system
JP4863863B2 (en) * 2006-12-22 2012-01-25 三菱電機株式会社 Repeater, communication network system
JP5272367B2 (en) * 2007-09-28 2013-08-28 サクサ株式会社 Wireless LAN access point and program
CN101978702B (en) * 2008-03-18 2014-04-16 松下电器产业株式会社 Remote monitoring system
JP5277209B2 (en) * 2010-06-24 2013-08-28 日本電信電話株式会社 Communication apparatus and operation method thereof

Also Published As

Publication number Publication date
JP2012114619A (en) 2012-06-14

Similar Documents

Publication Publication Date Title
US9801120B2 (en) Client-initiated tethering for electronic devices
EP1897243B1 (en) Rfid optimized capability negotiation
US9501771B2 (en) Method and system for exchanging information updates between mobile devices
EP3346739B1 (en) Zero-click sharing of application context across devices
EP2925026A1 (en) Method for processing data received and an electronic device thereof
CN103501333A (en) Method, device and terminal equipment for downloading files
KR20180121170A (en) Electronic device and proximity discovery method thereof
JP6463059B2 (en) Mobile device, control method thereof, and program
JP5171943B2 (en) Method for determining optimal frame size for tag collision prevention in an RFID system
CN105389175A (en) Application program sharing method and mobile terminal
CN104901991A (en) Methods, devices and system for transferring virtual resource
JP2016161978A (en) Power control device, power control program, and image formation device
EP2824974A1 (en) Communication apparatus, control method, computer program, and storage medium
CN104980420A (en) Business processing method, device, terminal and server
JP5385889B2 (en) Communication apparatus and operation method thereof
US20150338925A1 (en) Causing gesture responses on connected devices
CN104850873A (en) Communication apparatus, information processing apparatus, and control method for the same
JP5277209B2 (en) Communication apparatus and operation method thereof
CN106664637B (en) Routing information configuration method and device
JP6102630B2 (en) Vehicle management system
JP5478548B2 (en) Communication apparatus and operation method thereof
JP5466184B2 (en) Communication apparatus and operation method thereof
JP2015103996A (en) Communication integration system
JP5420704B2 (en) Information processing apparatus and method
CN106131839A (en) The method and system of internet-of-things terminal authentication

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130121

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130913

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131004

R150 Certificate of patent or registration of utility model

Ref document number: 5385889

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees