Relay device, relay method, and program

The relay device uses conversion tables to convert properties between different data models, ensuring seamless communication by aligning disparate data models to a common higher-level format.

JP7566178B2Active Publication Date: 2024-10-11MITSUBISHI ELECTRIC CORP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2023572295
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-01-06
Publication Date
2024-10-11
Estimated Expiration
2042-01-06

AI Technical Summary

Technical Problem

Existing communication systems struggle to relay data between devices with different data models due to differences in definition granularity, making equivalent conversion difficult.

Method used

A relay device with conversion tables that associate properties of different data models to higher-level properties, allowing for conversion and relaying of communication frames between devices with distinct data models.

Benefits of technology

Enables accurate data model conversion between devices with different data models, maintaining compatibility and facilitating communication despite varying definition granularities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007566178000001
    Figure 0007566178000001
  • Figure 0007566178000002
    Figure 0007566178000002
  • Figure 0007566178000003
    Figure 0007566178000003
Patent Text Reader

Abstract

A relay device (1) is provided with: a conversion table storage unit (131) for storing a first conversion table in which a property of a first data model that corresponds to a first protocol is associated with a higher-order property of the property, and a second conversion table in which a property of a second data model that corresponds to a second protocol is associated with a higher-order property of the property; a data model conversion unit (102) for, when a communication frame from a first apparatus the communication protocol of which is the first protocol is received, converting a property included in the communication frame to a higher-order property by referring to the first conversion table, and converting the higher-order property to a property of the second data model by referring to the second conversion table; and, a communication frame transmission unit (103) for generating a communication frame which conforms to the second protocol and in which the property of the second data model obtained by the data model conversion unit (102) is stored, and transmitting the generated communication frame to a second apparatus.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a relay device, a relay method, and a program. [Background technology]

[0002] Conventionally, various proposals have been made regarding techniques for relaying communication between devices that communicate using different communication protocols.

[0003] For example, Patent Document 1 describes a communications system that includes a main system which is a higher-level system, multiple subsystems which are lower-level systems, and multiple interfaces which are connected in one-to-one correspondence with the multiple subsystems, and in which each interface converts the protocol of a signal when relaying a signal between a corresponding subsystem and a transmission path.

[0004] In detail, in this communication system, each interface converts a signal received from a corresponding subsystem into a primary signal of a standard protocol and transmits the converted primary signal to a transmission path. Also, each interface converts a primary signal received from the transmission path into a secondary signal of the protocol of the corresponding subsystem and outputs the converted secondary signal to the subsystem. In this way, the communication system described in Patent Document 1 makes it possible to realize cooperation between multiple subsystems even when the protocols of the multiple subsystems are different from each other. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2019-83458 A Summary of the Invention [Problem to be solved by the invention]

[0006] In recent years, it has become known that by defining standard specifications for a data model, which is an application-level format for communication between devices, it becomes possible to exchange the same data model between devices from different manufacturers.

[0007] Even if communication protocols are different, generally the only difference is the message format, and basic items such as source address and destination address are often the same, so equivalent conversion is relatively easy.

[0008] On the other hand, for different data models, the definition granularity of the properties is different, making it difficult to convert them equivalently. For this reason, there is a demand for the proposal of a new technology to relay communication between devices with different data models.

[0009] The present disclosure has been made in consideration of the above-described circumstances, and has an object to provide a relay device, a relay method, and a program capable of relaying communication between devices having different data models. [Means for solving the problem]

[0010] In order to achieve the above object, a relay device according to the present disclosure includes: A first communication means for communicating with a first device having a first communication protocol; A second communication means for communicating with a second device having a second protocol, the second protocol being different from the first protocol; a conversion table storage means for storing a conversion table for a first data model corresponding to the first protocol, the first conversion table being a conversion table in which a property of the first data model and an upper-level property thereof are associated with each other, and a conversion table for a second data model corresponding to the second protocol, the second conversion table being a conversion table in which a property of the second data model and an upper-level property thereof are associated with each other; When a communication frame is received from the first device, a property included in the communication frame is converted into a higher-level property by referring to the first conversion table, and the higher-level property is converted into a property of the second data model by referring to the second conversion table; a data model conversion means for converting, when a communication frame is received from the second device, a property included in the communication frame into a higher-level property by referring to the second conversion table, and converting the higher-level property into a property of the first data model by referring to the first conversion table; generating a communication frame conforming to the second protocol in which the property of the second data model obtained by the data model conversion means is stored, and transmitting the generated communication frame to the second device; and a communication frame transmitting means for generating a communication frame conforming to the first protocol in which properties of the first data model obtained by the data model conversion means are stored, and transmitting the generated communication frame to the first device. Effect of the Invention

[0011] According to the present disclosure, it is possible to relay communications between devices having different data models. [Brief description of the drawings]

[0012] [Figure 1] FIG. 1 shows an overall configuration of a network system including a relay device according to a first embodiment. [Diagram 2] FIG. 1 is a block diagram showing a hardware configuration of a relay device according to a first embodiment. [Diagram 3] FIG. 1 is a block diagram showing a hardware configuration of a first device according to a first embodiment. [Figure 4] FIG. 1 is a block diagram showing a hardware configuration of a second device according to a first embodiment. [Diagram 5] FIG. 1 is a block diagram showing a functional configuration of a relay device according to a first embodiment. [Figure 6]FIG. 1 is a diagram showing a sequence at the time of initial connection between a first device, a second device, and a relay device in the first embodiment. [Figure 7] FIG. 1 shows an example of a conversion table in the first embodiment ((a) shows a conversion table corresponding to a first device, and (b) shows a conversion table corresponding to a second device). [Figure 8] FIG. 1 is a diagram illustrating a typical relay of a communication frame from a first device to a second device in a first embodiment; [Figure 9] FIG. 1 is a diagram illustrating a typical relay of a communication frame from a second device to a first device in the first embodiment; [Figure 10] 1 is a flowchart showing a procedure of relay processing in the first embodiment (part 1) [Figure 11] Flowchart (part 2) showing a procedure of relay processing in the first embodiment [Figure 12] FIG. 1 shows an example of a conversion table in a modification of the first embodiment ((a) shows a conversion table corresponding to a first device, and (b) shows a conversion table corresponding to a second device). [Figure 13] FIG. 13 shows an overall configuration of a network system including a relay device according to a second embodiment. [Figure 14] FIG. 11 is a block diagram showing a functional configuration of a relay device according to a second embodiment. [Figure 15] FIG. 13 is a diagram showing a sequence at the time of initial connection between a first device, a second device, and a relay device in the second embodiment. [Figure 16] 11 is a flowchart showing a procedure for a conversion table acquisition process according to the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings.

[0014] (Embodiment 1) 1 is a diagram showing an overall configuration of a network system including a relay device 1 in embodiment 1. In this network system, one or more first devices 2 and the relay device 1 are connected to a network N1, and the relay device 1 and one second device 3 are connected to a network N2. This network system is applied to, for example, a system for controlling home appliances in a house.

[0015] <Relay device 1> The relay device 1 is an example of a relay device according to the present disclosure, and relays communication between devices that communicate using different communication protocols. As shown in Fig. 2, the relay device 1 includes, as a hardware configuration, a control circuit 10, a first communication interface 11, a second communication interface 12, and an auxiliary storage device 13. The control circuit 10 comprehensively controls the relay device 1. The control circuit 10 includes a CPU (Central Processing Unit), a ROM (Read Only Memory), and a RAM (Random Access Memory), all of which are not shown. The functions of the relay device 1 realized by the control circuit 10 will be described in detail later.

[0016] The first communication interface 11 is an example of a first communication means according to the present disclosure. The first communication interface 11 is an interface for communicating with each first device 2 via the network N1. The second communication interface 12 is an example of a second communication means according to the present disclosure. The second communication interface 12 is an interface for communicating with the second device 3 via the network N2.

[0017] The auxiliary storage device 13 is a storage device configured with a readable / writable nonvolatile semiconductor memory, a hard disk drive (HDD), etc. Examples of the readable / writable nonvolatile semiconductor memory include an electrically erasable programmable read-only memory (EEPROM), a flash memory, etc. The auxiliary storage device 13 stores various programs including a program for relaying communication frames exchanged between the first device 2 and the second device 3 (hereinafter referred to as a "relay program"), and data used when these programs are executed.

[0018] The relay device 1 can obtain the above relay program or an update program for updating the relay program from another device by communication via the networks N1, N2 or other networks. These programs can also be stored and distributed in a computer-readable recording medium such as a CD-ROM (Compact Disc Read Only Memory), a DVD (Digital Versatile Disc), a magneto-optical disk, a USB (Universal Serial Bus) memory, a HDD, an SSD (Solid State Drive), or a memory card. When such a recording medium is directly or indirectly attached to the relay device 1, the relay device 1 may read and obtain the relay program or the update program from the recording medium.

[0019] <1st device 2> The first device 2 is an example of a first device according to the present disclosure. The first device 2 is a device that communicates using a communication protocol A, such as an air conditioner, a lighting device, or various sensors. The communication protocol A is an example of a first protocol according to the present disclosure, such as Zigbee (registered trademark). The first device 2 also communicates using data model A as a data model that is an application level format. The data model A is an example of a first data model according to the present disclosure.

[0020] 3, the first device 2 includes, as its hardware configuration, a control circuit 20, a communication interface 21, and an auxiliary storage device 22. In addition to these, the first device 2 includes hardware for realizing the original functions of the first device 2 (for example, an air conditioning function in the case of an air conditioner, an illumination function in the case of a lighting device, etc.).

[0021] The control circuit 20 includes a CPU, a ROM, and a RAM, none of which are shown, and performs overall control of the first device 2. The communication interface 21 is an interface for communicating with other devices, such as the relay device 1 and other first devices 2, via the network N1. As described above, the first device 2 communicates with other devices using the communication protocol A.

[0022] The auxiliary storage device 22 includes a readable / writable non-volatile semiconductor memory such as an EEPROM or a flash memory, etc. The auxiliary storage device 22 stores a program related to the control of the first device 2 and data used when the program is executed.

[0023] <Second device 3> The second device 3 is an example of the second device according to the present disclosure. The second device 3 is a device that communicates using communication protocol B, and is, for example, a controller that centrally controls each of the first devices 2. The communication protocol B is an example of the second protocol according to the present disclosure, and is, for example, ECHONET Lite (registered trademark). Furthermore, the second device 3 communicates using data model B as a data model. The data model B is an example of the second data model according to the present disclosure.

[0024] As shown in Fig. 4, the second device 3 includes, as hardware configuration, a control circuit 30, a communication interface 31, and an auxiliary storage device 32. The control circuit 30 includes a CPU, a ROM, and a RAM, all of which are not shown, and controls the second device 3 in an integrated manner. The communication interface 31 is an interface for communicating with the relay device 1 via the network N2. As described above, the second device 3 communicates with other devices using the communication protocol B. The auxiliary storage device 32 includes a readable / writable nonvolatile semiconductor memory such as an EEPROM or a flash memory. The auxiliary storage device 32 stores a program related to the control of the second device 3 and data used when the program is executed.

[0025] <Functional configuration of relay device 1> Fig. 5 is a block diagram showing the functional configuration of the relay device 1. As shown in Fig. 5, the relay device 1 includes a device information acquisition unit 100, a communication frame receiving unit 101, a data model conversion unit 102, and a communication frame transmitting unit 103. These functional units are realized by the control circuit 10 executing the above-mentioned relay program stored in the auxiliary storage device 13.

[0026] The device information acquisition unit 100 acquires device information of a connected device (first device 2, second device 3) from the device. The device information includes communication information and property information. In detail, as shown in Fig. 6, the device information acquisition unit 100 acquires communication information such as communication speed from the device by network settings in negotiation at the time of initial connection with the device, and acquires property information from the device by Capability exchange. The property information will be described later.

[0027] The device information acquiring unit 100 stores the acquired device information of each first device 2 and the acquired device information of each second device 3 in the device information storage unit 130. The device information storage unit 130 is a memory area provided by the auxiliary storage device 13.

[0028] The communication frame receiving unit 101 receives a communication frame transmitted from the first device 2, i.e., a communication frame conforming to communication protocol A, via the network N1, and also receives a communication frame transmitted from the second device 3, i.e., a communication frame conforming to communication protocol B, via the network N2. Hereinafter, the communication frame received by the communication frame receiving unit 101 from the first device 2 will be referred to as a communication frame A1, and the communication frame received by the communication frame receiving unit 101 from the second device 3 will be referred to as a communication frame B1.

[0029] The data model conversion unit 102 is an example of a data model conversion means according to the present disclosure. The data model conversion unit 102 converts a property included in a communication frame received by the communication frame receiving unit 101 into a property of a data model corresponding to a communication protocol of a destination device. Specifically, when the communication frame receiving unit 101 receives a communication frame A1, the data model conversion unit 102 converts a property of a data model A included in the communication frame A1 into a property of a data model B. Also, when the communication frame receiving unit 101 receives a communication frame B1, the data model conversion unit 102 converts a property of a data model B included in the communication frame B1 into a property of a data model A.

[0030] During the above conversion, the data model conversion unit 102 refers to a conversion table stored in the conversion table storage unit 131. The conversion table storage unit 131 is an example of a conversion table storage means according to the present disclosure, and is a memory area provided by the auxiliary storage device 13. In this embodiment, the conversion table storage unit 131 stores a conversion table A shown in Fig. 7(a) and a conversion table B shown in Fig. 7(b).

[0031] Conversion table A is an example of a first conversion table according to the present disclosure, and is a conversion table for data model A corresponding to communication protocol A, which is a communication protocol of the first device 2. Conversion table B is an example of a second conversion table according to the present disclosure, and is a conversion table for data model B corresponding to communication protocol B, which is a communication protocol of the second device 3. As shown in FIG. 7(a), conversion table A is a data table in which properties (properties A1, A2, ...) of data model A are associated with higher-level properties, which are properties at higher levels. In conversion table A, each property A is associated with one of the higher-level properties.

[0032] Conversion table B is a data table in which the properties of data model B (properties B1, B2, ...) are associated with upper-level properties that are higher-level properties. In conversion table B, each property B is associated with one of the upper-level properties. In this embodiment, the format of the upper-level properties is common between data model A and data model B. That is, upper-level properties 1, 2, ... in conversion table A and conversion table B are common.

[0033] For example, in conversion table A, property A1 indicates "setting the color temperature," property A2 indicates "setting the hue," and higher-level property 1 indicates "changing the lighting color." Also, in conversion table B, higher-level property 1 indicates "changing the lighting color," and property B1 indicates "selecting the color pattern (white light / electric light / ...)."

[0034] The conversion tables corresponding to each communication protocol, including conversion tables A and B, may be stored in the conversion table storage unit 131 before the relay device 1 is shipped, or may be saved in the conversion table storage unit 131 by a construction technician, maintenance technician, etc., at the time of installation of the relay device 1 or after installation.

[0035] (Data model conversion example 1) Below, we will specifically explain data model conversion when a communication frame A1 is received by the communication frame receiving unit 101 from a first device 2, the property of the data model A contained in the communication frame A1 is property A1, and the relay destination device is a second device 3.

[0036] First, the data model conversion unit 102 acquires, from the conversion table storage unit 131, conversion table A which is a conversion table corresponding to communication protocol A which is the communication protocol of the first device 2, and conversion table B which is a conversion table corresponding to communication protocol B which is the communication protocol of the second device 3. Next, the data model conversion unit 102 refers to conversion table A and converts property A1 into superior property 1 which is its superior property.

[0037] Then, data model conversion unit 102 refers to conversion table B and converts upper property 1 into property B1, which is a property of data model B that corresponds to upper property 1. In this way, property A1, which is a property of data model A, is converted into property B1, which is a property of data model B, and the conversion of the data model in this example is completed.

[0038] (Data model conversion example 2) Below, we will specifically explain the data model conversion when the communication frame receiving unit 101 receives a communication frame B1 from the second device 3, the property of the data model B contained in the communication frame B1 is property B4, and the relay destination device is the first device 2.

[0039] First, the data model conversion unit 102 acquires, from the conversion table storage unit 131, conversion table B which is a conversion table corresponding to communication protocol B which is the communication protocol of the second device 3, and conversion table A which is a conversion table corresponding to communication protocol A which is the communication protocol of the first device 2. Next, the data model conversion unit 102 refers to conversion table B and converts property B4 into its superior property, superior property 3.

[0040] Then, data model conversion unit 102 refers to conversion table A and converts upper property 3 into property A4, which is a property of data model A that corresponds to upper property 3. In this way, property B4, which is a property of data model B, is converted into property A4, which is a property of data model A, and the conversion of the data models in this example is completed.

[0041] (Data model conversion example 3) Below, we will specifically explain the data model conversion when the communication frame receiving unit 101 receives a communication frame A1 from the first device 2, the property of the data model A contained in the communication frame A1 is property A4, and the relay destination device is the second device 3.

[0042] First, the data model conversion unit 102 obtains, from the conversion table storage unit 131, conversion table A which is a conversion table corresponding to communication protocol A which is the communication protocol of the first device 2, and conversion table B which is a conversion table corresponding to communication protocol B which is the communication protocol of the second device 3. Next, the data model conversion unit 102 refers to conversion table A and converts property A4 into its superior property, superior property 3.

[0043] Then, the data model conversion unit 102 refers to conversion table B and converts the higher-level property 3 into a property of data model B corresponding to the higher-level property 3. Here, in conversion table B, two properties, property B3 and property B4, belong to the higher-level property 3. In this case, the data model conversion unit 102 acquires device information corresponding to the second device 3 from the device information storage unit 130, and refers to the property information included in the acquired device information to convert the higher-level property 3 into either property B3 or property B4.

[0044] The property information includes information about properties that are not supported by the device (second device 3 in this case) among the properties included in the conversion table (conversion table B in this case) corresponding to the communication protocol (communication protocol B in this case) of the device in question (second device 3 in this case). For example, if second device 3 does not support property B4, data model conversion unit 102 converts upper property 3 to property B3. In this way, property A4, which is a property of data model A, is converted to property B3, which is a property of data model B, and the conversion of the data model in this example is completed.

[0045] Returning to Fig. 5, the communication frame transmitting unit 103 is an example of a communication frame transmitting means according to the present disclosure. The communication frame transmitting unit 103 generates a communication frame conforming to a communication protocol of a relay destination device in which the property obtained by the data model conversion unit 102 is stored, and transmits the generated communication frame to the relay destination device. For example, when the relay destination of a communication frame A1 in which a property Am (m is a natural number equal to or greater than 1) is stored and which is received from the first device 2 via the first communication interface 11 is the second device 3, the communication frame transmitting unit 103 generates a communication frame conforming to a communication protocol B in which a property Bn (n is a natural number equal to or greater than 1) is stored, and transmits the generated communication frame (hereinafter referred to as "communication frame B2") to the second device 3 via the second communication interface 12 (see Fig. 8).

[0046] In addition, when the relay destination of a communication frame B1 containing property Bm received from the second device 3 via the second communication interface 12 is the first device 2, the communication frame transmitting unit 103 generates a communication frame conforming to communication protocol A and containing property An, and transmits the generated communication frame (hereinafter referred to as "communication frame A2") to the first device 2 via the first communication interface 11 (see Figure 9).

[0047] <Relay processing> 10 and 11 are flowcharts showing the procedure of the relay process executed by the relay device 1. FIG.

[0048] (Step S100) The relay device 1 determines whether or not it has received a communication frame (i.e., communication frame A1) from the first device 2. If it has received the communication frame A1 (step S100; YES), the process of the relay device 1 transitions to step S101. On the other hand, if it has not received the communication frame A1 (step S100; NO), the process of the relay device 1 transitions to step S107.

[0049] (Step S101) The relay device 1 acquires, from the conversion table storage unit 131, a conversion table A corresponding to the communication protocol A which is the communication protocol of the first device 2, and a conversion table B corresponding to the communication protocol B which is the communication protocol of the second device 3. After that, the process of the relay device 1 transitions to step S102.

[0050] (Step S102) The relay device 1 acquires the property stored in the received communication frame A1. After that, the process of the relay device 1 proceeds to step S103.

[0051] (Step S103) The relay device 1 converts the acquired property into its higher-level property by referring to conversion table A. After that, the process of the relay device 1 transitions to step S104.

[0052] (Step S104) The relay device 1 refers to conversion table B and converts the acquired upper-level property into a property of data model B. If multiple properties correspond to the upper-level property in conversion table B, the relay device 1 selects one property by referring to property information in the device information of the second device 3, and converts the upper-level property into the selected property. After that, the process of the relay device 1 transitions to step S105.

[0053] (Step S105) The relay device 1 generates a communication frame (that is, communication frame B2) in accordance with the communication protocol B, in which the property acquired in step S104 is stored. After that, the process of the relay device 1 transitions to step S106.

[0054] (Step S106) The relay device 1 transmits the generated communication frame B2 via the network N2 to the second device 3. After that, the process of the relay device 1 returns to step S100.

[0055] (Step S107) The relay device 1 determines whether or not a communication frame (i.e., communication frame B1) has been received from the second device 3. If the communication frame B1 has been received (step S107; YES), the process of the relay device 1 transitions to step S108 in Fig. 11. On the other hand, if the communication frame B1 has not been received (step S107; NO), the process of the relay device 1 returns to step S100.

[0056] (Step S108) The relay device 1 acquires, from the conversion table storage unit 131, a conversion table B corresponding to the communication protocol B which is the communication protocol of the second device 3, and a conversion table A corresponding to the communication protocol A which is the communication protocol of the first device 2. After that, the process of the relay device 1 transitions to step S109.

[0057] (Step S109) The relay device 1 acquires the property stored in the received communication frame B1. After that, the process of the relay device 1 transitions to step S110.

[0058] (Step S110) The relay device 1 converts the acquired property into its higher-level property by referring to conversion table B. After that, the process of the relay device 1 transitions to step S111.

[0059] (Step S111) The relay device 1 refers to conversion table A and converts the acquired upper-level property into a property of data model A. If multiple properties correspond to the upper-level property in conversion table A, the relay device 1 selects one property by referring to property information in the device information of the first device 2, and converts the upper-level property into the selected property. After that, the process of the relay device 1 transitions to step S112.

[0060] (Step S112) The relay device 1 generates a communication frame (that is, communication frame A2) in accordance with the communication protocol A, in which the property acquired in step S111 is stored. After that, the process of the relay device 1 transitions to step S113.

[0061] (Step S113) The relay device 1 transmits the generated communication frame A2 via the network N1 to the first device 2. After that, the process of the relay device 1 returns to step S100 in FIG.

[0062] As described above, when relay device 1 in this embodiment receives a communication frame addressed to second device 3 communicating in communication protocol B from first device 2 communicating in communication protocol A, relay device 1 converts the properties included in the communication frame into higher-level properties by referring to conversion table A corresponding to communication protocol A, and converts the higher-level properties into properties of data model B by referring to conversion table B corresponding to communication protocol B. Then, relay device 1 generates a communication frame in accordance with communication protocol B in which the properties of data model B are stored, and transmits the generated communication frame to second device 3.

[0063] In this way, the relay device 1 can relay communication between devices having different data models.

[0064] Furthermore, when converting between mutually different data models, the relay device 1 first converts the property received from the source device into a higher-level property common to both data models, and then converts it into a property corresponding to the destination device. This makes it possible to accurately convert the data models without being affected by differences in the granularity of the properties.

[0065] Furthermore, the conversion table can be easily expanded since it only requires simple content in which a property of a data model corresponding to a communication protocol is associated with a higher-level property for each communication protocol.

[0066] (Variation 1) In the above embodiment, the relay device 1 converts between two types of communication protocols (communication protocols A and B) and data models (data models A and B). However, conversion between three or more types of communication protocols (communication protocols A to C) and data models (data models A to C) can also be achieved using a method similar to that of the above embodiment.

[0067] (Variation 2) When a property includes a value, the conversion table may further include a conversion formula for converting the property value into the value of its higher-level property (see Figs. 12(a) and 12(b)). For example, when a communication frame in which property A1 is stored is received from first device 2, data model conversion unit 102 of relay device 1 converts property A1 into its higher-level property 1 with reference to Fig. 12(a) and calculates the value of higher-level property 1 based on the value of property A1 and formula A1. Then, data model conversion unit 102 converts higher-level property 1 into property B1 with reference to Fig. 12(b) and calculates the value of property B1 based on the value of higher-level property 1 and formula B1.

[0068] In the conversion table of the above modified example, a pointer to a lookup table for value conversion may be associated instead of the conversion formula.

[0069] (Variation 3) In the above embodiment, the property information includes information regarding properties that are not supported by the device, but it may also include information regarding properties that are supported by the device, or it may include both types of information.

[0070] (Variation 4) The device information acquiring unit 100 may acquire property information from a connected device after the negotiation is completed, rather than at the time of capability exchange in the negotiation with the device.

[0071] (Variation 5) All or part of the functional units (see FIG. 5) of the relay device 1 may be realized by dedicated hardware, such as a single circuit, a composite circuit, a programmed processor, an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a combination of these.

[0072] The technical ideas according to the above-described modified examples may be realized individually or in appropriate combination.

[0073] (Embodiment 2) Next, a description will be given of embodiment 2 of the present disclosure. In the following description, components and the like common to embodiment 1 will be given the same reference numerals and descriptions thereof will be omitted.

[0074] 13 is a diagram showing an overall configuration of a network system including a relay device 1' in embodiment 2. In this network system, one or more first devices 2' and a relay device 1' are connected to a network N1, and the relay device 1' and one second device 3' are connected to a network N2. This network system is applied to, for example, a system for controlling home appliances in a house.

[0075] <Relay device 1'> The relay device 1' is an example of a relay device according to the present disclosure, and relays communication between devices that communicate with each other using different communication protocols. The hardware configuration of the relay device 1' is similar to that of the relay device 1 in the first embodiment (see FIG. 2). The details of the functions of the relay device 1' will be described later.

[0076] <1st device 2'> The first device 2' is an example of a first device according to the present disclosure. The first device 2' is a device that communicates using the communication protocol A, such as an air conditioner, a lighting device, or various sensors. The hardware configuration of the first device 2' is similar to that of the first device 2 according to the first embodiment (see FIG. 3). The first device 2' prestores a conversion table (i.e., conversion table A) corresponding to its own communication protocol (i.e., communication protocol A) in the auxiliary storage device 22, and transmits the conversion table stored in the auxiliary storage device 22 to the relay device 1' in response to a request from the relay device 1'.

[0077] <Second device 3'> The second device 3' is an example of the second device according to the present disclosure. The second device 3' is a device that communicates using the communication protocol B, and is, for example, a controller that centrally controls each of the first devices 2'. The hardware configuration of the second device 3' is similar to that of the second device 3 in the first embodiment (see FIG. 4). The second device 3' stores in advance in the auxiliary storage device 32 a conversion table (i.e., conversion table B) corresponding to its own communication protocol (i.e., communication protocol B), and transmits the conversion table stored in the auxiliary storage device 32 to the relay device 1' in response to a request from the relay device 1'.

[0078] <Functional configuration of relay device 1'> Fig. 14 is a block diagram showing the functional configuration of the relay device 1'. As shown in Fig. 14, the relay device 1' includes a device information acquisition unit 100, a communication frame receiving unit 101, a data model conversion unit 102, a communication frame transmitting unit 103, and a conversion table acquisition unit 104. These functional units are realized by the control circuit 10 of the relay device 1' executing a relay program stored in the auxiliary storage device 13 for relaying a communication frame exchanged between the first device 2' and the second device 3'.

[0079] The functional configuration of the relay device 1' described above differs from the functional configuration of the relay device 1 of the first embodiment (see FIG. 5) in that a conversion table acquisition unit 104 is newly provided. The conversion table acquisition unit 104 is an example of a conversion table acquisition means according to the present disclosure. The conversion table acquisition unit 104 acquires a conversion table held by a connected device (first device 2', second device 3') from the device. In detail, as shown in FIG. 15, when negotiation at the time of initial connection with the device is completed, the conversion table acquisition unit 104 transmits a message requesting a conversion table to the device (hereinafter referred to as a "conversion table request message") to the device.

[0080] The device that receives the conversion table request message transmits a response message (hereinafter referred to as a "conversion table response message") in which the conversion table held by the device itself is stored to the relay device 1'. When the relay device 1' receives the conversion table response message, it extracts and acquires the conversion table from the conversion table response message. The conversion table acquisition unit 104 stores the acquired conversion table in the conversion table storage unit 131.

[0081] <Conversion table acquisition process> 16 is a flowchart showing the procedure of the conversion table acquisition process executed by the relay device 1'. The conversion table acquisition process is executed when connecting to each device for the first time.

[0082] (Step S200) The relay device 1' judges whether or not negotiation with the device connected for the first time has been completed. If the negotiation has not been completed (step S200; NO), the relay device 1' continues to perform the judgment of step S200. On the other hand, if the negotiation has been completed (step S200; YES), the process of the relay device 1' transitions to step S201.

[0083] (Step S201) The relay device 1' requests the conversion table from the device in question. After that, the process of the relay device 1' proceeds to step S202.

[0084] (Step S202) The relay device 1' judges whether or not the conversion table has been received. If the conversion table has not been received (step S202; NO), the relay device 1' continues to perform the judgment of step S202. On the other hand, if the conversion table has been received (step S202; YES), the process of the relay device 1' transitions to step S203.

[0085] (Step S203) The relay device 1' judges whether the received conversion table is a conversion table that has already been acquired. If the received conversion table is a conversion table that has already been acquired (step S203; YES), the process of the relay device 1' transitions to step S204. On the other hand, if the received conversion table is not a conversion table that has already been acquired (step S203; NO), the process of the relay device 1' transitions to step S205.

[0086] (Step S204) The relay device 1' discards the received conversion table, and ends the conversion table acquisition process in the device.

[0087] (Step S205) The relay device 1' stores the received conversion table in the conversion table storage unit 131 under a file name associated with the communication protocol of the device. For example, if the communication protocol of the device is communication protocol A, the conversion table is stored in the conversion table storage unit 131 as conversion table A. Thereafter, the relay device 1' ends the conversion table acquisition process in the device.

[0088] The relay process executed by the relay device 1' is similar to the relay process executed by the relay device 1 of the first embodiment (see FIGS. 10 and 11).

[0089] As described above, when the relay device 1' in this embodiment receives a communication frame addressed to the second device 3' communicating in communication protocol B from the first device 2' communicating in communication protocol A, the relay device 1' converts the property included in the communication frame into a higher-level property by referring to conversion table A corresponding to communication protocol A, and converts the higher-level property into a property of data model B by referring to conversion table B corresponding to communication protocol B. The relay device 1' then generates a communication frame in accordance with communication protocol B in which the property of data model B is stored, and transmits the generated communication frame to the second device 3'.

[0090] In this way, the relay device 1' is capable of relaying communication between devices having different data models.

[0091] Furthermore, when converting between mutually different data models, the relay device 1' first converts the property received from the source device into a higher-level property common to both data models, and then converts it into a property corresponding to the destination device. This makes it possible to accurately convert the data models without being affected by differences in the granularity of the properties.

[0092] Furthermore, the conversion table can be easily expanded since it only requires simple content in which a property of a data model corresponding to a communication protocol is associated with a higher-level property for each communication protocol.

[0093] Furthermore, the relay device 1' obtains the conversion table from the connected device. This eliminates the need to set the conversion table in advance in the relay device 1', and also makes it easier to support devices with new communication protocols, improving versatility.

[0094] (Variation 1) The conversion table acquisition unit 104 of the relay device 1' may acquire the conversion table by communicating with a server such as a cloud server via the network N1, the network N2, or another network, rather than from the connected device. In this case, the conversion table acquisition unit 104 specifies the communication protocol of the connected device, the device ID (identification) of the device, the model of the device, or the model number of the device, and acquires the conversion table corresponding to the communication protocol from the server.

[0095] (Variation 2) The device information acquisition unit 100 may acquire property information from a connected device after the negotiation is completed, rather than at the time of capability exchange in the negotiation with the device. In this case, the device information acquisition unit 100 may acquire property information from the device after the conversion table acquisition unit 104 acquires a conversion table from the device.

[0096] (Variation 3) All or part of the functional units (see FIG. 14) of the relay device 1′ may be realized by dedicated hardware, such as a single circuit, a composite circuit, a programmed processor, an ASIC, an FPGA, or a combination of these.

[0097] (Variation 4) Modifications 1 to 3 of the first embodiment can also be applied to this embodiment.

[0098] Various embodiments and modifications of the present disclosure are possible without departing from the broad spirit and scope of the present disclosure. The above-described embodiments are for explaining the present disclosure and do not limit the scope of the present disclosure. In other words, the scope of the present disclosure is indicated by the claims, not the embodiments. Various modifications made within the scope of the claims and the scope of the disclosure equivalent thereto are considered to be within the scope of the present disclosure. [Industrial Applicability]

[0099] The present disclosure can be suitably adopted in a system in which communication is performed between devices using different communication protocols. [Explanation of symbols]

[0100] 1,1' relay device, 2,2' first device, 3,3' second device, 10,20,30 control circuit, 11 first communication interface, 12 second communication interface, 13,22,32 auxiliary storage device, 21,31 communication interface, 100 device information acquisition unit, 101 communication frame receiving unit, 102 data model conversion unit, 103 communication frame transmitting unit, 104 conversion table acquisition unit, 130 device information storage unit, 131 conversion table storage unit, N1,N2 network

Claims

1. A first communication means for communicating with a first device having a first communication protocol; A second communication means for communicating with a second device having a second protocol, the second protocol being different from the first protocol; a conversion table storage means for storing a first conversion table for a first data model corresponding to the first protocol, the first conversion table being a correspondence between a property of the first data model and a higher-level property thereof, and a second conversion table for a second data model corresponding to the second protocol, the second conversion table being a correspondence between a property of the second data model and a higher-level property thereof; When a communication frame is received from the first device, a property included in the communication frame is converted into a higher-level property by referring to the first conversion table, and the higher-level property is converted into a property of the second data model by referring to the second conversion table; a data model conversion means for converting, when a communication frame is received from the second device, a property included in the communication frame into a higher-level property by referring to the second conversion table, and converting the higher-level property into a property of the first data model by referring to the first conversion table; generating a communication frame conforming to the second protocol in which the property of the second data model obtained by the data model conversion means is stored, and transmitting the generated communication frame to the second device; a communication frame transmitting means for generating a communication frame conforming to the first protocol in which properties of the first data model obtained by the data model conversion means are stored, and for transmitting the generated communication frame to the first device.

2. 2. The relay device according to claim 1, further comprising a conversion table acquisition means for acquiring the first conversion table from the first device and storing the acquired first conversion table in the conversion table storage means, and acquiring the second conversion table from the second device and storing the acquired second conversion table in the conversion table storage means.

3. A first communication means for communicating with a first device having a first communication protocol; A second communication means for communicating with a second device having a second protocol, the second protocol being different from the first protocol; a conversion table storage means for storing a conversion table for a first data model corresponding to the first protocol, the first conversion table being a conversion table in which a property of the first data model and an upper-level property thereof are associated with each other, and a conversion table for a second data model corresponding to the second protocol, the second conversion table being a conversion table in which a property of the second data model and an upper-level property thereof are associated with each other, When a communication frame is received from the first device, a property included in the communication frame is converted into a higher-level property by referring to the first conversion table, and the higher-level property is converted into a property of the second data model by referring to the second conversion table; generating a communication frame conforming to the second protocol in which the properties of the second data model are stored, and transmitting the generated communication frame to the second device; When a communication frame is received from the second device, a property included in the communication frame is converted into a higher-level property by referring to the second conversion table, and the higher-level property is converted into a property of the first data model by referring to the first conversion table; A relay method comprising: generating a communication frame conforming to the first protocol in which properties of the first data model are stored; and transmitting the generated communication frame to the first device.

4. A first communication means for communicating with a first device having a first communication protocol; A second communication means for communicating with a second device having a second protocol, the second protocol being different from the first protocol; a conversion table storage means for storing a first conversion table for a first data model corresponding to the first protocol, the first conversion table being a conversion table in which a property of the first data model and an upper level property thereof are associated with each other, and a second conversion table for a second data model corresponding to the second protocol, the second conversion table being a conversion table in which a property of the second data model and an upper level property thereof are associated with each other, When a communication frame is received from the first device, a property included in the communication frame is converted into a higher-level property by referring to the first conversion table, and the higher-level property is converted into a property of the second data model by referring to the second conversion table; a data model conversion means for converting, when a communication frame is received from the second device, a property included in the communication frame into a higher-level property by referring to the second conversion table, and converting the higher-level property into a property of the first data model by referring to the first conversion table; generating a communication frame conforming to the second protocol in which the property of the second data model obtained by the data model conversion means is stored, and transmitting the generated communication frame to the second device; a program that functions as a communication frame transmitting means that generates a communication frame conforming to the first protocol in which properties of the first data model obtained by the data model conversion means are stored, and transmits the generated communication frame to the first device.

Citation Information

Patent Citations

  • Seamless device control method and system thereof, gateway apparatus, terminal, and domain controller

    JP2005123686A

  • Gateway device

    JP2006129282A

  • Communication system, apparatus control system, communication device, communication control method and program

    JP2019083458A

  • Content router gateway

    US20070038703A1

  • Protocol conversion method, platform, and protocol conversion gateway

    US20190028572A1