JP6562723B2 - COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PROGRAM - Google Patents

COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PROGRAM Download PDF

Info

Publication number
JP6562723B2
JP6562723B2 JP2015116390A JP2015116390A JP6562723B2 JP 6562723 B2 JP6562723 B2 JP 6562723B2 JP 2015116390 A JP2015116390 A JP 2015116390A JP 2015116390 A JP2015116390 A JP 2015116390A JP 6562723 B2 JP6562723 B2 JP 6562723B2
Authority
JP
Japan
Prior art keywords
control command
identifier
response
communication
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2015116390A
Other languages
Japanese (ja)
Other versions
JP2017005444A (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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2015116390A priority Critical patent/JP6562723B2/en
Publication of JP2017005444A publication Critical patent/JP2017005444A/en
Application granted granted Critical
Publication of JP6562723B2 publication Critical patent/JP6562723B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Selective Calling Equipment (AREA)
  • Telephonic Communication Services (AREA)

Description

本発明の実施形態は通信装置、通信システム、および通信方法に関する。   Embodiments described herein relate generally to a communication device, a communication system, and a communication method.

操作端末から、通信装置を介して機器を操作する技術が知られている。たとえば、特許文献1では、ECHONET/ECHONET Liteを用いた電化製品の遠隔操作手法が開示されている。特許文献2では、操作端末が機器から待機時間や有効時間を含む応答を取得する。   A technique for operating a device from a control terminal via a communication device is known. For example, Patent Document 1 discloses a method for remotely operating an electrical appliance using ECHONET / ECHONET Lite. In Patent Document 2, the operation terminal acquires a response including a standby time and an effective time from the device.

特開2015−012382号JP2015-012382A 特開2006−238177号JP 2006-238177 A

しかし、特許文献2の実現には機器側に機能の追加を必要とし、また、複数の操作端末から機器を制御することを想定していない。さらに、機器から操作端末ごとに応答する場合、機器の処理能力に負担がかかる。   However, the realization of Patent Document 2 requires an additional function on the device side, and does not assume that the device is controlled from a plurality of operation terminals. Furthermore, when a response is made from the device for each operation terminal, the processing capability of the device is burdened.

連続で制御命令を機器あてに送信すると、最初の制御命令を処理終了しなければ他の制御命令を受け付けない機器の場合、制御命令が破棄されてしまう。また、タイムアウトが発生した場合、同じ識別子を制御命令に付して再送すること、たとえば同じトランザクションIDのフレームで再送しないことが好まれる。
If the control command is continuously transmitted to the device, the control command is discarded in the case of a device that does not accept another control command unless the first control command is processed. Also, when a timeout occurs, it is preferred that the same identifier is attached to the control command and retransmitted, for example, not retransmitted with a frame with the same transaction ID.

本実施形態の通信装置は、操作端末から送信され、機器を特定する機器情報および要求項目を含む制御命令を前記機器に識別子を付して送信し、前記機器から前記識別子を付した前記制御命令に対する機器応答を受信する通信部と;前記通信部が送信する制御命令にもとづいて設定されたタイムアウト時間を、前記機器情報と関連付けてカウントする計時部と;を有する。
The communication apparatus according to the present embodiment transmits a control command including device information and a request item for specifying a device, which is transmitted from an operation terminal, with an identifier attached to the device, and the control command with the identifier added from the device. A communication unit that receives a device response to the device; and a timing unit that counts a timeout time set based on a control command transmitted by the communication unit in association with the device information.

本実施形態によれば、機器側に機能の追加を必要とせず、機器のタイムアウト時間に対応することができる。
According to the present embodiment, no additional function is required on the device side, and the device timeout time can be accommodated.

第1の実施形態にかかる接続構成図Connection configuration diagram according to the first embodiment 第1の実施形態にかかる通信装置のブロック図1 is a block diagram of a communication apparatus according to a first embodiment. 第1の実施形態にかかる格納部が格納するタイムアウト時間の対応テーブルTimeout time correspondence table stored in the storage unit according to the first embodiment 第1の実施形態にかかる操作端末のブロック図Block diagram of an operation terminal according to the first embodiment 第1の実施形態にかかる通信システムの動作シーケンスOperation sequence of communication system according to first embodiment 第1の実施形態にかかる通信システムの動作シーケンスOperation sequence of communication system according to first embodiment 第1の実施形態の変形例にかかる通信システムの動作シーケンスOperation sequence of communication system according to modification of first embodiment 第2の実施形態にかかる通信システムの動作シーケンスOperation sequence of communication system according to second embodiment 第2の実施形態にかかる通信システムの動作シーケンスOperation sequence of communication system according to second embodiment 第2の実施形態にかかる通信システムの動作シーケンスOperation sequence of communication system according to second embodiment

本発明にかかる実施形態の通信装置は、操作端末から送信され、機器を特定する機器情報および要求項目を含む制御命令を前記機器に識別子を付して送信し、前記機器から前記識別子を付した前記制御命令に対する機器応答を受信する通信部と;前記通信部が送信する制御命令にもとづいて設定されたタイムアウト時間を、前記機器情報と関連付けてカウントする計時部と;を備えることを特徴とする。
The communication apparatus according to the embodiment of the present invention transmits a control command including device information and a request item, which is transmitted from an operation terminal and specifies a device, with an identifier attached to the device, and the identifier is attached from the device. A communication unit that receives a device response to the control command; and a time counting unit that counts a timeout time set based on the control command transmitted by the communication unit in association with the device information. .

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

(第1の実施形態) (First embodiment)

図1は、本実施形態の一例として、宅内の機器を制御する家電制御システムの機器接続構成を示す。図1のシステムは、通信装置1、操作端末2、電気機器3から構成されており、それぞれ有線または無線の通信手段を用いてホームネットワークNに接続している。操作端末2および機器3は複数存在してもよく、また、操作端末2は宅外から図示しないサーバおよび公衆回線nを介してホームネットワークNに接続してもよい。通信装置1は、公衆回線nに直接接続可能であってもよいし、ゲートウェイ装置を介在またはゲートウェイ機能を有してもよい。通信装置1から送信される制御命令を機器3が直接処理できない場合、通信装置1と機器3との間にアダプタ4を介在させてもよい。
FIG. 1 shows a device connection configuration of a home appliance control system that controls home devices as an example of the present embodiment. The system shown in FIG. 1 includes a communication device 1, an operation terminal 2, and an electrical device 3, and is connected to a home network N using wired or wireless communication means. A plurality of operation terminals 2 and devices 3 may exist, and the operation terminal 2 may be connected to the home network N from outside the house via a server (not shown) and a public line n. The communication device 1 may be directly connectable to the public line n, or may have a gateway device or a gateway function. When the device 3 cannot directly process the control command transmitted from the communication device 1, the adapter 4 may be interposed between the communication device 1 and the device 3.

本実施形態のホームネットワークNでは、通信プロトコルとしてECHONET Liteを採用している。ECHONET Liteにおいて、機器3の設定値や状態といった属性が「ECHONETプロパティ」として定義され、制御命令を受信することにより、ECHONETプロパティを書き込む処理や読み出す処理を行う。   In the home network N of this embodiment, ECHONET Lite is adopted as a communication protocol. In the ECHONET Lite, an attribute such as a setting value and a state of the device 3 is defined as “ECHONET property”, and when the control command is received, processing for writing and reading the ECHONET property is performed.

例えば、ECHONETオブジェクトは、ECHONETプロパティに所定のプロパティ値を書き込む旨の書込命令が設定されている制御命令を受信した場合に、ECHONETプロパティに所定のプロパティ値を書き込む。これにより、機器3は、「電源のオン/オフ」や「動作モードの切り替え」などの各種制御が行われる。   For example, when an ECHONET object receives a control command in which a write command for writing a predetermined property value is set in the ECHONET property, the ECHONET object writes the predetermined property value in the ECHONET property. As a result, the device 3 performs various controls such as “power on / off” and “operation mode switching”.

また、例えば、機器3は、ECHONETプロパティに設定されているプロパティ値を読み出す旨の読出命令を含む制御命令を受信した場合に、ECHONETプロパティに設定されているプロパティ値を機器応答として応答することにより、動作状況の監視などが実現される。   Further, for example, when the device 3 receives a control command including a read command for reading the property value set in the ECHONET property, the device 3 responds with the property value set in the ECHONET property as a device response. Monitoring of the operating status is realized.

このようなECHONET/ECHONET Liteで制御する機器3は、処理能力が比較的低い機器である場合が多く、制御命令を受信してから状態を遷移するまでに要する時間が長い、すなわち制御を開始または完了させるまでに要する時間が長い場合が多い。また、通信アダプタ4を介して機器3を制御する形態において、通信アダプタ4が制御命令を受信してから機器3との通信を開始するまで遅延が生じる場合など、制約を受けるものが多い。
The device 3 controlled by such ECHONET / ECHONET Lite is often a device having a relatively low processing capability, and it takes a long time to change state after receiving a control command, that is, start control or It often takes a long time to complete. Moreover, in the form in which the device 3 is controlled via the communication adapter 4, there are many cases where there is a restriction such as when a delay occurs until the communication adapter 4 starts communication with the device 3 after receiving the control command.

通信装置1は、有線または無線の通信回路を介して、少なくとも一つの機器3を制御または監視する。機器3は、通常は宅内の固定位置に設置される、たとえばエアコン、冷蔵庫、蓄電池、照明器具などといったネットワーク対応の家電機器である。利用者は、操作装置2としての端末、たとえば携帯電話、タブレットなど表示機能を有する端末を介して、通信装置1に制御命令の指示や機器3の監視を行う。
The communication device 1 controls or monitors at least one device 3 via a wired or wireless communication circuit. The device 3 is a network-applied home appliance such as an air conditioner, a refrigerator, a storage battery, or a lighting fixture that is usually installed at a fixed position in the house. The user instructs the communication device 1 to give a control command and monitors the device 3 via a terminal as the operation device 2, for example, a terminal having a display function such as a mobile phone or a tablet.

本実施形態にかかる通信装置1は、図2のような構成を有する。   The communication device 1 according to the present embodiment has a configuration as shown in FIG.

通信部11は、通信子機、すなわちアダプタ4または機器3、および操作端末2と無線通信を行い、たとえば機器3を操作するための制御命令の送信や、機器3の情報を取得する。なお、通信部11は、操作端末2および機器3との間で異なるプロトコルが用いられる場合、適宜に制御命令を解釈変換する機能を有する。制御命令には、制御対象の機器3を特定する機器情報と、制御内容を表す要求項目が含まれ、機器3に送信する場合識別情報が付される。識別情報は、たとえば前記制御命令の送信順に通し番号を付する。要求項目は、たとえば機器3の運転状態の問い合わせ、センサ結果の問い合わせ、機器3の機器情報の問い合わせ、機器3に設定する機能項目などが考えられる。   The communication unit 11 performs wireless communication with the communication slave unit, that is, the adapter 4 or the device 3 and the operation terminal 2, for example, transmits a control command for operating the device 3 and acquires information about the device 3. The communication unit 11 has a function of appropriately interpreting and converting the control command when different protocols are used between the operation terminal 2 and the device 3. The control command includes device information for specifying the device 3 to be controlled and a request item indicating the control content, and identification information is attached when transmitting to the device 3. For example, serial numbers are assigned to the identification information in the order of transmission of the control commands. The request items include, for example, an inquiry about the operating state of the device 3, an inquiry about the sensor result, an inquiry about the device information of the device 3, and a function item set in the device 3.

操作端末2から制御命令を受信すると、通信部11は、当該制御命令に含まれる対象機器の機器情報を抽出し、識別情報を付して当該機器3あてに制御命令を転送する。このとき、後述の計時部12で当該機器情報に関連付けられたカウントがカウント中である場合、すなわち機器3宛てに他の制御命令が既に送信され、機器3から機器応答が届いていないとき、通信部11は、当該制御命令に識別情報を付して機器3あてに送信するとともに、識別情報が付された制御命令を記録部14に保持させる。機器3が次の制御命令を処理できるとき、すなわち機器3に関連付けられたカウントが終了したとき、または先に送信された制御命令に対する機器応答を受信したとき、記録部14に格納された制御命令を再度送信する。このとき、機器3に関連付けられたカウントが終了したため記録部14に格納された制御命令を再送する場合、記録部14に格納された制御命令に付された識別子と同じ識別子を付して再送する。先に送信された制御命令に対する機器応答を受信したため記録部14に格納された制御命令を再送する場合、記録部14に格納された制御命令に付された識別子と異なる識別子を付して再送する。   When receiving the control command from the operation terminal 2, the communication unit 11 extracts the device information of the target device included in the control command, attaches the identification information, and transfers the control command to the device 3. At this time, when a count associated with the device information is being counted by the time measuring unit 12 described later, that is, when another control command has already been transmitted to the device 3 and no device response has arrived from the device 3, communication is performed. The unit 11 attaches identification information to the control command and transmits it to the device 3 and causes the recording unit 14 to hold the control command with the identification information. When the device 3 can process the next control command, that is, when the count associated with the device 3 ends, or when the device response to the previously transmitted control command is received, the control command stored in the recording unit 14 Will be sent again. At this time, when the control command stored in the recording unit 14 is retransmitted because the count associated with the device 3 is completed, the same identifier as the identifier attached to the control command stored in the recording unit 14 is attached and retransmitted. . When the control command stored in the recording unit 14 is retransmitted because the device response to the previously transmitted control command is received, the identifier is different from the identifier attached to the control command stored in the recording unit 14 and retransmitted. .

ここで、記録部14に当該機器3宛ての制御命令が複数ある場合は、すべての機器3宛ての制御命令に付された識別子と異なる識別子を付することが好ましい。なお、複数の制御命令が格納される場合、制御命令をまとめる機能や、通信状態に合わせて分割する機能、重複する要求項目をその性質および送信順を考慮して削除するなどといった適宜処理する機能を有してもよい。   Here, when there are a plurality of control commands addressed to the device 3 in the recording unit 14, it is preferable to attach an identifier different from the identifiers attached to the control commands addressed to all the devices 3. In addition, when multiple control commands are stored, a function to combine the control commands, a function to divide according to the communication state, a function to appropriately process duplicated request items in consideration of their nature and transmission order, etc. You may have.

計時部12は、通信部11が操作端末2から受信した制御命令に含まれる情報にもとづいて、所定のタイムアウト時間を、当該制御命令に含まれる機器情報と関連付けてカウントする。所定のタイムアウト時間は、たとえば図3に例示するテーブルを図示しない格納部に格納し、制御命令に応じて参照し読み出す。図3aの例は、機器情報とタイムアウト時間を対応づけている。また図3bの例は、要求項目とタイムアウト時間を対応づけている。図3cの例は、ひとつの制御命令に含まれる要求項目の数とタイムアウト時間を対応づけている。これら対応づけのテーブルは、複数条件を組み合わせて作成されてもよいし、複数のテーブルから条件にあてはまるタイムアウト時間を読み出して一つを採用してもよい。   Based on the information included in the control command received by the communication unit 11 from the operation terminal 2, the timer unit 12 counts a predetermined timeout time in association with the device information included in the control command. For example, the predetermined time-out time is stored in a storage unit (not shown) in the table illustrated in FIG. 3, and is read out according to a control command. The example in FIG. 3A associates device information with a timeout time. In the example of FIG. 3B, the request item is associated with the timeout time. In the example of FIG. 3c, the number of request items included in one control command is associated with the timeout time. These correspondence tables may be created by combining a plurality of conditions, or one time-out time corresponding to the conditions may be read from a plurality of tables and one may be adopted.

タイムアウト時間は、すなわち機器3が応答を行うまでの最低待機時間であり、通信障害などの原因によってタイムアウト時間を経過しても機器応答を受信しない場合、タイムアウトとみなして次の制御命令を送信してもよい。立て続けに複数の制御命令を送るとき、タイムアウト時間が経過するまでは、次の制御命令を送っても受付けないか、障害が起きる可能性が高いため、タイムアウト時または機器3からの応答を受信したときに再送することが望ましい。また、タイムアウト時間は、規則等で家電装置ごとに規定された値を機器3から取得しても、公衆回線を介して外部から取得してもよいし、通信装置1の出荷時に格納されても、操作端末2にインストールされるアプリケーションに内蔵されていてもよい。あるいは、ホームネットワークNの構成等に応じて値が設定されていてもよい。   The timeout time is the minimum waiting time until the device 3 makes a response. If the device response is not received even if the timeout time elapses due to a communication failure or the like, it is regarded as a timeout and the next control command is transmitted. May be. When sending multiple control commands in succession, until the timeout time elapses, even if the next control command is sent, there is a high possibility that a failure will occur. Sometimes it is desirable to resend. Further, the time-out time may be acquired from the device 3 by a value defined for each home appliance by a rule or the like, or may be acquired from the outside through a public line, or may be stored when the communication device 1 is shipped. , It may be built in an application installed in the operation terminal 2. Alternatively, a value may be set according to the configuration of the home network N or the like.

応答部13は、操作端末2から受信した制御命令に含まれる機器3を特定する情報に関連付けられた計時部12の残時間を含む応答情報を生成し、当該制御命令を送信した操作端末2に送信する。また、応答情報には、後述する記録部14に格納されている最新の応答記録を含んでも良い。なお、通信部11が第1の制御命令を機器3に送信し、当該機器から第1の制御命令に対する機器応答を受信していないときに、第2の制御命令を受信した場合、計時部12のカウント残時間を含む応答情報を生成し、第2の制御命令を送信した操作端末3に応答する。すなわち、第1の制御命令を送信した操作端末と、第2の制御命令を送信した操作端末とが異なっていても、計時部12で把握している機器3のタイムアウト時間を応答することが可能である。   The response unit 13 generates response information including the remaining time of the time measuring unit 12 associated with the information specifying the device 3 included in the control command received from the operation terminal 2, and sends the response information to the operation terminal 2 that has transmitted the control command. Send. The response information may include the latest response record stored in the recording unit 14 described later. When the communication unit 11 transmits the first control command to the device 3 and has not received a device response to the first control command from the device, the timing unit 12 receives the second control command. Response information including the remaining count time is generated, and the response is made to the operation terminal 3 that has transmitted the second control command. That is, even if the operating terminal that has transmitted the first control command is different from the operating terminal that has transmitted the second control command, it is possible to respond to the time-out time of the device 3 that is grasped by the timer 12. It is.

記録部14は、通信部11が機器3から受信した機器応答に含まれる応答記録を保持する。さらに、通信部11が送信した制御情報に付された識別情報を記憶することで、機器3から当該識別情報が付された機器応答が届いたか否かを判断する情報としてもよい。ここで、機器応答は機器情報および要求項目に関連付けて保持されることが好ましい。通信部11が制御命令を操作端末2から受信したとき、記録部14に同様の機器情報および要求項目に関連付けて保持されている応答記録があれば、応答部13が当該応答記録を含む応答情報を生成し、制御命令の送信元に応答する。たとえば、操作端末2から機器3とする蓄電池の蓄電残量を問い合わせる命令を送信したとき、蓄電池からの応答を待たずに、記録部14から最新の応答記録、すなわち前回蓄電池に残量を問い合わせた結果を読み出し、計時部12の残時間とともに応答する。なお、このとき応答情報は、暫定的な応答であることがユーザに分かるように表示することが好ましい。
The recording unit 14 holds a response record included in the device response received from the device 3 by the communication unit 11. Furthermore, it is good also as information which judges whether the apparatus response to which the said identification information was attached | subjected from the apparatus 3 by memorize | storing the identification information attached | subjected to the control information which the communication part 11 transmitted. Here, the device response is preferably held in association with the device information and the request item. When the communication unit 11 receives a control command from the operation terminal 2, if there is a response record stored in the recording unit 14 in association with similar device information and request items, the response unit 13 includes the response record. And respond to the source of the control command. For example, when an instruction for inquiring the remaining amount of storage battery of the storage battery as the device 3 is transmitted from the operation terminal 2, the latest response record from the recording unit 14, that is, the previous storage battery is inquired without waiting for a response from the storage battery. The result is read and responded with the remaining time of the time measuring unit 12. At this time, the response information is preferably displayed so that the user can recognize that it is a provisional response.

操作端末2は、図4のような構成を有し、たとえばWebブラウザを搭載し、インストールされたアプリケーションまたは通信装置1から取得する機器3を操作するための操作画面を表示部に表示できる携帯、スマホ、タブレットPCなど一般的な可搬形の端末であっても、ドアホン、テレビ、通信装置1と物理的に一体である固定式端末であってもよい。本実施形態では、操作端末2はホームネットワークNに接続されたタブレットPCとして説明する。   The operation terminal 2 has a configuration as shown in FIG. 4. For example, the operation terminal 2 is equipped with a web browser and can display an operation screen for operating the installed application or the device 3 acquired from the communication device 1 on the display unit. It may be a general portable terminal such as a smartphone or a tablet PC, or a fixed terminal that is physically integrated with the door phone, the television, or the communication device 1. In the present embodiment, the operation terminal 2 will be described as a tablet PC connected to the home network N.

通信部21は、ホームネットワークNまたは公衆回線nを介して通信装置1または図示しないサーバ等と通信を行い、制御命令および応答情報の送受信を行う。   The communication unit 21 communicates with the communication device 1 or a server (not shown) via the home network N or the public line n, and transmits and receives control commands and response information.

計時部22は、後述する応答情報に付されたタイムアウト時間をカウントする。   The timer unit 22 counts a timeout time attached to response information described later.

制御部23は、ユーザの指示により、要求項目および機器情報を含む制御命令を生成し、当該機器情報で特定される機器3あてに通信部21を介して送信させる機能を有する。機器情報とは、たとえば機種名、ネットワークアドレス、ECHONET Liteにおけるオブジェクト名など、機器3を特定することができれば足りる。また、機器3から制御命令の実行結果を表す機器応答を受信すると、表示部24に当該機器応答結果を表示させる。   The control unit 23 has a function of generating a control command including a request item and device information according to a user instruction, and transmitting the control command to the device 3 specified by the device information via the communication unit 21. The device information only needs to be able to identify the device 3 such as a model name, a network address, and an object name in ECHONET Lite. Further, when a device response representing the execution result of the control command is received from the device 3, the device response result is displayed on the display unit 24.

表示部24は、制御部23によって機器3の操作画面や、通信装置1からの応答、機器応答などを表示する機能を有する。たとえば、通信装置1から後述のタイムアウト時間の残時間を受信した場合、当該残時間を表示してもよいし、当該残時間が経過したときにその旨を表示してもよいし、計時部22のカウント時間を画面上に表示してもよい。
The display unit 24 has a function of displaying an operation screen of the device 3, a response from the communication device 1, a device response, and the like by the control unit 23. For example, when the remaining time of a timeout time described later is received from the communication device 1, the remaining time may be displayed, or when the remaining time has elapsed, that fact may be displayed, or the time measuring unit 22 The count time may be displayed on the screen.

機器3は、ネットワーク対応のたとえばエアコン、冷蔵庫、照明器具などといった家電機器であり、前述のように通信装置1から受信した制御命令を実行し、運転状況やセンサ情報などを通信装置1へ送信する。なお、ゲートウェイ装置4から送信される制御命令を機器3が直接処理できない場合、ゲートウェイ装置4と機器3との間に図示しない通信アダプタ4を介在させてもよい。   The device 3 is a home appliance such as an air conditioner, a refrigerator, or a lighting device that is compatible with a network, executes the control command received from the communication device 1 as described above, and transmits the operation status, sensor information, and the like to the communication device 1. . If the device 3 cannot directly process the control command transmitted from the gateway device 4, a communication adapter 4 (not shown) may be interposed between the gateway device 4 and the device 3.

なお、機器3は、通信装置1から受信した制御命令を処理後、当該制御命令に対する機器応答を通信装置1に送信する。たとえば、ECHONETプロパティに所定のプロパティ値を書き込む旨の書込命令が設定されている制御命令を受信した場合に、ECHONETプロパティに所定のプロパティ値を書き込むことで機器3の「電源のオン/オフ」や「動作モードの切り替え」などの各種制御が行われ、当該プロパティ値書き込みの処理が完成した旨の機器応答を送信する。また、たとえば、通信装置1から受信した制御命令に含まれる要求がECHONETプロパティに設定されているプロパティ値を読み出す旨の読出命令である場合に、ECHONETプロパティに設定されているプロパティ値を機器応答として応答する。このとき、機器3は、当該制御命令に付されている識別情報を、機器応答に付して送信する。
The device 3 processes the control command received from the communication device 1 and then transmits a device response to the control command to the communication device 1. For example, when a control command in which a write command for writing a predetermined property value is set in the ECHONET property is received, the “power on / off” of the device 3 is written by writing the predetermined property value in the ECHONET property. And various controls such as “switching operation mode” are performed, and a device response indicating that the property value writing process is completed is transmitted. For example, when the request included in the control command received from the communication apparatus 1 is a read command for reading the property value set in the ECHONET property, the property value set in the ECHONET property is used as the device response. respond. At this time, the device 3 transmits the identification information attached to the control command with the device response.

図5及び図6を用いて本実施形態にかかるシステムの動作シーケンスを説明する。本実施形態の説明では、操作端末2から通信装置1、通信装置1から機器3の情報伝達で起こる時間の誤差は考慮しないが、これらを考慮して実施してもよい。また、操作端末2は、応答情報を受信してから当該応答情報に含まれるタイムアウト時間をカウント開始してもよいし、当該応答情報に含まれるタイムアウト時間から、自身が制御命令を送信してから応答情報を受信するまでにかかった時間を差し引いてカウント開始してもよい。本実施形態および以下の実施形態では、自身が制御命令を送信してから応答情報を受信するまでにかかった時間を差し引いてカウントする、すなわち通信装置1において当該制御命令に対する処理時間を考慮した例を用いて説明する。   The operation sequence of the system according to the present embodiment will be described with reference to FIGS. In the description of the present embodiment, an error in time caused by information transmission from the operation terminal 2 to the communication device 1 and from the communication device 1 to the device 3 is not considered, but may be performed in consideration of these. Further, the operation terminal 2 may start counting the timeout time included in the response information after receiving the response information, or after transmitting the control command from the timeout time included in the response information. Counting may be started by subtracting the time taken to receive the response information. In the present embodiment and the following embodiments, an example in which the time taken from when the control command is transmitted until the response information is received is deducted and counted, that is, the processing time for the control command in the communication device 1 is considered. Will be described.

なお、本実施形態の説明では、通信装置1が操作端末2から受信した制御命令X(Xはアルファベット)に対し操作端末2に送信する応答情報を単にX応答と称し、機器3から送信される制御命令Xの実行結果を表す応答を機器応答xと称する。
In the description of the present embodiment, response information transmitted to the operation terminal 2 in response to the control command X (X is an alphabet) received by the communication device 1 from the operation terminal 2 is simply referred to as an X response and is transmitted from the device 3. A response indicating the execution result of the control command X is referred to as a device response x.

まず、図5を用いてタイムアウトが発生した場合の動作を説明する。   First, an operation when a timeout occurs will be described with reference to FIG.

最初に、操作端末2は機器3あての制御命令Aを通信装置1を介して送信する。通信装置1は、制御命令Aを受信すると、制御対象機器、すなわち機器3を特定する機器情報を抽出し、当該機器情報にもとづいて機器3に関連付けられたカウントが実行されていない、すなわち機器3が他の制御命令を実行していないため、制御命令を受付可能と判断したうえで、制御命令Aに識別情報「1」を付して機器3あてに送信する(S51)。   First, the operation terminal 2 transmits a control command A addressed to the device 3 via the communication device 1. Upon receiving the control command A, the communication device 1 extracts device information for specifying the device to be controlled, that is, the device 3, and the count associated with the device 3 is not executed based on the device information, that is, the device 3 Since no other control command is executed, it is determined that the control command can be accepted, and the control command A is attached with the identification information “1” and transmitted to the device 3 (S51).

このとき、通信装置1の計時部12は、制御命令Aに含まれる要求項目に対応するタイムアウト時間Tを図3に例示したテーブルから読み出し、機器3と対応づけてカウントを開始するとともに、残時間(T)を含む制御命令Aに対する暫定の応答情報(以下、暫定応答a)を操作端末2に応答する。操作端末2は、カウント残時間(T)を含む暫定応答aを受信すると、計時部22にTをカウントさせ、たとえば表示部24に「制御命令Aを機器3に送信しました。機器3の応答まで(T)時間待ってください」との旨の情報を表示させ、ユーザは少なくとも通信装置1が制御命令Aを受け、機器3に送信したことが確認できる。
At this time, clock unit 12 of the communication device 1 reads out the time-out time T A corresponding to the request items included in the control command A from the table illustrated in FIG. 3, starts the counting in association with the equipment 3, the remaining Temporary response information (hereinafter, provisional response a) with respect to the control command A including time (T A ) is returned to the operation terminal 2. When the operation terminal 2 receives the provisional response a including the remaining count time (T A ), the operation terminal 2 causes the time counting unit 22 to count T A , and for example, the display unit 24 transmits “control command A to the device 3. until a response is displayed to the effect that the information of the (T a) please wait time ", the user receives at least the communication device 1 is the control command a, it can be confirmed that transmitted to the device 3.

タイムアウト時間Tが経過する前に、操作端末2から次の機器3あての制御命令Bを受信した場合、通信装置1は、S51で説明したように機器3あてに制御命令Bに識別情報「2」を付して機器3あてに送信する(S52)。このとき、通信装置1の計時部12は、制御命令Bに含まれる要求項目に対応するタイムアウト時間Tを図3に例示したテーブルから読み出し、機器3と対応づけてカウントを開始するとともに、残時間(T)を含む制御命令Bに対する暫定の応答情報(以下、暫定応答b)を操作端末2に応答する。操作端末2は、カウント残時間(T)を含む暫定応答bを受信すると、計時部22にTをカウントさせ、たとえば表示部24に「制御命令Bを機器3に送信しました。機器3の応答まで(T)時間待ってください」との旨の情報を表示させ、ユーザは少なくとも通信装置1が制御命令Bを受けつけ、機器3に送信したことが確認できる。
Before time-out time T A has passed, if the operation terminal 2 receives the control command B for the next device 3 addressed, the communication device 1, the identification information to the control command B to the device 3 addressed as described in S51 " 2 ”and sent to the device 3 (S52). At this time, clock unit 12 of the communication device 1 reads from the timeout time T B corresponding to the request items included in the control command B illustrated in FIG. 3 table, starts the counting in association with the equipment 3, the remaining The provisional response information (hereinafter, provisional response b) to the control command B including the time (T B ) is returned to the operation terminal 2. Operation terminal 2 receives the provisional response b including counting remaining time (T B), to count the T B to the timing unit 22, for example, it sent a "control command B to the device 3 on the display unit 24. Equipment 3 "Please wait for (T B ) time until the response of"", the user can confirm that at least the communication device 1 has received the control command B and has transmitted it to the device 3.

機器3は、S51にて識別子が「1」である制御命令Aを受信すると制御命令Aに関する処理を開始し、処理結果に識別子「1」を付した機器応答aを返信する(S53)。通信装置1が機器3から機器応答aを受信すると、応答aを操作端末2に送信する。操作端末2は、応答aを受信すると、たとえば表示部24に「機器が制御命令Aを実行しました/応答a。制御命令Bの応答まで(T−t)時間待ってください」との旨の情報を表示させ、ユーザは制御命令Aを実行したことが確認でき、制御命令Bの応答までの目安が分かる。ここで、応答aは計時部12のカウント残時間(T−t)を含んでもよいし、既に暫定応答bの情報にもとづいて計時部22で残時間Tをカウント可能であるため、改めて送信しなくてもよい。このとき通信装置1は、機器3から制御命令Bに対する機器応答bを待って、Tのカウントを続ける。たとえば、記録部14が送信済みの制御命令に付された識別情報を格納する機能を有する場合、機器応答を未受信の識別情報があるか否かを判断することで実現できる。
When the device 3 receives the control command A having the identifier “1” in S51, the device 3 starts the process related to the control command A, and returns a device response a with the identifier “1” added to the processing result (S53). When the communication device 1 receives the device response a from the device 3, the communication device 1 transmits the response a to the operation terminal 2. When the operation terminal 2 receives the response a, for example, the display unit 24 indicates that “the device has executed the control command A / response a. Wait for a time (T B -t) until the control command B responds”. The user can confirm that the control command A has been executed, and the user can know the standard until the response of the control command B. Since the response a is may also include a count remaining time of the timekeeping section 12 (T B -t), it is already possible counts the remaining time T B by the clock unit 22 on the basis of the information of the provisional response b, again You do not have to send it. In this case the communication device 1 waits for equipment response b to the control command B from the device 3, continues to count the T B. For example, when the recording unit 14 has a function of storing identification information attached to a transmitted control command, the device response can be realized by determining whether there is identification information that has not been received.

続いて、図5を用いて機器3が制御命令を処理できない場合を説明する。たとえば機器3は、S52にて制御命令Aを処理中に識別子が「2」である制御命令Bを受信したが、自身の処理能力が不足のため、制御命令Bを破棄する。またたとえば、制御命令Bが通信装置1から送信されてから、機器3が受信するまでの間で通信障害が発生し、情報が欠落したため、制御命令Bを正確に受信できないことが考えられる。このとき、通信装置1は、Tが経過するまで機器応答bを受信することができないため、S54の時点でタイムアウトする。すると、通信装置1は、記録部14に格納され、まだ対応する機器応答を受信していない制御命令Bに識別子「3」を付して再送する。また、制御命令Bに含まれる要求項目に対応するタイムアウト時間Tを機器3と対応づけてカウントを開始するとともに、カウント残時間(T)を含む暫定応答bを操作端末2に再度送信してもよい。操作端末2は、カウント残時間(T)を含む暫定応答bを再度受信すると、S52と同様の表示を表示部24に表示しても良いし、たとえば「タイムアウトしたため制御命令Bを再送しました。機器の応答まで(T)時間待ってください」といった旨の情報を表示させてもよい。これによって、ユーザは制御命令Bが機器3に再送されたことが確認できる。
Next, a case where the device 3 cannot process the control command will be described with reference to FIG. For example, the device 3 receives the control command B having the identifier “2” during the processing of the control command A in S52, but discards the control command B because its processing capability is insufficient. Further, for example, it is conceivable that a communication failure occurs between the time when the control command B is transmitted from the communication device 1 and the time when the device 3 receives it, and the control command B cannot be accurately received because information is lost. In this case, the communication apparatus 1, it is not possible to receive the instrument response b to the passage of T B, times out at the time of S54. Then, the communication device 1 retransmits the control command B that is stored in the recording unit 14 and has not yet received the corresponding device response with the identifier “3”. Further, the control commands together in association to start counting the device 3 a timeout period T B corresponding to the request items included in B, again transmitted counts remaining time the provisional response b containing (T B) to the operation terminal 2 May be. When the operation terminal 2 receives the provisional response b including the remaining count time (T B ) again, the operation terminal 2 may display a display similar to S52 on the display unit 24. For example, “the control command B has been retransmitted because of time-out. “Please wait for (T B ) time until the device responds” may be displayed. As a result, the user can confirm that the control command B has been retransmitted to the device 3.

次に、図6を用いてタイムアウトが発生しない場合の動作を説明する。S61からS62は、図5にて説明したS51からS52の処理と同様のため、説明を省略する。
Next, an operation when no timeout occurs will be described with reference to FIG. S61 to S62 are the same as the processing of S51 to S52 described in FIG.

機器3は、S61にて識別子が「1」である制御命令Aを受信すると制御命令Aに関する処理を開始し、処理結果に識別子「1」を付した機器応答aを返信する(S63)。すると通信装置1は、応答aを操作端末2に送信するとともに、記録部14からまだ対応する機器応答を受信していない制御命令、すなわち制御命令Bを読み出し、識別子「2」を付したまま機器3に再送する。さらに、通信装置1は、制御命令Bに含まれる要求項目に対応するタイムアウト時間Tを機器3と対応づけてカウントを開始するとともに、カウント残時間(T)を含む暫定応答bを操作端末2に再度送信してもよい。操作端末2は、カウント残時間(T)を含む暫定応答bを再度受信すると、S62と同様の表示を表示部24に表示しても良いし、たとえば「制御命令Bを再送しました。機器の応答まで(T)時間待ってください」といった旨の情報を表示させてもよい。これによって、ユーザは制御命令Bが機器3に再送されたことが確認でき、少なくともT時間待つ必要があることが分かる。
Upon receiving the control command A having the identifier “1” in S61, the device 3 starts processing related to the control command A, and returns a device response a with the identifier “1” added to the processing result (S63). Then, the communication device 1 transmits a response a to the operation terminal 2 and reads a control command that has not yet received the corresponding device response from the recording unit 14, that is, the control command B, and keeps the identifier “2” attached. Resend to 3. Further, the communication device 1, the control command with correspondence starts to count the device 3 a timeout period T B corresponding to the request items included in B, the operation terminal provisional responses b including counting remaining time (T B) 2 may be sent again. When the operation terminal 2 receives the provisional response b including the remaining count time (T B ) again, the operation terminal 2 may display a display similar to S62 on the display unit 24. For example, “control command B has been retransmitted. "Please wait for (T B ) time until the response to" may be displayed. Thus, the user control command B can be confirmed to have been retransmitted to the device 3, it can be seen that it is necessary to wait at least T B Time.

なお、図5および図6では、Tカウント中に制御命令Bを送信するとき(S52、S62)、TのカウントをTで置き換える実施形態を説明したが、必ずしもTのカウントを停止する必要はなく、TとTのカウントをそれぞれ並行で行ってもよいし、たとえばTとTがカウント終了する時刻を比較し、カウント終了時間が早い者、あるいは遅い者のみをカウントしてもよい。
In FIG 5 and FIG 6, when transmitting a control command B in T A count (S52, S62), but a count of T A described embodiments replaced by T B, always stops counting T A It is not necessary to count T A and T B in parallel. For example, compare the times when T A and T B finish counting, and count only those whose counting end time is early or late. May be.

なお、本実施形態の操作端末2では、Tのカウントが終了しないときに次の制御命令Bが送信された場合、Tのカウントを開始するが、実施形態はこれに限らない。たとえば、Tのカウントを継続し、Tがカウント終了するか応答aを受信したときにTの残時間をカウント開始してもよい。または、TとTをそれぞれ並行してカウントしてもよい。

(変形例)
In the operation terminal 2 of this embodiment, when the next control instruction B is transmitted when the count T A is not completed, but starts to count the T B, the embodiment is not limited thereto. For example, it continues counting of T A, may start counting the remaining time of T B when the T A has received or response a count ends. Or, it may be counted by respective parallel T A and T B.

(Modification)

図7を用いて、計時部12がTとTをそれぞれカウントする変形例において、制御命令Bがタイムアウトした場合の動作を説明する。なお、図6と同様の動作は説明を省略する。 With reference to FIG. 7, timing unit 12 in the modification of counting respectively T A and T B, illustrating the operation when the control command B has timed out. The description of the same operation as that in FIG. 6 is omitted.

S72において、タイムアウト時間Tが経過する前に、操作端末2が次の機器3あての制御命令Bを通信装置1を介して送信した場合、通信装置1は、S51で説明したように制御命令Bに識別情報「2」を付して機器3あてに転送する。このとき、計時部12は、制御命令Bに含まれる要求項目に対応するタイムアウト時間Tを図3に例示したテーブルから読み出し、機器3と対応づけてカウントを開始する。 In S72, before the time-out time T A has passed, if the operation terminal 2 is transmitted via the communication device 1 a control command B for the next device 3 addressed, the communication device 1 includes a control command as explained in S51 The identification information “2” is attached to B and transferred to the device 3. In this case, time measuring unit 12 reads from the timeout time T B corresponding to the request items included in the control command B illustrated in FIG. 3 table, in association starts to count the device 3.

ここで、通信装置1は、Tの残時間(T−t)を含む暫定応答bを操作端末2に返信する。操作端末2は、カウント残時間(T−t)を含む暫定応答bを受信すると、S71と同様の表示を表示部24に表示しても良いし、たとえば「制御命令Bを送信しました。機器の応答まで(T−t)時間待ってください」といった旨の情報を表示させてもよい。これによって、ユーザは制御命令Bが機器3に再送されたことが確認でき、少なくとも(T−t)時間待つ必要があることが分かる。 Here, the communication apparatus 1 sends back to the operation terminal 2 a provisional response b including T A remaining time (T A -t). Operation terminal 2 receives the provisional response b including counting remaining time (T A -t), may be displayed on the display unit 24 to display the same manner as S71, sent for example to "control command B. Information such as “Please wait for (T A -t) time until the response of the device” may be displayed. As a result, the user can confirm that the control command B has been retransmitted to the device 3 and know that it is necessary to wait for at least (T A -t) time.

次に、時間tが経過したときに機器3から機器応答aを受信すると、通信装置1は、制御命令Aのタイムアウト時間Tのカウントを終了し、Tのカウント残時間(T−t)を含む応答aを操作端末2に送信する(S73)。操作端末2は、応答aを受信すると、たとえば表示部24に「応答a。制御命令Bの応答まで(T−t)時間待ってください」との旨の情報を表示させ、ユーザは機器3が制御命令Aを処理し終えたことを確認するとともに、次の制御命令Bに対する機器応答が届くまでの目安時間を確認できる。
Next, when receiving the device response a from the device 3 when t has elapsed, the communication apparatus 1 ends the count of the time-out time T A of the control command A, T B count remaining time (T B -t ) Including the response a is transmitted to the operation terminal 2 (S73). When the operation terminal 2 receives the response a, for example, the display unit 24 displays information indicating that “response a. Please wait for (T B -t) time until the response to the control command B”, and the user displays the device 3 Confirms that the control command A has been processed, and the reference time until a device response to the next control command B arrives can be confirmed.

図8は、最初に受信した機器応答が制御命令Bに対する機器応答の場合であって、操作端末2には機器応答が最も早く届く可能性のある残時間を表示する動作を示す。なお、S81は、図7のS71と同じ動作であるため、説明を省略する。   FIG. 8 shows an operation of displaying the remaining time that the device response may reach the earliest on the operation terminal 2 when the device response received first is a device response to the control command B. Since S81 is the same operation as S71 in FIG.

S82において、タイムアウト時間Tが経過する前に、操作端末2が次の機器3あての制御命令Bを通信装置1を介して送信した場合、通信装置1は、S51で説明したように制御命令Bに識別情報「2」を付して機器3あてに転送する。このとき、計時部12は、制御命令Bに含まれる要求項目に対応するタイムアウト時間Tを図3に例示したテーブルから読み出し、機器3と対応づけてカウントを開始する。 In S82, before the time-out time T A has passed, if the operation terminal 2 is transmitted via the communication device 1 a control command B for the next device 3 addressed, the communication device 1 includes a control command as explained in S51 The identification information “2” is attached to B and transferred to the device 3. In this case, time measuring unit 12 reads from the timeout time T B corresponding to the request items included in the control command B illustrated in FIG. 3 table, in association starts to count the device 3.

ここで、通信装置1は、Tの残時間およびTを比較し、Tが先にタイムアウトすることを判断し、残時間Tを含む暫定応答bを操作端末2に返信する。操作端末2は、当該暫定応答bを受信すると、S81と同様の表示を表示部24に表示しても良いし、たとえば「制御命令Bを送信しました。機器の応答まで(T)時間待ってください」といった旨の情報を表示させてもよい。これによって、ユーザは制御命令Bが機器3に送信されたことが確認でき、機器3から任意の応答が届くまで少なくとも(T)時間待つ必要があることが分かる。 Here, the communication apparatus 1 compares the remaining time and T B of T A, T B, it is determined that the time-out before, returns a provisional response b including remaining time T B to the operation terminal 2. Upon receiving the provisional response b, the operation terminal 2 may display the same display as in S81 on the display unit 24. For example, “the control command B has been transmitted. Wait for time (T B ) until the device response. You may display information to the effect such as “Please.” As a result, the user can confirm that the control command B has been transmitted to the device 3, and know that it is necessary to wait for at least (T B ) time until an arbitrary response is received from the device 3.

、Tのカウント中に、通信装置1が機器応答bを受信した場合、通信装置1は制御命令Bによって開始したTのカウントを停止する(S83)。操作端末2には、カウントを継続するTの残時間(T−t)を含む応答bを送信する。操作端末2は、表示部24に「応答b。制御命令Aの応答まで(T−t)時間待ってください」との旨を表示させ、ユーザは機器3が制御命令Bを処理し終えたことを確認するとともに、まだ応答を受信していない制御命令Aに対する機器応答が届くまでの目安時間を確認できる。
T A, during counting of T B, when the communication device 1 receives the device response b, the communication device 1 stops the counting of T B which was initiated by the control command B (S83). The operation terminal 2, and transmits a response b which includes a remaining time T A to continue counting (T A -t). The operation terminal 2 causes the display unit 24 to display a message “Response b. Please wait for a time (T A -t) until the response to the control command A”, and the user has finished processing the control command B by the user 3 In addition, it is possible to confirm a reference time until a device response for a control command A that has not yet received a response arrives.

なお、通信装置1から操作端末2に送信される応答情報(応答a、応答b)には、制御命令に含まれる機器3および要求項目に対応する記録部14に保持された最新の応答記録を含んでもよい。たとえば、制御命令Aに機器3とする蓄電池の蓄電残量を問い合わせる命令が含まれる場合、前回蓄電池に残量を問い合わせた機器応答を記録部14から読み出してA応答に付加して応答することが考えられる。したがって、制御命令の処理に長時間を要する場合や、機器3および通信装置1の間で通信障害が起きた場合、タイムアウトまで待たずに即時に暫定的な機器応答を確認できる。たとえば、蓄電池の残量を確認したいユーザは、蓄電池からの応答が来る前に、前回の蓄電池残量を確認できる。またたとえば、エアコンの設定温度を変更したいユーザは、エアコンからの制御命令結果を受信するまえに、変更前の設定温度を確認できる。なお、このときの応答情報は、暫定的な応答であることをユーザが区別できるように表示することが好ましい。
The response information (response a, response b) transmitted from the communication device 1 to the operation terminal 2 includes the latest response record held in the recording unit 14 corresponding to the device 3 and the request item included in the control command. May be included. For example, when the control command A includes a command for inquiring the remaining power of the storage battery as the device 3, the device response that inquired the remaining amount of the storage battery last time is read from the recording unit 14 and added to the A response to respond. Conceivable. Therefore, when a long time is required for processing the control command, or when a communication failure occurs between the device 3 and the communication device 1, a provisional device response can be immediately confirmed without waiting for a timeout. For example, a user who wants to check the remaining capacity of the storage battery can check the previous remaining battery capacity before receiving a response from the storage battery. Further, for example, a user who wants to change the set temperature of the air conditioner can check the set temperature before the change before receiving the control command result from the air conditioner. The response information at this time is preferably displayed so that the user can distinguish that it is a provisional response.

(第1の実施形態の効果) (Effects of the first embodiment)

本実施形態によれば、制御命令に識別子を付することで、機器応答を待たず立て続けに制御命令を送信しても、情報の漏れを防止することができる。また、先の制御命令に対する機器応答を受信していないときに次の制御命令を送信した場合、当該制御命令がタイムアウトしたときに異なる識別子で再送し、先の制御命令に対する機器応答を受信したときに同じ識別子で再送するため、命令の重複を避けることができる。   According to the present embodiment, by attaching an identifier to a control command, information leakage can be prevented even if the control command is transmitted continuously without waiting for a device response. Also, when the next control command is transmitted when the device response to the previous control command is not received, when the control command times out, it is retransmitted with a different identifier, and the device response to the previous control command is received Since the same identifier is used for retransmission, duplicate instructions can be avoided.

さらに、通信装置から暫定応答を受信することで、機器応答またはタイムアウトを待たなくても通信装置が制御命令を受付けたことを確認できる。また、最新の応答記録および残時間を提示することで、ユーザのストレスを低減することが期待できる。
Furthermore, by receiving a provisional response from the communication device, it is possible to confirm that the communication device has received the control command without waiting for a device response or timeout. Moreover, it can be expected that the user's stress is reduced by presenting the latest response record and the remaining time.

(第2の実施形態) (Second Embodiment)

第2の実施形態では、図9および図10を用いて、1つ以上の操作端末2が同一の機器3を制御する場合の動作を説明する。第2の実施形態のシステム全体図は、図1に示す第1の実施形態と同様であり、第1の実施形態と同一の構成については同符号を付してその詳細な説明は省略する。
In the second embodiment, an operation when one or more operation terminals 2 control the same device 3 will be described with reference to FIGS. 9 and 10. The overall system diagram of the second embodiment is the same as that of the first embodiment shown in FIG. 1. The same components as those of the first embodiment are denoted by the same reference numerals, and detailed description thereof is omitted.

まず、操作端末2aは機器3あての制御命令Aを通信装置1を介して送信する。通信装置1は、制御命令Aを受信すると、制御対象機器の特定情報を抽出し、当該機器情報にもとづいて当該機器に関連付けられたカウントが実行されていない、すなわち当該機器が他の制御命令を実行中でないと判断したうえで、識別子「1」を付して機器3あてに制御命令Aを送信する(S91)。   First, the operation terminal 2 a transmits a control command A addressed to the device 3 via the communication device 1. When receiving the control command A, the communication device 1 extracts the specific information of the control target device, and the count associated with the device is not executed based on the device information, that is, the device issues another control command. After determining that it is not being executed, the control command A is transmitted to the device 3 with the identifier “1” (S91).

このとき、通信装置1の計時部12は、制御命令Aに含まれる要求項目に対応するタイムアウト時間Tを図3に例示したテーブルから読み出し、機器3と関連づけてカウントを開始するとともに、タイムアウト時間Tを含むA応答を操作端末2Aに応答する。操作端末2は、タイムアウト時間Tを含む暫定応答aを受信すると、少なくとも通信装置1が制御命令Aを受けつけ、制御命令Bが機器3に送信されたことが確認できる。ここで、たとえば操作端末2aをTが経過するまで次の制御命令を送らず待機させてもよい。 At this time, clock unit 12 of the communication device 1 reads out the time-out time T A corresponding to the request items included in the control command A from the table illustrated in FIG. 3, it starts the counting in association with the device 3, timeout A response including T A is returned to the operation terminal 2A. When the operating terminal 2 receives the provisional response a including the timeout time T A , it can confirm that at least the communication device 1 has received the control command A and that the control command B has been transmitted to the device 3. Here, for example, the operation terminal 2a may be waiting without sending the next control instruction and the T A has passed.

制御命令Aを機器3に送信してからTが経過する前であり、かつ機器3から機器応答aを受信していないとき、すなわち通信装置1が機器3からの機器応答aを待機している間に、操作端末2bから同じ機器3あての次の制御命令Bを受信した場合(S92)、通信装置1は、計時部12に機器3に関連付けられたカウント残時間があるため、制御命令Bを識別子「2」を付して機器3に送信するとともに、カウント残時間(T)を含む暫定応答bを、制御命令Bを送信した操作端末2bに応答する。 Before T A has elapsed since the control command A was transmitted to the device 3 and when the device response a has not been received from the device 3, that is, the communication device 1 waits for the device response a from the device 3. If the next control command B addressed to the same device 3 is received from the operation terminal 2b (S92), the communication device 1 has a count remaining time associated with the device 3 in the timekeeping unit 12, so that the control command B B is transmitted to the device 3 with the identifier “2”, and a provisional response b including the remaining count time (T B ) is returned to the operation terminal 2 b that has transmitted the control command B.

操作端末2bは、カウント残時間(T)を含むB応答を受信すると、少なくとも通信装置1が制御命令Bを受けつけ、制御命令Bが機器3に送信されたことを知ることができる。ここで、たとえば操作端末2bをTが経過するまで次の制御命令を送らず待機させてもよい。 When the operation terminal 2b receives the B response including the remaining count time (T B ), at least the communication apparatus 1 accepts the control command B and can know that the control command B has been transmitted to the device 3. Here, for example, the operation terminal 2b may be waiting without sending the next control command until after the T B.

機器3は、S91にて制御命令Aを受信すると制御命令Aに関する処理を開始し、処理結果に識別子「1」を付して機器応答aとして返信する(S93)。通信装置1が機器3から機器応答aを受信すると、応答aを制御命令Aを送信した操作端末2aに送信する。ここで、操作端末2aの計時部22のカウントを0に帰す機能を操作端末2が有してもよいし、たとえば通信装置1が計時部22のカウントを0に帰す命令を応答aに含ませて送信してもよい。なお、操作端末2aは、S91で次の制御命令を送らず待機させられた場合、応答aを受信することで、機器3が制御命令Aの処理を終了したため次の制御命令を送信してもよいと判断する。   Upon receipt of the control command A in S91, the device 3 starts processing related to the control command A, adds an identifier “1” to the processing result, and returns the response as a device response a (S93). When the communication device 1 receives the device response a from the device 3, the communication device 1 transmits the response a to the operation terminal 2a that has transmitted the control command A. Here, the operation terminal 2 may have a function of returning the count of the time measuring unit 22 of the operation terminal 2a to 0. For example, the response a includes a command for the communication device 1 to return the count of the time measuring unit 22 to 0. May be transmitted. Note that if the operation terminal 2a is made to wait without sending the next control command in S91, the device 3 completes the processing of the control command A by receiving the response a, so that the operation terminal 2a transmits the next control command. Judge that it is good.

このとき、機器3が制御命令Aを処理終了したことを操作端末2bに暫定応答として通知してもよい。たとえば、操作端末2bがカウント残時間(T−t)を含む暫定応答を受信すると、表示部24に「機器3が別の処理を終了しました、制御命令Bの応答まで(T−t)の間待ってください」または「応答a、制御命令Bの応答まで(T−t)の間待ってください」または「操作端末2aの制御命令を処理しました、制御命令Bの応答まで(T−t)の間待ってください」といった旨を表示させ、操作端末2bのユーザは機器3が制御命令Aを処理し終えたことを確認するとともに、次の制御命令Bに対する機器応答が届くまでの目安時間を確認できる。
At this time, the operation terminal 2b may be notified as a provisional response that the device 3 has finished processing the control command A. For example, when the operating terminal 2b receives a provisional response including the remaining count time (T B -t), the display unit 24 displays “The device 3 has completed another process, until the response of the control command B (T B -t during wait, please "or" response a of), was processed the control instructions between waiting please "or" operation terminal 2a to the response of the control command B (T B -t), until the response of the control command B ( T B -t) to display a message indicating such as waiting, please, "between, along with the user is to make sure that the equipment 3 has finished processing a control command a of the operation terminal 2b, reach the instrument response for the next control instruction B You can check the estimated time until.

制御命令Bに対応するカウントTがS94の時点でタイムアウトした場合、通信装置1は、記録部14に格納され、まだ対応する機器応答を受信していない制御命令Bに識別子「3」を付して再送する。ここで、制御命令Bに含まれる要求項目に対応するタイムアウト時間Tを機器3と対応づけてカウントを開始するとともに、カウント残時間(T)を含む暫定応答bを操作端末2に再度送信してもよい。操作端末2bは、カウント残時間(T)を含む暫定応答bを再度受信すると、S92と同様の表示を表示部24に表示しても良いし、たとえば「タイムアウトしたため制御命令Bを再送しました。機器3の応答まで(T)時間待ってください」といった旨の情報を表示させてもよい。これによって、ユーザは制御命令Bが機器3に再送されたことが確認できる。
When the count T B corresponding to the control command B has timed out at the time of S94, the communication apparatus 1 is stored in the recording unit 14, still with the identifier "3" in the corresponding received the device response has not the control command B And resend. Here, the transmission control command with correspondence starts to count the device 3 a timeout period T B corresponding to the request items included in B, again counting the remaining time the provisional response b containing (T B) to the operation terminal 2 May be. When the operation terminal 2b receives the provisional response b including the remaining count time (T B ) again, the operation terminal 2b may display a display similar to S92 on the display unit 24. For example, “the control command B has been retransmitted because of time-out. “Please wait for (T B ) time until the response of the device 3” may be displayed. As a result, the user can confirm that the control command B has been retransmitted to the device 3.

図10では、通信装置1が機器応答aを受信したとき、制御命令Bを再送する例を示す。S101からS102までは図9のS91からS92と同様の動作であるため、説明を省略する。
FIG. 10 shows an example in which the control command B is retransmitted when the communication device 1 receives the device response a. Steps S101 to S102 are the same as steps S91 to S92 in FIG.

機器3は、S101にて制御命令Aを受信すると制御命令Aに関する処理を開始し、処理結果に識別子「1」を付して機器応答aとして返信する(S103)。通信装置1が機器3から機器応答aを受信すると、操作端末2aの計時部22のカウント時間を0に帰す情報とともに、応答aを制御命令Aを送信した操作端末2aに送信する。操作端末2aは、S101で次の制御命令を送らず待機させられた場合、応答aを受信することで、機器3が制御命令Aの処理を終了したため次の制御命令を送信してもよいと判断する。   Upon receipt of the control command A in S101, the device 3 starts processing related to the control command A, adds an identifier “1” to the processing result, and returns the response as a device response a (S103). When the communication device 1 receives the device response a from the device 3, the response device a transmits the response a to the operation terminal 2a that has transmitted the control command A together with information for returning the count time of the time measuring unit 22 of the operation terminal 2a to zero. If the operation terminal 2a is made to wait without sending the next control command in S101, the device 3 may send the next control command because the device 3 has finished the processing of the control command A by receiving the response a. to decide.

すると通信装置1は、応答aを操作端末2aに送信するとともに、記録部14からまだ対応する機器応答を受信していない制御命令Bを読み出し、識別子「2」を付したまま機器3に再送する。また、制御命令Bに含まれる要求項目に対応するタイムアウト時間Tを機器3と対応づけてカウントを開始するとともに、カウント残時間(T)を含む暫定応答bを操作端末2bに再度送信してもよい。操作端末2bは、カウント残時間(T)を含む暫定応答bを再度受信すると、S82と同様の表示を表示部24に表示しても良いし、たとえば「制御命令Bを再送しました。機器3の応答まで(T)時間待ってください」といった旨の情報を表示させてもよい。これによって、操作端末2bのユーザは制御命令Bが機器3に再送されたことが確認でき、少なくともT時間待つ必要があることが分かる。
Then, the communication device 1 transmits the response a to the operation terminal 2a, reads out the control command B that has not yet received the corresponding device response from the recording unit 14, and retransmits it to the device 3 with the identifier “2” attached. . Further, the control commands together in association to start counting the device 3 a timeout period T B corresponding to the request items included in B, again transmitted counts remaining time the provisional response b containing (T B) to the operation terminal 2b May be. When the operation terminal 2b receives the provisional response b including the remaining count time (T B ) again, the operation terminal 2b may display a display similar to S82 on the display unit 24. For example, “control command B has been retransmitted. “Please wait for (T B ) time until response 3” may be displayed. Thus, the user of the operation terminal 2b is confirmed that the control command B is retransmitted to the device 3, it can be seen that it is necessary to wait at least T B Time.

なお、操作端末2bは任意の機器応答aまたは機器3が次の制御命令を受付け可能である旨の通知を受けると、操作端末の計時部22のカウント残時間があっても、制御命令Bを再送するように構成されてもよい。制御命令Bを再送するか否かは、操作端末2bがユーザに確認してから送信するよう構成されることが好ましい。この場合、操作端末2または通信装置1は、制御命令Bの再送であることを示す情報を付して送信してもよい。
When the operation terminal 2b receives any device response a or a notification that the device 3 can accept the next control command, the control terminal 2b outputs the control command B even if there is a remaining count time of the time measuring unit 22 of the operation terminal. It may be configured to retransmit. Whether or not to retransmit the control command B is preferably configured to be transmitted after the operation terminal 2b confirms with the user. In this case, the operation terminal 2 or the communication device 1 may transmit the information indicating that the control command B is retransmitted.

(第2の実施形態の効果) (Effect of 2nd Embodiment)

本実施形態によると、複数の操作端末から機器を制御する通信システムにおいて、機器が操作端末ごとに次回受信可能となる時間や応答時間を管理することなく、比較的処理能力の高い通信装置で対応することが可能になる。
According to the present embodiment, in a communication system that controls devices from a plurality of operation terminals, the device can handle a communication device having a relatively high processing capability without managing the next reception time and response time for each operation terminal. It becomes possible to do.

1…通信装置
11…通信部
12…計時部
14…記録部
S…通信システム
DESCRIPTION OF SYMBOLS 1 ... Communication apparatus 11 ... Communication part 12 ... Time measuring part 14 ... Recording part S ... Communication system

Claims (8)

器を特定する機器情報を含む制御命令に識別子を付して前記機器あてに送信し、前記機器から前記識別子を付した前記制御命令に対する機器応答を受信する通信部を有し、
前記通信部は、
第1の制御命令に第1の識別子を付して前記機器あてに送信し、前記機器から前記第1の制御命令に対する機器応答を受信していないときに、前記機器あての第2の制御命令を受信した場合、前記第2の制御命令に前記第1の識別子と異なる第2の識別子を付して記録部に保持させ、前記第2の制御命令にもとづいて設定されたタイムアウト時間のカウントが終了したとき、前記記録部が保持している前記第2の制御命令に前記第2の識別子と異なる第3の識別子を付して前記機器あてに送信する、
信装置。
Denoted by the identifier to the control instruction including the device information for identifying the equipment is transmitted to the device addressed, a communication unit that receives the device response to the control command designated by the identifier from the device,
The communication unit is
A second control command addressed to the device when a first identifier is added to the first control command and transmitted to the device, and a device response to the first control command is not received from the device. When the second control instruction is received, a second identifier different from the first identifier is attached to the recording unit and held in the recording unit, and the timeout time set based on the second control instruction is counted. When finished, attach a third identifier different from the second identifier to the second control command held by the recording unit, and transmit to the device.
Communication equipment.
前記通信部は、
前記機器から前記第1の制御命令に対する機器応答を受信したとき、前記記録部が保持している前記第2の識別子を付した前記第2の制御命令を前記機器あてに送信する
請求項1に記載の通信装置。
The communication unit is
When receiving the device response to the first control command from the equipment, it transmits the second control instruction marked with the second identifier the recording unit is held in the equipment addressed
The communication apparatus according to claim 1 .
前記通信部は、  The communication unit is
前記制御命令を送信した操作端末に対して、前記タイムアウト時間を含む暫定の応答を送信する、  A provisional response including the timeout time is transmitted to the operating terminal that has transmitted the control command;
請求項1に記載の通信装置。  The communication apparatus according to claim 1.
前記記録部は、過去に受信された前記機器応答を保持し、  The recording unit holds the device response received in the past,
前記通信部は、  The communication unit is
前記制御命令を送信した操作端末に対して、前記記録部に保持された前記機器応答を含む暫定の応答を送信する、  A provisional response including the device response held in the recording unit is transmitted to the operation terminal that has transmitted the control command;
請求項1に記載の通信装置。  The communication apparatus according to claim 1.
前記制御命令にもとづいて設定されたタイムアウト時間をカウントする計時部をさらに備える、  A timer for counting a time-out period set based on the control command;
請求項1に記載の通信装置。  The communication apparatus according to claim 1.
識別子が付された制御命令を受信することによって制御され、前記制御命令に対して前記識別子を付した機器応答を送信する少なくとも一つの機器と;
受信した前記機器を特定する機器情報を含む制御命令に、前記識別子を付して前記機器あてに送信する通信装置と;
を有し、
前記通信装置は、
第1の制御命令に第1の識別子を付して前記機器あてに送信し、前記機器から前記第1の制御命令に対する機器応答を受信していないときに、前記機器あての第2の制御命令を受信した場合、前記第2の制御命令に前記第1の識別子と異なる第2の識別子を付して記録部に保持させ、前記第2の制御命令にもとづいて設定されたタイムアウト時間のカウントが終了したとき、前記記録部が保持している前記第2の制御命令に前記第2の識別子と異なる第3の識別子を付して前記機器あてに送信する、
信システム。
At least one device controlled by receiving a control command with an identifier and transmitting a device response with the identifier in response to the control command;
A control command including the device information for specifying the device received, communication apparatus and that sends to the equipment addressed denoted said identifier;
Have
The communication device
A second control command addressed to the device when a first identifier is added to the first control command and transmitted to the device, and a device response to the first control command is not received from the device. When the second control instruction is received, a second identifier different from the first identifier is attached to the recording unit and held in the recording unit, and the timeout time set based on the second control instruction is counted. When finished, attach a third identifier different from the second identifier to the second control command held by the recording unit, and transmit to the device.
Communication system.
通信装置が、機器情報を含む制御命令に識別子を付し、前記機器情報で特定される機器あてに送信するステップと、  The communication device attaches an identifier to a control command including device information, and transmits to a device specified by the device information;
第1の制御命令に第1の識別子を付して前記機器あてに送信するステップと、  Attaching the first identifier to the first control command and transmitting to the device;
前記機器から前記第1の制御命令に対する機器応答を受信していないときに、前記機器あての第2の制御命令を受信した場合、前記第2の制御命令に前記第1の識別子と異なる第2の識別子を付して記録部に保持させるステップと、  If a second control command for the device is received when a device response to the first control command is not received from the device, the second control command is different from the first identifier in the second control command. Attaching the identifier to the recording unit and holding the identifier,
前記第2の制御命令にもとづいて設定されたタイムアウト時間のカウントが終了したとき、前記記録部が保持している前記第2の制御命令に前記第2の識別子と異なる第3の識別子を付して前記機器あてに送信するステップと、  When the timeout time set based on the second control command is finished, a third identifier different from the second identifier is attached to the second control command held by the recording unit. Sending to the device;
を含む通信方法。  Including a communication method.
コンピュータを、  Computer
機器を特定する機器情報を含む制御命令に識別子を付して前記機器あてに送信し、前記機器から前記識別子を付した前記制御命令に対する機器応答を受信する通信部として機能させ、  A control command including device information for identifying a device is sent to the device with an identifier, and functions as a communication unit that receives a device response to the control command with the identifier from the device,
前記通信部は、  The communication unit is
第1の制御命令に第1の識別子を付して前記機器あてに送信し、前記機器から前記第1の制御命令に対する機器応答を受信していないときに、前記機器あての第2の制御命令を受信した場合、前記第2の制御命令に前記第1の識別子と異なる第2の識別子を付して記録部に保持させ、前記第2の制御命令にもとづいて設定されたタイムアウト時間のカウントが終了したとき、前記記録部が保持している前記第2の制御命令に前記第2の識別子と異なる第3の識別子を付して前記機器あてに送信する、  A second control command addressed to the device when a first identifier is added to the first control command and transmitted to the device, and a device response to the first control command is not received from the device. When the second control instruction is received, a second identifier different from the first identifier is attached to the recording unit and held in the recording unit, and the timeout time set based on the second control instruction is counted. When finished, attach a third identifier different from the second identifier to the second control command held by the recording unit, and transmit to the device.
プログラム。  program.
JP2015116390A 2015-06-09 2015-06-09 COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PROGRAM Active JP6562723B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015116390A JP6562723B2 (en) 2015-06-09 2015-06-09 COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015116390A JP6562723B2 (en) 2015-06-09 2015-06-09 COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PROGRAM

Publications (2)

Publication Number Publication Date
JP2017005444A JP2017005444A (en) 2017-01-05
JP6562723B2 true JP6562723B2 (en) 2019-08-21

Family

ID=57752384

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015116390A Active JP6562723B2 (en) 2015-06-09 2015-06-09 COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PROGRAM

Country Status (1)

Country Link
JP (1) JP6562723B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116500957B (en) * 2023-06-29 2023-09-12 江苏中濠建设工程有限公司 Equipment linkage control method and intelligent linkage control system of Internet of things

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3548352B2 (en) * 1996-10-25 2004-07-28 キヤノン株式会社 Remote camera control system, apparatus and method
JP2001285968A (en) * 2000-03-29 2001-10-12 Matsushita Electric Works Ltd Control system and control method
JP2002051055A (en) * 2000-08-04 2002-02-15 Sony Corp Communication control method, communication system and communication unit
JP2006238177A (en) * 2005-02-25 2006-09-07 Toshiba Corp Communication system, remote controller terminal equipment and target terminal equipment
JP5974931B2 (en) * 2013-02-27 2016-08-23 東芝ライテック株式会社 Communication device
JP2015088822A (en) * 2013-10-29 2015-05-07 東芝ライテック株式会社 Communication device, communication method, and communication system
JP6704166B2 (en) * 2015-01-06 2020-06-03 パナソニックIpマネジメント株式会社 Communication device

Also Published As

Publication number Publication date
JP2017005444A (en) 2017-01-05

Similar Documents

Publication Publication Date Title
KR100894506B1 (en) Monitoring system for communication network having a plurality of layers
CN111464402B (en) Control method of intelligent household equipment, terminal equipment and medium
JP6576021B2 (en) Server apparatus, control system, and control method
JP2010220036A (en) Gateway device, method of controlling the same, system, program for executing the method, and recording medium with the program recorded therein
JP5974931B2 (en) Communication device
JP6456794B2 (en) Terminal and control method thereof
JP6562723B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PROGRAM
JP6704166B2 (en) Communication device
JP2016187073A (en) Communication device, communication system and communication method
JPWO2018158939A1 (en) COMMUNICATION TEST DEVICE, COMMUNICATION TEST METHOD, AND PROGRAM
KR102044522B1 (en) Mobile terminal and method for registration processing of electronic device thereof
JP2016184916A (en) Communication unit, communication system and communication method
KR101989828B1 (en) Home network service providing system using portable terminal
JP5650816B1 (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP2005079647A (en) Communication control apparatus, communication system, and communication control method
JP6952258B2 (en) Disaster prevention systems, fire receivers, and repeaters
JP2022088481A (en) Communication device, communication system, device control system, communication control method, and program
TWI565257B (en) Component multicast protocol
WO2016084234A1 (en) Communication device, communication adaptor, communication system, communication parameter response method, and program
KR101961553B1 (en) Wireless-sensor automatic detection home automatation control device
KR101401261B1 (en) The data concentrator and communication method of the data concentrator
JP2002278902A (en) Device control system by using electronic mail
JP2018166240A (en) Control device and control method
EP4131194A1 (en) Display device and program
JP2005085047A (en) Network-setting device and computer program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180306

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20180306

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190225

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190305

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20190424

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190507

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190723

R151 Written notification of patent or utility model registration

Ref document number: 6562723

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151