Multifunctional gateway with expansion IO and energy storage fire control system
By using a multi-functional gateway with extended I/O to process composite probe data in parallel, the problem of excessively long polling time in traditional energy storage fire control systems is solved, achieving efficient data acquisition and rapid response, and improving the system's response speed and reliability.
Patent Information
- Application Number
- CN202520342575.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2026-01-09
- Estimated Expiration
- 2035-02-28
AI Technical Summary
In traditional energy storage fire control systems, the polling time for data acquisition from composite probes is too long, which leads to a decrease in response speed and affects the timeliness of fire suppression response and system reliability.
Employing a multi-functional gateway with extended I/O, and utilizing hardware and software isolation technology, composite probes are grouped and processed in parallel. Combined with an MCU module, a DI analog input module, a DO analog output module, a CAN communication module, and a 485 communication module, efficient data acquisition and rapid response are achieved.
It shortens the polling cycle, improves the system's response speed and real-time performance, and enhances the system's security and reliability, making it suitable for efficient and precise fire suppression control and emergency alarm handling.
Smart Images

Figure CN223786079U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of energy storage fire protection communication technology, and in particular to a multi-functional gateway with extended I / O and an energy storage fire protection control system. Background Technology
[0002] In the field of energy storage fire suppression controllers, the controller communicates with external composite probes in real time via CAN (Controller Area Network) to obtain information such as ambient temperature, smoke, and concentrations of special gases. The controller processes this data rapidly and responds quickly to different environmental changes, ensuring timely and accurate fire suppression control. Due to the emergency nature of fire suppression systems, the speed of communication is crucial in this application; any communication delay can lead to a lag in fire suppression measures, thus affecting the fire suppression effect or system reliability. Therefore, CAN communication not only requires stability and reliability but also a high data transmission rate to ensure that the fire suppression control system can respond quickly at critical moments, ensuring the safety and effectiveness of the system.
[0003] Currently, fire suppression controllers for energy storage fire protection systems generally connect directly to composite detectors, using a CAN bus to poll for environmental data collected by each detector. Each composite detector typically monitors multiple parameters, such as temperature, smoke concentration, and concentration of specific gases, and the number of composite detectors can be quite large. Assuming a system has 96 external composite detectors, the controller needs to poll each detector via the CAN bus to acquire data. If the polling period for each composite detector is 50ms, the system will need 4.8 seconds to acquire data from all the detectors. For fire control systems in emergency situations, an excessively long polling period will significantly reduce system response speed, affecting the timeliness of fire suppression response. In this case, excessively long polling times may delay fire suppression efforts, thus affecting the overall safety and reliability of the system. Therefore, to meet the stringent real-time requirements of fire control systems, shortening polling time, improving data transmission efficiency, and reducing latency have become key optimization considerations in the design.
[0004] Therefore, there is an urgent need for an efficient and real-time method for acquiring and communicating data from composite probes. This method should overcome the shortcomings of current polling methods, such as excessively long response times and low data transmission efficiency when processing a large number of composite probes. This would improve the rapid response capability and reliability of energy storage fire control systems in emergency situations. This will ensure that the fire protection system can acquire accurate environmental data in a timely manner, enabling a rapid response and effectively guaranteeing system safety and fire suppression effectiveness. Utility Model Content
[0005] The purpose of this invention is to provide a multi-functional gateway with extended I / O (Input / Output) and an energy storage fire protection control system, overcoming the problems of communication delay, low data transmission efficiency, and slow response in traditional polling methods, thereby improving the communication efficiency, real-time performance, and reliability of the energy storage fire protection system. Through dual hardware and software isolation, more efficient management and control of composite detectors is achieved, ensuring that the fire protection system can respond quickly and execute fire extinguishing measures in emergencies, thus enhancing the system's safety and efficiency.
[0006] To address the aforementioned technical problems, this utility model provides a multi-functional gateway with extended I / O. The multi-functional gateway includes an MCU module, a 4-channel DI analog input module, a DO analog output module, a 2-channel CAN communication module, and a 1-channel RS-485 communication module.
[0007] The MCU module is used to receive signals from the DI analog input module, process and analyze the signals, generate control commands according to a preset program and send them to the DO analog output module; it is also used to parse data received from the CAN communication module or the 485 communication module and send the processed data to the corresponding device according to a preset program.
[0008] The 485 communication module is used for serial communication with external devices and to send the received data to the MCU module;
[0009] The CAN communication module is connected to the main controller on one side and to up to 32 composite probes on the other side. After receiving the instruction from the MCU module, it collects the data from the composite probes in sequence and then sends the collected data to the MCU module.
[0010] The four analog input modules are connected to the first temperature sensor, the second temperature sensor, the first smoke sensor, and the second smoke sensor, respectively. After receiving the instruction from the MCU module, they acquire the analog signals from the first temperature sensor, the second temperature sensor, the first smoke sensor, and the second smoke sensor, and transmit them to the MCU module after ADC conversion.
[0011] The DO analog output module is connected to the cluster-level solenoid valve and is used to open the cluster-level solenoid valve after receiving the control command from the MCU module.
[0012] Preferably, the hardware circuit of the CAN communication module includes:
[0013] The CAN signal is connected to the CAN transceiver U2 via digital isolator U1. The differential signals CAN1_RXD and CAN1_TXD of the CAN transceiver U2 after being connected to the digital isolator U1 are connected to the CAN controller inside the MCU module. The differential signal on the right side of the CAN transceiver U2 is connected to the external interface via common-mode inductor L1 and resistors R1 and R3. Bidirectional transient diodes D1, D2, and D3 are connected in series between the differential signals and between the differential signals and the reference ground.
[0014] Preferably, the circuit of the DI analog input module includes:
[0015] When the input terminal of DI1 receives a low-level signal, the optocoupler U7 is grounded and connected, forming a loop. The phototransistor inside the optocoupler U7 is also turned on, and the input detection signal DI1_A is pulled to a low level and transmitted to the MCU module.
[0016] When the DI1 input is high, the optocoupler U7 is not conducting, the circuit is broken, and the resistor R18 pulls the DI1_A signal to high level and transmits it to the MCU module.
[0017] The self-test signal DI1_Cheak is connected to the IO output pin of the MCU module. When DI1_Cheak is high, optocoupler U10 is turned on, DI1 is pulled to low level, optocoupler U7 is turned on, and signal DI1_A is low level, completing the DI input self-test.
[0018] Preferably, the circuit of the DO analog output module includes:
[0019] The MCU module turns on the optocoupler U12 via the control signal DO1_B. This forms a circuit with the phototransistor, turning on transistor Q3 and energizing the relay P1 coil. The relay P1 coil is connected in parallel with the freewheeling diode D9. A resistor R38 and a capacitor C30 are connected in series between the normally open contact DO1_ON and the common terminal DO1_COM on the relay P1 contact side, and then connected in parallel with the varistor RY5. A resistor R41 and a capacitor C32 are connected in series between the normally closed contact DO1_OFF and the common terminal DO1_COM, and then connected in parallel with RY7.
[0020] When the relay P1 coil is energized, the signal DO1_ON is connected to DO1_COM, the optocoupler U7 forms a path, its phototransistor is turned on, the DO1_Cheak signal is low and transmitted to the MCU module, and the DO output self-test is completed.
[0021] Preferably, the circuit of the 485 communication module includes:
[0022] After the 485 signal is electrically isolated by the digital isolator U24, the 485 transceiver U25 processes the transmission and reception of the signal. Bidirectional TVS diodes D13 and D14 are connected between the signal line and ground of the 485 transceiver U25.
[0023] Preferably, the multi-functional gateway further includes,
[0024] The SWD debug interface module is used for debugging and program downloading, providing high-speed, low-pin-count debugging support.
[0025] An energy storage fire protection control system includes a main controller, wherein the main controller is connected to a plurality of multi-functional gateways with extended I / O as described in any one of claims 1-6, and each multi-functional gateway is connected to no more than 32 composite probes.
[0026] In summary, this invention provides a multi-functional gateway with extended I / O, an energy storage fire control system, and a method for a high-efficiency energy storage fire control network. Applied to energy storage fire extinguishing control systems, it solves the problems of communication delay and low data transmission efficiency inherent in traditional polling methods. Through hardware electrical isolation and software CAN message isolation, the extended I / O can independently and quickly process data from each composite probe, improving the system's response speed and real-time performance. This method features efficient data acquisition and rapid response, enabling real-time determination of composite probe status in the presence of multiple probes. Upon alarm occurrence, it quickly forwards data to the central controller with the highest priority, effectively shortening the polling cycle, reducing system response time, and improving the reliability and safety of the energy storage fire control system. It is particularly suitable for efficient and precise fire extinguishing control and emergency alarm handling. Attached Figure Description
[0027] Figure 1 This is a schematic diagram of a traditional energy storage fire control system;
[0028] Figure 2 This is a schematic diagram of the energy storage fire protection control system according to an embodiment of the present utility model;
[0029] Figure 3 This is a schematic diagram of a multi-functional gateway with extended I / O according to an embodiment of the present invention;
[0030] Figure 4 This is a circuit diagram of the DI analog input module according to an embodiment of the present invention;
[0031] Figure 5 This is a circuit diagram of the DO analog input module according to an embodiment of the present invention;
[0032] Figure 6 This is a CAN communication hardware circuit diagram of an embodiment of this utility model;
[0033] Figure 7 This is a schematic diagram of the 485 communication hardware circuit according to an embodiment of the present invention. Detailed Implementation
[0034] To make the objectives, technical solutions, and advantages of this utility model clearer, the embodiments of this utility model will be described in detail below with reference to the accompanying drawings. It should be noted that, unless otherwise specified, the embodiments and features described in this application can be arbitrarily combined with each other. To better understand this utility model, the technical solutions in the embodiments of this utility model will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this utility model, and not all of them. Other embodiments obtained by those skilled in the art based on the embodiments of this utility model without creative effort are all within the scope of protection of this utility model.
[0035] Figure 1 This is a schematic diagram of a traditional energy storage fire control system, such as... Figure 1 As shown, current fire suppression controllers for energy storage systems generally connect directly to composite probes, using a CAN bus to poll for environmental data collected by each probe. Each composite probe typically monitors multiple parameters, such as temperature, smoke concentration, and gas concentration, and the number of composite probes can be quite large. Assuming an energy storage fire suppression control system has 96 external composite probes, and the controller needs to poll each probe via the CAN bus to acquire data, if the polling period for each probe is 50 milliseconds, the system would need 4.8 seconds to acquire data from all the probes. For fire suppression control systems in emergency situations, an excessively long polling period significantly reduces system response speed, affecting the timeliness of fire suppression response, which contradicts the system's high requirement for rapid response.
[0036] Figure 2 This is a schematic diagram of the energy storage fire protection control system according to an embodiment of the present invention, as shown below. Figure 2 As shown, the main controller in this embodiment of the energy storage fire protection control system is connected to three multi-functional gateways with extended I / O, such as extended I / O multi-functional gateway #1, extended I / O multi-functional gateway #2, and extended I / O multi-functional gateway #3. In practical applications, the number of multi-functional gateways with extended I / O connected to the main controller can be determined according to the actual situation; this is just an example.
[0037] Assuming the 96 composite probes in the system are divided into 3 groups of 32 probes each, and the polling period for each probe is 50ms, then the polling time for each group is 1.6 seconds. This parallel processing method for grouped composite probes shortens the polling period and maximizes response speed. This extended I / O multi-functional gateway supports caching, capable of storing 33 frames of data from the downstream composite probes and exchanging data with the main controller via an optimized communication protocol.
[0038] Each composite probe's data frame consists of 8 bytes: the first byte indicates the self-test status and warning level of sensors such as temperature, special gases, and smoke within the composite probe; the second byte indicates the alarm status of these sensors. The remaining 6 bytes transmit various data collected in real time by the composite probe (such as temperature and special gas concentration). In addition, the extended I / O also generates a frame indicating the online or offline status of the composite probe. Each data frame includes an arbitration segment, a control segment, a CRC (Cyclic Redundancy Check) segment, and a frame interval, totaling 128 bits. At a baud rate of 250kbps, the polling time for each extended I / O's 33 frames is only 1.617 seconds, significantly improving communication speed and efficiency.
[0039] The energy storage fire protection control system in this embodiment differs from traditional controller-connected composite probe methods. It employs multi-functional extended I / O to group composite probes, with each extended I / O polling only the composite probe data within its own area. Different composite probe groups poll in parallel. After buffering the composite probe data for its area, the extended I / O interacts with the main controller via the CAN bus, significantly reducing the time required for each poll by the main controller. As the number of composite probes increases, the performance advantages of the extended I / O become more pronounced, effectively supporting large-scale composite probe networks and ensuring the timeliness and accuracy of system response.
[0040] Real-time forwarding of composite probe status: Once a composite probe in a certain area detects an alarm, the alarm information will be forwarded to the upper-layer extended I / O with the highest priority, and finally passed to the main controller. This mechanism enables alarm information to be quickly transmitted to the main controller, avoiding the delay of traditional polling methods and improving the system's response speed.
[0041] Figure 3 This is a schematic diagram of a multi-functional gateway with extended I / O according to an embodiment of the present invention, as shown below. Figure 3As shown, a multi-functional gateway with extended I / O in this embodiment includes: an MCU module, 4-channel DI (Digital Input) analog input modules, 4-channel DO (Digital Output) analog output modules, 2-channel CAN (Controller Area Network) communication modules, 1-channel RS-485 communication module, and 1-channel SWD debugging interface; wherein,
[0042] The MCU (Microcontroller Unit) module is the core control unit of the multi-functional gateway, responsible for coordinating and managing the operation of various modules. Specifically, the main functions of the MCU module include:
[0043] A. Data Processing and Control: The MCU module is responsible for receiving signals from the 4-channel DI analog input module and processing and analyzing these signals. Based on preset logic or algorithms, the MCU module generates corresponding control signals and outputs them through the 4-channel DO analog output module to control external devices.
[0044] B. Communication Management: The MCU module exchanges data with other devices or systems through two CAN communication modules and one 485 communication module. It is responsible for parsing the data received from the CAN or 485 communication modules and sending the processed data to other modules or external devices as needed.
[0045] C. Debugging and Maintenance: The MCU module connects to debugging tools via a single SWD (Serial Wire Debug) interface module, supporting firmware debugging, updates, and maintenance. Developers can program, debug, and troubleshoot the MCU module through the SWD interface module.
[0046] D. System Coordination: As the core of the entire gateway, the MCU module is responsible for coordinating the work of various modules to ensure stable system operation. It can also dynamically adjust the system's working status or parameters based on external input signals or communication data.
[0047] The 485 communication module is used for serial communication with external devices (such as personal computers, PCs), configured in full-duplex mode, and supports high-speed data transmission.
[0048] The CAN communication module, configured in standard mode, supports real-time data exchange with multiple devices. In this embodiment, one CAN communication module is connected to the main controller in the energy storage fire control system, and the other CAN communication module is connected to up to 32 composite probes.
[0049] The four-channel analog input module is used to acquire analog signals from external sensors, which are then converted by an ADC (Analog-to-Digital Converter) and transmitted to the MCU module.
[0050] In this embodiment, the four analog input modules (DI1-4) are respectively connected to non-coded typical temperature sensor 1, non-coded typical temperature sensor 2, non-coded typical smoke sensor 1, and non-coded typical smoke sensor 2. (Non-coded means that the sensor output signal is an analog signal, not a digital signal that has been encoded. Typical means that this type of sensor is common, standard, and representative.)
[0051] The 4-channel DO analog output module is used to provide analog control signals to external modules, and can precisely adjust the output range and signal changes.
[0052] In this embodiment, the two DO analog output modules (DO1-2) are connected to cluster-level solenoid valve 1 and cluster-level solenoid valve 2 respectively. If the composite probe connected to this gateway detects an alarm, the MCU module sends a command to the DO analog output module to control cluster-level solenoid valve 1 or cluster-level solenoid valve 2 to start water spraying, thereby achieving fire extinguishing linkage. The other two DO analog output modules (DO3-4) are redundant and reserved.
[0053] The SWD interface module is used for debugging and program downloading, providing high-speed, low-pin-count debugging support.
[0054] Each composite probe has four wires: two power lines powered by the main controller and two communication lines connected to the CAN communication module of the extended IO function gateway.
[0055] The 485 communication module, CAN communication module, 4-channel DI analog input module, 4-channel DO analog output module, and SWD interface module are all connected to the MCU module through PCB traces on the board. The program in the MCU module controls each module to complete its corresponding function.
[0056] Within one polling cycle, the DI analog input module transmits the signals collected in real time by the temperature and smoke sensors to the MCU module. Simultaneously, starting with composite probe #1, the MCU module sends query commands to it via the CAN communication module. Upon receiving the command, composite probe #1 transmits the various data collected by it to the MCU module via the CAN communication module. Each composite probe repeats the above operation sequentially. One polling cycle ends when composite probe #32 completes this action.
[0057] Figure 4The circuit diagram of the DI analog input module according to an embodiment of this utility model is as follows: Figure 4 As shown, the circuit of the DI analog input module includes: transistor output optocouplers U7 and U10, Zener diodes ZD2 and ZD26, resistors R17, R18, R19, R30, and capacitor C17.
[0058] When the DI1 input receives a low-level signal, optocoupler U7 is grounded and conducts, forming a loop. The phototransistor inside optocoupler U7 also conducts, pulling the input detection signal DI1_A low and transmitting it to the MCU. When the DI1 input is high, optocoupler U7 is not conducting, the loop is broken, and resistor R18 pulls the DI1_A signal high and transmits it to the MCU. The self-test signal DI1_Cheak is connected to the MCU's IO output pin. When DI1_Cheak is high, optocoupler U10 conducts, DI1 is pulled low, optocoupler U7 conducts, and signal DI1_A is low, completing the DI input self-test. Optocouplers U7 and U10 provide isolation in the circuit, preventing high voltage or noise from affecting the MCU's operation. Zener diodes ZD2 and ZD26 provide a stable power supply, ensuring circuit reliability. Resistors R30, R19, R17, and capacitor C17 are used for signal conditioning, filtering noise, and improving signal stability.
[0059] Figure 5 This is a circuit diagram of the DO analog input module according to an embodiment of the present invention, as shown below. Figure 5 As shown, the circuit of the DO analog output module in this embodiment includes: transistor output optocouplers U8 and U12, digital transistor Q3 and relay P1;
[0060] The MCU module turns on optocoupler U12 via control signal DO1_B. The phototransistor in optocoupler U12 then conducts, forming a circuit. Transistor Q3 then conducts, energizing the relay P1 coil to perform the corresponding control action. The relay P1 coil is connected in parallel with freewheeling diode D9. The diode quickly absorbs the reverse current generated when the relay coil is de-energized, preventing damage to the transistor from a sudden surge in collector voltage, thus providing protection. On the P1 contact side, the normally open contact DO1_ON and the common terminal DO1_COM are connected in series with resistor R38 and capacitor C30, which are then connected in parallel with varistor RY5. The normally closed contact DO1_OFF and the common terminal DO1_COM are connected with resistor R41 and capacitor C32. After being connected in series with RY7, an arc-extinguishing circuit consisting of resistors R38 and R41 and capacitors C30 and C32 in series is designed between the normally open contact DO1_ON and the common terminal DO1_COM on the P1 contact side, and between the normally closed contact DO1_OFF and the common terminal DO1_COM. This circuit works together with varistor RY5 and RY7 to effectively suppress the electric arc generated when the relay contacts switch, protecting the reliability of the circuit and extending its service life. When the relay P1 coil is energized, the signal DO1_ON will be connected to DO1_COM, and the optocoupler U7 will form a path. The phototransistor in U7 will be turned on, and the DO1_Cheak signal will be low and transmitted to the MCU to complete the output self-test of the DO analog output module.
[0061] Figure 6 This is a circuit diagram of the CAN communication module according to an embodiment of this utility model, as shown below. Figure 6 As shown, the hardware circuit of the CAN communication module in this embodiment includes: digital isolator U1, CAN transceiver U2, common mode inductor L1, resistors R1 and R3, termination matching resistor R2, and decoupling capacitors C1, C2, C3, and C172.
[0062] The CAN signal is connected to the CAN transceiver U2 via digital isolator U1 to ensure electrical isolation and prevent noise interference. The CAN transceiver U2 has the capability to autonomously process CAN frame transmission and reception. A high-speed, compact CAN isolation transceiver is selected for circuit design to optimize performance and space utilization. The differential signals CAN1_RXD and CAN1_TXD after the transceiver U2 connects to the digital isolator U1 are connected to the CAN controller inside the MCU to ensure data transmission stability and reliability. On the right side of the transceiver U2, the differential signals are connected to the external interface via common-mode inductor L1, resistors R1 and R3, effectively reducing electromagnetic interference and ensuring signal quality. Furthermore, bidirectional transient diodes D1, D2, and D3 are connected in series between the differential signals and between the differential signals and the reference ground to prevent electromagnetic interference from affecting the signals. The terminating resistor R2 at the two furthest CAN nodes can be enabled or disabled as needed to optimize the stability and communication quality of the CAN network. H2 is a connector terminal; connecting it with a shorting cap is equivalent to a short circuit, and not connecting it is equivalent to an open circuit.
[0063] The multi-functional gateway with extended I / O in this embodiment can act as an isolator and repeater for the CAN bus. It is responsible for isolating the electrical signals between the main controller and the composite probe, effectively avoiding electrical interference and ground loop problems. Software-wise, CAN message isolation is also guaranteed, ensuring more efficient and reliable data exchange between the main controller and the connected composite probe.
[0064] The main controller sends a write command. The multi-functional gateway with extended I / O connected to the main controller judges and processes the command, ensuring that the command is only transmitted to the relevant composite probe under the corresponding multi-functional gateway with extended I / O. In this process, the multi-functional gateway in this embodiment does not simply forward commands, but acts as a central hub for data filtering and processing, improving communication efficiency and reducing data conflicts and redundancy in the network. Unlike traditional transparent communication methods, this non-transparent communication mode is more intelligent and integrated in data processing.
[0065] Figure 7 This is a circuit diagram of the 485 communication module according to an embodiment of this utility model, as follows: Figure 7 As shown, the hardware circuit of the 485 communication module in this embodiment includes: digital isolator U24, 485 transceiver U25, bidirectional TVS (Transient Voltage Suppressor) diodes D13 and D14, optocoupler U26, decoupling capacitors C69, C70, and C71, resistors R57, R58, R60, R61, and R62, and terminating resistor R154;
[0066] The 485 signal is electrically isolated by digital isolator U24 to ensure signal stability and avoid noise interference; 485 transceiver U25 processes signal transmission and reception, ensuring data transmission reliability; bidirectional TVS diodes D13 and D14 are connected between the signal line of 485 transceiver U25 and ground to suppress voltage transients and protect the circuit from electromagnetic interference; terminating resistors R154 are designed at the two farthest 485 nodes to ensure the transmission stability of differential signals; by connecting or disconnecting H4 (H4 is a connector terminal; connecting it with a shorting cap is equivalent to a short circuit, and disconnecting it is equivalent to an open circuit), users can enable or disable terminating resistor R154 to adapt to different communication needs and network topologies.
[0067] This embodiment features a multi-functional gateway with extended I / O supporting RS-485 communication, enabling online application upgrades via this bidirectional communication interface. The program storage space is divided into three parts, with a boot flag facilitating switching between the user program and the bootloader. UDP (User Datagram Protocol) is used to transmit commands and data, defining detailed communication rules for connection, download, and export. This allows for simpler and more convenient program updates and maintenance via host computer software without entering or modifying the energy storage and fire protection installation environment.
[0068] In this embodiment, when the master controller sends a read command, the multi-functional gateway with extended I / O not only provides electrical isolation in hardware but also implements CAN message isolation at the software level. Each multi-functional gateway with extended I / O is only responsible for the data acquisition and processing of its connected composite probes, avoiding data interference between composite probes in different areas and improving the system's stability and anti-interference capability. Due to the data isolation and management between composite probes, and because the multi-functional gateway with extended I / O in this embodiment also integrates a 4-channel DI analog input module and a 4-channel DO analog output module with self-testing function, which can be connected to the cluster-level solenoid valves or temperature / smoke inputs under the composite probe area, the extended I / O can support the distributed deployment of composite probes in different levels of energy storage units, which is conducive to the classified management and efficient operation and maintenance of the system.
[0069] The multi-functional gateway with extended I / O in this embodiment can be composed of two boards, an upper board and a lower board. The upper board includes an MCU module, two CAN communication modules, one RS-485 communication module, and one SWD debugging interface module. The lower board includes four DI analog input modules and four DO analog output modules. In use, the two boards need to be connected via hardware pins and then encapsulated in a specially designed casing.
[0070] The efficient energy storage fire control network provided in this embodiment is configured with three multi-functional gateways with extended I / O, each with up to 32 composite detectors. Normally, each multi-functional gateway polls its 32 downstream composite detectors one by one every 100 milliseconds, caching the response data internally. When the upper-level energy storage fire controller queries composite detector information, the multi-functional gateway encapsulates and packages the cached data from the 32 composite detectors for a unified response, thereby effectively improving communication efficiency. Using the energy storage fire control network method of this embodiment, which also polls 96 composite detectors, each gateway simultaneously polls its own 32 downstream composite detectors, reducing the total polling cycle to 3.2 seconds. Compared to the traditional transparent transmission forwarding method, this reduces the polling cycle by 6.4 seconds, significantly improving communication efficiency.
[0071] When the energy storage fire protection main controller issues a command to read a single composite probe, the multi-functional gateway in this embodiment receives the read command and first determines whether the address of the target device accessed by the read command belongs to the address range of the lower 32 composite probes of the multi-functional gateway based on the command frame address information. If not, the multi-functional gateway filters the read command; if so, the multi-functional gateway forwards the read command.
[0072] When the energy storage fire protection main controller issues a command to write a single composite probe, the multi-functional gateway, upon receiving the command, first determines whether the address of the target device accessed by the command belongs to the address range of the 32 composite probes under the multi-functional gateway based on the command frame address information. If not, the multi-functional gateway filters the command; if so, the multi-functional gateway forwards the command.
[0073] The multi-functional gateway internally has two command queues with different priorities. The queue length is configurable based on the actual number of communication frames. Queue #0 has a high priority, and queue #1 has a low priority. The multi-functional gateway periodically polls the lower-level composite probes, and commands enter the low-priority queue. Read or write commands issued by the upper-level energy storage fire protection main controller are filtered, and if they need to be forwarded, they enter the high-priority queue. In this embodiment, when the multi-functional gateway sends commands to the lower-level composite probes, it first scans the high-priority queue. If the high-priority queue is not empty, it retrieves the command from the high-priority queue according to the first-in-first-out principle and sends it to the lower-level composite probe. If the high-priority queue is empty, it scans the low-priority queue. If the low-priority queue is not empty, it retrieves the command from the low-priority queue according to the first-in-first-out principle and sends it to the lower-level composite probe.
[0074] To prevent the high-priority queue from being constantly filled and causing low-priority query commands to be blocked and unable to be sent to the lower-level composite probes due to the high-speed and high-frequency transmission of read or write commands from the upper-level energy storage fire protection main controller that requires gateway forwarding in extreme cases, the multi-functional gateway is specially designed with a lifecycle mechanism for the low-priority queue. Each polling command that enters the low-priority queue starts its life countdown from the moment it enters the queue. When the life countdown corresponding to the polling command reaches 0, it will automatically be transferred from the low-priority queue to the high-priority queue, thus fundamentally avoiding the blocking of low-priority polling commands and preventing them from being sent.
[0075] This invention provides a method for a multi-functional gateway with extended I / O and a high-efficiency energy storage fire control network, applied to energy storage fire extinguishing control systems. It solves the problems of communication delay and low data transmission efficiency inherent in traditional polling methods. Through hardware electrical isolation and software CAN message isolation, the extended I / O can independently and quickly process data from each composite probe, improving the system's response speed and real-time performance. This method features efficient data acquisition and rapid response, enabling real-time determination of composite probe status in the presence of multiple probes and rapid forwarding of data to the central controller with the highest priority when an alarm occurs. It effectively shortens the polling cycle, reduces system response time, and improves the reliability and safety of the energy storage fire control system, making it particularly suitable for efficient and precise fire extinguishing control and emergency alarm handling.
[0076] Those skilled in the art will understand that all or part of the steps in the above methods can be implemented by a program instructing related hardware, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk. Optionally, all or part of the steps in the above embodiments can also be implemented using one or more integrated circuits. Accordingly, each module / unit in the above embodiments can be implemented in hardware or as a software functional module. This utility model is not limited to any particular combination of hardware and software.
[0077] The above are merely preferred embodiments of the present utility model. Of course, the present utility model may have other various embodiments. Without departing from the spirit and essence of the present utility model, those skilled in the art can make various corresponding changes and modifications based on the present utility model. However, these corresponding changes and modifications should all fall within the protection scope of the appended claims of the present utility model.
Claims
1. A multi-functional gateway with extended I / O, characterized in that, The multi-functional gateway includes an MCU module, a 4-channel DI analog input module, a 4-channel DO analog output module, a 2-channel CAN communication module, and a 1-channel RS-485 communication module. The MCU module is used to receive signals from the DI analog input module, process and analyze the signals, generate control commands according to a preset program and send them to the DO analog output module; it is also used to parse data received from the CAN communication module or the 485 communication module and send the processed data to the corresponding device according to a preset program. The 485 communication module is used for serial communication with external devices and to send the received data to the MCU module; The CAN communication module is connected to the main controller on one side and to up to 32 composite probes on the other side. After receiving the instruction from the MCU module, it collects the data from the composite probes in sequence and then sends the collected data to the MCU module. The four analog input modules are connected to the first temperature sensor, the second temperature sensor, the first smoke sensor, and the second smoke sensor, respectively. After receiving the instruction from the MCU module, they acquire the analog signals from the first temperature sensor, the second temperature sensor, the first smoke sensor, and the second smoke sensor, and transmit them to the MCU module after ADC conversion. Two of the aforementioned DO analog output modules are connected to the cluster-level solenoid valves respectively, and are used to open the cluster-level solenoid valves after receiving the control command from the MCU module. The other two DO analog output modules are reserved.
2. The multi-functional gateway as described in claim 1, characterized in that, The hardware circuit of the CAN communication module includes: The CAN signal is connected to the CAN transceiver U2 via digital isolator U1. The differential signals CAN1_RXD and CAN1_TXD of the CAN transceiver U2 after being connected to the digital isolator U1 are connected to the CAN controller inside the MCU module. The differential signal on the right side of the CAN transceiver U2 is connected to the external interface via common-mode inductor L1 and resistors R1 and R3. Bidirectional transient diodes D1, D2, and D3 are connected in series between the differential signals and between the differential signals and the reference ground.
3. The multi-functional gateway as described in claim 1, characterized in that, The circuit of the DI analog input module includes: When the input terminal of DI1 receives a low-level signal, the optocoupler U7 is grounded and connected, forming a loop. The phototransistor inside the optocoupler U7 is also turned on, and the input detection signal DI1_A is pulled to a low level and transmitted to the MCU module. When the DI1 input is high, the optocoupler U7 is not conducting, the circuit is broken, and the resistor R18 pulls the DI1_A signal to high level and transmits it to the MCU module. The self-test signal DI1_Cheak is connected to the IO output pin of the MCU module. When DI1_Cheak is high, optocoupler U10 is turned on, DI1 is pulled to low level, optocoupler U7 is turned on, and signal DI1_A is low level, completing the DI input self-test.
4. The multi-functional gateway as described in claim 1, characterized in that, The circuit of the DO analog output module includes: The MCU module turns on the optocoupler U12 via the control signal DO1_B. This forms a circuit with the phototransistor, turning on transistor Q3 and energizing the relay P1 coil. The relay P1 coil is connected in parallel with the freewheeling diode D9. A resistor R38 and a capacitor C30 are connected in series between the normally open contact DO1_ON and the common terminal DO1_COM on the relay P1 contact side, and then connected in parallel with the varistor RY5. A resistor R41 and a capacitor C32 are connected in series between the normally closed contact DO1_OFF and the common terminal DO1_COM, and then connected in parallel with RY7. When the relay P1 coil is energized, the signal DO1_ON is connected to DO1_COM, the optocoupler U7 forms a path, its phototransistor is turned on, the DO1_Cheak signal is low and transmitted to the MCU module, and the DO output self-test is completed.
5. The multi-functional gateway as described in claim 1, characterized in that, The circuitry of the 485 communication module includes: After the 485 signal is electrically isolated by the digital isolator U24, the 485 transceiver U25 processes the transmission and reception of the signal. Bidirectional TVS diodes D13 and D14 are connected between the signal line and ground of the 485 transceiver U25.
6. The multi-functional gateway as described in any one of claims 1-5, characterized in that, The multi-functional gateway also includes, The SWD debug interface module is used for debugging and program downloading, providing high-speed, low-pin-count debugging support.
7. An energy storage fire protection control system, characterized in that, It includes a main controller, which is connected to multiple multi-functional gateways with extended I / O as described in any one of claims 1-6, and each multi-functional gateway is connected to no more than 32 composite probes.