JP2016127495A - Communication device and program - Google Patents

Communication device and program Download PDF

Info

Publication number
JP2016127495A
JP2016127495A JP2015001078A JP2015001078A JP2016127495A JP 2016127495 A JP2016127495 A JP 2016127495A JP 2015001078 A JP2015001078 A JP 2015001078A JP 2015001078 A JP2015001078 A JP 2015001078A JP 2016127495 A JP2016127495 A JP 2016127495A
Authority
JP
Japan
Prior art keywords
response
time
request signal
attribute information
request
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.)
Granted
Application number
JP2015001078A
Other languages
Japanese (ja)
Other versions
JP6704166B2 (en
Inventor
賢二 中北
Kenji Nakakita
賢二 中北
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.)
Panasonic Intellectual Property Management Co Ltd
Original Assignee
Panasonic Intellectual Property Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Intellectual Property Management Co Ltd filed Critical Panasonic Intellectual Property Management Co Ltd
Priority to JP2015001078A priority Critical patent/JP6704166B2/en
Priority to PCT/JP2015/006305 priority patent/WO2016110904A1/en
Publication of JP2016127495A publication Critical patent/JP2016127495A/en
Application granted granted Critical
Publication of JP6704166B2 publication Critical patent/JP6704166B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom

Abstract

PROBLEM TO BE SOLVED: To provide a communication program that can set a response waiting time matched with response performance of equipment of a communication partner.SOLUTION: A communication device 1 has a transmitter 15, a receiver 16, a timer 17, a storage unit 18 and a time setting unit 19. The transmitter 15 transmits a request signal requiring a response to equipment 2. The receiver 16 performs reception processing of a response signal as a response to the request signal when a lapse time from transmission of the request signal is within a response waiting time. The timer 17 measures the response time from the transmission of the request signal to the caption of the response signal. The storage unit 18 stores the history of the response time of the equipment 2 in association with attribution information of the equipment 2. The time setting unit 19 sets a response waiting time corresponding to the attribution information of the equipment 2 based on the history of the response time corresponding to the attribute information of the equipment 2.SELECTED DRAWING: Figure 1

Description

本発明は、一般に通信装置、プログラム、より詳細には、他の機器との間で通信を行う通信装置、およびコンピュータを通信装置として機能させるためのプログラムに関する。   The present invention generally relates to a communication device, a program, and more particularly to a communication device that communicates with other devices, and a program that causes a computer to function as the communication device.

従来、住宅設備機器(太陽電池、蓄電池など)や家電機器(エアコン、照明器具、冷蔵庫など)などを監視、制御するHEMS(Home Energy Management System)がある(例えば特許文献1参照)。また、HEMSの普及加速を目的として、HEMSを構成する機器間における通信方式の業界標準化が進められており、互いに異なるメーカの機器の相互接続環境が整備されつつある。   2. Description of the Related Art Conventionally, there is a HEMS (Home Energy Management System) that monitors and controls residential equipment (such as solar cells and storage batteries) and home appliances (such as air conditioners, lighting fixtures, and refrigerators) (see, for example, Patent Document 1). Also, for the purpose of accelerating the spread of HEMS, industry standardization of communication methods between devices constituting HEMS is being promoted, and an interconnection environment for devices of different manufacturers is being prepared.

一般的に、機器が通信相手の機器(相手機器)に要求信号を送信した場合、要求信号の送信から応答待ち時間の間は応答待ちを行う。そして、機器は、応答待ち時間内に相手機器からの応答信号を受信した場合に、この応答信号の受信処理を行う。また、機器は、応答待ち時間内に通信相手の機器から応答信号を受信しなかった場合、通信相手の機器に送信した要求信号はタイムアウトであると判定され、要求信号の再送信などのタイムアウト処理が行われる。   Generally, when a device transmits a request signal to a communication partner device (a partner device), the device waits for a response during the response waiting time from the transmission of the request signal. When the device receives a response signal from the counterpart device within the response waiting time, the device performs reception processing of the response signal. If the device does not receive a response signal from the communication partner device within the response waiting time, the request signal transmitted to the communication partner device is determined to be timed out, and a time-out process such as retransmission of the request signal is performed. Is done.

ここで、同一のメーカの機器間で通信を行う場合、相手機器の応答性能に関する情報を予め保持しているので、相手機器の性能に応じて応答待ち時間を設定することが一般的である。例えば、互いに同一メーカであるHEMSのコントローラとデバイス機器との間で通信を行う場合、コントローラは、デバイス機器の応答性能に応じた応答待ち時間を設定することができる。これにより、デバイス機器において、コントローラからの連続要求による通信バッファのオーバーフローが防止される。すなわち、デバイス機器が受信できない要求の発生が防止され、デバイス機器がコントローラからの要求を取りこぼすことが防止される。したがって、同一メーカであるコントローラとデバイス機器との間では、通信ロスが発生することがなかった。   Here, when communication is performed between devices of the same manufacturer, information on the response performance of the counterpart device is stored in advance, so that it is common to set a response waiting time according to the performance of the counterpart device. For example, when communication is performed between a HEMS controller and a device device that are the same manufacturer, the controller can set a response waiting time according to the response performance of the device device. Thereby, in the device device, the overflow of the communication buffer due to the continuous request from the controller is prevented. That is, the generation of a request that cannot be received by the device device is prevented, and the device device is prevented from missing a request from the controller. Therefore, no communication loss occurs between the controller and the device device of the same manufacturer.

特開2014−124066号公報Japanese Patent Application Laid-Open No. 2014-124066

しかし、互いに異なるメーカの機器間で通信を行う場合、相手機器の応答性能が不明であるので適切な応答待ち時間の設定ができなかった。この応答待ち時間が短すぎる場合、タイムアウトが頻発し多重要求の発生によって要求の取りこぼしが発生するおそれある。また、応答待ち時間が長すぎる場合、システムの応答性が低下し、ユーザビリティの低下につながる。   However, when communication is performed between devices from different manufacturers, it is not possible to set an appropriate response waiting time because the response performance of the counterpart device is unknown. If the response waiting time is too short, timeouts occur frequently, and there is a possibility that requests may be missed due to the occurrence of multiple requests. Moreover, when the response waiting time is too long, the responsiveness of the system decreases, leading to a decrease in usability.

本発明は、上記事由に鑑みてなされており、その目的は、通信相手の機器の応答性能に応じた応答待ち時間を設定することができる通信装置、およびコンピュータを通信装置として機能させるためのプログラムを提供することにある。   The present invention has been made in view of the above-mentioned reasons, and the object thereof is a communication device capable of setting a response waiting time according to the response performance of a communication partner device, and a program for causing a computer to function as a communication device Is to provide.

本発明の通信装置は、応答を要する要求信号を機器に送信する送信部と、前記要求信号の送信からの経過時間が応答待ち時間内である場合、前記要求信号の応答である応答信号の受信処理を行う受信部と、前記要求信号の送信から前記応答信号の受信までの応答時間を計測するタイマと、前記機器の前記応答時間の履歴が、前記機器の属性情報に対応付けられて格納される記憶部と、前記機器の属性情報に対応する前記応答時間の履歴に基づいて、前記機器の属性情報に対応する前記応答待ち時間を設定する時間設定部とを備えることを特徴とする。   The communication apparatus according to the present invention includes: a transmission unit that transmits a request signal that requires a response to a device; and a response signal that is a response to the request signal when an elapsed time from the transmission of the request signal is within a response waiting time A receiving unit that performs processing, a timer that measures a response time from transmission of the request signal to reception of the response signal, and a history of the response time of the device are stored in association with attribute information of the device. And a time setting unit for setting the response waiting time corresponding to the attribute information of the device based on a history of the response time corresponding to the attribute information of the device.

本発明のプログラムは、コンピュータを上記通信装置として機能させる。   The program of the present invention causes a computer to function as the communication device.

本発明では、通信相手の機器の応答性能に応じた応答待ち時間を設定することができるという効果がある。   In the present invention, there is an effect that a response waiting time can be set according to the response performance of the communication partner device.

実施形態の通信装置のブロック構成図である。It is a block block diagram of the communication apparatus of embodiment. 要求判定処理のフローチャートである。It is a flowchart of a request determination process. 図3A、図3Bは、要求信号の送信、応答信号の受信のシーケンス図である。3A and 3B are sequence diagrams of transmission of a request signal and reception of a response signal.

以下、本発明の実施の形態を図面に基づいて説明する。
(実施形態)
図1に、本実施形態のブロック構成図を示す。本実施形態では、通信装置1と複数の機器2とでHEMS(Home Energy Management System)を構成している。通信装置1は、HEMSのコントローラであり、複数の機器2のそれぞれはHEMSのデバイス(例えば、エアコン、照明器具など)である。なお、本実施形態において、通信装置1と機器2とは互いに異なるメーカである。また、複数の機器2の区別する場合、機器21、機器22、機器23という。通信装置1は、それぞれの機器2との間でネットワークを介して通信可能に構成されている。ここで、HEMSを構成する機器2において、互いに異なるメーカ間の機器2で相互に接続、制御を行うために業界標準化の通信規格(通信方式)がある。本実施形態では、この業界標準化の通信規格として、一般社団法人エコーネットコンソーシアムによって策定された通信プロコトルであるECHONET Lite(登録商標)(以降、共通通信規格という)を用いた場合を例にして説明する。以下に、本実施形態における通信装置1の構成について図1を用いて説明する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
(Embodiment)
FIG. 1 shows a block diagram of the present embodiment. In the present embodiment, the communication device 1 and the plurality of devices 2 constitute a HEMS (Home Energy Management System). The communication device 1 is a HEMS controller, and each of the plurality of devices 2 is a HEMS device (for example, an air conditioner, a lighting device, or the like). In the present embodiment, the communication device 1 and the device 2 are different manufacturers. Further, when the plurality of devices 2 are distinguished, they are referred to as a device 21, a device 22, and a device 23. The communication device 1 is configured to be able to communicate with each device 2 via a network. Here, there is an industry standardized communication standard (communication system) for connecting and controlling the devices 2 constituting the HEMS by the devices 2 between different manufacturers. In this embodiment, the case where ECHONET Lite (registered trademark) (hereinafter referred to as a common communication standard), which is a communication protocol established by the Echonet Consortium, is used as an example of this industry standardized communication standard will be described. To do. Below, the structure of the communication apparatus 1 in this embodiment is demonstrated using FIG.

本実施形態の通信装置1は、通信部11、要求生成部12、操作部13、通信制御部14、送信部15、受信部16、タイマ17、記憶部18、および時間設定部19を備えるHEMSのコントローラである。   The communication apparatus 1 according to the present embodiment includes a communication unit 11, a request generation unit 12, an operation unit 13, a communication control unit 14, a transmission unit 15, a reception unit 16, a timer 17, a storage unit 18, and a time setting unit 19. Controller.

通信部11は、いわゆる通信インターフェースであり、機器2との間に構築されたネットワークを介して、有線または無線を媒体とした信号の授受を行う。なお、必要に応じて通信装置1と機器2との間にルータが設けられていてもよい。   The communication unit 11 is a so-called communication interface, and transmits and receives signals using a wired or wireless medium via a network established with the device 2. Note that a router may be provided between the communication device 1 and the device 2 as necessary.

要求生成部12は、第1要求部121と第2要求部122とを備え、機器2に対する制御要求を生成する。   The request generation unit 12 includes a first request unit 121 and a second request unit 122 and generates a control request for the device 2.

第1要求部121は、ネットワークを介して通信装置1と接続されたGUI(Graphical User Interface)端末、通信装置1が備える操作部13の操作内容が入力され、この操作内容に基づいた制御要求を生成する。GUI端末3は、表示部31と操作部32とを備えており、GUIを用いた入力デバイスとしての機能と、HEMSの状態を表示するモニタとしての機能とを兼用している。表示部31は、EL(Electro Luminescence)ディスプレイ、液晶ディスプレイなどで構成されおり、例えば機器2に対する制御情報(例えば稼働、停止、情報取得など)を示すアイコンが表示される。操作部32は、表示部31を構成するディスプレイ上に設けられたタッチパネルで構成されている。そして、GUI端末3は、ユーザによる操作部32への操作内容(例えば選択されたアイコンが示す制御情報)を通信装置1に送信し、第1要求部121は、この操作内容を取得する。また、通信装置1が備える操作部13は、例えばタクタイルスイッチ(押しボタンスイッチ)で構成されており、ユーザによって操作されることで、この操作部13に割り当てられた操作内容が第1要求部121に伝えられる。   The first request unit 121 receives a GUI (Graphical User Interface) terminal connected to the communication device 1 via a network and an operation content of the operation unit 13 included in the communication device 1, and sends a control request based on the operation content. Generate. The GUI terminal 3 includes a display unit 31 and an operation unit 32, and has both a function as an input device using a GUI and a function as a monitor that displays the state of the HEMS. The display unit 31 includes an EL (Electro Luminescence) display, a liquid crystal display, and the like, and displays icons indicating control information (for example, operation, stop, information acquisition, etc.) for the device 2, for example. The operation unit 32 includes a touch panel provided on a display that constitutes the display unit 31. Then, the GUI terminal 3 transmits the operation content (for example, control information indicated by the selected icon) to the operation unit 32 by the user to the communication device 1, and the first request unit 121 acquires the operation content. Further, the operation unit 13 included in the communication device 1 includes, for example, a tactile switch (push button switch), and the operation content assigned to the operation unit 13 is changed by the first request unit 121 when operated by the user. To be told.

そして、第1要求部121は、GUI端末3または操作部13から受け取った操作内容が、機器2に対して制御が必要である場合、この操作内容が示す制御情報に基づいて機器2への制御要求を生成し、通信制御部14に出力する。例えば、操作内容が示す制御情報が「機器2の稼働」である場合、第1要求部121は、「機器2を稼働させる」という制御要求を生成し、通信制御部14に出力する。   Then, when the operation content received from the GUI terminal 3 or the operation unit 13 needs to control the device 2, the first request unit 121 controls the device 2 based on the control information indicated by the operation content. A request is generated and output to the communication control unit 14. For example, when the control information indicated by the operation content is “operation of the device 2”, the first request unit 121 generates a control request “activate the device 2” and outputs the control request to the communication control unit 14.

第1要求部121は、ユーザによる操作をトリガとして制御要求を生成する構成であるのに対し、第2要求部122は、機器2への制御要求を自動的に生成する構成である。第2要求部122は、例えばユーザによって決められたスケジュールに基づいたタイミングで、機器2への制御要求を生成し、通信制御部14に出力する。   The first request unit 121 is configured to generate a control request with a user operation as a trigger, whereas the second request unit 122 is configured to automatically generate a control request to the device 2. The second request unit 122 generates a control request to the device 2 at a timing based on a schedule determined by the user, for example, and outputs the control request to the communication control unit 14.

通信制御部14は、機器2への制御要求が要求生成部12(第1要求部121、第2要求部122)から入力されると、すぐにこの制御要求を機器2に伝えるか否かの要求判定処理を行う。なお、この要求判定処理については後述し、ここでは機器2への制御要求をすぐに伝える場合について説明する。   When a control request to the device 2 is input from the request generation unit 12 (the first request unit 121 and the second request unit 122), the communication control unit 14 determines whether or not to immediately transmit the control request to the device 2. Perform request determination processing. This request determination process will be described later. Here, a case where a control request to the device 2 is immediately transmitted will be described.

通信制御部14は、機器2に制御要求を伝える場合、この制御要求を識別するための識別子であるトランザクションIDを制御要求に割り当てる。そして、通信制御部14は、トランザクションIDを付加した制御要求を送信部15に出力する。さらに、通信制御部14は、制御要求に付加したトランザクションIDを受信部16に通知する。この、トランザクションIDによって、要求と応答とが対応付けられ、機器2からの応答を受信した場合に、どの要求に対する応答であるかを判別することができる。   When communicating a control request to the device 2, the communication control unit 14 assigns a transaction ID that is an identifier for identifying the control request to the control request. Then, the communication control unit 14 outputs a control request with the transaction ID added to the transmission unit 15. Further, the communication control unit 14 notifies the reception unit 16 of the transaction ID added to the control request. With this transaction ID, a request and a response are associated with each other, and when a response from the device 2 is received, it is possible to determine which request is the response.

送信部15は、通信制御部14から受け取った制御要求を、共通通信規格に則った信号フォーマットで構成される要求信号に変換する。このとき、送信部15は、制御要求に付加されたトランザクションIDを要求信号にも付加する。また、共通通信規格では、要求に対して応答が必要であるか不要であるかの情報も要求信号に付加される。本実施形態では、要求に対して応答が必要であるという情報が、要求信号に付加されている場合を例にして説明する。すなわち、本実施形態において、要求信号には、機器2への制御要求が機器2に対する制御内容として含まれており、さらに応答が必要であるという情報とトランザクションIDとが付加されている。そして、送信部15は、生成した要求信号をネットワークを介して機器2に送信する。   The transmission unit 15 converts the control request received from the communication control unit 14 into a request signal configured with a signal format conforming to the common communication standard. At this time, the transmission unit 15 also adds the transaction ID added to the control request to the request signal. In the common communication standard, information indicating whether a response to a request is necessary or not is also added to the request signal. In the present embodiment, a case where information indicating that a response to a request is required is added to the request signal will be described as an example. In other words, in the present embodiment, the request signal includes a control request to the device 2 as a control content for the device 2 and information that a response is required and a transaction ID. Then, the transmission unit 15 transmits the generated request signal to the device 2 via the network.

送信部15からの要求信号を受信した機器2は、この要求信号の応答である応答信号を生成して、通信装置1に返信する。例えば、要求信号に含まれた制御要求が「機器2の稼働」である場合、機器2は、起動が完了し稼働状態であることを示す応答が含まれた応答信号を、通信装置1に返信する。また、要求信号に含まれた制御要求が、機器2の属性情報を要求する「情報取得」である場合、機器2は、要求された属性情報を示す応答が含まれた応答信号を通信装置1に返信する。そして、機器2は、受信した要求信号に対する応答信号を生成する際に、この要求信号に付加されたトランザクションIDを応答信号に付加する。   The device 2 that has received the request signal from the transmission unit 15 generates a response signal that is a response to the request signal, and returns the response signal to the communication device 1. For example, when the control request included in the request signal is “operation of the device 2”, the device 2 returns a response signal including a response indicating that the activation is completed and the operation is in progress to the communication device 1. To do. When the control request included in the request signal is “information acquisition” requesting attribute information of the device 2, the device 2 sends a response signal including a response indicating the requested attribute information to the communication device 1. Reply to When the device 2 generates a response signal for the received request signal, the device 2 adds the transaction ID added to the request signal to the response signal.

受信部16は、応答信号に付加されたトランザクションIDを確認し、このトランザクションIDが通信制御部14に通知されたトランザクションIDと一致する場合、この応答信号の受信処理を行う。また、受信部16は、受信した応答信号に含まれる機器2からの応答情報を、要求元の要求生成部12に出力する。要求生成部12は、必要に応じて応答情報をGUI端末3に送信し、GUI端末3の表示部31を用いて応答情報を表示させる。   The receiving unit 16 confirms the transaction ID added to the response signal. If the transaction ID matches the transaction ID notified to the communication control unit 14, the receiving unit 16 performs reception processing of the response signal. Further, the receiving unit 16 outputs response information from the device 2 included in the received response signal to the request generating unit 12 that is a request source. The request generation unit 12 transmits response information to the GUI terminal 3 as necessary, and displays the response information using the display unit 31 of the GUI terminal 3.

タイマ17は、送信部15から送信される要求信号と受信部16が受信する応答信号とを監視しており、要求信号の送信から応答信号の受信までの応答時間を計測する。タイマ17は、送信部15から要求信号が送信されると計時を開始し、この要求信号に対応する応答信号を受信部16が受信すると計時を停止し、計時結果が応答時間となる。そして、タイマ17は、計測した応答時間を記憶部18に格納する。また、タイマ17は、要求信号の送信からの経過時間を、この要求信号に付加されたトランザクションIDと対応付けて通信制御部14に通知する。通信制御部14は、この経過時間を用いて後述するタイムアウト判定処理を行う。   The timer 17 monitors the request signal transmitted from the transmission unit 15 and the response signal received by the reception unit 16, and measures the response time from transmission of the request signal to reception of the response signal. When the request signal is transmitted from the transmission unit 15, the timer 17 starts measuring time. When the receiving unit 16 receives a response signal corresponding to the request signal, the timer 17 stops measuring time, and the measured result becomes the response time. The timer 17 stores the measured response time in the storage unit 18. The timer 17 notifies the communication control unit 14 of the elapsed time from the transmission of the request signal in association with the transaction ID added to the request signal. The communication control unit 14 performs a timeout determination process, which will be described later, using this elapsed time.

記憶部18は、タイマ17が計測した応答時間の履歴が格納される。   The storage unit 18 stores a history of response times measured by the timer 17.

時間設定部19は、記憶部18に格納された応答時間の履歴に基づいて、要求信号に対する応答待ち時間を設定する。受信部16は、応答待ち時間内に応答信号を受信した場合に、応答信号の受信処理を行う。なお、応答待ち時間の設定については後述する。   The time setting unit 19 sets a response waiting time for the request signal based on the response time history stored in the storage unit 18. When receiving the response signal within the response waiting time, the receiving unit 16 performs a response signal reception process. The setting of the response waiting time will be described later.

次に、タイムアウト判定処理について説明する。   Next, the timeout determination process will be described.

通信制御部14は、要求信号の送信からの経過時間と、応答待ち時間とを比較するタイムアウト判定処理を行う。そして、通信制御部14は、経過時間が応答待ち時間を上回った場合、要求信号に対する応答待ちをタイムアウトさせる。具体的には、通信制御部14は、経過時間が応答待ち時間を上回った場合、受信部16に対して要求信号に付加されたトランザクションIDを破棄するように指示する。受信部16は、トランザクションIDを破棄することで、要求信号に対する応答信号の受信処理を行わない。すなわち、要求信号の送信からの経過時間が応答待ち時間を上回った場合、この要求信号に対する応答信号の応答待ちを終了させるタイムアウトが実行される。なお、応答待ち時間内に受信部16が応答信号を受信した場合、この応答信号の受信処理が行われる。   The communication control unit 14 performs a time-out determination process that compares the elapsed time from the transmission of the request signal with the response waiting time. If the elapsed time exceeds the response waiting time, the communication control unit 14 times out waiting for a response to the request signal. Specifically, when the elapsed time exceeds the response waiting time, the communication control unit 14 instructs the receiving unit 16 to discard the transaction ID added to the request signal. The receiving unit 16 does not perform response signal reception processing for the request signal by discarding the transaction ID. In other words, when the elapsed time from the transmission of the request signal exceeds the response waiting time, a timeout is executed to end waiting for a response signal response to the request signal. When the receiving unit 16 receives a response signal within the response waiting time, a reception process for the response signal is performed.

次に、通信制御部14が要求生成部12から制御要求を入力された際に、すぐにこの制御要求を機器2に伝えるか否かを判断する要求判定処理について、図2に示すフローチャートを用いて説明する。   Next, when the communication control unit 14 receives a control request from the request generation unit 12, a request determination process for determining whether or not to immediately transmit this control request to the device 2 will be described with reference to the flowchart shown in FIG. I will explain.

まず、通信制御部14は、要求生成部12から入力された制御要求の要求先の機器2に対して、応答待ち中の要求があるか否かを確認する(S1)。通信制御部14は、制御要求の要求先の機器2に対して応答待ちの要求がある場合(S1のYes)、この要求がタイムアウトであるか否かをタイムアウト判定処理によって確認する(S2)。要求がタイムアウトではない、すなわち応答待ち中である場合(S2のNo)、応答信号の受信確認を行う(S3)。そして、応答信号の受信処理が未処理である場合(S3のNo)、ステップS2のタイムアウト判定処理に戻る。   First, the communication control unit 14 confirms whether there is a request waiting for a response to the requesting device 2 of the control request input from the request generation unit 12 (S1). When there is a response waiting request to the requesting device 2 of the control request (Yes in S1), the communication control unit 14 checks whether or not the request is timed out by a time-out determination process (S2). If the request is not timed out, that is, waiting for a response (No in S2), reception of a response signal is confirmed (S3). If the response signal reception process is not yet processed (No in S3), the process returns to the timeout determination process in step S2.

一方、制御要求の要求先の機器2に対して応答待ち中の要求がない場合(S1のNo)、通信制御部14は、要求生成部12から入力された制御要求を送信部15に出力し、送信部15から要求信号が送信される(S4)。同様に、要求がタイムアウトである場合(S2のYes)、または応答信号の受信処理が行われた場合(S3のYes)、通信制御部14は、要求生成部12から入力された制御要求を送信部15に出力し、送信部15から要求信号が送信される(S4)。   On the other hand, when there is no request waiting for a response to the requesting device 2 of the control request (No in S1), the communication control unit 14 outputs the control request input from the request generation unit 12 to the transmission unit 15. A request signal is transmitted from the transmitter 15 (S4). Similarly, if the request is timed out (Yes in S2), or if a response signal is received (Yes in S3), the communication control unit 14 transmits the control request input from the request generation unit 12 The data is output to the unit 15 and a request signal is transmitted from the transmission unit 15 (S4).

上述したタイムアウト判定処理、要求判定処理により、要求信号の送信、応答信号の受信を示すシーケンス図は、図3A、図3Bで表される。   Sequence diagrams showing transmission of a request signal and reception of a response signal by the above-described timeout determination process and request determination process are shown in FIGS. 3A and 3B.

図3Aに示すように、通信装置1から機器2に要求信号が送信されると、タイマ17が計時を開始する(P1)。そして、応答待ち時間内に応答信号の受信処理が行われた場合、タイマ17は計時を停止し計時結果が応答時間となる(P2)。このとき、通信装置1が機器2からの応答信号を受信するまでの間、すなわちタイマ17が応答時間の計測中である場合、通信装置1から機器2に対して新たな要求信号が送信されない。このように、応答待ち時間内は、応答中の機器2に対して新たな要求信号の送信の禁止期間となる。   As shown in FIG. 3A, when a request signal is transmitted from the communication device 1 to the device 2, the timer 17 starts measuring time (P1). When the response signal reception process is performed within the response waiting time, the timer 17 stops measuring time, and the measured result becomes the response time (P2). At this time, a new request signal is not transmitted from the communication device 1 to the device 2 until the communication device 1 receives the response signal from the device 2, that is, when the timer 17 is measuring the response time. As described above, the response waiting time is a period during which a new request signal is prohibited from being transmitted to the responding device 2.

そして、機器2に対して新たな要求がある場合、応答信号の受信後に機器2に対して要求信号が送信される(P3)。したがって、ユーザの操作によって第1要求部121が多数の制御要求を生成した場合であっても、この制御要求は通信制御部でバッファされ、機器2への連続要求が防止される。これにより、機器2が受信バッファのオーバーフローによる要求の受信ロスが防止され、さらに不要なリソースの消費による処理の遅延を防止することができる。   When there is a new request for the device 2, the request signal is transmitted to the device 2 after receiving the response signal (P3). Therefore, even when the first request unit 121 generates a large number of control requests by a user operation, the control requests are buffered by the communication control unit, and continuous requests to the device 2 are prevented. Thereby, the reception loss of the request | requirement by the apparatus 2 by the overflow of a reception buffer is prevented, Furthermore, the delay of the process by consumption of an unnecessary resource can be prevented.

また、応答待ち時間内に応答信号の受信処理が行われなかった場合、図3Bに示すように、応答待ち時間後に要求信号が送信される(P4)。このとき、機器2に対して新たな要求がない場合、タイムアウトした要求信号が再送信される。   If the response signal reception process is not performed within the response waiting time, the request signal is transmitted after the response waiting time as shown in FIG. 3B (P4). At this time, if there is no new request to the device 2, the time-out request signal is retransmitted.

次に、上述したタイムアウト判定処理に用いられる応答待ち時間の設定について説明する。   Next, the setting of the response waiting time used for the timeout determination process described above will be described.

本実施形態のタイマ17は、計測した応答時間を、応答時間を計測する際に対象となった要求信号に含まれる制御内容、および応答信号の送信元である機器2の属性情報、応答信号の受信日時を示すタイムスタンプに対応付けて記憶部18に格納する。   The timer 17 of the present embodiment uses the measured response time, the control content included in the request signal that is the target when measuring the response time, the attribute information of the device 2 that is the transmission source of the response signal, the response signal The data is stored in the storage unit 18 in association with a time stamp indicating the reception date and time.

要求信号に含まれる制御内容(制御パラメータ)とは、機器2に対する要求の数(要求数)、要求のコマンド、要求のデータ長などを示す。本実施形態では、要求信号に含まれる制御内容として、要求数が応答時間と対応付けられて記憶部18に格納される。   The control content (control parameter) included in the request signal indicates the number of requests to the device 2 (request number), a request command, a request data length, and the like. In the present embodiment, as the control content included in the request signal, the number of requests is associated with the response time and stored in the storage unit 18.

また、機器2の属性情報とは、機器2のメーカ名を示すメーカコード、製品に割り当てられた商品コード、機器2の種別(機器オブジェクト)を示すクラスコードなどを示す。本実施形態では、機器2の属性情報としてメーカコード、商品コード、クラスコードが応答時間と対応付けられて記憶部18に格納される。メーカコードには、エコーネットコンソーシアムによってメーカごとに割り当てられたコードを用いている。商品コードには、機器2の製品型番を用いている。クラスコードには、エコーネットコンソーシアムによって分類された機器2の種別(機器オブジェクト)を示すコードを用いている。なお、メーカコード、商品コード、クラスコードは、上記に限定せず、例えば、商品コードは、JAN(Japanese Article Number)コードであってもよい。また、応答時間に対応付けられる機器2の属性情報は、機器2に対して上記属性情報を要求する要求信号を送信することで取得することができる。   The attribute information of the device 2 indicates a manufacturer code indicating the manufacturer name of the device 2, a product code assigned to the product, a class code indicating the type (device object) of the device 2, and the like. In the present embodiment, the manufacturer code, the product code, and the class code are associated with the response time and stored in the storage unit 18 as the attribute information of the device 2. As the manufacturer code, a code assigned to each manufacturer by the Echonet Consortium is used. The product code of the device 2 is used as the product code. As the class code, a code indicating the type (device object) of the device 2 classified by the Echonet Consortium is used. Note that the manufacturer code, the product code, and the class code are not limited to the above. For example, the product code may be a JAN (Japanese Article Number) code. The attribute information of the device 2 associated with the response time can be acquired by transmitting a request signal requesting the attribute information to the device 2.

表1に、記憶部18に格納された応答時間の履歴の一例を示す。なお、表1の列方向において、機器2と要求数との組み合わせを1グループとしてまとめて記載しており、各グループ内における列方向の並び順はタイムスタンプの昇順としている。そのため、異なるグループ間においてタイムスタンプの前後関係は規定されない。また、表1は、記憶部に格納された応答時間の履歴の一部であり、記憶部に格納される応答時間の履歴数は表1の個数に限定されない。   Table 1 shows an example of a history of response times stored in the storage unit 18. In the column direction of Table 1, combinations of the devices 2 and the number of requests are collectively described as one group, and the order of arrangement in the column direction in each group is ascending order of time stamps. Therefore, the time stamp context is not defined between different groups. Table 1 is a part of the response time history stored in the storage unit, and the number of response time history stored in the storage unit is not limited to the number in Table 1.

Figure 2016127495
Figure 2016127495

表1に示すように、機器21〜機器23は、クラスコードが共通であり、機器21と機器22とはメーカコードが共通である。また、機器21において、要求数が互いに異なる応答時間のデータがある。   As shown in Table 1, the devices 21 to 23 have the same class code, and the devices 21 and 22 have the same manufacturer code. Further, in the device 21, there is data of response times with different request numbers.

時間設定部19は、記憶部18に格納された応答時間の履歴に基づいて、機器2の属性情報と制御内容とに対応する応答待ち時間を設定する。本実施形態では、時間設定部19は、機器2の各属性情報と要求数との組み合わせの各々に対応する応答待ち時間を設定する。以下では、メーカコードM1、商品コードI1、クラスコードC1、要求数[3]のの組み合わせに対応する応答待ち時間の設定について説明する。   The time setting unit 19 sets a response waiting time corresponding to the attribute information and control content of the device 2 based on the response time history stored in the storage unit 18. In the present embodiment, the time setting unit 19 sets a response waiting time corresponding to each combination of each piece of attribute information of the device 2 and the number of requests. Hereinafter, the setting of the response waiting time corresponding to the combination of the manufacturer code M1, the product code I1, the class code C1, and the number of requests [3] will be described.

時間設定部19は、記憶部18に格納された応答時間の履歴の中から、メーカコードM1、商品コードI1、クラスコードC1、要求数[3]の組み合わせに対応する応答時間を抽出する(タイムスタンプT11〜T13の応答時間)。そして、時間設定部19は、抽出した応答時間の中から、最長の時間を選択する。すなわち、時間設定部19は、タイムスタンプがT11である応答時間(5.5秒)を選択する。   The time setting unit 19 extracts a response time corresponding to the combination of the manufacturer code M1, the product code I1, the class code C1, and the request number [3] from the response time history stored in the storage unit 18 (time Response time of stamps T11 to T13). Then, the time setting unit 19 selects the longest time from the extracted response times. That is, the time setting unit 19 selects a response time (5.5 seconds) whose time stamp is T11.

そして、時間設定部19は、選択した最長の応答時間(5.5秒)に基づいて、メーカコードM1、商品コードI1、クラスコードC1、要求数[3]の組み合わせに対応する応答待ち時間を設定する。本実施形態では、通信上の揺らぎ、受信処理時間の誤差などを考慮し、時間設定部19は、選択した最長の応答時間の5%をマージンとした5.77秒(=5.5秒×1.05)を応答待ち時間に設定する。また、時間設定部19は、機器2の各属性情報と要求数との他の組み合わせについても応答待ち時間を設定する。表2に、時間設定部19が設定した応答待ち時間を示す。なお、本実施形態では、時間設定部19は、選択した最長の応答時間に対して5%を付加した時間を応答待ち時間に設定しているが、5%に限定せず、通信上の揺らぎ、受信処理時間の誤差などを考慮して適宜設定される。また、時間設定部19は、選択した最長の応答時間に対して所定時間(例えば0.5秒など)を付加した時間を応答待ち時間に設定してもよい。   Then, the time setting unit 19 sets the response waiting time corresponding to the combination of the manufacturer code M1, the product code I1, the class code C1, and the number of requests [3] based on the selected longest response time (5.5 seconds). Set. In the present embodiment, taking into account communication fluctuations, errors in reception processing time, and the like, the time setting unit 19 sets 5.77 seconds (= 5.5 seconds × 5%) using 5% of the selected longest response time as a margin. 1.05) is set as the response waiting time. In addition, the time setting unit 19 sets a response waiting time for other combinations of the attribute information of the device 2 and the number of requests. Table 2 shows the response waiting time set by the time setting unit 19. In the present embodiment, the time setting unit 19 sets a response waiting time by adding 5% to the selected longest response time, but is not limited to 5%, and communication fluctuations It is set appropriately in consideration of errors in reception processing time. The time setting unit 19 may set a response waiting time by adding a predetermined time (for example, 0.5 seconds) to the selected longest response time.

Figure 2016127495
Figure 2016127495

通信制御部14は、時間設定部19によって設定された応答待ち時間を用いて上述したタイムアウト判定処理を行う。例えば、属性情報がメーカコードM1、商品コードI1、クラスコードC1である機器21に対して要求数が[3]の要求信号を送信する場合、応答待ち時間には5.77秒が設定される。また、機器21に対して要求数が[2]の要求信号を送信する場合、応答待ち時間には5.25秒が設定される。また、複数の機器2に対して同一の要求信号をマルチキャストで送信する場合、応答待ち時間は、送信先の機器2のうち最長の応答待ち時間が適用される。   The communication control unit 14 performs the above-described timeout determination process using the response waiting time set by the time setting unit 19. For example, when a request signal having a request count of [3] is transmitted to the device 21 whose attribute information is the manufacturer code M1, the product code I1, and the class code C1, 5.77 seconds are set as the response waiting time. . Further, when a request signal with the number of requests [2] is transmitted to the device 21, 5.25 seconds is set as the response waiting time. Further, when the same request signal is transmitted to a plurality of devices 2 by multicast, the longest response waiting time of the transmission destination devices 2 is applied as the response waiting time.

なお、時間設定部19が応答待ち時間を求めるタイミングは、要求信号の送信時であってもよいし、要求信号の送信前に予め求めておいてもよい。要求信号の送信前に応答待ち時間を求める場合、時間設定部19は、機器2の属性情報と制御内容とに対応する応答待ち時間を予め求めてデータテーブルに格納しておく。そして、要求信号の送信時において、時間設定部19は、機器2の属性情報と制御内容とに対応する応答待ち時間をデータテーブルから抽出し、通信制御部14は、時間設定部19が抽出した応答待ち時間を用いてタイムアウト判定処理を行う。   The timing at which the time setting unit 19 obtains the response waiting time may be at the time of transmission of the request signal, or may be obtained in advance before transmission of the request signal. When the response waiting time is obtained before the request signal is transmitted, the time setting unit 19 obtains a response waiting time corresponding to the attribute information and control content of the device 2 in advance and stores it in the data table. At the time of transmission of the request signal, the time setting unit 19 extracts the response waiting time corresponding to the attribute information and control content of the device 2 from the data table, and the communication control unit 14 is extracted by the time setting unit 19 Timeout determination processing is performed using the response waiting time.

このように、本実施形態では、応答時間の履歴に基づいて、機器2の属性情報と制御内容とに対応する応答待ち時間が設定される。したがって、要求信号の送信先である機器2の応答性能が不明であっても、応答時間の履歴に基づいてこの機器2に適した応答待ち時間を設定することができ、応答待ち時間が不要に短く設定される、または不要に長く設定されることが防止される。これにより、タイムアウトが頻発し機器2の受信バッファがオーバーフローすることを防止することができる。また、要求信号がタイムアウトした際に次の要求信号が送信されるまでの間隔が不要に長くなることが防止されるので、システムの応答性の低下が防止され、ユーザビリティを向上させることができる。なお、本実施形態では、応答待ち時間は、機器2の属性情報と制御内容とに基づいて設定されているが、機器2の属性情報のみに基づいて設定されていてもよい。   Thus, in this embodiment, the response waiting time corresponding to the attribute information and control content of the device 2 is set based on the response time history. Therefore, even if the response performance of the device 2 that is the transmission destination of the request signal is unknown, it is possible to set a response waiting time suitable for the device 2 based on the response time history, and the response waiting time is unnecessary. It is possible to prevent the setting from being shortened or being set unnecessarily long. This can prevent frequent timeouts and overflow of the reception buffer of the device 2. Further, since the interval until the next request signal is transmitted when the request signal times out is prevented from being unnecessarily long, the system responsiveness is prevented from being lowered and usability can be improved. In the present embodiment, the response waiting time is set based on the attribute information of the device 2 and the control content, but may be set based only on the attribute information of the device 2.

また、時間設定部19は、機器2の属性情報と制御内容に対応する応答時間の履歴に基づいて、応答時間が短縮傾向であるか否かを判定する。例えば、現在から所定期間(例えば1ヶ月、3ヶ月など)前までの応答時間の履歴のうち最長の応答時間を、応答待ち時間から引いた差分が所定時間よりも長い場合、時間設定部19は、応答時間が短縮傾向であると判定する。または、応答時間が、応答待ち時間の所定割合(例えば70%)よりも短い状態が所定回数(例えば5回)連続した場合、時間設定部19は、応答時間が短縮傾向であると判定する。そして、時間設定部19は、応答時間が短縮傾向であると判定した場合、応答待ち時間を現在設定されている第1の時間よりも短い第2の時間に設定する。例えば、時間設定部19は、メーカコードM1、商品コードI1、クラスコードC1、要求数[3]に対応する応答時間が短縮傾向であると判定したとする。この場合、時間設定部19は、応答待ち時間を、現在設定されている5.77秒(第1の時間)よりも短い5.67秒(第2の時間)に変更する。これにより、機器2のファームウェアの更新などによって応答性能が向上し、応答時間が短くなった場合などに、応答待ち時間を短縮させシステムの応答性を向上させることができる。なお、第2の時間は、第1の時間に対して所定時間短い値、または所定の割合で小さい値に設定される。あるいは、第2の時間は、現在設定されている応答待ち時間と、所定期間前までにおける最長の応答時間との差の大きさに基づいた時間に設定される。   The time setting unit 19 determines whether or not the response time tends to be shortened based on the attribute information of the device 2 and the response time history corresponding to the control content. For example, when the difference obtained by subtracting the longest response time from the response time history from the present to a predetermined period (for example, one month, three months, etc.) from the response waiting time is longer than the predetermined time, the time setting unit 19 It is determined that the response time tends to be shortened. Alternatively, when the response time is shorter than a predetermined ratio (for example, 70%) of the response waiting time for a predetermined number of times (for example, five times), the time setting unit 19 determines that the response time tends to be shortened. When the time setting unit 19 determines that the response time tends to be shortened, the time setting unit 19 sets the response waiting time to a second time shorter than the currently set first time. For example, it is assumed that the time setting unit 19 determines that the response time corresponding to the manufacturer code M1, the product code I1, the class code C1, and the number of requests [3] tends to be shortened. In this case, the time setting unit 19 changes the response waiting time to 5.67 seconds (second time), which is shorter than the currently set 5.77 seconds (first time). Thereby, when the response performance is improved by updating the firmware of the device 2 and the response time is shortened, the response waiting time can be shortened and the responsiveness of the system can be improved. Note that the second time is set to a value that is shorter by a predetermined time than the first time, or a smaller value at a predetermined rate. Alternatively, the second time is set to a time based on the magnitude of the difference between the currently set response waiting time and the longest response time before a predetermined period.

また、時間設定部19は、第2の時間に変更した応答待ち時間が、タイマ17で計測した応答時間よりも短い場合、応答待ち時間を第2の時間よりも長い第3の時間に変更する。例えば、メーカコードM1、商品コードI1、クラスコードC1、要求数[3]に対応する応答時間が5.67秒(第2の時間)を所定回数上回ったとする。この場合、時間設定部19は、応答待ち時間を5.67秒(第2の時間)よりも長い5.72秒(第3の時間)に設定する。これにより、応答待ち時間が不要に短縮されることを防止することができる。なお、第3の時間は、第2の時間に対して所定時間長い値、または所定の割合で大きい値に設定される。あるいは、第3の時間は、第2の時間と、第2の時間を上回った応答時間との差の大きさに基づいた時間に設定される。   In addition, when the response waiting time changed to the second time is shorter than the response time measured by the timer 17, the time setting unit 19 changes the response waiting time to a third time longer than the second time. . For example, it is assumed that the response time corresponding to the manufacturer code M1, the product code I1, the class code C1, and the number of requests [3] exceeds 5.67 seconds (second time) a predetermined number of times. In this case, the time setting unit 19 sets the response waiting time to 5.72 seconds (third time), which is longer than 5.67 seconds (second time). Thereby, it is possible to prevent the response waiting time from being unnecessarily shortened. Note that the third time is set to a value that is longer by a predetermined time than the second time, or a larger value at a predetermined rate. Alternatively, the third time is set to a time based on the magnitude of the difference between the second time and the response time exceeding the second time.

ここで、応答時間は製品の応答性能が大きく影響する。そこで、本実施形態では、機器2の属性情報(メーカコード、商品コード、クラスコード)の組み合わせを用いて製品を特定し、この製品に応答待ち時間を対応付けている。したがって、通信装置1に対して新たに接続された機器2の属性情報の組み合わせが、既に設定された応答待ち時間に対応する機器2の属性情報の組み合わせと一致する場合、この応答待ち時間を用いることができる。例えば、通信装置1に対して新たに接続された機器2の属性情報がメーカコードM1、商品コードI2、クラスコードC1であるとする。そして、通信装置1が、この機器2に対して要求数[2]の要求信号を送信する場合、応答待ち時間が3.15秒に設定される(表2参照)。このように、本実施形態では、応答待ち時間を機器2の属性情報に対応付けている。これにより、新たに接続された機器2の応答時間の履歴がない場合であっても機器2の属性情報が、すでに設定された応答待ち時間に対応付けられた機器2の属性情報と一致する場合、この応答待ち時間を用いることができる。さらに、本実施形態では、機器2の属性情報(メーカコード、商品コード、クラスコード)の組み合わせを用いて製品を特定しているため、製品特定の精度が高い。   Here, the response time greatly affects the response performance of the product. Therefore, in this embodiment, a product is specified using a combination of attribute information (manufacturer code, product code, class code) of the device 2, and a response waiting time is associated with this product. Therefore, when the combination of the attribute information of the device 2 newly connected to the communication device 1 matches the combination of the attribute information of the device 2 corresponding to the already set response waiting time, this response waiting time is used. be able to. For example, it is assumed that the attribute information of the device 2 newly connected to the communication device 1 is the manufacturer code M1, the product code I2, and the class code C1. When the communication device 1 transmits a request signal of the request number [2] to the device 2, the response waiting time is set to 3.15 seconds (see Table 2). Thus, in this embodiment, the response waiting time is associated with the attribute information of the device 2. Thereby, even when there is no response time history of the newly connected device 2, the attribute information of the device 2 matches the attribute information of the device 2 associated with the already set response waiting time. This response latency can be used. Furthermore, in this embodiment, since the product is specified using a combination of the attribute information (manufacturer code, product code, class code) of the device 2, the accuracy of product specification is high.

また、応答時間は、制御内容にも影響される。例えば、要求数が多い場合と少ない場合とでは、応答時間に差が生じる。そこで、本実施形態では、制御内容を応答待ち時間に対応させている。これにより、応答待ち時間を制御内容に応じてより細かく設定することができる。したがって、例えば要求数が少ない場合に、不要に長い応答待ち時間が設定されることを防止することができる。なお、応答待ち時間に対応付けられる制御内容は、要求数に限定せず、要求のコマンド、データ長などが対応付けられていてもよい。   The response time is also affected by the control content. For example, there is a difference in response time between when the number of requests is large and when the number of requests is small. Therefore, in the present embodiment, the control content is made to correspond to the response waiting time. Thereby, a response waiting time can be set more finely according to the contents of control. Therefore, for example, when the number of requests is small, it is possible to prevent an unnecessarily long response waiting time from being set. The control content associated with the response waiting time is not limited to the number of requests, and a request command, a data length, and the like may be associated.

また、本実施形態の通信装置1は、HEMSのコントローラで構成されているが、この形態に限定せず、他の機器、あるいはコンピュータを上述した通信装置1として機能させるためのプログラムを用いて実現される形態であってもよい。このプログラムにより、コンピュータを通信装置1として機能させることができ、応答時間の履歴に基づいて機器2に適した応答待ち時間を設定することができる。なお、プログラムは、ROM(Read Only Memory)に格納された状態、コンピュータで読取可能な記録媒体に格納された状態などで提供、あるいはインターネットのような電気通信回線を介して提供される。   In addition, the communication device 1 of the present embodiment is configured by a HEMS controller, but is not limited to this mode, and is realized by using a program for causing other devices or computers to function as the communication device 1 described above. It may be a form. With this program, the computer can function as the communication device 1 and a response waiting time suitable for the device 2 can be set based on the response time history. The program is provided in a state stored in a ROM (Read Only Memory), a state stored in a computer-readable recording medium, or the like, or provided via an electric communication line such as the Internet.

このように、本実施形態の通信装置1は、送信部15と受信部16とタイマ17と記憶部18と時間設定部19とを備える。送信部15は、応答を要する要求信号を機器2に送信する。受信部16は、要求信号の送信からの経過時間が応答待ち時間内である場合、要求信号の応答である応答信号の受信処理を行う。タイマ17は、要求信号の送信から応答信号の受信までの応答時間を計測する。記憶部18は、機器2の応答時間の履歴が、機器2の属性情報に対応付けられて格納される。時間設定部19は、機器2の属性情報に対応する応答時間の履歴に基づいて、機器2の属性情報に対応する応答待ち時間を設定する。   As described above, the communication device 1 according to the present embodiment includes the transmission unit 15, the reception unit 16, the timer 17, the storage unit 18, and the time setting unit 19. The transmission unit 15 transmits a request signal that requires a response to the device 2. When the elapsed time from the transmission of the request signal is within the response waiting time, the reception unit 16 performs a reception process of a response signal that is a response to the request signal. The timer 17 measures a response time from transmission of a request signal to reception of a response signal. The storage unit 18 stores the response time history of the device 2 in association with the attribute information of the device 2. The time setting unit 19 sets a response waiting time corresponding to the attribute information of the device 2 based on the response time history corresponding to the attribute information of the device 2.

また、本実施形態のプログラムは、コンピュータを通信装置1として機能させる。   Further, the program of the present embodiment causes a computer to function as the communication device 1.

上記構成により、本実施形態の通信装置1、プログラムは、要求信号の送信先である機器2の応答性能が不明であっても、応答時間の履歴に基づいてこの機器2に適した応答待ち時間を設定することができる。   With the above configuration, the communication device 1 and the program according to the present embodiment allow the response waiting time suitable for the device 2 based on the response time history even if the response performance of the device 2 that is the transmission destination of the request signal is unknown. Can be set.

また、時間設定部19は、機器2の属性情報に対応する応答時間の履歴の中から最長の時間に基づいて、機器2の属性情報に対応する応答待ち時間を設定する。上記構成により、応答待ち時間が不要に短く設定されることを防止することができる。   Further, the time setting unit 19 sets a response waiting time corresponding to the attribute information of the device 2 based on the longest time from the response time history corresponding to the attribute information of the device 2. With the above configuration, it is possible to prevent the response waiting time from being set unnecessarily short.

また、送信部15は、機器2に要求信号を送信しタイマ17が応答時間の計測中である場合、機器2に対して新たな要求信号を送信しない。上記構成により、応答中の機器2に対して連続要求が防止され、機器2が受信バッファのオーバーフローによる要求の受信ロスが防止され、さらに不要なリソースの消費による処理の遅延を防止することができる。   The transmission unit 15 transmits a request signal to the device 2 and does not transmit a new request signal to the device 2 when the timer 17 is measuring the response time. With the above configuration, continuous requests to the responding device 2 are prevented, the device 2 is prevented from receiving a request loss due to overflow of the reception buffer, and processing delay due to unnecessary resource consumption can be prevented. .

また、機器2の属性情報は、製品に割り当てられた商品コードを含む。機器2の属性情報に商品コードが含まれることによって、機器2の製品を容易に特定することができる。   Further, the attribute information of the device 2 includes a product code assigned to the product. By including the product code in the attribute information of the device 2, the product of the device 2 can be easily specified.

また、機器2の属性情報は、機器2の種別を示すクラスコード(種別情報)を含む。また、機器2の属性情報は、機器2のメーカを示すメーカコード(メーカ情報)を含む。機器2の属性情報に、商品コードに加えて、クラスコード、メーカコードが含まれることによって、機器2の製品を特定する精度が向上する。   Further, the attribute information of the device 2 includes a class code (type information) indicating the type of the device 2. The attribute information of the device 2 includes a manufacturer code (maker information) indicating the manufacturer of the device 2. By including the class code and manufacturer code in addition to the product code in the attribute information of the device 2, the accuracy of specifying the product of the device 2 is improved.

また、本実施形態の通信装置1において、要求信号は、機器2に対する要求数(制御内容)が含まれる。記憶部18は、応答時間に要求数(制御内容)が対応付けられて格納される。時間設定部19は、機器2の属性情報と要求数(制御内容)とに基づいて、応答待ち時間を設定する。   In the communication device 1 of the present embodiment, the request signal includes the number of requests (control content) for the device 2. The storage unit 18 stores the number of requests (control contents) in association with the response time. The time setting unit 19 sets a response waiting time based on the attribute information of the device 2 and the number of requests (control contents).

応答時間は、要求信号に含まれる制御内容に大きく影響する。そのため、応答待ち時間を制御内容に対応付けて設定することで、応答待ち時間をより細かく設定することができる。したがって、例えば要求数が少ない場合に、不要に長い応答待ち時間が設定されることを防止することができる。   The response time greatly affects the control content included in the request signal. Therefore, the response waiting time can be set more finely by setting the response waiting time in association with the control content. Therefore, for example, when the number of requests is small, it is possible to prevent an unnecessarily long response waiting time from being set.

また、時間設定部19は、機器2の属性情報に対応する応答時間の履歴に基づいて、応答時間が短縮傾向であるか否かを判定する。応答時間が短縮傾向であると判定した場合、応答待ち時間を、現在設定されている第1の時間よりも短い第2の時間に設定する。   The time setting unit 19 determines whether or not the response time tends to be shortened based on the response time history corresponding to the attribute information of the device 2. When it is determined that the response time tends to be shortened, the response waiting time is set to a second time shorter than the currently set first time.

上記構成により、応答待ち時間の設定後に応答時間が短くなった場合に、応答待ち時間を短縮させることができる。   With the above configuration, when the response time is shortened after setting the response wait time, the response wait time can be shortened.

また、時間設定部19は第2の時間に変更した応答待ち時間がタイマ17で計測した応答時間よりも短い場合、応答待ち時間を第2の時間よりも長い第3の時間に変更する。   When the response waiting time changed to the second time is shorter than the response time measured by the timer 17, the time setting unit 19 changes the response waiting time to a third time longer than the second time.

上記構成により、応答待ち時間が不要に短縮されることを防止することができる。   With the above configuration, it is possible to prevent the response waiting time from being unnecessarily shortened.

また、上述したように、通信装置1の時間設定部19は、機器2の属性情報のみ、または機器2の属性情報と制御内容とに基づいて、応答待ち時間を設定するように構成されているが、上記構成に限定しない。時間設定部19は、制御内容のみに基づいて応答待ち時間を設定するように構成されていてもよい。このように構成する場合、記憶部18には、機器2の応答時間の履歴が、機器2に対する制御内容に対応付けられて格納される。すなわち、記憶部18には、機器2に対して送信した要求信号に含まれる制御内容(例えば、要求のコマンド)に対応する応答時間の履歴が格納される。そして、時間設定部19は、要求信号の送信時において、この要求信号に含まれる制御内容に対応する応答時間の履歴に基づいて、この制御内容に対応する応答待ち時間を設定する。   Further, as described above, the time setting unit 19 of the communication device 1 is configured to set the response waiting time based on only the attribute information of the device 2 or based on the attribute information of the device 2 and the control content. However, it is not limited to the said structure. The time setting unit 19 may be configured to set the response waiting time based only on the control content. When configured in this way, the storage unit 18 stores the response time history of the device 2 in association with the control content for the device 2. In other words, the storage unit 18 stores a history of response times corresponding to the control contents (for example, request commands) included in the request signal transmitted to the device 2. And the time setting part 19 sets the response waiting time corresponding to this control content based on the history of the response time corresponding to the control content contained in this request signal at the time of transmission of a request signal.

このように、本実施形態の通信装置1は、送信部15と受信部16とタイマ17と記憶部18と時間設定部19とを備える。送信部15は、機器2に対する制御内容が含まれ、応答を要する要求信号を機器2に送信する。受信部16は、要求信号の送信からの経過時間が応答待ち時間内である場合、要求信号の応答である応答信号の受信処理を行う。タイマ17は、要求信号の送信から応答信号の受信までの応答時間を計測する。記憶部18は、機器2の応答時間の履歴が、制御内容に対応付けられて格納される。時間設定部19は、制御内容に対応する応答時間の履歴に基づいて、制御内容に対応する応答待ち時間を設定する。   As described above, the communication device 1 according to the present embodiment includes the transmission unit 15, the reception unit 16, the timer 17, the storage unit 18, and the time setting unit 19. The transmission unit 15 includes a control content for the device 2 and transmits a request signal requiring a response to the device 2. When the elapsed time from the transmission of the request signal is within the response waiting time, the reception unit 16 performs a reception process of a response signal that is a response to the request signal. The timer 17 measures a response time from transmission of a request signal to reception of a response signal. The storage unit 18 stores the response time history of the device 2 in association with the control content. The time setting unit 19 sets a response waiting time corresponding to the control content based on the response time history corresponding to the control content.

上記構成により、応答待ち時間は、制御内容に対応して設定される。したがって、要求信号の送信先である機器2の応答性能が不明であっても、要求信号に含まれる制御内容に対応する応答待ち時間が設定されるので、応答待ち時間が不要に短く設定される、または不要に長く設定されることが防止される。これにより、タイムアウトが頻発し機器2の受信バッファがオーバーフローすることを防止することができる。また、要求信号がタイムアウトした際に次の要求信号が送信されるまでの間隔が不要に長くなることが防止されるので、システムの応答性の低下が防止され、ユーザビリティを向上させることができる。   With the above configuration, the response waiting time is set corresponding to the control content. Therefore, even when the response performance of the device 2 that is the transmission destination of the request signal is unknown, the response waiting time corresponding to the control content included in the request signal is set, so the response waiting time is set to be unnecessarily short. Or an unnecessarily long time is prevented. This can prevent frequent timeouts and overflow of the reception buffer of the device 2. Further, since the interval until the next request signal is transmitted when the request signal times out is prevented from being unnecessarily long, the system responsiveness is prevented from being lowered and usability can be improved.

なお、上述した実施形態は本発明の一例である。このため、本発明は、上述の実施形態に限定されることはなく、この実施形態以外であっても、本発明に係る技術的思想を逸脱しない範囲であれば、設計等に応じて種々の変更が可能であることはもちろんのことである。   The above-described embodiment is an example of the present invention. For this reason, the present invention is not limited to the above-described embodiment, and various modifications can be made according to design and the like as long as the technical idea according to the present invention is not deviated from this embodiment. Of course, it can be changed.

1 通信装置
15 送信部
16 受信部
17 タイマ
18 記憶部
19 時間設定部
2 機器
DESCRIPTION OF SYMBOLS 1 Communication apparatus 15 Transmission part 16 Reception part 17 Timer 18 Storage part 19 Time setting part 2 Apparatus

Claims (11)

応答を要する要求信号を機器に送信する送信部と、
前記要求信号の送信からの経過時間が応答待ち時間内である場合、前記要求信号の応答である応答信号の受信処理を行う受信部と、
前記要求信号の送信から前記応答信号の受信までの応答時間を計測するタイマと、
前記機器の前記応答時間の履歴が、前記機器の属性情報に対応付けられて格納される記憶部と、
前記機器の属性情報に対応する前記応答時間の履歴に基づいて、前記機器の属性情報に対応する前記応答待ち時間を設定する時間設定部とを備える
ことを特徴とする通信装置。
A transmission unit that transmits a request signal that requires a response to the device;
When the elapsed time from transmission of the request signal is within a response waiting time, a receiving unit that performs reception processing of a response signal that is a response to the request signal;
A timer for measuring a response time from transmission of the request signal to reception of the response signal;
A storage unit that stores the response time history of the device in association with the attribute information of the device;
And a time setting unit that sets the response waiting time corresponding to the attribute information of the device based on the response time history corresponding to the attribute information of the device.
前記時間設定部は、前記機器の属性情報に対応する前記応答時間の履歴の中から最長の時間に基づいて、前記機器の属性情報に対応する前記応答待ち時間を設定する
ことを特徴とする請求項1記載の通信装置。
The time setting unit sets the response waiting time corresponding to the attribute information of the device based on the longest time from the response time history corresponding to the attribute information of the device. Item 2. The communication device according to Item 1.
前記送信部は、前記機器に前記要求信号を送信し前記タイマが前記応答時間の計測中である場合、前記機器に対して新たな要求信号を送信しない
ことを特徴とする請求項1または2記載の通信装置。
The said transmission part does not transmit a new request signal with respect to the said apparatus, when the said signal is transmitted to the said apparatus and the said timer is measuring the said response time. Communication equipment.
前記機器の属性情報は、製品に割り当てられた商品コードを含む
ことを特徴とする請求項1〜3のうちいずれか1項に記載の通信装置。
The communication apparatus according to claim 1, wherein the attribute information of the device includes a product code assigned to a product.
前記機器の属性情報は、前記機器の種別を示す種別情報を含む
ことを特徴とする請求項1〜4のうちいずれか1項に記載の通信装置。
The communication apparatus according to claim 1, wherein the attribute information of the device includes type information indicating a type of the device.
前記機器の属性情報は、前記機器のメーカを示すメーカ情報を含む
ことを特徴とする請求項1〜5のうちいずれか1項に記載の通信装置。
The communication apparatus according to claim 1, wherein the attribute information of the device includes maker information indicating a maker of the device.
前記要求信号は、前記機器に対する制御内容が含まれ、
前記記憶部は、前記応答時間に前記制御内容が対応付けられて格納され、
前記時間設定部は、前記機器の属性情報と前記制御内容とに基づいて、前記応答待ち時間を設定する
ことを特徴とする請求項1〜6のうちいずれか1項に記載の通信装置。
The request signal includes control content for the device,
The storage unit stores the control content in association with the response time,
The communication apparatus according to any one of claims 1 to 6, wherein the time setting unit sets the response waiting time based on attribute information of the device and the control content.
前記時間設定部は、前記機器の属性情報に対応する前記応答時間の履歴に基づいて、前記応答時間が短縮傾向であるか否かを判定し、前記応答時間が短縮傾向であると判定した場合、前記応答待ち時間を、現在設定されている第1の時間よりも短い第2の時間に変更する
ことを特徴とする請求項1〜7のうちいずれか1項に記載の通信装置。
The time setting unit determines whether the response time tends to be shortened based on the response time history corresponding to the attribute information of the device, and determines that the response time tends to be shortened 8. The communication apparatus according to claim 1, wherein the response waiting time is changed to a second time shorter than the currently set first time.
前記時間設定部は、前記第2の時間に変更した前記応答待ち時間が前記タイマで計測した前記応答時間よりも短い場合、前記応答待ち時間を、前記第2の時間よりも長い第3の時間に変更する
ことを特徴とする請求項8記載の通信装置。
When the response waiting time changed to the second time is shorter than the response time measured by the timer, the time setting unit sets the response waiting time to a third time longer than the second time. The communication device according to claim 8, wherein the communication device is changed to:
機器に対する制御内容が含まれ、応答を要する要求信号を機器に送信する送信部と、
前記要求信号の送信からの経過時間が応答待ち時間内である場合、前記要求信号の応答である応答信号の受信処理を行う受信部と、
前記要求信号の送信から前記応答信号の受信までの応答時間を計測するタイマと、
前記機器の前記応答時間の履歴が、前記制御内容に対応付けられて格納される記憶部と、
前記制御内容に対応する前記応答時間の履歴に基づいて、前記制御内容に対応する前記応答待ち時間を設定する時間設定部とを備える
ことを特徴とする通信装置。
Including a control content for the device, and a transmission unit that transmits a request signal that requires a response to the device;
When the elapsed time from transmission of the request signal is within a response waiting time, a receiving unit that performs reception processing of a response signal that is a response to the request signal;
A timer for measuring a response time from transmission of the request signal to reception of the response signal;
A storage unit in which a history of the response time of the device is stored in association with the control content;
And a time setting unit that sets the response waiting time corresponding to the control content based on the response time history corresponding to the control content.
コンピュータを、請求項1〜10のうちいずれか1項に記載の通信装置として機能させるためのプログラム。   The program for functioning a computer as a communication apparatus of any one of Claims 1-10.
JP2015001078A 2015-01-06 2015-01-06 Communication device Active JP6704166B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2015001078A JP6704166B2 (en) 2015-01-06 2015-01-06 Communication device
PCT/JP2015/006305 WO2016110904A1 (en) 2015-01-06 2015-12-17 Communication device and communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015001078A JP6704166B2 (en) 2015-01-06 2015-01-06 Communication device

Publications (2)

Publication Number Publication Date
JP2016127495A true JP2016127495A (en) 2016-07-11
JP6704166B2 JP6704166B2 (en) 2020-06-03

Family

ID=56355634

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015001078A Active JP6704166B2 (en) 2015-01-06 2015-01-06 Communication device

Country Status (2)

Country Link
JP (1) JP6704166B2 (en)
WO (1) WO2016110904A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017005444A (en) * 2015-06-09 2017-01-05 東芝ライテック株式会社 Communication device, communication system and communication method
US11408630B2 (en) 2017-11-01 2022-08-09 Daikin Industries, Ltd. Management system for bulding equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6727742B2 (en) * 2017-05-12 2020-07-22 三菱電機株式会社 Control device, communication management method and program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08223191A (en) * 1995-02-14 1996-08-30 Nec Corp Health check system
JP2010252005A (en) * 2009-04-15 2010-11-04 Sony Corp Information communication system, information processing apparatus, information communication program, and information communication method
JP2011066623A (en) * 2009-09-16 2011-03-31 Toshiba Corp Scheduling apparatus, method, and program
JP2014236309A (en) * 2013-05-31 2014-12-15 株式会社Nttドコモ Operation supporting device, operation supporting system, and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08223191A (en) * 1995-02-14 1996-08-30 Nec Corp Health check system
JP2010252005A (en) * 2009-04-15 2010-11-04 Sony Corp Information communication system, information processing apparatus, information communication program, and information communication method
JP2011066623A (en) * 2009-09-16 2011-03-31 Toshiba Corp Scheduling apparatus, method, and program
JP2014236309A (en) * 2013-05-31 2014-12-15 株式会社Nttドコモ Operation supporting device, operation supporting system, and program

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
寺岡 秀敏 他: "サービスゲートウェイ向けECHONET Liteバンドルの開発", 情報処理学会研究報告 研究報告 コンシューマ・デバイス&システム(CDS), vol. No.6 (39), JPN6018043760, 15 February 2013 (2013-02-15), JP, pages 1 - 8, ISSN: 0003914222 *
寺岡 秀敏 他: "サービスゲートウェイ向けECHONET Liteバンドルの開発", 情報処理学会研究報告 研究報告 コンシューマ・デバイス&システム(CDS), vol. No.6 (39), JPN6019008287, 15 February 2013 (2013-02-15), JP, pages 1 - 8, ISSN: 0003994355 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017005444A (en) * 2015-06-09 2017-01-05 東芝ライテック株式会社 Communication device, communication system and communication method
US11408630B2 (en) 2017-11-01 2022-08-09 Daikin Industries, Ltd. Management system for bulding equipment

Also Published As

Publication number Publication date
JP6704166B2 (en) 2020-06-03
WO2016110904A1 (en) 2016-07-14

Similar Documents

Publication Publication Date Title
CN107592367B (en) Resource sharing method and device for household appliances and computer readable storage medium
TW201540004A (en) Wireless communication system and related wireless device
TW201308087A (en) Method and system for controlling household appliances
US10959122B2 (en) Method and device for transmitting data
WO2016110904A1 (en) Communication device and communication method
CN108306796B (en) Intelligent home system, and information processing method and device of intelligent home equipment
JP5683313B2 (en) Information processing apparatus, activation control method, and program
US10326659B2 (en) Device and method for automatic switching of communication protocol of network devices based on user action
CN108702553B (en) Management system, management method, operation terminal, and control device
US20150195650A1 (en) Method for audio receiver to select audio source from multiple transmitters
WO2015020202A1 (en) Control device, apparatus operation system, control method, and program
WO2014171000A1 (en) Power management system and terminal device
JP6133934B2 (en) Remote controller
JP2018056619A (en) Electronic apparatus
CN103391223B (en) A kind of IEC101 protocol massages fast automatic detecting method
JP5650816B1 (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
KR102085114B1 (en) Method and apparatus for communication using smart module in home network system
JP2014194778A (en) Computer input system and method therefor
JP2015012382A (en) Communication apparatus, communication method, management apparatus and communication management method
EP2938143A1 (en) Control device and communication system
JP2012215925A (en) Engineering device
TWI513306B (en) Adjust the system for displaying settings on the screen of multiple monitors
JP6562723B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PROGRAM
JP2017046281A (en) Controller, electric apparatus, control system, and control method for control system
CN111435903A (en) Information sending method, information receiving method, terminal and network equipment

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20170208

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170921

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180731

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20181106

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190206

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20190215

A912 Re-examination (zenchi) completed and case transferred to appeal board

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20190308

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200120

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200416

R151 Written notification of patent or utility model registration

Ref document number: 6704166

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151