WO2018207363A1 - Control device, communication management method and program - Google Patents

Control device, communication management method and program Download PDF

Info

Publication number
WO2018207363A1
WO2018207363A1 PCT/JP2017/018098 JP2017018098W WO2018207363A1 WO 2018207363 A1 WO2018207363 A1 WO 2018207363A1 JP 2017018098 W JP2017018098 W JP 2017018098W WO 2018207363 A1 WO2018207363 A1 WO 2018207363A1
Authority
WO
WIPO (PCT)
Prior art keywords
waiting time
response
command
received
communication
Prior art date
Application number
PCT/JP2017/018098
Other languages
French (fr)
Japanese (ja)
Inventor
直之 樋原
Original Assignee
三菱電機株式会社
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 三菱電機株式会社 filed Critical 三菱電機株式会社
Priority to PCT/JP2017/018098 priority Critical patent/WO2018207363A1/en
Priority to JP2019516861A priority patent/JP6727742B2/en
Publication of WO2018207363A1 publication Critical patent/WO2018207363A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
    • 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

Definitions

  • the present invention relates to a control device, a communication management method, and a program.
  • a system called HEMS Home Energy Management System
  • a plurality of electrical devices having a communication function are connected to a communication network and integratedly managed using a control device.
  • response time the time from when the command is transmitted from the control device to the electric device until the response to the command is returned (hereinafter referred to as response time) is the communication performance, processing performance, etc. of the electric device.
  • response time the time from when the command is transmitted from the control device to the electric device until the response to the command is returned
  • response time is the communication performance, processing performance, etc. of the electric device.
  • there will be variations among electrical devices there will be variations among electrical devices.
  • a difference in required response time occurs between a plurality of electric devices having similar specifications due to differences in processing content, current operation state, and the like.
  • the control device transmits control information for controlling the electric device to the electric device every control cycle T.
  • the control device does not receive a response to the control information within the timeout period t set to a period shorter than the control cycle T after transmitting the control information, the control device changes the timeout period t for the electrical device to be longer than before. I do.
  • the present invention has been made to solve the above problems, and an object thereof is to provide a control device or the like that communicates with an electric device without impairing the operability of the user.
  • a control device provides: A communication interface for communicating with electrical equipment; Display update means for updating the display on the display when a response from the electric device to the command is not received before the first waiting time elapses after the command is transmitted to the electric device; The user's operation on the electrical device is limited until the response is received after the command is transmitted and until the first waiting time elapses after the command is transmitted. Operation restriction means; When the response is received from when the command is transmitted until the second waiting time longer than the first waiting time elapses, the response is treated as normally received until the second waiting time elapses. Communication management means for handling that the transmission of the command has failed when the response is not received.
  • FIG. 1 is a block diagram illustrating a configuration of a control device according to a first embodiment.
  • 5 is a flowchart illustrating a procedure of communication management processing executed by the control device according to the first embodiment.
  • FIG. 1 is a diagram illustrating an overall configuration of a device control system including a control device 1 according to Embodiment 1 of the present invention.
  • This device control system is a so-called HEMS (Home Energy Management System) that manages electric power used in general households, and includes a control device 1 and a plurality of electrical devices 2 (2-1, 2- 2... Are connected to the network 3.
  • HEMS Home Energy Management System
  • the network 3 is, for example, a network conforming to Echonet Lite (ECHONET Lite).
  • the network 3 may be a well-known standard wireless LAN (Local Area Network) or a wired LAN.
  • the network 3 may be a network constructed by PLC (Power Line Communication).
  • Each electric device 2 is an electric device installed in a house (including a site) in a general household, such as an air conditioner, an illuminator, a floor heating system, a refrigerator, a television, an IH (Induction (Heating) cooker, and a rice cooker. , Microwave oven, water heater, etc.
  • Each electric device 2 is communicably connected to the control device 1 via the network 3.
  • the electric equipment 2 in which communication hardware is not built in the main body it may be connected to the network 3 via an external communication adapter (not shown) so as to be able to communicate with the control device 1. .
  • the control device 1 includes an operation receiving unit 10, a display interface 11, a communication interface 12, a processor 13, a ROM (Read Only Memory) 14, a RAM (Random Access Memory) 15, A secondary storage device 16 is provided. These components are connected to each other via a bus 17.
  • the operation reception unit 10 includes one or more input devices such as a push button, a keyboard, a mouse, a keypad, a touch panel, or a touch pad, receives an operation by a user input, and processes a signal related to the received operation. 13 to send.
  • input devices such as a push button, a keyboard, a mouse, a keypad, a touch panel, or a touch pad
  • the display interface 11 is connected to the display 4 via the cable 5, and outputs information related to the screen for user operation and various information related to each electrical device 2 to the display 4 under the control of the processor 13.
  • the display 4 includes a display device such as a liquid crystal display, an organic EL display, a plasma display, or a CRT display.
  • the communication interface 12 is an interface such as a network card for communicating with each electrical device 2 via the network 3.
  • the processor 13 controls the control device 1 in an integrated manner. Details of the functions realized by the processor 13 will be described later.
  • the ROM 14 stores a plurality of firmware and data used when the firmware is executed.
  • the RAM 15 is used as a work area for the processor 13.
  • the secondary storage device 16 includes an EEPROM (Electrically-Erasable-Programmable-Read-Only Memory) or a readable / writable non-volatile semiconductor memory such as a flash memory, an HDD (Hard Disk Drive), or the like.
  • the secondary storage device 16 stores a program for controlling each electrical device 2 (hereinafter referred to as a device control program) and data used when the device control program is executed.
  • control device 1 includes a device management unit 100, a communication management unit 101, a display update unit 102, and an operation restriction unit 103 as shown in FIG. Each of these functional units is realized when the power of the control device 1 is turned on and the processor 13 executes the device control program stored in the secondary storage device 16.
  • the device management unit 100 manages the operation of each electric device 2. For example, the device management unit 100 acquires an operation state from each electric device 2. Specifically, the device management unit 100 obtains the operation state of each electric device 2 in order to obtain the operation state of each electric device 2 at a certain time interval (for example, every 60 seconds) (hereinafter, a command requesting the operation state). , A status request command) is transmitted via the communication management unit 101 described later. At that time, the communication management unit 101 generates a message (hereinafter, referred to as a first request message) according to the protocol of the network 3 (for example, Echonet Write), which is a message in which the status request command is stored. Transmit to each electrical device 2. The device management unit 100 may transmit a status request command to each electric device 2 all at once or may transmit asynchronously.
  • a message hereinafter, referred to as a first request message
  • each electrical device 2 When each electrical device 2 receives the first request message in which the status request command is stored, each electrical device 2 is a message in which the operation status of the own device is stored, and is a message in accordance with the protocol of the network 3 (hereinafter referred to as a first response message). Is generated and transmitted to the control device 1.
  • the device management unit 100 acquires the operation state of each electric device 2 by receiving the first response message.
  • the device management unit 100 updates a device state database (not shown) stored in the secondary storage device 16 based on the acquired operating state of each electric device 2.
  • the device state database is a database for managing the operation state of each electrical device 2.
  • the device management unit 100 automatically controls the operation of any of the electrical devices 2 according to the thermal environment, lighting environment, power usage status, etc. in the home, or an operation schedule created in advance. The operation of any one of the electrical devices 2 is automatically controlled based on the above.
  • the device management unit 100 requests the electric device 2 to set the specified operation parameter in order to change the operation state of the target electric device 2 (hereinafter referred to as a setting request command). Is transmitted via the communication management unit 101.
  • the communication management unit 101 generates a message (hereinafter referred to as a second request message) according to the protocol of the network 3, which is a message in which the setting request command is stored, and transmits the message to each electric device 2. .
  • the electric device 2 When receiving the second request message in which the setting request command is stored, the electric device 2 changes the operation state of the own device by setting the specified operation parameter. Thereafter, the electrical device 2 generates a telegram (hereinafter, referred to as a second response telegram) according to the protocol of the network 3, which is a telegram in which the operation parameter setting result is stored, and transmits the telegram to the control device 1. .
  • the operation parameter setting result indicates that either the operation parameter setting has been normally completed or the operation parameter setting has not been normally completed.
  • the electric device 2 may not necessarily set the specified operation parameter depending on the current operation state of the own device.
  • the second response message transmitted by the electric device 2 includes information indicating that the operation parameter setting has not been normally completed.
  • control device 1 acquires the operation state from the operation target electrical device 2 or changes the operation state of the operation target electrical device 2 according to the user operation via the operation reception unit 10 as well as the automatic operation. be able to.
  • the communication management unit 101 manages communication with each electrical device 2. Specifically, the first request message storing the status request command generated by the device management unit 100 is generated and transmitted to the target electric device 2. Further, the communication management unit 101 generates a second request message in which the setting request command generated by the device management unit 100 is stored, and transmits the second request message to the target electric device 2.
  • the first request message and the second request message are messages according to the network 3 protocol.
  • the communication management unit 101 normally receives a response message (that is, the first response message or the second response message) from the electrical device 2, information (that is, setting of an operation state or an operation parameter) included in the response message is received. Result) to the device management unit 100.
  • the communication management unit 101 registers information related to the communication (hereinafter referred to as communication information) in a communication management table developed in the RAM 15, and the communication Manage.
  • communication information information related to the communication
  • the start of new communication with the electric device 2 means that the first request message or the second request message is transmitted to the target electric device 2.
  • the communication management table is a data table in which communication information including items of destination, sequence number, command type, communication state, and elapsed time is registered.
  • the “destination” item stores a communication partner, that is, the communication address of the electrical device 2 that is the communication destination.
  • the “sequence number” item stores a sequence number included in the request message (that is, the first request message or the second request message).
  • the sequence number is a number that is sequentially allocated by the communication management unit 101 when a new request message is generated. However, when the sequence number reaches a predetermined number (for example, 1000), the communication management unit 101 starts a sequence number to be allocated from the next time onward.
  • Each electric device 2 controls the response message (that is, the first response message or the second response message) in which the same number as the sequence number included in the request message received from the control device 1 is stored as the sequence number. 1 to send.
  • command type information indicating whether the request message includes a status request command or a setting request command is stored.
  • the “communication status” item stores the communication status after transmission of the request message.
  • the communication state is set by the communication management unit 101 to any one of the first response waiting state, the second response waiting state, the reception completion state, and the reception error state.
  • the first response waiting state is a default state when a request message is transmitted.
  • the response message from the electric device 2 to the transmitted request message has not been received, and the first response message is transmitted after the request message is transmitted.
  • 1 A state in which the waiting time has not elapsed.
  • the second response waiting state is a state of transition from the first response waiting state, the response message from the electric device 2 to the transmitted request message has not been received, and the first response message is transmitted after the request message is transmitted.
  • the first waiting time and the second waiting time are set in advance for each destination, that is, for each electric device 2.
  • the first waiting time is a time when communication is completed (for example, with a probability of 80% to 95%) in the electric device 2 when the device control system is operating normally, and is appropriate for the user.
  • the waiting time is set in advance.
  • the second waiting time is set so that variations in the response waiting time of the control device 1 can be covered in communication between the control device 1 and the electrical device 2 when the device control system is operating normally.
  • a time longer than one waiting time is preset.
  • the reception completion state is a first response waiting state or a second response waiting state when a response message from the electrical device 2 can be received before the first waiting time or the second waiting time elapses. It is a state that changes from.
  • the reception error state is a state in which a response message from the electrical device 2 is transitioned from the second response waiting state when the response message from the electric device 2 cannot be received before the second waiting time elapses.
  • the “elapsed time” item stores the elapsed time (unit: second) since the request message was transmitted to the target electrical device 2.
  • the communication management unit 101 When the response message from the electric device 2 can be received before the second waiting time elapses, that is, when the communication state transitions to the reception completion state, the communication management unit 101 normally returns the response message from the electric device 2. Treat as received. Specifically, the communication management unit 101 notifies the device management unit 100 of information included in the received response message (that is, the operation state of the electric device 2 or the operation parameter setting result of the electric device 2). Upon receiving such notification, the device management unit 100 performs a predetermined process (hereinafter referred to as a process upon normal reception) when the response message is normally received.
  • a predetermined process hereinafter referred to as a process upon normal reception
  • the device management unit 100 updates the device state database based on the operation state.
  • the device management unit 100 completes the setting operation for the electric device 2 based on the setting result or the setting operation cannot be performed. Is requested to the display update unit 102 to be described later.
  • the communication management unit 101 when the communication management unit 101 cannot receive a response message from the electrical device 2 before the second waiting time elapses, that is, when the communication state transitions to a reception error state, the communication management unit 101 makes a request to the electrical device 2. Handled as a message transmission failure. In this case, the communication management unit 101 notifies the device management unit 100 that transmission of the request message to the electric device 2 has failed (that is, a communication error has occurred). Upon receiving this notification, the device management unit 100 performs a default process (hereinafter referred to as a process at the time of a communication error) when a communication error occurs.
  • a default process hereinafter referred to as a process at the time of a communication error
  • the device management unit 100 requests the display update unit 102 described later to display information indicating that an error has occurred in communication with the electrical device 2 on the display 4. Further, after that, the communication management unit 101 discards the response message even when a response message corresponding to the request message is received.
  • the display update unit 102 refers to the communication management table, and outputs the communication management information based on each communication information to the display 4 for display.
  • the communication management information displayed on the display 4 includes information for identifying the electric device 2 to be operated (for example, name, address, etc.), request contents, and information indicating the communication status. As the request contents, for example, “acquisition of operation state” or “setting of operation parameters” is displayed. Further, the information indicating the communication status is displayed as “communication” if the communication is being performed, and is not displayed if the communication is not being performed.
  • the display update unit 102 transmits a request message to the electrical device 2 and has not received a response message for the request message before the first waiting time elapses, that is, the communication state is a first response waiting state.
  • the display on the display 4 is updated.
  • the display update unit 102 updates the communication management information corresponding to the request message displayed on the display 4 so that the display of “in communication” is not displayed.
  • notification information information for notifying the user that a response message for the request message has not been received (hereinafter referred to as notification information) may be added to the communication management information, and output to the display 4 for display. .
  • the operation restriction unit 103 performs processing related to restriction of user operations via the operation reception unit 10 for each electrical device 2. Specifically, when the communication state with a certain electrical device 2 is the first response waiting state, the operation restriction unit 103 restricts user operations on the electrical device 2, that is, prohibits acceptance of user operations (hereinafter, referred to as “user response”). It is called the operation standby state. In this state, the operation restriction unit 103 hides the operation screen corresponding to the electric device 2 or displays the operation screen in gray, that is, in a gray-out state. On the other hand, when the communication state is other than the first response waiting state, the operation restriction unit 103 releases the restriction of the user operation on the electric device 2, that is, sets the acceptance of the user operation to a permitted state.
  • FIG. 7 is a flowchart showing the procedure of the communication management process executed by each functional unit of the control device 2.
  • the control device 1 starts the following communication management process every time new communication is started with each electric device 2.
  • the communication management unit 101 registers communication information related to the communication in the communication management table (step S101). Further, the communication management unit 101 starts timing (step S102).
  • the communication management unit 101 receives the response message corresponding to the communication from the electric device 2, that is, the response message corresponding to the request message, or the first waiting time after the communication with the electric device 2 is started. Alternatively, it is determined whether or not the second waiting time has elapsed (step S103).
  • step S103 the communication management unit 101 changes the communication state as described above (step S104).
  • step S104 When the communication state transitions from the first response waiting state to the second response waiting state by the process of step S104 (step S105; YES), the display update unit 102 updates the information displayed on the display 4 regarding the request message. (Step S106). In addition, the operation restriction unit 103 releases the restriction on the user operation on the electric device 2 (step S107). Thereafter, the process returns to step S103.
  • step S104 When the communication state transitions to the reception completion state by the process of step S104 (step S105; NO and step S108; YES), the communication management unit 101 treats the response message from the electrical device 2 as being normally received, The device management unit 100 executes the above-described normal reception process (step S109). Thereby, the communication management process in the said communication with the said electric equipment 2 is complete
  • step S104 When the process of step S104 does not change to either the second response waiting state or the reception completion state (step S105; NO and step S108; NO), that is, when the state changes to the reception error state, the communication management unit 101 Is handled as a failure of transmission of a request message to the electrical device 2, and the device management unit 100 executes the above-described processing at the time of a communication error (step S110). Thereby, the communication management process in the said communication with the said electric equipment 2 is complete
  • FIG. 8 and 9 show an example of a communication sequence between the control device 1 and the electric device 2.
  • the control device 1 transmits a request message to the electric device 2
  • the control device 1 releases the restriction on the user operation on the electric device 2 (that is, The operation standby state is canceled), and the information displayed on the display 4 is updated to notify the user that the response message has not been received and the operation standby state has been canceled.
  • the control device 1 executes the process at the time of normal reception.
  • the control device 1 receives a response message from the electric device 2 after the second waiting time has elapsed after transmitting the request message to the electric device 2 is shown. Yes.
  • the control device 1 waits for an operation on the electrical device 2.
  • the information displayed on the display 4 is updated to notify the user that no response message has been received and that the operation standby state has been cancelled.
  • the control device 1 considers that the transmission of the request message to the electric device 2 has failed, and executes processing at the time of a communication error. For this reason, the control apparatus 1 discards the response message received thereafter.
  • the control device 1 uses the two response waiting times (first waiting time and second waiting time) set as described above to Management of communication with the device 2 is performed. That is, when the response waiting time has passed the first waiting time, the control device 1 releases the operation waiting state for the electrical device and updates the display on the display 4 so that no response message is received by the user. It is informed that the operation standby state has been released. Moreover, when the response message is received before the second waiting time elapses, the control device 1 internally treats the response message from the electric device 2 as having been normally received.
  • the first waiting time and the second waiting time are set in advance for each electric device 2, but may be common to all the electric devices 2. Even if it does in this way, there can exist said effect which is not in the past.
  • the accuracy of communication management can be further improved. Furthermore, if the first waiting time and the second waiting time are set for each command type, further improvement in the accuracy of communication management can be expected.
  • the communication management unit 101 does not receive a response message corresponding to the request message before the first waiting time after transmission of the first request message after the start of communication with the electrical device 2, that is, The request message may be retransmitted up to a predetermined number of times. In this case, the communication management unit 101 retransmits the request message at regular time intervals (for example, every time the first waiting time elapses).
  • the communication management unit 101 changes the communication state to the reception completion state, and when the response message cannot be received before the second waiting time elapses. The communication state is changed to the reception error state.
  • Embodiment 2 (Embodiment 2) Subsequently, a device control system according to Embodiment 2 of the present invention will be described.
  • components and the like that are common to the first embodiment are denoted by the same reference numerals, and description thereof is omitted.
  • FIG. 10 is a diagram illustrating a functional configuration of the control device 1 according to the second embodiment. Compared with the control device 1 of the first embodiment, a waiting time setting unit 104 is added to the control device 1 of the present embodiment.
  • the waiting time setting unit 104 sends a request message from the electric device 2 to the request message every time a request message is transmitted to each electric device 2 for a predetermined period after the control device 1 of the present embodiment is installed in the home. Is measured, and a first waiting time corresponding to each electric device 2 is set from a plurality of measurement results. Specifically, for each electrical device 2, the average value or median value of a plurality of measured results is calculated, and the calculated average value or median value is multiplied by a predetermined multiplier to support the electrical device 2. A first waiting time is derived. The waiting time setting unit 104 derives a second waiting time corresponding to the electrical device 2 based on the derived first waiting time. In addition, the control apparatus 1 should just use the time preset for every electric equipment 2 like Embodiment 1 as said 1st waiting time and 2nd waiting time during said period.
  • control device 1 of the present embodiment are the same as those of the control device 1 of the first embodiment.
  • the control device 1 waits for the first wait corresponding to the electric device 2 based on the actually measured time until the response message from the electric device 2 is received. Since the time is set, the accuracy of the first waiting time can be improved.
  • an external server may hold data related to the first waiting time and the second waiting time (hereinafter referred to as waiting time data) according to the model, manufacturer, model number, and the like of the electrical device 2.
  • the control apparatus 1 of Embodiment 1 acquires the waiting time data corresponding from the said server by communication according to the model of the electric equipment 2 to manage, and individual attribute information, and the 1st waiting time and the 2nd waiting time May be set as If it does in this way, appropriate 1st waiting time and the 2nd waiting time can be set also to newly added electric equipment 2.
  • the control device 1 when the communication state with the electrical device 2 is the first response waiting state, the control device 1 restricts the user operation on the electrical device 2. However, when the communication state relates to a request not caused by a user operation, the control device 1 may permit acceptance of the user operation.
  • a request not caused by a user operation means that the control device 1 is independent such as a request for a periodic operation state for the electric device 2 or a request for automatic control (operation state change request, that is, an operation parameter setting request). Request.
  • operation state change request that is, an operation parameter setting request.
  • the request received from the user is not immediately executed, but is executed after the communication is completed or the communication state transitions to the second response waiting state.
  • the control device 1 releases the operation standby state for the electrical device 2. For this reason, it is assumed that a lot of communication is generated and competes with respect to one electric device 2 by repeatedly performing an operation on the electric device 2 by the user. In such a case, the communication load with the electrical device 2 increases, which may lead to congestion. Therefore, in a state where a plurality of communications are occurring with respect to one electrical device 2, when the total number has reached a predetermined reference number, user operations on the electrical device 2 may not be accepted. Good.
  • the control device 1 further includes an independent request restriction unit (not shown) that restricts a request not caused by a user operation on each electrical device 2, that is, a request that the control device 1 makes independently (hereinafter referred to as an independent request). You may prepare.
  • the independence request restriction unit restricts the independence request based on the communication state and the type of the independence request. Specifically, when the type of the independence request is a request related to automatic control, the independence request restriction unit accepts the request regardless of the communication state, but performs the execution until the communication is completed, that is, the Transmission of the setting request command corresponding to the request to the electric device 2 is restricted.
  • the independent request restriction unit accepts the request when the communication state is the first response waiting state, but executes the request until the communication is completed. That is, transmission of the state request command to the electric device 2 is restricted. Further, when the type of the independent request is a request for a periodic operation state and the communication state is the second response waiting state, the independent request limiting unit does not receive the request.
  • the device control system does not necessarily have to include a plurality of electric devices 2, and may be configured to include one electric device 2.
  • control device 1 may include a display device having the same function as the display 4.
  • each functional unit (see FIG. 3 or FIG. 10) of the control device 1 described above may be transferred to a cloud server that is communicably connected to the control device 1 via the Internet.
  • the control apparatus 1 should just acquire the process result of the said function part by communication from a cloud server.
  • each function unit of the control device 1 (see FIGS. 3 and 10) is executed by the processor 13 executing the device control program stored in the secondary storage device 16. Was realized.
  • the dedicated hardware is, for example, a single circuit, a composite circuit, a programmed processor, an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a combination thereof.
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • the above-mentioned device control program includes CD-ROM (Compact Disc Read Only Memory), DVD (Digital Versatile Disc), magneto-optical disc (Magneto-Optical Disc), USB (Universal Serial Bus) memory, memory card, HDD, etc. It is also possible to store and distribute in a computer-readable recording medium. Then, by installing the device control program distributed in this way on a specific or general-purpose computer, it is possible to cause the computer to function as the control device 1 in the above embodiment.
  • CD-ROM Compact Disc Read Only Memory
  • DVD Digital Versatile Disc
  • magneto-optical disc Magneto-optical disc
  • USB Universal Serial Bus
  • the device control program may be stored in a disk device or the like of another server on the Internet, and the device control program may be downloaded from the server to the control device 1.
  • the present invention can be suitably employed in a system in which various electrical devices and a control device are connected via a network.
  • control device 1 control device, 2 electrical device, 3 network, 4 display, 5 cable, 10 operation accepting unit, 11 display interface, 12 communication interface, 13 processor, 14 ROM, 15 RAM, 16 secondary storage device, 17 bus, 100 device Management unit, 101 communication management unit, 102 display update unit, 103 operation restriction unit, 104 waiting time setting unit

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Selective Calling Equipment (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

Abstract

A display update unit (102) updates the display of a display if a response from electric equipment is not received before the elapse of a first waiting time since the transmission of a command to the electric equipment. An operation restriction unit (103) restricts a user operation for the electric equipment for the shorter period out of a period from the transmission of the command to the reception of the response and a period from the transmission of the command to the elapse of the first waiting time. A communication management unit (101) treats the response as being normally received if the response is received before the elapse of a second waiting time longer than the first waiting time since the transmission of the command, and treats the transmission of the command as having failed if the response is not received before the elapse of the second waiting time.

Description

制御装置、通信管理方法及びプログラムControl device, communication management method and program
 本発明は、制御装置、通信管理方法及びプログラムに関する。 The present invention relates to a control device, a communication management method, and a program.
 通信機能を有する複数の電気機器を通信ネットワークに接続し、制御装置を用いて統合的に管理するHEMS(Home Energy Management System)と呼ばれるシステムが知られている。このようなシステムでは、制御装置から電気機器にコマンドを送信してから、当該コマンドに対する応答が返ってくるまでの時間(以下、応答所要時間という。)は、電気機器の通信性能、処理性能等の仕様により、各電気機器間でばらつきが生じる。また、仕様が同様の複数の電気機器間においても、処理内容、現在の動作状態等の違いにより応答所要時間に相違が生じる。 A system called HEMS (Home Energy Management System) is known in which a plurality of electrical devices having a communication function are connected to a communication network and integratedly managed using a control device. In such a system, the time from when the command is transmitted from the control device to the electric device until the response to the command is returned (hereinafter referred to as response time) is the communication performance, processing performance, etc. of the electric device. Depending on the specifications, there will be variations among electrical devices. Also, a difference in required response time occurs between a plurality of electric devices having similar specifications due to differences in processing content, current operation state, and the like.
 これに対し、実際の各電気機器との通信から、上記の応答所要時間を計測して、各電気機器の応答待ち時間を設定する技術が知られている(例えば、特許文献1)。 On the other hand, a technique is known in which the response time is measured and the response waiting time of each electrical device is set through communication with each actual electrical device (for example, Patent Document 1).
国際公開第2013/085058号International Publication No. 2013/085058
 特許文献1では、制御装置は、電気機器を制御するための制御情報を制御周期T毎に電気機器に送信する。この制御装置は、制御情報を送信してから、制御周期Tより短い期間に設定したタイムアウト期間t内に当該制御情報に対する応答を受信しない場合、当該電気機器に対するタイムアウト期間tを従前より長くする変更を行う。 In Patent Document 1, the control device transmits control information for controlling the electric device to the electric device every control cycle T. When the control device does not receive a response to the control information within the timeout period t set to a period shorter than the control cycle T after transmitting the control information, the control device changes the timeout period t for the electrical device to be longer than before. I do.
 ところで、HEMSにおける制御装置においては、特許文献1のような一定時間毎の自動制御のみならず、ユーザの操作による電気機器の制御も行われる。このため、上記のように電気機器からの応答を確実に受信できるようにする観点から応答待ち時間を長めに設定すると、以下のようなユーザの操作性を損なう場合も起こりえる。即ち、制御装置は、通常の状態であれば、数秒で電気機器からの応答を受信できるにもかかわらず、通信エラーの発生等により応答が返ってこない場合では、設定された応答待ち時間が経過するまで応答待ち状態となり、ユーザは操作の待機を余儀なくされる。 By the way, in the control apparatus in HEMS, not only automatic control for every fixed time like patent document 1 but control of the electric equipment by a user's operation is also performed. For this reason, if the response waiting time is set to be long from the viewpoint of reliably receiving the response from the electric device as described above, the following user operability may be impaired. In other words, if the control device can receive a response from an electrical device in a few seconds in a normal state, but does not return a response due to the occurrence of a communication error, etc., the set response waiting time elapses. Until the user waits for a response, the user is forced to wait for an operation.
 本発明は、上記問題を解決するためになされたものであり、ユーザの操作性を損なわずに電気機器と通信を行う制御装置等を提供することを目的とする。 The present invention has been made to solve the above problems, and an object thereof is to provide a control device or the like that communicates with an electric device without impairing the operability of the user.
 上記目的を達成するため、本発明に係る制御装置は、
 電気機器と通信するための通信インタフェースと、
 前記電気機器にコマンドを送信してから第1待ち時間が経過するまでに、前記コマンドに対する前記電気機器からの応答を受信していない場合、ディスプレイの表示を更新する表示更新手段と、
 前記コマンドを送信してから前記応答を受信するまで、及び、前記コマンドを送信してから前記第1待ち時間が経過するまでの何れか短い方の間、前記電気機器に対するユーザの操作を制限する操作制限手段と、
 前記コマンドを送信してから前記第1待ち時間より長い第2待ち時間が経過するまでに前記応答を受信した場合、前記応答を正常に受信したものとして取り扱い、前記第2待ち時間が経過するまでに前記応答を受信していない場合、前記コマンドの送信が失敗したものとして取り扱う通信管理手段と、を備える。
In order to achieve the above object, a control device according to the present invention provides:
A communication interface for communicating with electrical equipment;
Display update means for updating the display on the display when a response from the electric device to the command is not received before the first waiting time elapses after the command is transmitted to the electric device;
The user's operation on the electrical device is limited until the response is received after the command is transmitted and until the first waiting time elapses after the command is transmitted. Operation restriction means;
When the response is received from when the command is transmitted until the second waiting time longer than the first waiting time elapses, the response is treated as normally received until the second waiting time elapses. Communication management means for handling that the transmission of the command has failed when the response is not received.
 本発明によれば、ユーザの操作性を損なわず電気機器と通信することが可能となる。 According to the present invention, it is possible to communicate with an electric device without impairing the operability of the user.
本発明の実施形態1に係る制御装置を備えた機器制御システムの全体構成を示す図The figure which shows the whole structure of the apparatus control system provided with the control apparatus which concerns on Embodiment 1 of this invention. 実施形態1に係る制御装置の構成を示すブロック図1 is a block diagram illustrating a configuration of a control device according to a first embodiment. 実施形態1に係る制御装置の機能構成を示す図The figure which shows the function structure of the control apparatus which concerns on Embodiment 1. FIG. 実施形態1の通信管理テーブルについて説明するための図The figure for demonstrating the communication management table of Embodiment 1. FIG. 実施形態1の第1,第2応答待ち時間について説明するための図The figure for demonstrating the 1st, 2nd response waiting time of Embodiment 1. 実施形態1において通信状態の遷移を模式的に示す図The figure which shows the transition of a communication state typically in Embodiment 1. 実施形態1に係る制御装置が実行する通信管理処理の手順を示すフローチャート5 is a flowchart illustrating a procedure of communication management processing executed by the control device according to the first embodiment. 実施形態1において制御装置と電気機器間の通信シーケンスの例を示す図The figure which shows the example of the communication sequence between a control apparatus and electric equipment in Embodiment 1. 実施形態1において制御装置と電気機器間の通信シーケンスの他の例を示す図The figure which shows the other example of the communication sequence between a control apparatus and an electric equipment in Embodiment 1. 実施形態2に係る制御装置の機能構成を示す図The figure which shows the function structure of the control apparatus which concerns on Embodiment 2. FIG.
 以下、本発明の実施形態について図面を参照して詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
(実施形態1)
 図1は、本発明の実施形態1に係る制御装置1を備えた機器制御システムの全体構成を示す図である。この機器制御システムは、一般家庭で使用される電力の管理を行う、いわゆる、HEMS(Home Energy Management System)と呼ばれるシステムであり、制御装置1と、複数の電気機器2(2-1、2-2、…)がネットワーク3に接続された構成を備えている。
(Embodiment 1)
FIG. 1 is a diagram illustrating an overall configuration of a device control system including a control device 1 according to Embodiment 1 of the present invention. This device control system is a so-called HEMS (Home Energy Management System) that manages electric power used in general households, and includes a control device 1 and a plurality of electrical devices 2 (2-1, 2- 2... Are connected to the network 3.
 ネットワーク3は、例えば、エコーネットライト(ECHONET Lite)に準じたネットワークである。なお、その他、ネットワーク3は、周知の規格の無線LAN(Local Area Network)又は有線LANであってもよい。あるいは、ネットワーク3は、PLC(Power Line Communication)で構築されるネットワークであってもよい。 The network 3 is, for example, a network conforming to Echonet Lite (ECHONET Lite). In addition, the network 3 may be a well-known standard wireless LAN (Local Area Network) or a wired LAN. Alternatively, the network 3 may be a network constructed by PLC (Power Line Communication).
 各電気機器2は、一般家庭における家屋(敷地も含む)内に設置される電気機器であり、例えば、エアコン、照明器、床暖房システム、冷蔵庫、テレビ、IH(Induction Heating)調理器、炊飯器、電子レンジ、給湯機等である。各電気機器2は、ネットワーク3を介して、制御装置1と通信可能に接続する。なお、通信用のハードウェアが本体に内蔵されていない電気機器2においては、外付けの通信アダプタ(図示せず)を介してネットワーク3に接続し、制御装置1と通信できるようにしてもよい。 Each electric device 2 is an electric device installed in a house (including a site) in a general household, such as an air conditioner, an illuminator, a floor heating system, a refrigerator, a television, an IH (Induction (Heating) cooker, and a rice cooker. , Microwave oven, water heater, etc. Each electric device 2 is communicably connected to the control device 1 via the network 3. In addition, in the electric equipment 2 in which communication hardware is not built in the main body, it may be connected to the network 3 via an external communication adapter (not shown) so as to be able to communicate with the control device 1. .
 制御装置1は、図2に示すように、操作受付部10と、ディスプレイインタフェース11と、通信インタフェース12と、プロセッサ13と、ROM(Read Only Memory)14と、RAM(Random Access Memory)15と、二次記憶装置16を備える。これらの構成部は、バス17を介して相互に接続される。 As shown in FIG. 2, the control device 1 includes an operation receiving unit 10, a display interface 11, a communication interface 12, a processor 13, a ROM (Read Only Memory) 14, a RAM (Random Access Memory) 15, A secondary storage device 16 is provided. These components are connected to each other via a bus 17.
 操作受付部10は、押しボタン、キーボード、マウス、キーパッド、タッチパネル又はタッチパッド等の1つ以上の入力デバイスを含んで構成され、ユーザの入力による操作を受け付け、受け付けた操作に係る信号をプロセッサ13に送出する。 The operation reception unit 10 includes one or more input devices such as a push button, a keyboard, a mouse, a keypad, a touch panel, or a touch pad, receives an operation by a user input, and processes a signal related to the received operation. 13 to send.
 ディスプレイインタフェース11は、ケーブル5を介してディスプレイ4と接続し、プロセッサ13の制御の下、ユーザ操作用の画面に関する情報、各電気機器2に関する様々な情報をディスプレイ4に出力する。ディスプレイ4は、液晶ディスプレイ、有機ELディスプレイ、プラズマディスプレイ又はCRTディスプレイ等の表示デバイスを含んで構成される。 The display interface 11 is connected to the display 4 via the cable 5, and outputs information related to the screen for user operation and various information related to each electrical device 2 to the display 4 under the control of the processor 13. The display 4 includes a display device such as a liquid crystal display, an organic EL display, a plasma display, or a CRT display.
 通信インタフェース12は、ネットワーク3を介して各電気機器2と通信するためのネットワークカード等のインタフェースである。 The communication interface 12 is an interface such as a network card for communicating with each electrical device 2 via the network 3.
 プロセッサ13は、制御装置1を統括的に制御する。プロセッサ13によって実現される機能の詳細については後述する。 The processor 13 controls the control device 1 in an integrated manner. Details of the functions realized by the processor 13 will be described later.
 ROM14は、複数のファームウェアとこれらのファームウェアの実行時に使用されるデータを記憶する。RAM15は、プロセッサ13の作業領域として使用される。 The ROM 14 stores a plurality of firmware and data used when the firmware is executed. The RAM 15 is used as a work area for the processor 13.
 二次記憶装置16は、EEPROM(Electrically Erasable Programmable Read-Only Memory)若しくはフラッシュメモリ等の読み書き可能な不揮発性の半導体メモリ又はHDD(Hard Disk Drive)等を含んで構成される。二次記憶装置16は、各電気機器2を制御するためのプログラム(以下、機器制御プログラムという。)と機器制御プログラムの実行時に使用されるデータを記憶する。 The secondary storage device 16 includes an EEPROM (Electrically-Erasable-Programmable-Read-Only Memory) or a readable / writable non-volatile semiconductor memory such as a flash memory, an HDD (Hard Disk Drive), or the like. The secondary storage device 16 stores a program for controlling each electrical device 2 (hereinafter referred to as a device control program) and data used when the device control program is executed.
 制御装置1は、機能的には、図3に示すように、機器管理部100と、通信管理部101と、表示更新部102と、操作制限部103を備える。これらの各機能部は、制御装置1の電源が投入され、プロセッサ13が、二次記憶装置16に記憶される上記の機器制御プログラムを実行することで実現される。 Functionally, the control device 1 includes a device management unit 100, a communication management unit 101, a display update unit 102, and an operation restriction unit 103 as shown in FIG. Each of these functional units is realized when the power of the control device 1 is turned on and the processor 13 executes the device control program stored in the secondary storage device 16.
 機器管理部100は、各電気機器2の動作を管理する。例えば、機器管理部100は、各電気機器2から動作状態を取得する。具体的には、機器管理部100は、各電気機器2の動作状態を取得するため、一定時間間隔(例えば、60秒間隔)で、各電気機器2に対し、動作状態を要求するコマンド(以下、状態要求コマンドという。)を後述する通信管理部101を介して送信する。その際、通信管理部101は、状態要求コマンドが格納された電文であって、ネットワーク3のプロトコル(例えば、エコーネットライト)に従った電文(以下、第1要求電文という。)を生成し、各電気機器2に送信する。なお、機器管理部100は、各電気機器2に対し、状態要求コマンドを一斉に送信してもよいし、非同期で送信してもよい。 The device management unit 100 manages the operation of each electric device 2. For example, the device management unit 100 acquires an operation state from each electric device 2. Specifically, the device management unit 100 obtains the operation state of each electric device 2 in order to obtain the operation state of each electric device 2 at a certain time interval (for example, every 60 seconds) (hereinafter, a command requesting the operation state). , A status request command) is transmitted via the communication management unit 101 described later. At that time, the communication management unit 101 generates a message (hereinafter, referred to as a first request message) according to the protocol of the network 3 (for example, Echonet Write), which is a message in which the status request command is stored. Transmit to each electrical device 2. The device management unit 100 may transmit a status request command to each electric device 2 all at once or may transmit asynchronously.
 各電気機器2は、かかる状態要求コマンドが格納された第1要求電文を受信すると、自機の動作状態が格納された電文あって、ネットワーク3のプロトコルに従った電文(以下、第1応答電文という。)を生成し、制御装置1に送信する。機器管理部100は、かかる第1応答電文を受信することで各電気機器2の動作状態を取得する。 When each electrical device 2 receives the first request message in which the status request command is stored, each electrical device 2 is a message in which the operation status of the own device is stored, and is a message in accordance with the protocol of the network 3 (hereinafter referred to as a first response message). Is generated and transmitted to the control device 1. The device management unit 100 acquires the operation state of each electric device 2 by receiving the first response message.
 機器管理部100は、取得した各電気機器2の動作状態に基づいて、二次記憶装置16に記憶される図示しない機器状態データベースを更新する。機器状態データベースは、各電気機器2の動作状態を管理するためのデータベースである。 The device management unit 100 updates a device state database (not shown) stored in the secondary storage device 16 based on the acquired operating state of each electric device 2. The device state database is a database for managing the operation state of each electrical device 2.
 また、機器管理部100は、当該家庭内の温熱環境、照明環境、電力使用状況等に応じて、何れかの電気機器2の動作を自動的に制御したり、あるいは、予め作成された動作スケジュールに基づいて何れかの電気機器2の動作を自動的に制御する。その際、機器管理部100は、対象となる電気機器2の動作状態を変更させるため、当該電気機器2に対して、指定した動作パラメータの設定を要求するコマンド(以下、設定要求コマンドという。)を通信管理部101を介して送信する。その際、通信管理部101は、設定要求コマンドが格納された電文であって、ネットワーク3のプロトコルに従った電文(以下、第2要求電文という。)を生成し、各電気機器2に送信する。 In addition, the device management unit 100 automatically controls the operation of any of the electrical devices 2 according to the thermal environment, lighting environment, power usage status, etc. in the home, or an operation schedule created in advance. The operation of any one of the electrical devices 2 is automatically controlled based on the above. At that time, the device management unit 100 requests the electric device 2 to set the specified operation parameter in order to change the operation state of the target electric device 2 (hereinafter referred to as a setting request command). Is transmitted via the communication management unit 101. At that time, the communication management unit 101 generates a message (hereinafter referred to as a second request message) according to the protocol of the network 3, which is a message in which the setting request command is stored, and transmits the message to each electric device 2. .
 当該電気機器2は、かかる設定要求コマンドが格納された第2要求電文を受信すると、指定された動作パラメータを設定することで自機の動作状態を変更する。その後、当該電気機器2は、動作パラメータの設定結果が格納された電文であって、ネットワーク3のプロトコルに従った電文(以下、第2応答電文という。)を生成し、制御装置1に送信する。動作パラメータの設定結果は、動作パラメータの設定が正常完了したこと、又は、動作パラメータの設定が正常完了しなかったことの何れかを示す。電気機器2は、現在の自機の動作状態によっては、必ずしも、指定された動作パラメータを設定できない場合もある。この場合、当該電気機器2によって送信される第2応答電文には、動作パラメータの設定が正常完了しなかったことを示す情報が含まれる。 When receiving the second request message in which the setting request command is stored, the electric device 2 changes the operation state of the own device by setting the specified operation parameter. Thereafter, the electrical device 2 generates a telegram (hereinafter, referred to as a second response telegram) according to the protocol of the network 3, which is a telegram in which the operation parameter setting result is stored, and transmits the telegram to the control device 1. . The operation parameter setting result indicates that either the operation parameter setting has been normally completed or the operation parameter setting has not been normally completed. The electric device 2 may not necessarily set the specified operation parameter depending on the current operation state of the own device. In this case, the second response message transmitted by the electric device 2 includes information indicating that the operation parameter setting has not been normally completed.
 また、制御装置1は、自動のみならず、操作受付部10を介したユーザ操作に従って、操作対象の電気機器2から動作状態を取得し、あるいは、操作対象の電気機器2の動作状態を変更させることができる。 Further, the control device 1 acquires the operation state from the operation target electrical device 2 or changes the operation state of the operation target electrical device 2 according to the user operation via the operation reception unit 10 as well as the automatic operation. be able to.
 通信管理部101は、各電気機器2との通信の管理を行う。詳細には、機器管理部100が生成した状態要求コマンドが格納された第1要求電文を生成し、対象の電気機器2に送信する。また、通信管理部101は、機器管理部100が生成した設定要求コマンドが格納された第2要求電文を生成し、対象の電気機器2に送信する。第1要求電文及び第2要求電文は、ネットワーク3のプロトコルに従った電文である。 The communication management unit 101 manages communication with each electrical device 2. Specifically, the first request message storing the status request command generated by the device management unit 100 is generated and transmitted to the target electric device 2. Further, the communication management unit 101 generates a second request message in which the setting request command generated by the device management unit 100 is stored, and transmits the second request message to the target electric device 2. The first request message and the second request message are messages according to the network 3 protocol.
 また、通信管理部101は、電気機器2から応答電文(即ち、第1応答電文又は第2応答電文)を正常に受信すると、当該応答電文に含まれる情報(即ち、動作状態又は動作パラメータの設定結果)を機器管理部100に通知する。 In addition, when the communication management unit 101 normally receives a response message (that is, the first response message or the second response message) from the electrical device 2, information (that is, setting of an operation state or an operation parameter) included in the response message is received. Result) to the device management unit 100.
 また、通信管理部101は、電気機器2との新たな通信が開始されると、当該通信に関する情報(以下、通信情報という。)を、RAM15に展開される通信管理テーブルに登録し、当該通信の管理を行う。電気機器2との新たな通信が開始されるとは、第1要求電文又は第2要求電文が対象の電気機器2へ送信されることを意味する。 In addition, when new communication with the electrical device 2 is started, the communication management unit 101 registers information related to the communication (hereinafter referred to as communication information) in a communication management table developed in the RAM 15, and the communication Manage. The start of new communication with the electric device 2 means that the first request message or the second request message is transmitted to the target electric device 2.
 通信管理テーブルは、図4に示すように、宛先、シーケンス番号、コマンド種別、通信状態、経過時間の各項目で構成される通信情報が登録されるデータテーブルである。 As shown in FIG. 4, the communication management table is a data table in which communication information including items of destination, sequence number, command type, communication state, and elapsed time is registered.
 通信管理テーブルに登録される通信情報において、「宛先」項目には、通信相手、即ち、通信先となる電気機器2の通信用のアドレスが格納される。「シーケンス番号」項目には、当該要求電文(即ち、第1要求電文又は第2要求電文)に含まれているシーケンス番号が格納される。シーケンス番号とは、新たな要求電文を生成する際に、通信管理部101によってシーケンシャルに割り振られる番号である。但し、シーケンス番号が予め定めた数(例えば、1000)に達すると、通信管理部101は、次回以降に割り振るシーケンス番号を1からスタートさせる。 In the communication information registered in the communication management table, the “destination” item stores a communication partner, that is, the communication address of the electrical device 2 that is the communication destination. The “sequence number” item stores a sequence number included in the request message (that is, the first request message or the second request message). The sequence number is a number that is sequentially allocated by the communication management unit 101 when a new request message is generated. However, when the sequence number reaches a predetermined number (for example, 1000), the communication management unit 101 starts a sequence number to be allocated from the next time onward.
 各電気機器2は、制御装置1から受信した要求電文に含まれているシーケンス番号と同一の番号がシーケンス番号として格納された応答電文(即ち、第1応答電文又は第2応答電文)を制御装置1に送信する。 Each electric device 2 controls the response message (that is, the first response message or the second response message) in which the same number as the sequence number included in the request message received from the control device 1 is stored as the sequence number. 1 to send.
 「コマンド種別」項目には、当該要求電文に、状態要求コマンド又は設定要求コマンドの何れが含まれているかを示す情報が格納される。 In the “command type” item, information indicating whether the request message includes a status request command or a setting request command is stored.
 「通信状態」項目には、当該要求電文の送信後の通信状態が格納される。本実施形態では、通信状態は、通信管理部101によって、第1応答待ち状態、第2応答待ち状態、受信完了状態、受信エラー状態の内の何れか1つの状態に設定される。 The “communication status” item stores the communication status after transmission of the request message. In the present embodiment, the communication state is set by the communication management unit 101 to any one of the first response waiting state, the second response waiting state, the reception completion state, and the reception error state.
 第1応答待ち状態とは、要求電文を送信する際のデフォルトの状態であり、送信した要求電文に対する電気機器2からの応答電文が未受信であり、且つ、当該要求電文を送信してから第1待ち時間が経過していない状態をいう。第2応答待ち状態とは、第1応答待ち状態から遷移する状態であり、送信した要求電文に対する電気機器2からの応答電文を未受信であり、且つ、当該要求電文を送信してから第1待ち時間が経過し、第2待ち時間が経過していない状態をいう。第1待ち時間、第2待ち時間は、図5に示すように、宛先毎、即ち、電気機器2毎に予め設定されている。 The first response waiting state is a default state when a request message is transmitted. The response message from the electric device 2 to the transmitted request message has not been received, and the first response message is transmitted after the request message is transmitted. 1 A state in which the waiting time has not elapsed. The second response waiting state is a state of transition from the first response waiting state, the response message from the electric device 2 to the transmitted request message has not been received, and the first response message is transmitted after the request message is transmitted. A state in which the waiting time has elapsed and the second waiting time has not elapsed. As shown in FIG. 5, the first waiting time and the second waiting time are set in advance for each destination, that is, for each electric device 2.
 第1待ち時間は、当該電気機器2において、機器制御システムが正常に動作している場合は概ね(例えば、80%~95%の確率で)通信が完了する時間であり、且つ、ユーザにとって妥当な待ち時間となるように予め設定されている。一方、第2待ち時間は、機器制御システムが正常に動作している場合での制御装置1と当該電気機器2との通信において、制御装置1の応答待ち時間のばらつきを網羅できるように、第1待ち時間より長い時間が予め設定されている。 The first waiting time is a time when communication is completed (for example, with a probability of 80% to 95%) in the electric device 2 when the device control system is operating normally, and is appropriate for the user. The waiting time is set in advance. On the other hand, the second waiting time is set so that variations in the response waiting time of the control device 1 can be covered in communication between the control device 1 and the electrical device 2 when the device control system is operating normally. A time longer than one waiting time is preset.
 受信完了状態とは、図6に示すように、電気機器2からの応答電文を第1待ち時間又は第2待ち時間の経過前に受信できた場合に第1応答待ち状態又は第2応答待ち状態から遷移する状態である。 As shown in FIG. 6, the reception completion state is a first response waiting state or a second response waiting state when a response message from the electrical device 2 can be received before the first waiting time or the second waiting time elapses. It is a state that changes from.
 受信エラー状態とは、図6に示すように、電気機器2からの応答電文を第2待ち時間の経過前に受信できなかった場合に第2応答待ち状態から遷移する状態である。 As shown in FIG. 6, the reception error state is a state in which a response message from the electrical device 2 is transitioned from the second response waiting state when the response message from the electric device 2 cannot be received before the second waiting time elapses.
 図4に戻り、「経過時間」項目には、要求電文を対象の電気機器2に送信してからの経過時間(単位は秒)が格納される。 Returning to FIG. 4, the “elapsed time” item stores the elapsed time (unit: second) since the request message was transmitted to the target electrical device 2.
 通信管理部101は、電気機器2からの応答電文を第2待ち時間の経過前に受信できた場合、即ち、通信状態が受信完了状態に遷移する場合、電気機器2からの応答電文を正常に受信したものとして取り扱う。詳細には、通信管理部101は、受信した応答電文に含まれる情報(即ち、当該電気機器2の動作状態又は当該電気機器2における動作パラメータの設定結果)を機器管理部100に通知する。かかる通知を受けると、機器管理部100は、応答電文を正常に受信した場合の既定の処理(以下、正常受信時の処理という。)を行う。 When the response message from the electric device 2 can be received before the second waiting time elapses, that is, when the communication state transitions to the reception completion state, the communication management unit 101 normally returns the response message from the electric device 2. Treat as received. Specifically, the communication management unit 101 notifies the device management unit 100 of information included in the received response message (that is, the operation state of the electric device 2 or the operation parameter setting result of the electric device 2). Upon receiving such notification, the device management unit 100 performs a predetermined process (hereinafter referred to as a process upon normal reception) when the response message is normally received.
 例えば、動作状態が通知された場合、機器管理部100は、当該動作状態に基づいて、機器状態データベースを更新する。また、動作パラメータの設定結果が通知された場合では、機器管理部100は、かかる設定結果に基づいて、当該電気機器2に対する設定操作が完了したこと、又は、当該設定操作ができなかったこと等を示す情報のディスプレイ4への表示を、後述する表示更新部102に要求する。 For example, when the operation state is notified, the device management unit 100 updates the device state database based on the operation state. When the operation parameter setting result is notified, the device management unit 100 completes the setting operation for the electric device 2 based on the setting result or the setting operation cannot be performed. Is requested to the display update unit 102 to be described later.
 一方、通信管理部101は、電気機器2からの応答電文を第2待ち時間の経過前に受信できなかった場合、即ち、通信状態が受信エラー状態に遷移する場合、当該電気機器2への要求電文の送信が失敗したものとして取り扱う。この場合、通信管理部101は、機器管理部100に対して、当該電気機器2への要求電文の送信が失敗(即ち、通信エラーが発生)したことを通知する。機器管理部100は、かかる通知を受けると、通信エラーが発生した場合の既定の処理(以下、通信エラー時の処理という。)を行う。例えば、機器管理部100は、当該電気機器2との通信でエラーが発生したことを示す情報のディスプレイ4への表示を、後述する表示更新部102に要求する。また、通信管理部101は、以後、当該要求電文に対応する応答電文を受信した場合であっても、当該応答電文を破棄する。 On the other hand, when the communication management unit 101 cannot receive a response message from the electrical device 2 before the second waiting time elapses, that is, when the communication state transitions to a reception error state, the communication management unit 101 makes a request to the electrical device 2. Handled as a message transmission failure. In this case, the communication management unit 101 notifies the device management unit 100 that transmission of the request message to the electric device 2 has failed (that is, a communication error has occurred). Upon receiving this notification, the device management unit 100 performs a default process (hereinafter referred to as a process at the time of a communication error) when a communication error occurs. For example, the device management unit 100 requests the display update unit 102 described later to display information indicating that an error has occurred in communication with the electrical device 2 on the display 4. Further, after that, the communication management unit 101 discards the response message even when a response message corresponding to the request message is received.
 図3に戻り、表示更新部102は、通信管理テーブルを参照し、各通信情報に基づく通信管理情報をディスプレイ4に出力して、表示させる。ディスプレイ4で表示される通信管理情報には、操作対象の電気機器2を識別する情報(例えば、名称、アドレス等)、要求内容、通信状況を示す情報が含まれる。要求内容として、例えば“動作状態の取得”又は“動作パラメータの設定”が表示される。また、通信状況を示す情報は、通信中であれば“通信中”と表示され、通信中でなければ非表示となる。 3, the display update unit 102 refers to the communication management table, and outputs the communication management information based on each communication information to the display 4 for display. The communication management information displayed on the display 4 includes information for identifying the electric device 2 to be operated (for example, name, address, etc.), request contents, and information indicating the communication status. As the request contents, for example, “acquisition of operation state” or “setting of operation parameters” is displayed. Further, the information indicating the communication status is displayed as “communication” if the communication is being performed, and is not displayed if the communication is not being performed.
 また、表示更新部102は、電気機器2に要求電文を送信してから第1待ち時間の経過前に当該要求電文に対する応答電文を受信していない場合、即ち、通信状態が第1応答待ち状態から第2応答待ち状態に遷移すると、ディスプレイ4の表示を更新する。詳細には、表示更新部102は、ディスプレイ4に表示されている当該要求電文に対応する通信管理情報において、“通信中”との表示が非表示となるように更新する。 The display update unit 102 transmits a request message to the electrical device 2 and has not received a response message for the request message before the first waiting time elapses, that is, the communication state is a first response waiting state. When a transition is made to the second response waiting state, the display on the display 4 is updated. Specifically, the display update unit 102 updates the communication management information corresponding to the request message displayed on the display 4 so that the display of “in communication” is not displayed.
 あるいは、当該要求電文に対する応答電文が未受信であることをユーザに報知するための情報(以下、報知情報という。)を通信管理情報に追加して、ディスプレイ4に出力し、表示させてもよい。 Alternatively, information for notifying the user that a response message for the request message has not been received (hereinafter referred to as notification information) may be added to the communication management information, and output to the display 4 for display. .
 操作制限部103は、各電気機器2に対する操作受付部10を介したユーザ操作の制限に関する処理を行う。具体的には、ある電気機器2との通信状態が第1応答待ち状態の場合、操作制限部103は、当該電気機器2に対するユーザ操作を制限、即ち、ユーザ操作の受け付けを禁止状態(以下、操作待機状態という。)にする。この状態では、操作制限部103は、当該電気機器2に対応する操作画面を非表示にしたり、あるいは、グレー表示、即ち、グレーアウト状態にする。一方、通信状態が第1応答待ち状態以外の場合、操作制限部103は、当該電気機器2に対するユーザ操作の制限を解除、即ち、ユーザ操作の受け付けを許可状態にする。 The operation restriction unit 103 performs processing related to restriction of user operations via the operation reception unit 10 for each electrical device 2. Specifically, when the communication state with a certain electrical device 2 is the first response waiting state, the operation restriction unit 103 restricts user operations on the electrical device 2, that is, prohibits acceptance of user operations (hereinafter, referred to as “user response”). It is called the operation standby state. In this state, the operation restriction unit 103 hides the operation screen corresponding to the electric device 2 or displays the operation screen in gray, that is, in a gray-out state. On the other hand, when the communication state is other than the first response waiting state, the operation restriction unit 103 releases the restriction of the user operation on the electric device 2, that is, sets the acceptance of the user operation to a permitted state.
 図7は、制御装置2の各機能部によって実行される通信管理処理の手順を示すフローチャートである。制御装置1は、各電気機器2との間で新たな通信が開始される度に以下の通信管理処理を開始する。電気機器2との新たな通信が開始されると、通信管理部101は、通信管理テーブルに当該通信に係る通信情報を登録する(ステップS101)。また、通信管理部101は、計時を開始する(ステップS102)。 FIG. 7 is a flowchart showing the procedure of the communication management process executed by each functional unit of the control device 2. The control device 1 starts the following communication management process every time new communication is started with each electric device 2. When new communication with the electrical device 2 is started, the communication management unit 101 registers communication information related to the communication in the communication management table (step S101). Further, the communication management unit 101 starts timing (step S102).
 通信管理部101は、当該電気機器2から当該通信に対応する、即ち、当該要求電文に対応する応答電文を受信したか、又は、当該電気機器2との通信が開始されてから第1待ち時間若しくは第2待ち時間が経過したか否かを判別する(ステップS103)。 The communication management unit 101 receives the response message corresponding to the communication from the electric device 2, that is, the response message corresponding to the request message, or the first waiting time after the communication with the electric device 2 is started. Alternatively, it is determined whether or not the second waiting time has elapsed (step S103).
 ステップS103でYESの場合、通信管理部101は、上述したように、通信状態を遷移させる(ステップS104)。 If YES in step S103, the communication management unit 101 changes the communication state as described above (step S104).
 ステップS104の処理により、第1応答待ち状態から第2応答待ち状態へ通信状態が遷移した場合(ステップS105;YES)、表示更新部102は、当該要求電文に関してディスプレイ4に表示する情報を更新する(ステップS106)。また、操作制限部103は、当該電気機器2に対するユーザ操作の制限を解除する(ステップS107)。その後、ステップS103に戻る。 When the communication state transitions from the first response waiting state to the second response waiting state by the process of step S104 (step S105; YES), the display update unit 102 updates the information displayed on the display 4 regarding the request message. (Step S106). In addition, the operation restriction unit 103 releases the restriction on the user operation on the electric device 2 (step S107). Thereafter, the process returns to step S103.
 ステップS104の処理により、受信完了状態へ通信状態が遷移した場合(ステップS105;NO及びステップS108;YES)、通信管理部101は、電気機器2からの応答電文を正常に受信したものとして取り扱い、機器管理部100は、上述した正常受信時の処理を実行する(ステップS109)。これにより、当該電気機器2との当該通信における通信管理処理は終了する。 When the communication state transitions to the reception completion state by the process of step S104 (step S105; NO and step S108; YES), the communication management unit 101 treats the response message from the electrical device 2 as being normally received, The device management unit 100 executes the above-described normal reception process (step S109). Thereby, the communication management process in the said communication with the said electric equipment 2 is complete | finished.
 ステップS104の処理により、第2応答待ち状態及び受信完了状態の何れにも遷移しなかった場合(ステップS105;NO及びステップS108;NO)、即ち、受信エラー状態に遷移した場合、通信管理部101は、当該電気機器2への要求電文の送信が失敗したものとして取り扱い、機器管理部100は、上述した通信エラー時の処理を実行する(ステップS110)。これにより、当該電気機器2との当該通信における通信管理処理は終了する。この場合、以後、当該通信に対応する応答電文は無効として取り扱われ、受信した場合は、通信管理部101によって破棄される。 When the process of step S104 does not change to either the second response waiting state or the reception completion state (step S105; NO and step S108; NO), that is, when the state changes to the reception error state, the communication management unit 101 Is handled as a failure of transmission of a request message to the electrical device 2, and the device management unit 100 executes the above-described processing at the time of a communication error (step S110). Thereby, the communication management process in the said communication with the said electric equipment 2 is complete | finished. In this case, thereafter, the response message corresponding to the communication is treated as invalid, and when received, the communication management unit 101 discards it.
 図8及び図9に、制御装置1と電気機器2間の通信シーケンスの例を示す。図8の例では、制御装置1が、電気機器2に対して要求電文を送信した後、第1待ち時間が経過してから第2待ち時間が経過する前に、電気機器2からの応答電文を受信した場合が示されている。この場合、第1待ち時間が経過すると、即ち、通信状態が第1応答待ち状態から第2応答待ち状態に遷移すると、制御装置1は、当該電気機器2に対するユーザ操作の制限を解除し(即ち、操作待機状態を解除し)、ディスプレイ4に表示する情報を更新して、応答電文が未受信であり、操作待機状態が解除されたことをユーザに報知する。また、応答電文を第2待ち時間が経過する前に受信したため、制御装置1は、正常受信時の処理を実行する。 8 and 9 show an example of a communication sequence between the control device 1 and the electric device 2. In the example of FIG. 8, after the control device 1 transmits a request message to the electric device 2, a response message from the electric device 2 before the second waiting time elapses after the first waiting time elapses. Is shown. In this case, when the first waiting time elapses, that is, when the communication state transitions from the first response waiting state to the second response waiting state, the control device 1 releases the restriction on the user operation on the electric device 2 (that is, The operation standby state is canceled), and the information displayed on the display 4 is updated to notify the user that the response message has not been received and the operation standby state has been canceled. Further, since the response message is received before the second waiting time elapses, the control device 1 executes the process at the time of normal reception.
 また、図9の例では、制御装置1が、電気機器2に対して要求電文を送信した後、第2待ち時間が経過してから電気機器2からの応答電文を受信した場合が示されている。この場合、図8の例と同様、第1待ち時間が経過すると、即ち、通信状態が第1応答待ち状態から第2応答待ち状態に遷移すると、制御装置1は、当該電気機器2に対する操作待機状態を解除すると共に、ディスプレイ4に表示する情報を更新して、応答電文が未受信であり、操作待機状態が解除されたことをユーザに報知する。そして、第2待ち時間が経過すると、制御装置1は、当該電気機器2への要求電文の送信が失敗したものとみなし、通信エラー時の処理を実行する。このため、制御装置1は、その後に受信した応答電文を破棄する。 Moreover, in the example of FIG. 9, the case where the control device 1 receives a response message from the electric device 2 after the second waiting time has elapsed after transmitting the request message to the electric device 2 is shown. Yes. In this case, as in the example of FIG. 8, when the first waiting time elapses, that is, when the communication state transitions from the first response waiting state to the second response waiting state, the control device 1 waits for an operation on the electrical device 2. In addition to canceling the state, the information displayed on the display 4 is updated to notify the user that no response message has been received and that the operation standby state has been cancelled. Then, when the second waiting time elapses, the control device 1 considers that the transmission of the request message to the electric device 2 has failed, and executes processing at the time of a communication error. For this reason, the control apparatus 1 discards the response message received thereafter.
 以上説明したように、本実施形態の機器制御システムによれば、制御装置1は、前述のように設定された2つの応答待ち時間(第1待ち時間及び第2待ち時間)を用いて、電気機器2との通信の管理を行う。即ち、制御装置1は、応答待ち時間が、第1待ち時間を経過すると、当該電気機器に対する操作待機状態を解除すると共に、ディスプレイ4の表示を更新して、当該ユーザに、応答電文が未受信であり、操作待機状態が解除されたことを報知する。また、制御装置1は、第2待ち時間を経過する前に応答電文を受信した場合は、内部的には電気機器2からの応答電文を正常に受信したものとして取り扱う。 As described above, according to the device control system of the present embodiment, the control device 1 uses the two response waiting times (first waiting time and second waiting time) set as described above to Management of communication with the device 2 is performed. That is, when the response waiting time has passed the first waiting time, the control device 1 releases the operation waiting state for the electrical device and updates the display on the display 4 so that no response message is received by the user. It is informed that the operation standby state has been released. Moreover, when the response message is received before the second waiting time elapses, the control device 1 internally treats the response message from the electric device 2 as having been normally received.
 このため、ユーザの操作性を損なわず、且つ、電気機器2が正常動作をしているにもかかわらず、通信エラーとして処理されてしまう不都合を回避できる。 For this reason, it is possible to avoid the inconvenience of being processed as a communication error even though the operability of the user is not impaired and the electric device 2 is operating normally.
 なお、本実施形態では、第1待ち時間及び第2待ち時間は、電気機器2毎に予め設定されるものとしたが、全電気機器2で共通としてもよい。このようにしても、従来にはない、上記の効果を奏し得る。 In the present embodiment, the first waiting time and the second waiting time are set in advance for each electric device 2, but may be common to all the electric devices 2. Even if it does in this way, there can exist said effect which is not in the past.
 ただし、第1待ち時間及び第2待ち時間が、電気機器2毎あるいは電気機器2の機種毎に設定されるようにすると、通信管理の精度向上がより図れる。さらに、第1待ち時間及び第2待ち時間が、コマンド種別毎に設定されると、通信管理の一層の精度向上が期待できる。 However, if the first waiting time and the second waiting time are set for each electric device 2 or each model of the electric device 2, the accuracy of communication management can be further improved. Furthermore, if the first waiting time and the second waiting time are set for each command type, further improvement in the accuracy of communication management can be expected.
 なお、通信管理部101は、電気機器2との通信の開始後、即ち、最初の要求電文を送信後、第1待ち時間の経過前に当該要求電文に対応する応答電文を受信できない場合、予め定めた回数を上限として、要求電文を再送してもよい。この場合、通信管理部101は、一定時間間隔(例えば、第1待ち時間の経過毎)で要求電文の再送を行う。そして、通信管理部101は、第2待ち時間の経過前に応答電文を受信できた場合、通信状態を受信完了状態に遷移させ、第2待ち時間の経過前に応答電文を受信できなかった場合、通信状態を受信エラー状態に遷移させる。 Note that the communication management unit 101 does not receive a response message corresponding to the request message before the first waiting time after transmission of the first request message after the start of communication with the electrical device 2, that is, The request message may be retransmitted up to a predetermined number of times. In this case, the communication management unit 101 retransmits the request message at regular time intervals (for example, every time the first waiting time elapses). When the communication management unit 101 can receive a response message before the second waiting time elapses, the communication management unit 101 changes the communication state to the reception completion state, and when the response message cannot be received before the second waiting time elapses. The communication state is changed to the reception error state.
(実施形態2)
 続いて、本発明の実施形態2に係る機器制御システムについて説明する。なお、以下の説明において、実施形態1と共通する構成要素等については、同一の符号を付し、その説明を省略する。
(Embodiment 2)
Subsequently, a device control system according to Embodiment 2 of the present invention will be described. In the following description, components and the like that are common to the first embodiment are denoted by the same reference numerals, and description thereof is omitted.
 図10は、実施形態2の制御装置1の機能構成を示す図である。本実施形態の制御装置1には、実施形態1の制御装置1と比較し、待ち時間設定部104が追加されている。 FIG. 10 is a diagram illustrating a functional configuration of the control device 1 according to the second embodiment. Compared with the control device 1 of the first embodiment, a waiting time setting unit 104 is added to the control device 1 of the present embodiment.
 待ち時間設定部104は、本実施形態の制御装置1を当該家庭に設置後、予め定めた期間、各電気機器2に要求電文を送信する度に、当該要求電文に対する電気機器2からの応答電文を受信するまでの時間を計測し、複数の計測結果から各電気機器2に対応する第1待ち時間を設定する。具体的には、電気機器2毎に、計測した複数の計測結果の平均値又は中央値を算出し、算出した平均値又は中央値に予め定めた乗数を掛けることで、当該電気機器2に対応する第1待ち時間を導出する。また、待ち時間設定部104は、導出した第1待ち時間に基づいて、当該電気機器2に対応する第2待ち時間を導出する。なお、制御装置1は、上記の期間の間は、第1待ち時間及び第2待ち時間として、実施形態1のように、各電気機器2毎に予め設定された時間を使用すればよい。 The waiting time setting unit 104 sends a request message from the electric device 2 to the request message every time a request message is transmitted to each electric device 2 for a predetermined period after the control device 1 of the present embodiment is installed in the home. Is measured, and a first waiting time corresponding to each electric device 2 is set from a plurality of measurement results. Specifically, for each electrical device 2, the average value or median value of a plurality of measured results is calculated, and the calculated average value or median value is multiplied by a predetermined multiplier to support the electrical device 2. A first waiting time is derived. The waiting time setting unit 104 derives a second waiting time corresponding to the electrical device 2 based on the derived first waiting time. In addition, the control apparatus 1 should just use the time preset for every electric equipment 2 like Embodiment 1 as said 1st waiting time and 2nd waiting time during said period.
 本実施形態の制御装置1のその他の機能については、実施形態1の制御装置1と同様である。 Other functions of the control device 1 of the present embodiment are the same as those of the control device 1 of the first embodiment.
 このように、本実施形態の機器制御システムによれば、制御装置1は、電気機器2からの応答電文を受信するまでの実際に計測した時間に基づいて当該電気機器2に対応する第1待ち時間を設定するため、第1待ち時間の精度を高めることができる。 Thus, according to the device control system of the present embodiment, the control device 1 waits for the first wait corresponding to the electric device 2 based on the actually measured time until the response message from the electric device 2 is received. Since the time is set, the accuracy of the first waiting time can be improved.
 なお、本発明は、上記の実施形態に限定されず、本発明の要旨を逸脱しない範囲での種々の変更は勿論可能である。 In addition, this invention is not limited to said embodiment, Of course, the various change in the range which does not deviate from the summary of this invention is possible.
 例えば、外部のサーバが、電気機器2の機種、メーカ、型番等に応じた第1待ち時間及び第2待ち時間に関するデータ(以下、待ち時間データという。)を保持するようにしてもよい。そして、実施形態1の制御装置1が、管理する電気機器2の機種、個別の属性情報に応じて当該サーバから対応する待ち時間データを通信により取得して、第1待ち時間及び第2待ち時間として設定できるようにしてもよい。このようにすると、新たに追加した電気機器2に対しても、適切な第1待ち時間及び第2待ち時間を設定することができる。 For example, an external server may hold data related to the first waiting time and the second waiting time (hereinafter referred to as waiting time data) according to the model, manufacturer, model number, and the like of the electrical device 2. And the control apparatus 1 of Embodiment 1 acquires the waiting time data corresponding from the said server by communication according to the model of the electric equipment 2 to manage, and individual attribute information, and the 1st waiting time and the 2nd waiting time May be set as If it does in this way, appropriate 1st waiting time and the 2nd waiting time can be set also to newly added electric equipment 2.
 上記の各実施形態では、電気機器2との通信状態が第1応答待ち状態の場合、制御装置1は、当該電気機器2に対するユーザ操作を制限した。しかし、当該通信状態が、ユーザ操作に起因しない要求に係るものである場合には、制御装置1は、ユーザ操作の受け付けを許可してもよい。ユーザ操作に起因しない要求とは、当該電気機器2に対する定期的な動作状態の要求又は自動制御に係る要求(動作状態の変更要求、即ち、動作パラメータの設定要求)等の制御装置1が自立して行う要求をいう。但し、ユーザから受け付けた要求(動作状態の要求又は動作状態の変更要求)は、直ちに実行されるのではなく、当該通信が完了又は通信状態が第2応答待ち状態に遷移した後に実行される。 In each of the above embodiments, when the communication state with the electrical device 2 is the first response waiting state, the control device 1 restricts the user operation on the electrical device 2. However, when the communication state relates to a request not caused by a user operation, the control device 1 may permit acceptance of the user operation. A request not caused by a user operation means that the control device 1 is independent such as a request for a periodic operation state for the electric device 2 or a request for automatic control (operation state change request, that is, an operation parameter setting request). Request. However, the request received from the user (operation state request or operation state change request) is not immediately executed, but is executed after the communication is completed or the communication state transitions to the second response waiting state.
 上記の各実施形態では、電気機器2との通信状態が第1応答待ち状態から第2応答待ち状態に遷移すると、制御装置1は、当該電気機器2に対する操作待機状態を解除した。このため、ユーザによる当該電気機器2への操作が繰り返し行われることで、1つの電気機器2に対して多くの通信が発生し、競合することも想定される。そのような場合、当該電気機器2との通信負荷が増大し、輻輳につながるおそれもある。そこで、1つの電気機器2に対して複数の通信が発生している状態において、その総数が予め定めた基準数に達している場合では、当該電気機器2に対するユーザ操作を受け付けないようにしてもよい。 In each of the above embodiments, when the communication state with the electrical device 2 transitions from the first response waiting state to the second response waiting state, the control device 1 releases the operation standby state for the electrical device 2. For this reason, it is assumed that a lot of communication is generated and competes with respect to one electric device 2 by repeatedly performing an operation on the electric device 2 by the user. In such a case, the communication load with the electrical device 2 increases, which may lead to congestion. Therefore, in a state where a plurality of communications are occurring with respect to one electrical device 2, when the total number has reached a predetermined reference number, user operations on the electrical device 2 may not be accepted. Good.
 制御装置1は、各電気機器2に対するユーザ操作に起因しない要求、即ち、制御装置1が自立して行う要求(以下、自立要求という。)を制限する自立要求制限部(図示せず)をさらに備えてもよい。詳細には、自立要求制限部は、通信状態と当該自立要求の種別に基づいて、当該自立要求を制限する。具体的には、自立要求の種別が自動制御に係る要求である場合、自立要求制限部は、通信状態にかかわず、当該要求を受け付けるが、当該通信が完了するまで、その実行、即ち、当該要求に対応する設定要求コマンドの当該電気機器2への送信を制限する。 The control device 1 further includes an independent request restriction unit (not shown) that restricts a request not caused by a user operation on each electrical device 2, that is, a request that the control device 1 makes independently (hereinafter referred to as an independent request). You may prepare. Specifically, the independence request restriction unit restricts the independence request based on the communication state and the type of the independence request. Specifically, when the type of the independence request is a request related to automatic control, the independence request restriction unit accepts the request regardless of the communication state, but performs the execution until the communication is completed, that is, the Transmission of the setting request command corresponding to the request to the electric device 2 is restricted.
 また、自立要求の種別が定期的な動作状態の要求である場合、自立要求制限部は、通信状態が第1応答待ち状態の場合は当該要求を受け付けるが、当該通信が完了するまで、その実行、即ち、状態要求コマンドの当該電気機器2への送信を制限する。また、自立要求の種別が定期的な動作状態の要求である場合であって、通信状態が第2応答待ち状態の場合は、自立要求制限部は、当該要求を受けない。 Further, when the type of the independent request is a request for a periodic operation state, the independent request restriction unit accepts the request when the communication state is the first response waiting state, but executes the request until the communication is completed. That is, transmission of the state request command to the electric device 2 is restricted. Further, when the type of the independent request is a request for a periodic operation state and the communication state is the second response waiting state, the independent request limiting unit does not receive the request.
 また、機器制御システムは、必ずしも複数の電気機器2を備える必要はなく、1台の電気機器2を備える構成であってもよいことは勿論である。 Further, the device control system does not necessarily have to include a plurality of electric devices 2, and may be configured to include one electric device 2.
 また、制御装置1が、ディスプレイ4と同等の機能を有する表示デバイスを備えるようにしてもよい。 Further, the control device 1 may include a display device having the same function as the display 4.
 また、制御装置1とインターネットを介して通信可能に接続されるクラウドサーバに、前述した制御装置1の各機能部(図3又は図10参照)の少なくとも一部を移管してもよい。この場合、制御装置1は、クラウドサーバから、当該機能部の処理結果を通信により取得すればよい。 Further, at least a part of each functional unit (see FIG. 3 or FIG. 10) of the control device 1 described above may be transferred to a cloud server that is communicably connected to the control device 1 via the Internet. In this case, the control apparatus 1 should just acquire the process result of the said function part by communication from a cloud server.
 上記の各実施形態では、制御装置1において、プロセッサ13によって二次記憶装置16に記憶されている機器制御プログラムが実行されることで、制御装置1の各機能部(図3、図10参照)が実現された。 In each of the above embodiments, in the control device 1, each function unit of the control device 1 (see FIGS. 3 and 10) is executed by the processor 13 executing the device control program stored in the secondary storage device 16. Was realized.
 しかし、制御装置1の機能部の全部又は一部が、専用のハードウェアで実現されるようにしてもよい。専用のハードウェアとは、例えば、単一回路、複合回路、プログラム化されたプロセッサ、ASIC(Application Specific Integrated Circuit)、FPGA(Field-Programmable Gate Array)、又は、これらの組み合わせ等である。 However, all or part of the functional units of the control device 1 may be realized by dedicated hardware. The dedicated hardware is, for example, a single circuit, a composite circuit, a programmed processor, an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a combination thereof.
 また、上記の機器制御プログラムは、CD-ROM(Compact Disc Read Only Memory)、DVD(Digital Versatile Disc)、光磁気ディスク(Magneto-Optical Disc)、USB(Universal Serial Bus)メモリ、メモリカード、HDD等のコンピュータ読み取り可能な記録媒体に格納して配布することも可能である。そして、このように配布した機器制御プログラムを特定の又は汎用のコンピュータにインストールすることによって、当該コンピュータを上記の実施形態における制御装置1として機能させることも可能である。 The above-mentioned device control program includes CD-ROM (Compact Disc Read Only Memory), DVD (Digital Versatile Disc), magneto-optical disc (Magneto-Optical Disc), USB (Universal Serial Bus) memory, memory card, HDD, etc. It is also possible to store and distribute in a computer-readable recording medium. Then, by installing the device control program distributed in this way on a specific or general-purpose computer, it is possible to cause the computer to function as the control device 1 in the above embodiment.
 また、機器制御プログラムをインターネット上の他のサーバが有するディスク装置等に格納しておき、当該サーバから制御装置1に機器制御プログラムがダウンロードされるようにしてもよい。 Alternatively, the device control program may be stored in a disk device or the like of another server on the Internet, and the device control program may be downloaded from the server to the control device 1.
 本発明は、広義の精神と範囲を逸脱することなく、様々な実施形態及び変形が可能である。また、上述した実施形態は、本発明を説明するためのものであり、本発明の範囲を限定するものではない。つまり、本発明の範囲は、実施形態ではなく、請求の範囲によって示される。そして、請求の範囲内及びそれと同等の発明の意義の範囲内で施される様々な変形が、本発明の範囲内とみなされる。 The present invention can be variously modified and modified without departing from the spirit and scope of the broad sense. Further, the above-described embodiment is for explaining the present invention, and does not limit the scope of the present invention. That is, the scope of the present invention is shown not by the embodiments but by the claims. Various modifications within the scope of the claims and within the scope of the equivalent invention are considered to be within the scope of the present invention.
 本発明は、様々な電気機器と制御装置とがネットワークを介して接続するシステムに好適に採用され得る。 The present invention can be suitably employed in a system in which various electrical devices and a control device are connected via a network.
 1 制御装置、2 電気機器、3 ネットワーク、4 ディスプレイ、5 ケーブル、10 操作受付部、11 ディスプレイインタフェース、12 通信インタフェース、13 プロセッサ、14 ROM、15 RAM、16 二次記憶装置、17 バス、100 機器管理部、101 通信管理部、102 表示更新部、103 操作制限部、104 待ち時間設定部 1 control device, 2 electrical device, 3 network, 4 display, 5 cable, 10 operation accepting unit, 11 display interface, 12 communication interface, 13 processor, 14 ROM, 15 RAM, 16 secondary storage device, 17 bus, 100 device Management unit, 101 communication management unit, 102 display update unit, 103 operation restriction unit, 104 waiting time setting unit

Claims (7)

  1.  電気機器と通信するための通信インタフェースと、
     前記電気機器にコマンドを送信してから第1待ち時間が経過するまでに、前記コマンドに対する前記電気機器からの応答を受信していない場合、ディスプレイの表示を更新する表示更新手段と、
     前記コマンドを送信してから前記応答を受信するまで、及び、前記コマンドを送信してから前記第1待ち時間が経過するまでの何れか短い方の間、前記電気機器に対するユーザの操作を制限する操作制限手段と、
     前記コマンドを送信してから前記第1待ち時間より長い第2待ち時間が経過するまでに前記応答を受信した場合、前記応答を正常に受信したものとして取り扱い、前記第2待ち時間が経過するまでに前記応答を受信していない場合、前記コマンドの送信が失敗したものとして取り扱う通信管理手段と、を備える、制御装置。
    A communication interface for communicating with electrical equipment;
    Display update means for updating the display on the display when a response from the electric device to the command is not received before the first waiting time elapses after the command is transmitted to the electric device;
    The user's operation on the electrical device is limited until the response is received after the command is transmitted and until the first waiting time elapses after the command is transmitted. Operation restriction means;
    When the response is received from when the command is transmitted until the second waiting time longer than the first waiting time elapses, the response is treated as normally received until the second waiting time elapses. And a communication management means for handling that the transmission of the command has failed if the response has not been received.
  2.  前記通信管理手段は、前記第2待ち時間が経過するまでに前記応答を受信していない場合、その後に受信した前記応答を破棄する、請求項1に記載の制御装置。 2. The control device according to claim 1, wherein when the response is not received before the second waiting time elapses, the communication management unit discards the response received thereafter.
  3.  前記電気機器は、複数の電気機器のうちの1つであり、
     前記第1待ち時間及び前記第2待ち時間は、前記複数の電気機器の各々又は前記複数の電気機器の各々の種別に応じて設定されている、請求項1又は2に記載の制御装置。
    The electrical device is one of a plurality of electrical devices,
    The control device according to claim 1 or 2, wherein the first waiting time and the second waiting time are set in accordance with each of the plurality of electric devices or each of the plurality of electric devices.
  4.  前記電気機器に前記コマンドを送信する度に、前記コマンドに対する前記電気機器からの応答を受信するまでの時間を計測し、複数の計測結果から前記第1待ち時間を設定する待ち時間設定手段をさらに備える、請求項1から3の何れか1項に記載の制御装置。 Waiting time setting means for measuring time until receiving a response from the electric device to the command every time the command is transmitted to the electric device, and setting the first waiting time from a plurality of measurement results. The control device according to any one of claims 1 to 3, further comprising:
  5.  前記操作制限手段は、前記コマンドの送信が、前記ユーザの操作に起因したものでは無い場合、前記電気機器に対する前記ユーザの操作を許可する、請求項1から4の何れか1項に記載の制御装置。 The control according to any one of claims 1 to 4, wherein the operation restriction unit permits the user's operation on the electric device when the transmission of the command is not caused by the operation of the user. apparatus.
  6.  電気機器にコマンドを送信し、
     前記コマンドを送信してから第1待ち時間が経過するまでに、前記コマンドに対する前記電気機器からの応答を受信していない場合、ディスプレイの表示を更新し、
     前記コマンドを送信してから前記応答を受信するまで、及び、前記コマンドを送信してから前記第1待ち時間が経過するまでの何れか短い方の間、前記電気機器に対するユーザの操作を制限し、
     前記コマンドを送信してから前記第1待ち時間より長い第2待ち時間が経過するまでに前記応答を受信した場合、前記応答を正常に受信したものとして取り扱い、前記第2待ち時間が経過するまでに前記応答を受信していない場合、前記コマンドの送信が失敗したものとして取り扱う、通信管理方法。
    Send commands to electrical equipment,
    If the response from the electrical device to the command has not been received before the first waiting time has elapsed since the command was transmitted, the display on the display is updated,
    The user's operation on the electrical device is limited between the transmission of the command and the reception of the response, and the transmission of the command and the elapse of the first waiting time, whichever is shorter. ,
    When the response is received from when the command is transmitted until the second waiting time longer than the first waiting time elapses, the response is treated as normally received until the second waiting time elapses. If the response is not received, the communication management method treats that the transmission of the command has failed.
  7.  コンピュータに、
     電気機器にコマンドを送信するステップと、
     前記コマンドを送信してから第1待ち時間が経過するまでに、前記コマンドに対する前記電気機器からの応答を受信していない場合、ディスプレイの表示を更新するステップと、
     前記コマンドを送信してから前記応答を受信するまで、及び、前記コマンドを送信してから前記第1待ち時間が経過するまでの何れか短い方の間、前記電気機器に対するユーザの操作を制限するステップと、
     前記コマンドを送信してから前記第1待ち時間より長い第2待ち時間が経過するまでに前記応答を受信した場合、前記応答を正常に受信したものとして取り扱い、前記第2待ち時間が経過するまでに前記応答を受信していない場合、前記コマンドの送信が失敗したものとして取り扱うステップと、を実行させるためのプログラム。
    On the computer,
    Sending a command to the electrical device;
    Updating the display on the display if a response from the electrical device to the command is not received before the first waiting time elapses after the command is transmitted;
    The user's operation on the electrical device is limited until the response is received after the command is transmitted and until the first waiting time elapses after the command is transmitted. Steps,
    When the response is received from when the command is transmitted until the second waiting time longer than the first waiting time elapses, the response is treated as normally received until the second waiting time elapses. If the response is not received, the step of handling that the transmission of the command has failed is executed.
PCT/JP2017/018098 2017-05-12 2017-05-12 Control device, communication management method and program WO2018207363A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/JP2017/018098 WO2018207363A1 (en) 2017-05-12 2017-05-12 Control device, communication management method and program
JP2019516861A JP6727742B2 (en) 2017-05-12 2017-05-12 Control device, communication management method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2017/018098 WO2018207363A1 (en) 2017-05-12 2017-05-12 Control device, communication management method and program

Publications (1)

Publication Number Publication Date
WO2018207363A1 true WO2018207363A1 (en) 2018-11-15

Family

ID=64105682

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2017/018098 WO2018207363A1 (en) 2017-05-12 2017-05-12 Control device, communication management method and program

Country Status (2)

Country Link
JP (1) JP6727742B2 (en)
WO (1) WO2018207363A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001285968A (en) * 2000-03-29 2001-10-12 Matsushita Electric Works Ltd Control system and control method
JP2011008542A (en) * 2009-06-25 2011-01-13 Canon Inc Information processing apparatus, method of controlling the same, and program
JP2015133530A (en) * 2014-01-09 2015-07-23 富士通株式会社 Video distribution system and node device used in video distribution system
WO2016110904A1 (en) * 2015-01-06 2016-07-14 パナソニックIpマネジメント株式会社 Communication device and communication method
JP2016187073A (en) * 2015-03-27 2016-10-27 東芝ライテック株式会社 Communication device, communication system and communication method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001285968A (en) * 2000-03-29 2001-10-12 Matsushita Electric Works Ltd Control system and control method
JP2011008542A (en) * 2009-06-25 2011-01-13 Canon Inc Information processing apparatus, method of controlling the same, and program
JP2015133530A (en) * 2014-01-09 2015-07-23 富士通株式会社 Video distribution system and node device used in video distribution system
WO2016110904A1 (en) * 2015-01-06 2016-07-14 パナソニックIpマネジメント株式会社 Communication device and communication method
JP2016187073A (en) * 2015-03-27 2016-10-27 東芝ライテック株式会社 Communication device, communication system and communication method

Also Published As

Publication number Publication date
JPWO2018207363A1 (en) 2019-11-14
JP6727742B2 (en) 2020-07-22

Similar Documents

Publication Publication Date Title
WO2014175438A1 (en) Control system, control device, control method, and program
JP5850240B2 (en) Power management equipment
KR101797812B1 (en) Automatic Execution Method for Controlling a plurality of Devices, Application, and Server
JP5787945B2 (en) Control device, control system, control method, and program
JP2019128653A (en) Repeater and hot water supplier
WO2018207363A1 (en) Control device, communication management method and program
US9979811B2 (en) Controller, control system, and method for controlling control system
JP5868476B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PROGRAM
JP6544911B2 (en) Device management system, server, application execution method, and program
JP6320563B2 (en) Communication device, communication adapter, communication system, communication parameter response method, and program
JP5506729B2 (en) Engineering equipment
JP2016019084A (en) controller
JP6961091B2 (en) Program transfer system and program transfer method
JP6320569B2 (en) Home control device and home control system
JP5714067B2 (en) COMMUNICATION SYSTEM, SERVER DEVICE, CONTROL METHOD, AND PROGRAM
WO2021095241A1 (en) Edge device linking system, edge device linking method, and program
CN106168763B (en) Control method and controller
JP2009171379A (en) Remote control device, remote control system, and remote control method
JP2020144757A (en) Control apparatus, control system, connection state determination method and program
KR20170002333A (en) Automatic Execution Method for Controlling a plurality of Devices, Application, and Server
JP5528603B1 (en) Communication adapter, control system, communication adapter control method, and program
WO2022172355A1 (en) Firmware updating system, firmware transmission device, air conditioner, and firmware updating method and program
JP6615628B2 (en) Control method, control device, and program
WO2023199443A1 (en) Service setting device, in-house control system, service management method, and program
JP6527206B2 (en) CONTROL DEVICE, DEVICE OPERATION SYSTEM, CONTROL METHOD, AND PROGRAM

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17909216

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2019516861

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17909216

Country of ref document: EP

Kind code of ref document: A1