JP6704166B2 - Communication device - Google Patents

Communication device Download PDF

Info

Publication number
JP6704166B2
JP6704166B2 JP2015001078A JP2015001078A JP6704166B2 JP 6704166 B2 JP6704166 B2 JP 6704166B2 JP 2015001078 A JP2015001078 A JP 2015001078A JP 2015001078 A JP2015001078 A JP 2015001078A JP 6704166 B2 JP6704166 B2 JP 6704166B2
Authority
JP
Japan
Prior art keywords
time
response
request signal
request
attribute information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2015001078A
Other languages
Japanese (ja)
Other versions
JP2016127495A (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.)
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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Selective Calling Equipment (AREA)
  • Computer And Data Communications (AREA)

Description

本発明は、一般に通信装置、より詳細には、他の機器との間で通信を行う通信装置に関する。 The present invention relates generally to communications equipment, and more particularly, relates to a communication equipment for communicating with other devices.

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

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

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

特開2014−124066号公報JP, 2014-124066, A

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

本発明は、上記事由に鑑みてなされており、その目的は、通信相手の機器の応答性能に応じた応答待ち時間を設定することができる通信装置を提供することにある。 The present invention has been made in view of the above circumstances, an object thereof is to provide a communication equipment capable of setting the response waiting time according to the response performance of the communication partner device.

本発明の通信装置は、応答を要する要求信号を機器に送信する送信部と、前記要求信号の送信からの経過時間が応答待ち時間内である場合、前記要求信号の応答である応答信号の受信処理を行う受信部と、前記要求信号の送信から前記応答信号の受信までの応答時間を計測するタイマと、前記応答時間の履歴が、前記機器の属性情報に対応付けられて格納される記憶部と、前記要求信号の送信先の前記機器の前記属性情報と同じ前記属性情報に対応する前記応答時間の履歴に基づいて、前記要求信号の送信先の前記機器に対応する前記応答待ち時間を設定する時間設定部とを備えることを特徴とする The communication device of the present invention receives a response signal, which is a response to the request signal, when a transmission unit that transmits a request signal that requires a response to a device and 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 the transmission of the request signal to the reception of the response signal, and a storage unit that stores a history of the response time in association with attribute information of the device. And setting the response waiting time corresponding to the device to which the request signal is transmitted, based on the history of the response time corresponding to the same attribute information as the attribute information of the device to which the request signal is transmitted. And a time setting unit that operates .

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

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

以下、本発明の実施の形態を図面に基づいて説明する。
(実施形態)
図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を用いて説明する。
Embodiments of the present invention will be described below with reference to the drawings.
(Embodiment)
FIG. 1 shows a block diagram of this embodiment. In the present embodiment, the communication device 1 and the plurality of devices 2 form 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 fixture, etc.). In this embodiment, the communication device 1 and the device 2 are different manufacturers. Further, when distinguishing a plurality of devices 2, they are referred to as a device 21, a device 22, and a device 23. The communication device 1 is configured to be capable of communicating with each device 2 via a network. Here, in the devices 2 constituting the HEMS, there is an industry standardized communication standard (communication method) for mutually connecting and controlling the devices 2 of different manufacturers. In the present embodiment, the case where ECHONET Lite (registered trademark) (hereinafter referred to as common communication standard), which is a communication protocol established by the general incorporated association Echonet Consortium, is used as a communication standard for this industry standardization will be described as an example. To do. The configuration of the communication device 1 according to this embodiment will be described below with reference to FIG.

本実施形態の通信装置1は、通信部11、要求生成部12、操作部13、通信制御部14、送信部15、受信部16、タイマ17、記憶部18、および時間設定部19を備えるHEMSのコントローラである。 The communication device 1 of this 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. Is the controller of.

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

要求生成部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 the operation content of a GUI (Graphical User Interface) terminal connected to the communication apparatus 1 via the network and the operation unit 13 included in the communication apparatus 1, and issues a control request based on the operation content. To 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 the GUI and a function as a monitor for displaying the state of HEMS. The display unit 31 is configured by an EL (Electro Luminescence) display, a liquid crystal display, or the like, and displays an icon indicating, for example, control information (for example, operation, stop, information acquisition, etc.) for the device 2. The operation unit 32 is configured by a touch panel provided on the 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) by the user to the operation unit 32 to the communication device 1, and the first requesting unit 121 acquires this operation content. Further, the operation unit 13 included in the communication device 1 is configured by, for example, a tactile switch (push button switch), and the operation content assigned to the operation unit 13 is changed by the first operation unit 121 by being operated by the user. Be transmitted to.

そして、第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 requires the device 2 to be controlled, the first requesting unit 121 controls the device 2 based on the control information indicated by the operation content. The 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 device 2 ”, the first request unit 121 generates a control request “to operate 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 triggered by a user operation, 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 for the device 2 and outputs the control request to the communication control unit 14 at a timing based on a schedule determined by the user, for example.

通信制御部14は、機器2への制御要求が要求生成部12(第1要求部121、第2要求部122)から入力されると、すぐにこの制御要求を機器2に伝えるか否かの要求判定処理を行う。なお、この要求判定処理については後述し、ここでは機器2への制御要求をすぐに伝える場合について説明する。 When the control request for 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 immediately determines whether or not to transmit the control request to the device 2. Performs request determination processing. It should be noted that this request determination processing will be described later, and 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 transmitting the control request to the device 2, the communication control unit 14 assigns a transaction ID, which is an identifier for identifying the control request, to the control request. Then, the communication control unit 14 outputs the control request to which the transaction ID is 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. The request and the response are associated with each other by the transaction ID, and when the response from the device 2 is received, it is possible to determine which request the response is.

送信部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 having 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. Further, in the common communication standard, information as to 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 that a response to a request is necessary is added to the request signal will be described as an example. That is, in the present embodiment, the request signal includes the control request for the device 2 as the control content for the device 2, and further includes the information that the response is necessary and the 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, which has received the request signal from the transmission unit 15, generates a response signal which is a response to the request signal and sends it back 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 is in the operating state, to the communication device 1. To do. Further, 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. Then, the device 2 adds the transaction ID added to the request signal to the response signal when generating the response signal to the received request 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, and if the transaction ID matches the transaction ID notified to the communication control unit 14, performs the receiving process of the response signal. Further, the reception unit 16 outputs the response information from the device 2 included in the received response signal to the request generation unit 12 that is the request source. The request generation unit 12 transmits the response information to the GUI terminal 3 as necessary, and causes the display unit 31 of the GUI terminal 3 to display the response information.

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

記憶部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 the response waiting time for the request signal based on the history of the response time stored in the storage unit 18. When receiving the response signal within the response waiting time, the receiving unit 16 performs the response signal receiving 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 timeout determination process of comparing the elapsed time from the transmission of the request signal with the response waiting time. Then, when the elapsed time exceeds the response waiting time, the communication control unit 14 causes the response waiting for the request signal to time out. Specifically, when the elapsed time exceeds the response waiting time, the communication control unit 14 instructs the reception unit 16 to discard the transaction ID added to the request signal. By discarding the transaction ID, the receiving unit 16 does not perform the process of receiving the response signal to the request signal. That is, if the elapsed time from the transmission of the request signal exceeds the response waiting time, a time-out for ending the response waiting of the response signal to the request signal is executed. When the receiving unit 16 receives the response signal within the response waiting time, the receiving process of 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, the request determination process of immediately determining whether or not to transmit the control request to the device 2 will be described with reference to the flowchart shown in FIG. Explain.

まず、通信制御部14は、要求生成部12から入力された制御要求の要求先の機器2に対して、応答待ち中の要求があるか否かを確認する(S1)。通信制御部14は、制御要求の要求先の機器2に対して応答待ちの要求がある場合(S1のYes)、この要求がタイムアウトであるか否かをタイムアウト判定処理によって確認する(S2)。要求がタイムアウトではない、すなわち応答待ち中である場合(S2のNo)、応答信号の受信確認を行う(S3)。そして、応答信号の受信処理が未処理である場合(S3のNo)、ステップS2のタイムアウト判定処理に戻る。 First, the communication control unit 14 confirms whether or not there is a request waiting for a response to the device 2 that is the request destination of the control request input from the request generation unit 12 (S1). When there is a request for waiting for a response to the device 2 that is the request destination of the control request (Yes in S1), the communication control unit 14 confirms whether or not the request is a time-out by a time-out determination process (S2). When the request is not timed out, that is, when the response is awaited (No in S2), reception confirmation of the response signal is performed (S3). Then, if the response signal reception process has not been performed (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 device 2 that is the request destination 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, when the request times out (Yes in S2) or when the response signal reception processing is performed (Yes in S3), the communication control unit 14 transmits the control request input from the request generation unit 12. The request signal is output to the unit 15 and the request signal is transmitted from the transmitter 15 (S4).

上述したタイムアウト判定処理、要求判定処理により、要求信号の送信、応答信号の受信を示すシーケンス図は、図3A、図3Bで表される。 Sequence diagrams showing the transmission of a request signal and the reception of a response signal by the above-described timeout determination processing and request determination processing 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). Then, when the reception processing of the response signal is performed within the response waiting time, the timer 17 stops the time measurement and the time measurement 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 prohibition period for transmitting a new request signal to the device 2 that is responding.

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

また、応答待ち時間内に応答信号の受信処理が行われなかった場合、図3Bに示すように、応答待ち時間後に要求信号が送信される(P4)。このとき、機器2に対して新たな要求がない場合、タイムアウトした要求信号が再送信される。 When 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, when 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 in the above-described timeout determination process will be described.

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

また、機器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 of the device 2 (device object), and the like. In the present embodiment, as the attribute information of the device 2, the manufacturer code, the product code, and the class code are stored in the storage unit 18 in association with the response time. As the manufacturer code, a code assigned to each manufacturer by Echonet Consortium is used. The product model number 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. 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, the combinations of the devices 2 and the requested numbers are collectively described as one group, and the arrangement order in the column direction in each group is the ascending order of the time stamps. Therefore, the context of the time stamp 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 histories stored in the storage unit is not limited to the number in Table 1.

Figure 0006704166
Figure 0006704166

表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 in which the requested numbers are different from each other.

時間設定部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 the 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 the attribute information of the device 2 and the number of requests. In the following, 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 request number [3] will be described.

時間設定部19は、記憶部18に格納された応答時間の履歴の中から、メーカコードM1、商品コードI1、クラスコードC1、要求数[3]の組み合わせに対応する応答時間を抽出する(タイムスタンプT11〜T13の応答時間)。そして、時間設定部19は、抽出した応答時間の中から、最長の時間を選択する。すなわち、時間設定部19は、タイムスタンプがT11である応答時間(5.5秒)を選択する。 The time setting unit 19 extracts the response time corresponding to the combination of the maker code M1, the product code I1, the class code C1, and the requested number [3] from the response time history stored in the storage unit 18 (time. Response times 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 the 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 request number [3] based on the selected longest response time (5.5 seconds). Set. In the present embodiment, in consideration of fluctuations in communication, errors in reception processing time, and the like, the time setting unit 19 sets 5.77 seconds (=5.5 seconds×5.5 seconds) with a margin of 5% of the selected longest response time. Set 1.05) as the response waiting time. The time setting unit 19 also sets the response waiting time for other combinations of each 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 addition, in the present embodiment, the time setting unit 19 sets the response waiting time to a time obtained by adding 5% to the selected longest response time, but it is not limited to 5%, and fluctuations in communication are not set. , And is appropriately set in consideration of an error in reception processing time. Further, the time setting unit 19 may set the response waiting time to a time obtained by adding a predetermined time (for example, 0.5 seconds) to the selected longest response time.

Figure 0006704166
Figure 0006704166

通信制御部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 with the request number [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 is set as the response waiting time. .. Further, when transmitting a request signal of which the number of requests is [2] to the device 21, the response waiting time is set to 5.25 seconds. Further, when the same request signal is transmitted to a plurality of devices 2 by multicast, the longest response waiting time of the destination devices 2 is applied as the response waiting time.

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

このように、本実施形態では、応答時間の履歴に基づいて、機器2の属性情報と制御内容とに対応する応答待ち時間が設定される。したがって、要求信号の送信先である機器2の応答性能が不明であっても、応答時間の履歴に基づいてこの機器2に適した応答待ち時間を設定することができ、応答待ち時間が不要に短く設定される、または不要に長く設定されることが防止される。これにより、タイムアウトが頻発し機器2の受信バッファがオーバーフローすることを防止することができる。また、要求信号がタイムアウトした際に次の要求信号が送信されるまでの間隔が不要に長くなることが防止されるので、システムの応答性の低下が防止され、ユーザビリティを向上させることができる。なお、本実施形態では、応答待ち時間は、機器2の属性情報と制御内容とに基づいて設定されているが、機器2の属性情報のみに基づいて設定されていてもよい。 As described above, in the present embodiment, the response waiting time corresponding to the attribute information and the control content of the device 2 is set based on the response time history. Therefore, even if the response performance of the device 2 to which the request signal is transmitted is unknown, the response waiting time suitable for this device 2 can be set based on the history of the response time, and the response waiting time becomes unnecessary. It is prevented from being set short or unnecessarily long. As a result, it is possible to prevent overflow of the reception buffer of the device 2 due to frequent timeouts. Further, when the request signal times out, the interval until the next request signal is transmitted is prevented from being unnecessarily lengthened, so that the responsiveness of the system is prevented from being lowered and the 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 on only 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の時間は、現在設定されている応答待ち時間と、所定期間前までにおける最長の応答時間との差の大きさに基づいた時間に設定される。 Further, 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 history of the response time 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 the predetermined period (for example, one month, three months) before 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, 5 times), the time setting unit 19 determines that the response time tends to be shortened. Then, when it is determined that the response time tends to be shortened, the time setting unit 19 sets the response waiting time to the 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 request number [3] tends to be shortened. In this case, the time setting unit 19 changes the response waiting time to 5.67 seconds (second time) shorter than the currently set 5.77 seconds (first time). As a result, 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. The second time is set to a value shorter than the first time by a predetermined time, or set to a small 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 the 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 the third time which is 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) by 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). This can prevent the response waiting time from being unnecessarily shortened. The third time period is set to a value that is longer than the second time period by a predetermined time period or a large value at a predetermined rate. Alternatively, the third time period is set to a time period based on the magnitude of the difference between the second time period and the response time period exceeding the second time period.

ここで、応答時間は製品の応答性能が大きく影響する。そこで、本実施形態では、機器2の属性情報(メーカコード、商品コード、クラスコード)の組み合わせを用いて製品を特定し、この製品に応答待ち時間を対応付けている。したがって、通信装置1に対して新たに接続された機器2の属性情報の組み合わせが、既に設定された応答待ち時間に対応する機器2の属性情報の組み合わせと一致する場合、この応答待ち時間を用いることができる。例えば、通信装置1に対して新たに接続された機器2の属性情報がメーカコードM1、商品コードI2、クラスコードC1であるとする。そして、通信装置1が、この機器2に対して要求数[2]の要求信号を送信する場合、応答待ち時間が3.15秒に設定される(表2参照)。このように、本実施形態では、応答待ち時間を機器2の属性情報に対応付けている。これにより、新たに接続された機器2の応答時間の履歴がない場合であっても機器2の属性情報が、すでに設定された応答待ち時間に対応付けられた機器2の属性情報と一致する場合、この応答待ち時間を用いることができる。さらに、本実施形態では、機器2の属性情報(メーカコード、商品コード、クラスコード)の組み合わせを用いて製品を特定しているため、製品特定の精度が高い。 Here, the response time is greatly affected by the response performance of the product. Therefore, in the present 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, assume 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. Then, when the communication device 1 transmits the request signal of the request number [2] to the device 2, the response waiting time is set to 3.15 seconds (see Table 2). As described above, in this embodiment, the response waiting time is associated with the attribute information of the device 2. As a result, even if the response time history of the newly connected device 2 does not exist, 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 waiting time can be used. Further, in the present embodiment, since the product is specified by using the combination of the attribute information (manufacturer code, product code, class code) of the device 2, the product specifying accuracy 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 corresponds to the response waiting time. As a result, the response waiting time can be set more finely according to 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. The control content associated with the response waiting time is not limited to the number of requests, and the command of the request, the data length, and the like may be associated.

また、本実施形態の通信装置1は、HEMSのコントローラで構成されているが、この形態に限定せず、他の機器、あるいはコンピュータを上述した通信装置1として機能させるためのプログラムを用いて実現される形態であってもよい。このプログラムにより、コンピュータを通信装置1として機能させることができ、応答時間の履歴に基づいて機器2に適した応答待ち時間を設定することができる。なお、プログラムは、ROM(Read Only Memory)に格納された状態、コンピュータで読取可能な記録媒体に格納された状態などで提供、あるいはインターネットのような電気通信回線を介して提供される。 Further, the communication device 1 of the present embodiment is configured by a HEMS controller, but the present invention is not limited to this form, and is realized using a program for causing another device or a computer to function as the communication device 1 described above. It may be in the form of. With this program, the computer can be caused to function as the communication device 1, and the response waiting time suitable for the device 2 can be set based on the history of the response time. The program is provided in a state of being stored in a ROM (Read Only Memory), a state of being 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 of 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 transmitter 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 receiving unit 16 performs the receiving process of the response signal which is the response of the request signal. The timer 17 measures the response time from the transmission of the request signal to the reception of the 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 the response waiting time corresponding to the attribute information of the device 2 based on the history of the response time 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 have a 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 destination of the request signal is unknown. Can be set.

また、時間設定部19は、機器2の属性情報に対応する応答時間の履歴の中から最長の時間に基づいて、機器2の属性情報に対応する応答待ち時間を設定する。上記構成により、応答待ち時間が不要に短く設定されることを防止することができる。 Further, the time setting unit 19 sets the response waiting time corresponding to the attribute information of the device 2 based on the longest time from the history of the response time 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が受信バッファのオーバーフローによる要求の受信ロスが防止され、さらに不要なリソースの消費による処理の遅延を防止することができる。 In addition, the transmission unit 15 does not transmit a new request signal to the device 2 when the request signal is transmitted to the device 2 and the timer 17 is measuring the response time. With the above configuration, continuous requests to the device 2 that is responding can be prevented, the device 2 can prevent the request reception loss due to the overflow of the reception buffer, and can further prevent the processing delay due to unnecessary resource consumption. ..

また、機器2の属性情報は、製品に割り当てられた商品コードを含む。機器2の属性情報に商品コードが含まれることによって、機器2の製品を容易に特定することができる。 Further, the attribute information of the device 2 includes the 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の製品を特定する精度が向上する。 In addition, the attribute information of the device 2 includes a class code (type information) indicating the type of the device 2. Further, the attribute information of the device 2 includes a maker code (maker information) indicating the maker of the device 2. Since the attribute information of the device 2 includes the class code and the manufacturer code in addition to the product code, the accuracy of identifying the product of the device 2 is improved.

また、本実施形態の通信装置1において、要求信号は、機器2に対する要求数(制御内容)が含まれる。記憶部18は、応答時間に要求数(制御内容)が対応付けられて格納される。時間設定部19は、機器2の属性情報と要求数(制御内容)とに基づいて、応答待ち時間を設定する。 Further, in the communication device 1 of the present embodiment, the request signal includes the number of requests (control contents) to the device 2. The storage unit 18 stores the response time in association with the number of requests (control content). The time setting unit 19 sets the 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の時間に設定する。 Further, the time setting unit 19 determines whether 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 the second time shorter than the currently set first time.

上記構成により、応答待ち時間の設定後に応答時間が短くなった場合に、応答待ち時間を短縮させることができる。 With the above configuration, when the response time becomes short 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 the third time which is 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 only on the attribute information of the device 2 or based on the attribute information of the device 2 and the control content. However, the configuration is not limited to the above. The time setting unit 19 may be configured to set the response waiting time based only on the control content. With this configuration, the storage unit 18 stores the response time history of the device 2 in association with the control content for the device 2. That is, the storage unit 18 stores a history of response times corresponding to the control content (for example, request command) included in the request signal transmitted to the device 2. Then, at the time of transmitting the request signal, the time setting unit 19 sets the response waiting time corresponding to the control content based on the history of the response time corresponding to the control content included in the request signal.

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

上記構成により、応答待ち時間は、制御内容に対応して設定される。したがって、要求信号の送信先である機器2の応答性能が不明であっても、要求信号に含まれる制御内容に対応する応答待ち時間が設定されるので、応答待ち時間が不要に短く設定される、または不要に長く設定されることが防止される。これにより、タイムアウトが頻発し機器2の受信バッファがオーバーフローすることを防止することができる。また、要求信号がタイムアウトした際に次の要求信号が送信されるまでの間隔が不要に長くなることが防止されるので、システムの応答性の低下が防止され、ユーザビリティを向上させることができる。 With the above configuration, the response waiting time is set according to the control content. Therefore, even if the response performance of the device 2 that is the transmission destination of the request signal is unknown, the response wait time corresponding to the control content included in the request signal is set, so that the response wait time is set unnecessarily short. Or, it is prevented from being set unnecessarily long. As a result, it is possible to prevent overflow of the reception buffer of the device 2 due to frequent timeouts. Further, when the request signal times out, the interval until the next request signal is transmitted is prevented from being unnecessarily lengthened, so that the responsiveness of the system is prevented from being lowered and the 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 other than this embodiment, as long as it does not deviate from the technical idea of the present invention, various types according to the design etc. Of course, it can be changed.

1 通信装置
15 送信部
16 受信部
17 タイマ
18 記憶部
19 時間設定部
2 機器
1 Communication Device 15 Transmission Unit 16 Reception Unit 17 Timer 18 Storage Unit 19 Time Setting Unit 2 Equipment

Claims (9)

応答を要する要求信号を機器に送信する送信部と、
前記要求信号の送信からの経過時間が応答待ち時間内である場合、前記要求信号の応答である応答信号の受信処理を行う受信部と、
前記要求信号の送信から前記応答信号の受信までの応答時間を計測するタイマと、
前記応答時間の履歴が、前記機器の属性情報に対応付けられて格納される記憶部と、
前記要求信号の送信先の前記機器の前記属性情報と同じ前記属性情報に対応する前記応答時間の履歴に基づいて、前記要求信号の送信先の前記機器に対応する前記応答待ち時間を設定する時間設定部とを備える
ことを特徴とする通信装置。
A transmission unit that transmits a request signal that requires a response to the device,
If the elapsed time from the transmission of the request signal is within the response waiting time, a receiving unit that performs a reception process of a response signal that is a response to the request signal,
A timer that measures the response time from the transmission of the request signal to the reception of the response signal,
A storage unit in which the response time history is stored in association with the attribute information of the device,
Time to set the response waiting time corresponding to the device to which the request signal is transmitted, based on the history of the response time corresponding to the same attribute information as the attribute information to the device to which the request signal is transmitted. A communication device, comprising: a setting unit.
前記時間設定部は、前記要求信号の送信先の前記機器の前記属性情報と同じ前記属性情報に対応する前記応答時間の履歴の中から最長の時間に基づいて、前記要求信号の送信先の前記機器に対応する前記応答待ち時間を設定する
ことを特徴とする請求項1記載の通信装置。
The time setting unit, based on the longest time from the history of the response time corresponding to the same attribute information as the attribute information of the device of the transmission destination of the request signal, based on the longest time, the transmission destination of the request signal The communication device according to claim 1, wherein the response waiting time corresponding to a device is set.
前記送信部は、前記機器に前記要求信号を送信し前記タイマが前記応答時間の計測中である場合、前記機器に対して新たな要求信号を送信しない
ことを特徴とする請求項1または2記載の通信装置。
The transmission unit does not transmit a new request signal to the device when the request signal is transmitted to the device and the timer is measuring the response time. Communication device.
前記機器の前記属性情報は、製品に割り当てられた商品コードを含む
ことを特徴とする請求項1〜3のうちいずれか1項に記載の通信装置。
The communication device according to claim 1, wherein the attribute information of the device includes a product code assigned to a product.
前記機器の前記属性情報は、前記機器の種別を示す種別情報を含む
ことを特徴とする請求項1〜4のうちいずれか1項に記載の通信装置。
The communication device 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 device 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,
In the storage unit, the control content is stored in association with the response time,
The communication device according to claim 1, wherein the time setting unit sets the response waiting time based on the 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 shorten based on the history of the response time corresponding to the device to which the request signal is transmitted, and the response time tends to shorten. When it is determined that the response waiting time is changed to a second time shorter than the currently set first time, the communication according to any one of claims 1 to 7. apparatus.
前記時間設定部は、前記第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 .
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 JP2016127495A (en) 2016-07-11
JP6704166B2 true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6562723B2 (en) * 2015-06-09 2019-08-21 株式会社東芝 COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PROGRAM
JP6727742B2 (en) * 2017-05-12 2020-07-22 三菱電機株式会社 Control device, communication management method and program
JP6939894B2 (en) * 2017-11-01 2021-09-22 ダイキン工業株式会社 Building equipment management system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2687916B2 (en) * 1995-02-14 1997-12-08 日本電気株式会社 Health check system
JP5326762B2 (en) * 2009-04-15 2013-10-30 ソニー株式会社 Information communication system, information processing apparatus, information communication program, and information communication method
JP5032543B2 (en) * 2009-09-16 2012-09-26 株式会社東芝 Scheduling apparatus, method and program
JP6045982B2 (en) * 2013-05-31 2016-12-14 株式会社Nttドコモ Operation support device, operation support system, and program

Also Published As

Publication number Publication date
WO2016110904A1 (en) 2016-07-14
JP2016127495A (en) 2016-07-11

Similar Documents

Publication Publication Date Title
JP6277856B2 (en) Management device, management system, management method, and management program
CN109151782B (en) WIFI signal relay method and system based on intelligent household equipment
JP6704166B2 (en) Communication device
WO2017143743A1 (en) Heterogeneous protocol communication method and controller
JP6531593B2 (en) Communication method, communication program and information processing apparatus
JP2015035690A (en) Control device, appliance operation system, control method, and program
US11750334B2 (en) Data collection management device and data collection system
CN103391223B (en) A kind of IEC101 protocol massages fast automatic detecting method
KR102085114B1 (en) Method and apparatus for communication using smart module in home network system
JP5506729B2 (en) Engineering equipment
JP2018082354A (en) Communication terminal and communication system
JP2013162219A (en) Communication device, communication system, communication method, and communication program
EP2938143A1 (en) Control device and communication system
WO2014109056A1 (en) Signal conversion system and signal conversion method
JP6562723B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PROGRAM
JP6241532B2 (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, CONTROL METHOD, COMMUNICATION METHOD, AND COMPUTER PROGRAM
US20190007815A1 (en) Communication apparatus, control method for communication apparatus, and non-transitory computer-readable storage medium
JP2007188394A (en) Equipment control communication system, equipment control communication method, controller, and equipment control communication program
KR101531026B1 (en) Management method for client node list in the network by using fifo memory
WO2022227089A1 (en) Method and apparatus for device pairing, computer device, and storage medium
JP6036593B2 (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, CONTROL METHOD, COMMUNICATION METHOD, AND COMPUTER PROGRAM
JP2017046281A (en) Controller, electric apparatus, control system, and control method for control system
US10523469B2 (en) Relay device and communication system
JP2018067792A (en) Communication control method, communication device, communication system and program
JP2018074301A (en) Conversion device and control method of the same

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 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190206

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20190215

A912 Removal of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20190308

A521 Written amendment

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