Relay device and relay program

The relay device prioritizes high-priority communications and maintains communication integrity by using separate ports and a switching mechanism, addressing delays in existing systems.

JP2026053845AActive Publication Date: 2026-03-26DAIKIN INDUSTRIES LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2026-03-26

AI Technical Summary

Technical Problem

Existing communication relay systems delay high-priority communications when relaying between multiple masters and slaves due to equal priority treatment of all communications.

Method used

A relay device with a control unit that prioritizes high-priority communications by using separate communication ports for different masters and slaves, ensuring priority relay functions and includes a switching mechanism to maintain communication even in device malfunctions.

Benefits of technology

Prevents delays in high-priority communications and maintains communication integrity by prioritizing relay functions and providing redundancy through a switching mechanism.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026053845000001_ABST
    Figure 2026053845000001_ABST
Patent Text Reader

Abstract

If communications between multiple masters and multiple slaves are relayed with the same priority, there is a risk that communications from the master, which has a higher priority, may experience delays. [Solution] The relay device 1 relays communication between the first master M1 and the second master M2 and the multiple slave SLGs. The relay device 1 comprises a first communication port, a second communication port, a third communication port, and a control unit. The first communication port is connected to the first master M1. The second communication port is connected to the second master M2. The third communication port is connected to the multiple slave SLGs. The control unit 19 relays the first communication between the first master M1 and the multiple slave SLGs. The control unit 19 relays the second communication between the second master M2 and the multiple slave SLGs. The control unit 19 relays the first communication with higher priority than the second communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0006] , , ,

[0004] , , , ,

[0005] ,

[0001] It relates to a relay device and a relay program.

Background Art

[0002] As shown in Patent Document 1 (Japanese Patent No. 6321393), there is a technique for relaying communication between a plurality of masters and a plurality of slaves.

Summary of the Invention

Problems to be Solved by the Invention

[0003] In Patent Document 1, since each communication is relayed with the same priority, there is a problem that communication by a master that performs high-priority communication may be delayed.

Means for Solving the Problems

[0004] The relay device according to the first aspect connects a first master and a second master to a single-master / multi-slave network. The relay device relays communication between the first master and the second master and a plurality of slaves. The relay device includes a first communication port, a second communication port, a third communication port, and a control unit. The first communication port is connected to the first master. The second communication port is connected to the second master. The third communication port is connected to a plurality of slaves. The control unit relays first communication between the first master and a plurality of slaves. The control unit relays second communication between the second master and a plurality of slaves. The control unit relays the first communication with priority over the second communication.

[0005] In the relay device according to the first aspect, the control unit relays the first communication with priority over the second communication. As a result, the relay device can prevent communication by the first master, which has a high priority, from being delayed.

[0006] The relay device in the second perspective is the relay device in the first perspective, and in communication between the first master and the second master and a plurality of slaves, the first master and the second master send requests to the slaves included in the plurality of slaves. The control unit determines, based on the communication port that received the request, whether the communication with the request is a first communication or a second communication.

[0007] The relay device in the third perspective is the relay device in the first perspective, and in communication between the first master and the second master and a plurality of slaves, the first master and the second master send requests to the slaves included in the plurality of slaves. The request includes equipment information of the first master or the second master that is the source of the request. The control unit determines, based on the equipment information, whether the communication with the request is a first communication or a second communication.

[0008] The relay device of the fourth perspective is one of the relay devices of the first, second, or third perspective, and the multiple slaves include the first slave and the second slave. The first communication is completed when the first master sends a first request to the first slave and the first master receives a first response to the first request from the first slave. The second communication is completed when the second master sends a second request to the second slave and the second master receives a second response to the second request from the second slave. If the relaying of the first communication and the relaying of the second communication overlap, the control unit relays the first request and first response to complete the first communication before relaying the second request and second response.

[0009] The relay device in the fifth perspective is the relay device in the fourth perspective, and if the relaying of the first communication and the relaying of the second communication overlap, it is when the first request is received while the second request is being received, when the second response is received while the first request is being received, or when the first response is received while the second request is being received.

[0010] The relay device of the sixth perspective is one of the relay devices of the first, second, or fifth perspectives, and further comprises a switching circuit. The switching circuit connects the first communication port and the third communication port. If the control unit is unable to relay the first or second communication due to a malfunction of the relay device, the first communication is transmitted through the switching circuit.

[0011] With this configuration, the relay device in the sixth perspective can maintain communication via the first master, which has a higher priority, even if a malfunction occurs in the relay device.

[0012] The relay program in the seventh perspective relays communication between a first master and a second master and multiple slaves in a relay device. The relay device connects the first master and the second master to a single-master / multi-slave network. The relay device has a first communication port, a second communication port, a third communication port, and a control unit. The first communication port is connected to the first master. The second communication port is connected to the second master. The third communication port is connected to multiple slaves. The relay program causes the relay device to function as a means comprising a first step, a second step, and a third step. The first step relays the first communication between the first master and multiple slaves. The second step relays the second communication between the second master and multiple slaves. The third step relays the first communication with higher priority than the second communication. [Brief explanation of the drawing]

[0013] [Figure 1] This figure shows a communication system with a single-master / multi-slave network configuration. [Figure 2] This diagram shows a communication system equipped with a second master and relay devices. [Figure 3] This is a functional block diagram of the relay device. [Figure 4] This is a flowchart illustrating the priority relay function of a relay device. [Figure 5] This is a flowchart illustrating the priority relay function of a relay device. [Figure 6] This is a flowchart illustrating the priority relay function of a relay device. [Modes for carrying out the invention]

[0014] (1) Overall structure Figure 1 shows a communication system 80 having a single-master / multi-slave network. As shown in Figure 1, the communication system 80 has a first master M1 and a plurality of slave SLGs. The first master M1 and the plurality of slave SLGs are daisy-chained together via a communication line 90 to enable communication.

[0015] Hereafter, slave SLs included in multiple slave SLGs may be referred to as the first slave SL1 and the second slave SL2. The first slave SL1 and the second slave SL2 may be the same device or different devices. In Figure 1, the first slave SL1 and the second slave SL2 are depicted as different devices.

[0016] The first master M1 controls the first slave SL1. However, there are cases where it is desired to add control over the second slave SL2 while maintaining control over the first slave SL1 by the first master M1. In such cases, it is conceivable to provide the communication system 80 with a second master M2 to perform additional control over the second slave SL2, and a relay device 1 that connects the first master M1 and the second master M2 to a single-master / multi-slave network. Figure 2 shows a communication system 81 in which the second master M2 and the relay device 1 are provided in the communication system 80. As shown in Figure 2, the first master M1 and the relay device 1 are connected communicatively by a communication line 91. The second master M2 and the relay device 1 are connected communicatively by a communication line 92. The relay device 1 and the multiple slave SLs are daisy-chained and communicated with each other by a communication line 93.

[0017] The relay device 1 relays communication between the first master M1 and the second master M2 and a plurality of slaves SLG. However, if the relay device 1 relays the communication between the first master M1 and the first slave SL1 and the communication between the second master M2 and the second slave SL2 with the same priority, the communication between the first master M1 and the first slave SL1 that should be maintained (prioritized) may be delayed.

[0018] Therefore, in the present embodiment, the relay device 1 is configured to relay the communication between the first master M1 and the first slave SL1 with higher priority than the communication between the second master M2 and the second slave SL2.

[0019] (2) Detailed configuration <l (2-1) Slave The slave SL is controlled by the first master M1 or the second master M2. The slave SL is, for example, an air conditioner, a low-temperature showcase, or the like.

[0020] For example, when the slave SL is an air conditioner, the slave SL constitutes a vapor compression refrigeration cycle and performs air conditioning of the target space in the building. The slave SL has an indoor unit and an outdoor unit.

[0021] The indoor unit is installed, for example, on the ceiling of the target space. The indoor unit mainly consists of an indoor heat exchanger, an indoor fan, an indoor expansion valve, an indoor control unit, and various sensors. The indoor heat exchanger performs heat exchange between the refrigerant flowing through the indoor heat exchanger and the air in the target space. The indoor fan draws air from the target space into the indoor unit, exchanges heat with the refrigerant in the indoor heat exchanger, and supplies the drawn-in air to the target space. The indoor expansion valve is a mechanism for adjusting the pressure and flow rate of the refrigerant flowing through the refrigerant circuit. The indoor control unit controls the operation of each part that makes up the indoor unit. The indoor control unit is communicated with the indoor fan, indoor expansion valve, and various sensors. The indoor control unit has a control calculation device and a memory device. The control calculation device is a processor such as a CPU or GPU. The memory device is a storage medium such as RAM, ROM, or flash memory. The control calculation device reads a program stored in the memory device and controls the operation of each part that makes up the indoor unit by performing predetermined calculation processing according to the program. Furthermore, the control calculation unit can write calculation results to a memory device and read information stored in the memory device according to the program. The indoor control unit exchanges various information, such as control signals, signals related to measurements from various sensors, and signals related to various settings, with the outdoor control unit of the outdoor unit of the outdoor unit via a communication line.

[0022] The outdoor unit is installed, for example, on the roof of a building. The outdoor unit mainly consists of a compressor, a flow path switching valve, an outdoor heat exchanger, an outdoor expansion valve, an outdoor fan, an outdoor control unit, and various sensors. The compressor draws in low-pressure refrigerant from the suction pipe, compresses the refrigerant using a compression mechanism, and discharges the compressed refrigerant through the discharge pipe. The flow path switching valve is a mechanism that switches the flow path of the refrigerant between a first state and a second state. During cooling operation, the flow path switching valve sets the refrigerant flow path to the first state. At this time, the refrigerant discharged from the compressor flows through the refrigerant circuit in the order of outdoor heat exchanger, outdoor expansion valve, indoor expansion valve, indoor heat exchanger, and returns to the compressor. In the first state, the outdoor heat exchanger functions as a condenser, and the indoor heat exchanger functions as an evaporator. During heating operation, the flow path switching valve sets the refrigerant flow path to the second state. In this state, the refrigerant discharged from the compressor flows through the refrigerant circuit in the following order: indoor heat exchanger, indoor expansion valve, outdoor expansion valve, and outdoor heat exchanger, before returning to the compressor. In the second state, the outdoor heat exchanger functions as an evaporator, and the indoor heat exchanger functions as a condenser. The outdoor heat exchanger facilitates heat exchange between the refrigerant flowing through it and the outdoor air of the building. The outdoor expansion valve is a mechanism for regulating the pressure and flow rate of the refrigerant flowing through the refrigerant circuit. The outdoor fan supplies outdoor air to the outdoor heat exchanger. The outdoor control unit controls the operation of each component of the outdoor unit. The outdoor control unit is communicatively connected to the compressor, flow path switching valve, outdoor expansion valve, outdoor fan, and various sensors. The outdoor control unit has a control calculation device and a memory device. The control calculation device is a processor such as a CPU or GPU. The memory device is a storage medium such as RAM, ROM, or flash memory. The control arithmetic unit reads a program stored in the memory and controls the operation of each component of the outdoor unit by performing predetermined calculations according to the program. The control arithmetic unit can also write calculation results to the memory and read information stored in the memory according to the program. The outdoor control unit exchanges various information, such as control signals, signals related to measurements from various sensors, and signals related to various settings, with the indoor control unit of the indoor unit of the indoor unit via a communication line.In addition, the outdoor control unit exchanges various types of information such as control signals, signals related to measurements of various sensors, and signals related to various settings with the first master M1 or the second master M2 via the communication line 93.

[0023] (2-2) Master The first master M1 controls the first slave SL1. The second master M2 controls the second slave SL2. The first master M1 and the second master M2 each have a control arithmetic unit and a storage device. The control arithmetic unit is a processor such as a CPU or a GPU. The storage device is a storage medium such as a RAM, a ROM, or a flash memory. The control arithmetic unit reads out the program stored in the storage device and performs predetermined arithmetic processing according to the program to control the operations of each part constituting the outdoor unit. Also, the control arithmetic unit can write the arithmetic result to the storage device or read out the information stored in the storage device according to the program. For example, when the first slave SL1 is an air conditioner, the first master M1 exchanges various types of information such as control signals, signals related to measurements of various sensors, and signals related to various settings with the outdoor control unit of the outdoor unit via the communication line 93.

[0024] The first communication is performed between the first master M1 and the first slave SL1. The first communication is completed when the first master M1 transmits a first request REQ1 to the first slave SL1 and the first master M1 receives a first response RES1 to the first request REQ1 from the first slave SL1.

[0025] For example, if the first slave SL1 is an air conditioner, the first master M1 requests operating data from the first slave SL1 as the first request REQ1. The operating data includes, for example, the rotational speed of the indoor fan, the opening degree of the indoor expansion valve, the rotational speed of the compressor, the opening degree of the outdoor expansion valve, the rotational speed of the outdoor fan, and the measured values ​​of various sensors. When the first slave SL1 receives the first request REQ1, the indoor control unit and the outdoor control unit of the first slave SL1 cooperate to acquire the operating data. The first slave SL1 transmits the acquired operating data to the first master M1 as the first response RES1.

[0026] For example, if the first slave SL1 is an air conditioner, the first master M1 sends the target temperature of the target space to the first slave SL1 as the first request REQ1. When the first slave SL1 receives the first request REQ1, it sends an ACK (ACKnowledgement) to the first master M1 as the first response RES1. The indoor control unit and outdoor control unit of the first slave SL1 work together to adjust the rotation speed of the indoor fan, the opening degree of the indoor expansion valve, the rotation speed of the compressor, the opening degree of the outdoor expansion valve, and the rotation speed of the outdoor fan, etc., so that the temperature of the target space becomes the target temperature included in the first request REQ1.

[0027] Similarly, a second communication takes place between the second master M2 and the second slave SL2. The second communication is completed when the second master M2 sends a second request REQ2 to the second slave SL2, and the second master M2 receives a second response RES2 from the second slave SL2 to the second request REQ2.

[0028] (2-3) Relay device Figure 3 is a functional block diagram of the relay device 1. As shown in Figure 3, the relay device 1 mainly consists of a storage unit 11, first communication units 141 to third communication units 143, and a control unit 19.

[0029] (2-3-1) Storage section The memory unit 11 is a storage medium such as RAM, ROM, or flash memory. The memory unit 11 stores the program executed by the control unit 19, as well as data necessary for the execution of the program.

[0030] (2-3-2) Communications Department The first communication unit 141 is a network interface device having a first communication port P1. The first communication port P1 is connected to the first master M1 via a communication line 91. The second communication unit 142 is a network interface device having a second communication port P2. The second communication port P2 is connected to the second master M2 via a communication line 92. The third communication unit 143 is a network interface device having a third communication port P3. The third communication port P3 is connected to multiple slave SLGs via a communication line 93.

[0031] (2-3-3) Control Unit The control unit 19 is a processor such as a CPU or GPU. The control unit 19 reads and executes programs such as relay programs stored in the memory unit 11, and realizes various functions of the relay device 1. The control unit 19 can also write calculation results to the memory unit 11 and read information stored in the memory unit 11 according to the relay program or other programs.

[0032] The control unit 19 relays the first and second communications. In particular, the control unit 19 has a priority relay function to relay the first communication with higher priority than the second communication.

[0033] (2-3-3-1) Priority relay function If the relaying of the first communication and the relaying of the second communication overlap, the control unit 19 relays the first request REQ1 and the first response RES1 before relaying the second request REQ2 and the second response RES2 to complete the first communication. The relaying of the first communication and the relaying of the second communication overlap when the first request REQ1 is received while the second request REQ2 is being received, when the second response RES2 is received while the first request REQ1 is being received, or when the first response RES1 is received while the second request REQ2 is being received.

[0034] The control unit 19 determines whether a communication containing a request is a first communication or a second communication, based on the communication port from which the request was received. Specifically, if the control unit 19 receives a request via the first communication port P1, it determines that the communication containing the request is a first communication (the request is the first request, REQ1). If the control unit 19 receives a request via the second communication port P2, it determines that the communication containing the request is a second communication (the request is the second request, REQ2).

[0035] Below, the processing of the priority relay function will be explained using the flowcharts in Figures 4 to 6 for each of the three cases in which the relay of the first communication and the relay of the second communication overlap. In Figures 4 to 6, the flow of the first request REQ1 and the first response RES1 is drawn with solid lines, and the flow of the second request REQ2 and the second response RES2 is drawn with dashed lines. Also, for simplicity, it is assumed that the first request REQ1, the first response RES1, the second request REQ2, and the second response RES2 each have 8 bytes of information. This corresponds to the fact that, for example, the first request REQ1 in Figures 4 to 6 is composed of 8 blocks.

[0036] (2-3-3-1-1) If the first request is received while the second request is being received. The process of the priority relay function when the first request, REQ1, is received while the second request, REQ2, is being received will be explained using the flowchart in Figure 4.

[0037] As shown in step S11, the second master M2 sends the second request REQ2 to the second slave SL2.

[0038] As shown in step S11, while the second master M2 is sending the second request REQ2 to the second slave SL2, the first master M1 sends the first request REQ1 to the first slave SL1.

[0039] Steps S11 and S12 result in, as shown in step S13, relay device 1 receives first request REQ1 from first master M1 while receiving second request REQ2 from second master M2.

[0040] After completing step S13, as shown in step S14, the relay device 1 transmits the received first request REQ1 to the first slave SL1 (it relays the first request REQ1 with priority).

[0041] After completing step S14, as shown in step S15, the relay device 1 receives the first response RES1 from the first slave SL1 and transmits the received first response RES1 to the first master M1 (prioritizing the relay of the first response RES1).

[0042] After completing step S15, as shown in step S16, the relay device 1 transmits the received second request REQ2 to the second slave SL2 (relays the second request REQ2).

[0043] After completing step S16, as shown in step S17, the relay device 1 receives the second response RES2 from the second slave SL2 and transmits the received second response RES2 to the second master M2 (relaying the second response RES2).

[0044] (2-3-3-1-2) If the second response is received while the first request is still being received. The process of the priority relay function when a second response RES2 is received while the first request REQ1 is being received will be explained using the flowchart in Figure 5.

[0045] As shown in step S21, the second master M2 sends the second request REQ2 to the second slave SL2.

[0046] After completing step S21, as shown in step S22, relay device 1 receives second request REQ2 from second master M2 and transmits the received second request REQ2 to second slave SL2 (relaying second request REQ2).

[0047] Upon completion of step S22, as shown in step S23, the first master M1 sends the first request REQ1 to the first slave SL1.

[0048] In step S23, while the relay device 1 is receiving the first request REQ1 from the first master M1, the relay device 1 receives the second response RES2 from the second slave SL2, as shown in step S24.

[0049] After completing steps S23 and S24, as shown in step S25, the relay device 1 transmits the received first request REQ1 to the first slave SL1 (prioritizing the relay of the first request REQ1).

[0050] After completing step S25, as shown in step S26, the relay device 1 receives the first response RES1 from the first slave SL1 and transmits the received first response RES1 to the first master M1 (relaying the first response RES1 with priority).

[0051] After completing step S26, as shown in step S27, the relay device 1 transmits the second response RES2 received from the second slave SL2 to the second master M2 (relaying the second response RES2).

[0052] (2-3-3-1-3) When the first response is received while the second request is being received. The process of the priority relay function when the first response RES1 is received while the second request REQ2 is being received will be explained using the flowchart in Figure 6.

[0053] As shown in step S31, the first master M1 sends the first request REQ1 to the first slave SL1.

[0054] After completing step S31, as shown in step S32, the relay device 1 transmits the received first request REQ1 to the first slave SL1 (relays the first request REQ1).

[0055] Upon completion of step S32, the second master M2 sends the second request REQ2 to the second slave SL2, as shown in step S33.

[0056] In step S33, while the relay device 1 is receiving the second request REQ2 from the second master M2, the relay device 1 receives the first response RES1 from the first slave SL1, as shown in step S34.

[0057] After completing steps S33 and S34, as shown in step S35, the relay device 1 transmits the first response RES1 received from the first slave SL1 to the first master M1 (prioritizing the relay of the first response RES1).

[0058] After completing step S35, as shown in step S36, the relay device 1 transmits the received second request REQ2 to the second slave SL2 (relays the second request REQ2).

[0059] After completing step S36, as shown in step S37, the relay device 1 receives the second response RES2 from the second slave SL2 and transmits the received second response RES2 to the second master M2 (relaying the second response RES2).

[0060] (3) Features (3-1) Conventional technologies exist for relaying communication between multiple masters and multiple slaves. However, conventional technologies have the problem that because each communication is relayed with the same priority, there is a risk that communication from the master, which is performing a higher-priority communication, may be delayed.

[0061] The relay device 1 of this embodiment connects a first master M1 and a second master M2 to a single-master / multi-slave network. The relay device 1 relays communication between the first master M1 and the second master M2 and the multiple slave SLs. The relay device 1 includes a first communication port P1, a second communication port P2, a third communication port P3, and a control unit 19. The first communication port P1 is connected to the first master M1. The second communication port P2 is connected to the second master M2. The third communication port P3 is connected to the multiple slave SLs. The control unit 19 relays the first communication between the first master M1 and the multiple slave SLs. The control unit 19 relays the second communication between the second master M2 and the multiple slave SLs. The control unit 19 relays the first communication with higher priority than the second communication.

[0062] In the relay device 1 of this embodiment, the control unit 19 relays the first communication with higher priority than the second communication. As a result, the relay device 1 can prevent delays in communication by the first master M1, which has a higher priority.

[0063] (3-2) In the relay device 1 of this embodiment, in communication between the first master M1 and the second master M2 and the plurality of slave SLGs, the first master M1 and the second master M2 send requests to the slave SLs included in the plurality of slave SLGs. The control unit 19 determines, based on the communication port that received the request, whether the communication with the request is a first communication or a second communication.

[0064] (3-3) In the relay device 1 of this embodiment, the multiple slave SLGs include a first slave SL1 and a second slave SL2. The first communication is completed when the first master M1 sends a first request REQ1 to the first slave SL1 and the first master M1 receives a first response RES1 from the first slave SL1 for the first request REQ1. The second communication is completed when the second master M2 sends a second request REQ2 to the second slave SL2 and the second master M2 receives a second response RES2 from the second slave SL2 for the second request REQ2. If the relaying of the first communication and the relaying of the second communication overlap, the control unit 19 relays the first request REQ1 and the first response RES1 before relaying the second request REQ2 and the second response RES2 to complete the first communication.

[0065] (3-4) In the relay device 1 of this embodiment, the relay of the first communication and the relay of the second communication overlap when the first request REQ1 is received while the second request REQ2 is being received, when the second response RES2 is received while the first request REQ1 is being received, or when the first response RES1 is received while the second request REQ2 is being received.

[0066] (3-5) The relay program of this embodiment relays communication between the first master M1 and the second master M2 and a plurality of slave SLs in the relay device 1. The relay device 1 connects the first master M1 and the second master M2 to a single-master / multi-slave network. The relay device 1 has a first communication port P1, a second communication port P2, a third communication port P3, and a control unit 19. The first communication port P1 is connected to the first master M1. The second communication port P2 is connected to the second master M2. The third communication port P3 is connected to the plurality of slave SLs. The relay program causes the relay device 1 to function as a means comprising a first step, a second step, and a third step. The first step relays the first communication between the first master M1 and the plurality of slave SLs. The second step relays the second communication between the second master M2 and the plurality of slave SLs. The third step relays the first communication with priority over the second communication.

[0067] In the relay program of this embodiment, the third step prioritizes relaying the first communication over the second communication. As a result, the relay program can prevent delays in communication by the first master M1, which has a higher priority.

[0068] (4) Variations (4-1) Variation 1A In this embodiment, the control unit 19 determined whether the communication containing the request was a first communication or a second communication based on the communication port that received the request. However, the control unit 19 may also determine whether the communication containing the request is a first communication or a second communication based on the device information of the first master M1 or second master M2, which is the source of the request, included in the request.

[0069] The device information for the first master M1 or second master M2 includes, for example, the identifier (ID, MAC address, etc.) of the first master M1 or second master M2, and the model name of the first master M1 or second master M2.

[0070] (4-2) Modification 1B In case of an abnormality in the relay device 1 or the slave SL, the relay device 1 may further include a switching circuit 18 and first to third display units 151 to 153, as shown in Figure 3.

[0071] The switching circuit 18 connects the first communication port P1 to the third communication port P3.

[0072] The first to third display units 151 to 153 are each located near the first to third communication ports P1 to P3. In this modified example, the first to third display units 151 to 153 are displays. The first to third display units 151 to 153 may also be LEDs (Light Emitting Diodes) or the like.

[0073] (4-2-1) If a malfunction occurs in the relay device Possible abnormalities in relay device 1 include power outage of relay device 1 and fault in control unit 19. Furthermore, possible faults in control unit 19 include hard fault, memory management fault, and bus fault.

[0074] A memory management fault occurs when noise on communication lines 91-93 causes relay device 1 to receive a frame larger than expected, and the received frame cannot fit into the relay device 1's internal frame variable. A bus fault occurs when the control unit 19 becomes unable to process internal data or instructions due to aging or external shock. A hard fault is a fault in the control unit 19 other than memory management faults and bus faults.

[0075] If the relay device 1 malfunctions and the control unit 19 is unable to relay the first or second communication, the first communication will be transmitted through the switching circuit 18. In other words, if the relay device 1 malfunctions and the control unit 19 is unable to relay the first or second communication, the control unit 19 will activate the switching circuit 18 and relay only the first communication. At this time, the control unit 19 may display a message indicating that a malfunction has occurred in the relay device 1 on each of the first display units 151 to the third display unit 153. The control unit 19 may also notify the administrator of the communication system 81 of the malfunction in the relay device 1 via email or other means.

[0076] As a result, even if a malfunction occurs in the relay device 1, the first master M1, which has a higher priority, can be maintained.

[0077] If the malfunction of relay device 1 is due to a power outage to relay device 1, the control unit 19 periodically checks whether the power has been restored. If the power has been restored, the control unit 19 disables the switching circuit 18 and resumes relaying of the first and second communications.

[0078] If the malfunction in relay device 1 is a memory management fault, the control unit 19 periodically checks whether it can relay the first and second communications. If it can relay the first and second communications, the control unit 19 disables the switching circuit 18 and resumes relaying the first and second communications.

[0079] If the malfunction in relay device 1 is a hard fault or a bus fault, since hard faults and bus faults are internal failures and it is not expected that relay of the first and second communications will resume, the control unit 19 maintains the state in which the switching circuit 18 is enabled.

[0080] (4-2-2) If a problem occurs with the slave The control unit 19 determines that a malfunction has occurred in a specific slave SL if it does not receive a response from that specific slave SL, or if it receives multiple abnormal responses in a row from that specific slave SL.

[0081] If the control unit 19 determines that a malfunction has occurred in a specific slave SL, it stops relaying to that specific slave SL. At this time, the control unit 19 may display on the third display unit 153 that a malfunction has occurred in the specific slave SL. The control unit 19 may also notify the administrator of the communication system 81 of the malfunction in the specific slave SL via email or other means.

[0082] The control unit 19 periodically sends a request to a specific slave SL to check whether the abnormality of the specific slave SL has been resolved. If the abnormality of the specific slave SL has been resolved, the control unit 19 resumes relaying to the specific slave SL.

[0083] (4-3) While embodiments of this disclosure have been described above, it should be understood that various modifications to the form and details are possible without departing from the spirit and scope of this disclosure as described in the claims. [Explanation of symbols]

[0084] 1. Relay device 18 Switching Circuits M1, M2 First Master, Second Master P1~P3 First communication port~Third communication port REQ1, REQ2: First request, second request RES1, RES2: First response, second response SL, SL1, SL2 Slave, 1st Slave, 2nd Slave SLG Multiple Slaves [Prior art documents] [Patent Documents]

[0085] [Patent Document 1] Patent No. 6321393

Claims

1. A relay device (1) for connecting a first master (M1) and a second master (M2) to a single-master / multi-slave network, and for relaying communication between the first master and the second master and a plurality of slaves (SLG), A first communication port (P1) connected to the first master, A second communication port (P2) connected to the second master, A third communication port (P3) connected to the aforementioned multiple slaves, Control unit and Equipped with, The control unit, The first communication between the first master and the plurality of slaves is relayed, The second communication between the second master and the plurality of slaves is relayed, The first communication is relayed with priority over the second communication. Relay device (1).

2. In communication between the first master and the second master and the plurality of slaves, the first master and the second master send a request to the slave (SL) included in the plurality of slaves, The control unit determines, based on the communication port that received the request, whether the communication having the request is the first communication or the second communication. The relay device (1) according to claim 1.

3. In communication between the first master and the second master and the plurality of slaves, the first master and the second master send a request to the slave (SL) included in the plurality of slaves, The request includes device information of the first master or the second master that is the source of the request. The control unit determines, based on the device information, whether the communication having the request is the first communication or the second communication. The relay device (1) according to claim 1.

4. The plurality of slaves include a first slave (SL1) and a second slave (SL2), The first communication is completed when the first master sends a first request (REF1) to the first slave, and the first master receives a first response (RES1) to the first request from the first slave. The second communication is completed when the second master sends a second request (REF2) to the second slave, and the second master receives a second response (RES2) to the second request from the second slave. If the relaying of the first communication and the relaying of the second communication overlap, the control unit relays the first request and the first response to complete the first communication before relaying the second request and the second response. A relay device (1) according to any one of claims 1 to 3.

5. If the relay of the first communication and the relay of the second communication overlap, If the first request is received while the second request is being received, If the second response is received while the first request is being received, or This occurs when the first response is received while the second request is being received. The relay device (1) according to claim 4.

6. A switching circuit (18) connecting the first communication port and the third communication port, Furthermore, If the control unit is unable to relay the first or second communication due to a malfunction in the relay device, the first communication will be conducted through the switching circuit. A relay device (1) according to any one of claims 1 to 3.

7. A relay device (1) connecting a first master (M1) and a second master (M2) to a single-master / multi-slave network, wherein a relay program for relaying communication between the first master and the second master and a plurality of slaves (SLG), The relay device is, A first communication port (P1) connected to the first master, A second communication port (P2) connected to the second master, A third communication port (P3) connected to the aforementioned multiple slaves, Control unit and It has, The relay device is A first step of relaying the first communication between the first master and the plurality of slaves, A second step of relaying the second communication between the second master and the plurality of slaves, A third step involves relaying the first communication with priority over the second communication, To make it function as a means to provide Live broadcast program.

Citation Information

Patent Citations

  • Fuel pump device

    JP1988021393A