Relay box, relay control method, and fire detection system
Patent Information
- Application Number
- CN202311669134.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-06
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2043-12-06
AI Technical Summary
[0004]本发明实施例提供了一种中继盒、中继控制方法及火灾探测系统,以解决单根感温线缆难以适应长距离铺设场景的问题
[0029]本发明实施例提供一种中继盒、中继控制方法及火灾探测系统,通过第一接口电路与上游感温线缆连接,通过第二接口电路与下游感温线缆连接,通过控制模块对上游感温线缆和下游感温线缆的信号进行处理和转发,保障感温线缆之间通信的稳定性,能够实现感温线缆的级联扩展。
Smart Images

Figure CN117595899B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of temperature-sensing cable technology, and in particular to a relay box, a relay control method, and a fire detection system. Background Technology
[0002] A temperature-sensing cable device, also known as a fire detection system, typically consists of a temperature-sensing cable, a signal processing unit, and a terminal box. The signal processing unit is the brain of the entire temperature-sensing cable, responsible for processing and displaying various information reported by the cable, such as fire alarm information and fault displays, and can upload this information to the main fire control panel via a bus. Temperature-sensing units are installed within the cable, responsible for collecting temperature data, detecting faults, and reporting the information to the signal processing unit. The terminal box, as the end of the temperature-sensing cable device, assists the last temperature-sensing unit in completing its fire alarm and fault detection functions.
[0003] Currently, excessively long temperature-sensing cables are prone to communication interference and insufficient voltage at the end due to their own power consumption. Therefore, the length of a single temperature-sensing cable is generally limited to no more than 1 km, making it unsuitable for long-distance deployment scenarios, such as tunnels several kilometers long. Although multiple temperature-sensing cables can be networked using Controller Area Network (CAN), the communication distance of CAN is typically limited to no more than 2 km. In scenarios with longer distances, fiber optic communication lines need to be laid, resulting in excessively high costs. Summary of the Invention
[0004] This invention provides a relay box, a relay control method, and a fire detection system to solve the problem that a single temperature sensing cable is difficult to adapt to long-distance laying scenarios.
[0005] In a first aspect, embodiments of the present invention provide a relay box, including a first interface, a first interface circuit, a second interface, a second interface circuit, and a control module; both the first interface circuit and the second interface circuit are connected to the control module;
[0006] The first interface circuit is used to connect to the upstream temperature sensing cable through the first interface;
[0007] The second interface circuit is used to connect to the downstream temperature sensing cable through the second interface;
[0008] The control module is used to communicate with the upstream temperature sensing cable through the first interface circuit and with the downstream temperature sensing cable through the second interface circuit, so as to realize communication between the upstream and downstream temperature sensing cables.
[0009] In one possible implementation, an execution circuit is also included, which is connected to the first interface, the first interface circuit, the second interface, the second interface circuit, and the control module, respectively.
[0010] The control module is also used to switch between direct connection mode and relay connection mode via the execution circuit; wherein, in relay connection mode, communication between upstream and downstream temperature sensing cables is realized through the first interface circuit and the second interface circuit, and in direct connection mode, the first interface and the second interface are directly connected.
[0011] In one possible implementation, the first interface includes a first sub-interface and a second sub-interface, and the second interface includes a third sub-interface and a fourth sub-interface.
[0012] The first sub-interface is used to connect to the first bus of the upstream temperature sensing cable, the second sub-interface is used to connect to the second bus of the upstream temperature sensing cable, the third sub-interface is used to connect to the first bus of the downstream temperature sensing cable, and the fourth sub-interface is used to connect to the second bus of the downstream temperature sensing cable.
[0013] The execution circuit includes a counter and a relay. The first input terminal of the counter is connected to the first sub-interface, and the second input terminal is connected to the control module.
[0014] The counter is used to increment the count of pulses sent by the first sub-interface and decrement the count of reset signals sent by the control module. When the count value reaches the preset value, a control signal is output through the output terminal to indicate the switching mode.
[0015] The relay is used to switch between a first state and a second state based on a control signal; wherein, in the first state, the relay connects the first interface circuit and the second interface circuit, and in the second state, it connects the third sub-interface and the first sub-interface.
[0016] In one possible implementation, the execution circuit also includes a transistor, and the relay includes a coil and a single-pole double-throw switch; the first end of the coil is connected to the first sub-interface, the base of the transistor is connected to the output of the counter, the collector is connected to the second end of the coil, and the emitter is grounded;
[0017] The first contact of the single-pole double-throw switch is connected to the third sub-interface, the second contact is connected to the first sub-interface, and the third contact is connected to the second interface circuit.
[0018] In the first state, the first contact and the third contact are connected, so that the third sub-interface and the first sub-interface are connected through the first interface circuit and the second interface circuit.
[0019] When the relay is in the second state, the first contact and the second contact are connected, so that the third sub-interface is directly connected to the first sub-interface;
[0020] The first and third contacts are normally connected. When the base of the transistor receives a control signal, the collector and emitter are connected and power is supplied to the coil, driving the first and second contacts to connect.
[0021] In one possible implementation, a power module is also included, which is connected to the second interface circuit to supply power to the downstream temperature sensing cable.
[0022] In one possible implementation, a terminal box circuit is also included, which is connected to the first interface for matching the upstream temperature sensing cable.
[0023] In one possible implementation, a caching module is also included, which is connected to the control module;
[0024] The control module is used to store cable information in the cache module when it receives cable information from any temperature sensing cable and the channel of another temperature sensing cable is busy, and to upload the cable information to the other temperature sensing cable after the channel of the other temperature sensing cable is idle.
[0025] Secondly, embodiments of the present invention provide a relay control method, including:
[0026] Obtain cable information or instructions for any temperature sensing cable through the first or second interface;
[0027] The cable information or instructions are sent to the corresponding temperature sensing cable through the corresponding interface.
[0028] Thirdly, embodiments of the present invention provide a fire detection system, comprising a signal processing unit, a first temperature sensing cable, a relay box as described in the first aspect or any possible implementation of the first aspect, and a second temperature sensing cable connected in sequence.
[0029] This invention provides a relay box, a relay control method, and a fire detection system. The system is connected to an upstream temperature-sensing cable via a first interface circuit and to a downstream temperature-sensing cable via a second interface circuit. A control module processes and forwards the signals from the upstream and downstream temperature-sensing cables, ensuring the stability of communication between the temperature-sensing cables and enabling cascading expansion of the temperature-sensing cables. Attached Figure Description
[0030] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0031] Figure 1 This is a schematic diagram of the structure of a relay box provided in an embodiment of the present invention;
[0032] Figure 2 This is a schematic diagram of the structure of a relay box provided in another embodiment of the present invention;
[0033] Figure 3 This is a circuit diagram of a relay box provided in an embodiment of the present invention;
[0034] Figure 4 This is a schematic diagram of the structure of a power module provided in an embodiment of the present invention;
[0035] Figure 5 This is a flowchart illustrating the implementation of a relay connection method according to an embodiment of the present invention;
[0036] Figure 6 This is a schematic diagram of the structure of a fire detection system provided in an embodiment of the present invention. Detailed Implementation
[0037] To enable those skilled in the art to better understand this solution, the technical solutions in the embodiments of this solution will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this solution, not all of them. Based on the embodiments of this solution, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this solution.
[0038] The term "comprising" and any other variations thereof in the specification, claims, and accompanying drawings of this invention mean "including but not limited to," and are intended to cover a non-exclusive inclusion, not limited to the examples listed herein. Furthermore, the terms "first" and "second," etc., are used to distinguish different objects, not to describe a specific order.
[0039] The implementation of the present invention will be described in detail below with reference to the accompanying drawings:
[0040] Figure 1 This is a schematic diagram of a relay box provided in an embodiment of the present invention. (Refer to...) Figure 1 The relay box 100 includes a first interface 110, a first interface circuit 120, a second interface 130, a second interface circuit 140, and a control module 150; both the first interface circuit 120 and the second interface circuit 140 are connected to the control module 150.
[0041] The first interface circuit 120 is used to connect to the upstream temperature sensing cable through the first interface 110;
[0042] The second interface circuit 140 is used to connect to the downstream temperature sensing cable through the second interface 130;
[0043] The control module 150 is used to communicate with the upstream temperature sensing cable through the first interface circuit 120 and with the downstream temperature sensing cable through the second interface circuit 140, so as to realize communication between the upstream and downstream temperature sensing cables.
[0044] In this embodiment, the first interface 110 is adapted to connect to the upstream temperature sensing cable 200 (e.g., Figure 1 The temperature sensing cable 200 is located on the left side of the relay box 100. A first interface circuit 120 is connected to a first interface 110 and is responsible for communication with the upstream temperature sensing cable 200. A second interface 130 is adapted to connect to the downstream temperature sensing cable 200; a second interface circuit 140 is connected to the second interface 130 and is responsible for communication with the downstream temperature sensing cable 200. A control module 150 is coupled to the first interface circuit 120 and the second interface circuit 140 respectively. The control module 150 can be a microcontroller unit (MCU). The control module 150 is configured to perform bidirectional communication between the upstream and downstream temperature sensing cables 200 through the first interface circuit 120 and the second interface circuit 140, realizing the cascading expansion of the temperature sensing cables 200 and the relay forwarding of communication signals, ensuring stable transmission of communication signals without interference.
[0045] The relay box 100 may have an address code, and each relay box 100 in the same temperature-sensing cable device (fire detection system) has a different address code. The control module 150 is configured to receive instructions from the first interface circuit 120, and upload corresponding status information through the first interface circuit 120 and / or send corresponding instructions through the second interface circuit 140, so as to realize the hierarchical transmission of instructions and the response to instructions. The control module 150 is also configured to receive status information from the second interface circuit 140 and upload status information through the first interface circuit 120, so as to realize the hierarchical transmission of status information.
[0046] The instructions may include a single configuration command, which can be used to configure a specific temperature sensing cable 200 (e.g., configure the alarm temperature value of the temperature sensing cable 200). The single configuration command may include address information and configuration information. The control module 150 is configured to: when the address information in the single configuration command matches the address code of the relay box 100, issue a corresponding configuration command through the second interface circuit 140 to configure the downstream temperature sensing cable 200 connected to the second interface circuit 140; when the address information in the single configuration command does not match the address code of the relay box 100, issue a single configuration command through the second interface circuit 140. For example, Figure 1The address code of the relay box 100 shown is A. When the address information in a single configuration command is A, the control module 150 sends a corresponding configuration command through the second interface circuit 140 (the configuration command may include address information and configuration information, such as address information M). The temperature sensing unit 230 in the temperature sensing cable 200 (downstream temperature sensing cable 200) connected to the second interface circuit 140 responds to the configuration command with address information M and performs relevant configuration (such as adjusting the alarm temperature value). The relay box 100 connected to the end of the temperature sensing cable 200 does not respond to the configuration command with address information M. When the address information in a single configuration command is not A (for example, when the address information is C, D or E), the control module 150 sends the unit configuration command through the second interface circuit 140 until a relay box 100 matching the address information is found, and the temperature sensing cable 200 connected to the second interface circuit 140 of the relay box 100 is configured.
[0047] The instructions may include broadcast configuration commands, which can be used to configure all serially connected temperature sensing cables 200 within the temperature sensing cable device (fire detection system). The control module 150 configures the broadcast configuration commands by issuing them through the second interface circuit 140. In this way, the broadcast configuration commands can be issued cascaded down to the last temperature sensing cable 200, and the temperature sensing unit 230 in each temperature sensing cable 200 can respond to the broadcast configuration commands and perform relevant configurations. Broadcast configuration commands and individual configuration commands can be distinguished based on the specific settings and arrangements of certain bytes in the instruction field.
[0048] The control module 150 is configured to, upon receiving data or information from upstream or downstream, distinguish the type of data or information based on specific bytes in a field. For example, it can distinguish between broadcast configuration commands and single configuration commands, as well as other types of instructions described below, and determine the type of operation to be performed. For instance, it can forward the data or status information uploaded by the downstream temperature sensing cable 200 upstream. The data or information can be encapsulated in the form of data packets, which, in addition to the data type, may also include address information, status information, and operation instructions.
[0049] The status information may include cable information (e.g., faults in the temperature sensing cable 200, temperature values, etc.), and the instructions may include a first query command, which can be used to query the cable information of a specific temperature sensing cable 200. The control module 150 is configured to, when the address information in the first query command matches the address code of the relay box 100, issue a second query command through the second interface circuit 140. The temperature sensing cable 200 connected to the second interface circuit 140 (the downstream temperature sensing cable 200) responds to the second query command by querying its own cable information and uploading it. When the address information in the first query command does not match the address code of the relay box 100, the first query command is issued through the second interface circuit 140 until a relay box 100 matching the address information is found, and a second query command is issued to the second interface circuit 140 connected to that relay box 100. The response of the control module 150 to the first query command is basically similar to the response to a single configuration command, and will not be described in detail here. The temperature sensing cable 200 usually does not actively upload its own cable information to avoid occupying the channel. Only when the temperature sensing cable 200 receives the second query command will it query its own cable information and upload it to the repeater box 100.
[0050] Status information can include fire alarm information. In the heat-sensing cable device (fire detection system), fire alarm information has the highest priority. Regardless of whether the channel of the heat-sensing cable 200 is idle, fire alarm information must be uploaded first to ensure the timeliness of fire alarms. Therefore, the control module 150 is configured to interrupt communication on the upstream heat-sensing cable 200 to upload the fire alarm information when the status information is fire alarm information. Specifically, when the status information is fire alarm, if the upstream heat-sensing cable 200 is communicating, it will preempt the channel to upload the fire alarm information first; if the channel of the upstream heat-sensing cable 200 is idle, it will directly upload the fire alarm information.
[0051] The above description, using the example that the instructions may include broadcast configuration commands, single configuration commands, and first query commands, and the status information may include cable information and fire alarm information, illustrates that the relay box 100 can realize bidirectional communication between the upstream temperature sensing cable 200 and the downstream temperature sensing cable 200, ensuring stable transmission of communication signals without interference. However, the present invention is not limited to this, and the instructions may also include other commands (such as the direct connection switching command described later), and the status information may also include other information.
[0052] When the temperature sensing cable 200 is extended through the repeater box 100, due to its series structure, if the repeater box 100 fails, and before maintenance personnel repair or replace the terminal box 320, if the temperature sensing cable 200 connected downstream of the faulty repeater box 100 transmits fire alarm information, the faulty repeater box 100 will be unable to relay the fire alarm signal, resulting in a missed fire alarm report. Therefore, in the preferred embodiment of this invention, the repeater box 100 can also directly connect the upstream and downstream temperature sensing cables 200 when it fails, enabling direct communication between them and ensuring that fire alarm information can bypass the faulty terminal box 320 and be transmitted directly through the temperature sensing cable 200.
[0053] As can be seen from the above, the relay box provided in this embodiment of the invention is connected to the upstream temperature sensing cable through the first interface circuit and to the downstream temperature sensing cable through the second interface circuit. The control module processes and forwards the signals of the upstream and downstream temperature sensing cables to ensure the stability of communication between the temperature sensing cables and to realize the cascading expansion of the temperature sensing cables.
[0054] In one possible implementation, see Figure 2 The relay box 100 also includes an execution circuit 160, which is connected to the first interface 110, the first interface circuit 120, the second interface 130, the second interface circuit 140 and the control module 150 respectively.
[0055] The control module 150 is also used to switch between a direct connection mode and a relay connection mode via the execution circuit 160; wherein, in the relay connection mode, the upstream temperature sensing cable and the downstream temperature sensing cable communicate through the first interface circuit 120 and the second interface circuit 140, and in the direct connection mode, the first interface 110 and the second interface 130 are directly connected.
[0056] In this embodiment, the control module 150 is configured to: when the relay box 100 malfunctions, directly connect the upstream temperature sensing cable 200 and the downstream temperature sensing cable 200, enabling direct communication between them. This can be achieved by the control module 150 detecting whether the relay box 100 is faulty (e.g., a fault in the first interface circuit 120 and / or a fault in the second interface circuit 140), and directly connecting the upstream and downstream temperature sensing cables 200 when a fault is detected; alternatively, other devices in the temperature sensing cable device (fire detection system) (e.g., a signal processing unit) can detect whether the relay box 100 is faulty, and when a fault occurs, this device sends a command to the faulty relay box 100, prompting the control module 150 to directly connect the upstream and downstream temperature sensing cables 200.
[0057] To achieve switching between the two connection modes, such as Figure 2 As shown, the relay box 100 may further include an execution circuit 160, which is coupled to the first interface 110, the second interface 130, the control module 150, and the second interface circuit 140, respectively, and can switch the first interface 110 and the second interface 130 between the following two connections:
[0058] 1. The first interface 110 and the second interface 130 are directly connected (in this connection method, the upstream temperature sensing cable 200 and the downstream temperature sensing cable 200 are directly connected and communicate directly).
[0059] 2. The first interface 110 and the second interface 130 are connected through the first interface circuit 120 and the second interface circuit 140 (in this connection method, the upstream temperature sensing cable 200 and the downstream temperature sensing cable 200 communicate bidirectionally through the first interface circuit 120, the control module 150 and the second interface circuit 140).
[0060] Accordingly, the instructions include a direct connection switching command, which includes address information. When the address information of the direct connection switching command matches the address code of the repeater box 100, the execution circuit 160 switches the first interface 110 and the second interface 130 to a direct connection. When the address information of the direct connection switching command does not match the address code of the repeater box 100, the control module 150, through the execution circuit 160, connects the first interface 110 and the second interface 130 through the first interface circuit 120 and the second interface circuit 140.
[0061] In one possible implementation, such as Figure 3 As shown, the first interface 110 includes a first sub-interface 111 and a second sub-interface 112, and the second interface 130 includes a third sub-interface 131 and a fourth sub-interface 132.
[0062] The first sub-interface 111 is used to connect to the first bus of the upstream temperature sensing cable, the second sub-interface 112 is used to connect to the second bus of the upstream temperature sensing cable, the third sub-interface 131 is used to connect to the first bus of the downstream temperature sensing cable, and the fourth sub-interface 132 is used to connect to the second bus of the downstream temperature sensing cable.
[0063] The execution circuit 160 includes a counter 161 and a relay 162. The first input terminal of the counter 161 is connected to the first sub-interface 111, and the second input terminal is connected to the control module 150.
[0064] Counter 161 is used to increment the count of pulses sent by the first sub-interface 111 and decrement the count of reset signals sent by the control module 150. When the count value reaches the preset value, a control signal for indicating the switching mode is output through the output terminal.
[0065] Relay 162 is used to switch between a first state and a second state based on a control signal; wherein, in the first state, relay 162 connects the first interface circuit 120 and the second interface circuit 140, and in the second state, it connects the third sub-interface 131 and the first sub-interface 111.
[0066] In this embodiment, as Figure 3 As shown, the relay box 100 is connected between two temperature sensing cables 200. The temperature sensing cable 200 may include a first bus 210, a second bus 220, and a temperature sensing unit 230. The first bus 210 and the second bus 220 extend approximately parallel to each other. Multiple temperature sensing units 230 may be configured, and the multiple temperature sensing units 230 are equally spaced along the length of the temperature sensing cable 200. Each temperature sensing unit 230 is connected to the first bus 210 and the second bus 220. The first bus 210 and the second bus 220 provide power to the temperature sensing unit 230 and serve as carriers for signal transmission.
[0067] like Figure 3 As shown, the first interface 110 may include a first sub-interface 111 and a second sub-interface 112, wherein the first sub-interface 111 is adapted to connect to the first bus 210, and the second sub-interface 112 is adapted to connect to the second bus 220, and the first interface circuit 120 is connected between the first sub-interface 111 and the second sub-interface 112. The second interface 130 may include a third sub-interface 131 and a fourth sub-interface 132, wherein the third sub-interface 131 is adapted to connect to the first bus 210, and the fourth sub-interface 132 is adapted to connect to the second bus 220, and the fourth sub-interface 132 is connected to the second sub-interface 112 and the second interface circuit 140, respectively. For example, in... Figure 3 In the process, the first sub-interface 111 is connected to the first bus 210 of the upstream temperature sensing cable 200, the second sub-interface 112 is connected to the second bus 220 of the downstream temperature sensing cable 200, the third sub-interface 131 is connected to the first bus 210 of the downstream temperature sensing cable 200, and the fourth sub-interface 132 is connected to the second bus 220 of the downstream temperature sensing cable 200.
[0068] like Figure 3As shown, the execution circuit 160 includes a counter 161 and a relay 162. The counter 161 is coupled to the first sub-interface 111 and the control module 150, respectively. Specifically, the counter 161 has a first input terminal, a second input terminal, and an output terminal. The first input terminal of the counter 161 is connected to the first sub-interface 111, and the counter 161 can receive a direct connection switching command through the first input terminal. The direct connection switching command also includes a counting pulse. The second input terminal of the counter 161 is connected to the control module 150. The control module 150 is configured to output a reset signal when the address information of the direct connection switching command does not match the address code of the relay box 100. The reset signal may include a reset pulse, and the counter 161 can receive the reset signal through the second input terminal. The counter 161 can be configured to increment the count based on the counting pulse, decrement the count based on the reset signal (reset pulse), and output a control signal through the output terminal when the count value reaches a preset threshold. Specifically, when the address information of the direct connection switching command matches the address code of the relay box 100, the control module 150 will not input a reset signal. If the control module 150 malfunctions, the control module 150 will not output a reset signal.
[0069] Preferably, the control module 150 can be configured to output a reset signal when it receives other instructions (such as broadcast configuration commands, single configuration commands, first query commands, etc.) to prevent the counter 161 from malfunctioning.
[0070] like Figure 3 As shown, relay 162 is coupled to the output terminals of the third sub-interface 131, the second interface circuit 140, the first sub-interface 111, and the counter 161, respectively. Relay 162 is configured to switch from a first position to a second position according to a control signal. In the first position, relay 162 connects the third sub-interface 131 and the first sub-interface 111 through the first interface circuit 120 and the second interface circuit 140, enabling bidirectional communication between the upstream and downstream temperature sensing cables 200 through the first interface circuit 120, the control module 150, and the second interface circuit 140. In the second position, relay 162 directly connects the third sub-interface 131 and the first sub-interface 111, directly connects the first interface 110 and the second interface 130, and also directly connects the upstream and downstream temperature sensing cables 200.
[0071] Preferred, such as Figure 3 As shown, a first capacitor 1611 can be connected between the counter 161 and the control module 150. The first capacitor 1611 can block DC to prevent the output signal of the control module 150 from affecting the counting of the counter 161 after a failure.
[0072] In one possible implementation, the execution circuit 160 further includes a transistor 165, and the relay 162 includes a coil 163 and a single-pole double-throw switch 164; the first end of the coil 163 is connected to the first sub-interface 111, the base of the transistor 165 is connected to the output of the counter 161, the collector is connected to the second end of the coil 163, and the emitter is grounded;
[0073] The first contact of the single-pole double-throw switch 164 is connected to the third sub-interface 131, the second contact is connected to the first sub-interface 111, and the third contact is connected to the second interface circuit 140.
[0074] In the first state, the first contact and the third contact are connected, so that the third sub-interface 131 and the first sub-interface 111 are connected through the first interface circuit 120 and the second interface circuit 140.
[0075] When the relay is in the second state, the first contact and the second contact are connected, so that the third sub-interface 131 is directly connected to the first sub-interface 111;
[0076] The first and third contacts are normally connected. When the base of transistor 165 receives a control signal, the collector and emitter are connected and power is supplied to coil 163, driving the first and second contacts to connect.
[0077] In this embodiment, as Figure 3As shown, the execution circuit 160 also includes a transistor 165, and the relay 162 includes a coil 163 and a single-pole double-throw switch 164. The coil 163 includes a first port 1631 and a second port 1632. The first port 1631 is connected to the first sub-interface 111. The base of the transistor 165 is connected to the output terminal of the counter 161, the collector of the transistor 165 is connected to the second port 1632 of the coil 163, and the emitter of the transistor 165 is grounded. The single-pole double-throw switch 164 includes a first contact 1641, a second contact 1642, and a third contact 1643. The first contact 1641 is connected to the third sub-interface 131, the second contact 1642 is connected to the first sub-interface 111, and the third contact 1643 is connected to the second interface circuit 140. When the single-pole double-throw switch 164 is in the first position, the first contact 1641 and the third contact 1643 are connected, so that the third sub-interface 131 and the first sub-interface 111 are connected through the first interface circuit 120 and the second interface circuit 140. When the single-pole double-throw switch 164 is in the second position, the first contact 1641 and the second contact 1642 are connected, so that the third sub-interface 131 and the first sub-interface 111 are directly connected (the upstream temperature sensing cable 200 and the downstream temperature sensing cable 200 are directly connected). In this configuration, the single-pole double-throw switch 164 is normally in the first position. The coil 163 draws power from the first sub-interface 111 (first bus 210). When the output of the counter 161 receives a control signal, the collector and emitter of the transistor 165 are connected, and the coil 163 drives the single-pole double-throw switch 164 to switch from the first position to the second position. In other embodiments, the coil 163 can also draw power from other devices in the relay box 100, such as from the low-dropout linear regulator (LDO) inside the control unit (MCU), or from the power module 170 described later.
[0078] According to a preferred embodiment of the present invention, such as Figure 3 As shown, the execution circuit 160 also includes a second capacitor 166 and a diode 167. One end of the second capacitor 166 is connected to the first port 1631 of the coil 163, and the other end is grounded. The input terminal of the diode 167 is connected to the first sub-interface 111, and the output terminal of the diode 167 is connected to the first port 1631 of the coil 163. The coil 163 draws power from the first bus 210, which serves as the carrier for power supply and signal transmission. Voltage fluctuations exist on the first bus 210. The second capacitor 166 compensates for these voltage fluctuations, stabilizing the voltage at the first port 1631 of the coil 163. The diode 167 prevents the second capacitor 166 from discharging into the first sub-interface 111.
[0079] In one possible implementation, a power module 170 is also included, which is connected to the second interface circuit 140 for supplying power to the downstream temperature sensing cable.
[0080] In this embodiment, as Figure 1 As shown, the relay box 100 also includes a power module 170, which is electrically connected to the second interface circuit 140. The power module 170, in conjunction with the second interface circuit 140, supplies power to the downstream temperature sensing cable 200, thus preventing insufficient voltage on the temperature sensing cable 200. Figure 4 A schematic diagram of a power module 170 according to an embodiment of the present invention is shown, as follows. Figure 4 As shown, the power module 170 may include an AC / DC module 171 and a backup battery 172. The power module 170 can be connected to an external power source (e.g., a 220VAC power supply). The AC / DC module 171 can convert the AC power provided by the external power source into DC power suitable for the temperature sensing cable 200. The backup battery 172 can supply power to the temperature sensing cable 200 in the event of an external power failure. In other embodiments, the power module 170 may also be a power supply terminal for connecting to an external fire-fighting wall-mounted power supply.
[0081] In one possible implementation, a terminal box circuit 180 is also included, which is connected to the first interface 110 for matching the upstream temperature sensing cable.
[0082] In this embodiment, as Figure 1 As shown, the relay box 100 also includes a terminal box circuit 180, which is connected to the first interface 110. The terminal box circuit 180 is adapted to match the last temperature sensing unit 230 of the upstream temperature sensing cable 200 to improve the fire alarm and fault detection functions of the temperature sensing unit 230.
[0083] In one possible implementation, a cache module 190 is also included, which is connected to the control module 150.
[0084] The control module 150 is used to store the cable information in the cache module 190 when it receives cable information from any temperature sensing cable and the channel of the other temperature sensing cable is busy, and to upload the cable information to the other temperature sensing cable after the channel of the other temperature sensing cable is idle.
[0085] In this embodiment, the relay box 100 further includes a cache module 190, which is coupled to the control module 150. The cache module 190 is used to cache cable information. When the control unit receives cable information through the second interface circuit 140, if the upstream temperature sensing cable 200 is communicating (channel busy), the control unit stores the cable information in the cache module 190. After the upstream temperature sensing cable 200 channel becomes idle, the cable information is uploaded through the first interface circuit 120. If the upstream temperature sensing cable 200 channel is idle, the cable information is directly uploaded through the first interface circuit 120.
[0086] Figure 5 This is a flowchart illustrating the implementation of a relay control method provided in an embodiment of the present invention. (See attached flowchart.) Figure 5 Relay control methods include:
[0087] Step 301: Obtain cable information or instructions for any temperature sensing cable through the first interface or the second interface.
[0088] Step 302: Send cable information or instructions to the corresponding temperature sensing cable through the corresponding interface.
[0089] In one possible implementation, the communication link includes multiple relay boxes, each relay box being alternately connected to a temperature sensing cable, and each relay box corresponding to a different address code;
[0090] The method also includes:
[0091] Retrieve commands; commands include single configuration commands, broadcast configuration commands, and query commands;
[0092] If the instruction is a single configuration command, and the address information in the single configuration command matches the address code of the current relay box, the corresponding configuration command is sent through the second interface circuit to configure the downstream temperature sensing cable; if the address information in the single configuration command does not match the address code of the current relay box, the single configuration command is sent through the second interface circuit.
[0093] If the instruction is a broadcast configuration command, then the broadcast configuration command is sent through the second interface circuit according to the broadcast configuration command;
[0094] If the instruction is a query command, when the address information in the first query command matches the address code of the relay box, the second query command is sent through the second interface circuit so that the downstream temperature sensing cable responds to the second query command to query its own cable information and upload it; when the address information in the first query command does not match the address code of the relay box, the first query command is sent through the second interface circuit.
[0095] Figure 6 This is a schematic diagram of the structure of a fire detection system provided in an embodiment of the present invention. See also... Figure 6 The fire detection system 300 includes a signal processing unit 310, a first temperature sensing cable 200, a relay box 100, and a second temperature sensing cable 200 connected in sequence.
[0096] like Figure 6 As shown, multiple temperature-sensing cables 200 can be sequentially arranged, and the specific number of temperature-sensing cables 200 can be determined according to the laying requirements. One or more repeater boxes 100 are provided, and the repeater boxes 100 are connected between adjacent temperature-sensing cables 200. The signal processing unit 310 is connected to the first temperature-sensing cable 200 (e.g., Figure 4 The terminal box 320 is connected to the front end of the first temperature sensing cable 200 (counting from left to right), and to the last temperature sensing cable 200 (e.g., the end of the first temperature sensing cable 200). Figure 4 The end of the last temperature sensing cable (200) from left to right.
[0097] As can be seen from the above, compared with the prior art, the embodiments of the present invention provide a relay box, a relay method, and a fire detection system. The relay box can cascade and extend the temperature sensing cables, and the communication signals (such as commands and status information) are not easily interfered with. In the event of a fault, the relay box can directly connect the upstream temperature sensing cable to the downstream temperature sensing cable, enabling direct communication between the upstream and downstream temperature sensing cables, ensuring that fire alarm information can bypass the faulty terminal box and be transmitted directly through the temperature sensing cable. The relay box can supply power to the downstream temperature sensing cable, avoiding insufficient voltage on the temperature sensing cable.
[0098] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A relay box, characterized in that, It includes a first interface, a first interface circuit, a second interface, a second interface circuit, and a control module; both the first interface circuit and the second interface circuit are connected to the control module. The first interface circuit is used to connect to the upstream temperature sensing cable through the first interface; The second interface circuit is used to connect to the downstream temperature sensing cable through the second interface; The control module is used to communicate with the upstream temperature sensing cable through the first interface circuit and with the downstream temperature sensing cable through the second interface circuit, so as to realize communication between the upstream and downstream temperature sensing cables. It also includes an execution circuit, which is connected to the first interface, the second interface, the first interface circuit, the second interface circuit, and the control module, respectively. The control module is also used to switch between a direct connection mode and a relay connection mode through the execution circuit; wherein, the relay connection mode enables communication between the upstream and downstream temperature sensing cables through the first interface circuit and the second interface circuit, and the direct connection mode is a direct connection between the first interface and the second interface; The first interface includes a first sub-interface and a second sub-interface, and the second interface includes a third sub-interface and a fourth sub-interface; The first sub-interface is used to connect to the first bus of the upstream temperature sensing cable, the second sub-interface is used to connect to the second bus of the upstream temperature sensing cable, the third sub-interface is used to connect to the first bus of the downstream temperature sensing cable, and the fourth sub-interface is used to connect to the second bus of the downstream temperature sensing cable. The execution circuit includes a counter and a relay. The first input terminal of the counter is connected to the first sub-interface, and the second input terminal is connected to the control module. The counter is used to increment the count of pulses sent by the first sub-interface and decrement the count of reset signals sent by the control module. When the count value reaches a preset value, a control signal for indicating mode switching is output through the output terminal. The relay is used to switch between a first state and a second state based on the control signal; wherein, in the first state, the relay connects the first interface circuit and the second interface circuit, and in the second state, it connects the third sub-interface and the first sub-interface.
2. The relay box as described in claim 1, characterized in that, The execution circuit also includes a transistor, and the relay includes a coil and a single-pole double-throw switch; the first end of the coil is connected to the first sub-interface, the base of the transistor is connected to the output terminal of the counter, the collector is connected to the second end of the coil, and the emitter is grounded; The first contact of the single-pole double-throw switch is connected to the third sub-interface, the second contact is connected to the first sub-interface, and the third contact is connected to the second interface circuit. When the relay is in the first state, the first contact is connected to the third contact, so that the third sub-interface is connected to the first sub-interface through the first interface circuit and the second interface circuit; When the relay is in the second state, the first contact is connected to the second contact, so that the third sub-interface is directly connected to the first sub-interface; The first contact and the third contact are normally connected. When the base of the transistor receives the control signal, the collector and the emitter are connected and power is supplied to the coil, driving the first contact and the second contact to connect.
3. The relay box as described in claim 1, characterized in that, It also includes a power module, which is connected to the second interface circuit and is used to supply power to the downstream temperature sensing cable.
4. The relay box as described in claim 1, characterized in that, It also includes a terminal box circuit, which is connected to the first interface and is used to match the upstream temperature sensing cable.
5. The relay box as described in claim 1, characterized in that, It also includes a caching module, which is connected to the control module; The control module is used to store the cable information in the cache module when it receives cable information from any temperature sensing cable and the channel of another temperature sensing cable is busy, and to upload the cable information to the other temperature sensing cable after the channel of the other temperature sensing cable is idle.
6. A relay control method applied to the relay box according to any one of claims 1 to 5, characterized in that, include: Obtain cable information or instructions for any temperature sensing cable through the first or second interface; The cable information or the instruction is sent to the corresponding temperature sensing cable through the corresponding interface.
7. The relay control method as described in claim 6, characterized in that, The communication link includes multiple relay boxes, each of which is alternately connected to a temperature sensing cable, and each relay box corresponds to a different address code; The method further includes: Obtain instructions; these instructions include single configuration commands, broadcast configuration commands, and query commands. If the instruction is a single configuration command, when the address information in the single configuration command matches the address code of the current relay box, the corresponding configuration command is sent through the second interface circuit to configure the downstream temperature sensing cable; when the address information in the single configuration command does not match the address code of the current relay box, the single configuration command is sent through the second interface circuit. If the instruction is a broadcast configuration command, then the broadcast configuration command is sent through the second interface circuit according to the broadcast configuration command; If the instruction is a query command, when the address information in the first query command matches the address code of the relay box, a second query command is issued through the second interface circuit so that the downstream temperature sensing cable responds to the second query command to query its own cable information and upload it; when the address information in the first query command does not match the address code of the relay box, the first query command is issued through the second interface circuit.
8. A fire detection system, characterized in that, It includes a signal processing unit, a first temperature sensing cable, a relay box as described in any one of claims 1 to 5, and a second temperature sensing cable connected in sequence.
Citation Information
Patent Citations
Terminal box, connection control method and fire alarm system
CN117542160A