Multifunctional gateway with expansion IO and energy storage fire control system and method
By adopting a multi-function gateway with extended IO in the energy storage fire control system, the problems of excessive response time and low data transmission efficiency under traditional polling methods are solved, and more efficient composite probe management and control are achieved, and the system response speed and reliability are improved.
Patent Information
- Application Number
- CN202510235146.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-04-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The traditional polling method has too long response time when processing a large number of composite probes and low data transmission efficiency, resulting in a decrease in the response speed of the energy storage fire control system in emergency situations, affecting the fire extinguishing effect and system reliability.
It adopts a multi-function gateway with extended IO, and achieves more efficient composite probe management and control through dual isolation of hardware and software. The gateway includes an MCU module, a DI analog input module, a DO analog output module, a CAN communication module and a 485 communication module. It can independently and quickly process the data of each composite probe, and improve data transmission efficiency through cache and optimization of communication protocols.
It significantly shortens the polling cycle, improves the system's response speed and real-time performance, enhances the reliability and safety of the energy storage fire control system, and ensures that fire extinguishing measures can be quickly responded and implemented in emergencies.
Smart Images

Figure CN119857237A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of energy storage fire fighting communication, and in particular to a multifunctional gateway with extended IO and an energy storage fire fighting control system and method. Background Art
[0002] In the field of energy storage fire extinguishing controllers, the controller exchanges real-time data with external composite probes through CAN (Controller Area Network) communication to obtain information such as external temperature, smoke and special gas concentration; the controller quickly processes this data and responds quickly according to different environmental changes to ensure timely and accurate execution of fire extinguishing control. Due to the emergency nature of the fire protection system, the speed of communication is crucial in this application. Any communication delay may cause a lag in fire extinguishing measures, thereby affecting the fire extinguishing effect or the reliability of the system. Therefore, CAN communication requires not only stability and reliability, but also an efficient data transmission rate to ensure that the fire extinguishing control system can respond quickly at critical moments to ensure the safety and effectiveness of the system.
[0003] At present, the fire extinguishing controller for energy storage fire fighting generally adopts the method of direct connection with the composite probe, and polling instructions are issued through the CAN bus to obtain the environmental data collected by each composite probe. Each composite probe usually monitors multiple parameters, such as temperature, smoke concentration, special gas concentration, etc., and the number of composite probes may be very large. Assuming that a system has 96 composite probes, the data acquisition of each composite probe requires the controller to poll through the CAN bus. If the polling cycle of each composite probe is 50ms, the time required for the system to obtain all the composite probe data will be 4.8 seconds. For the fire control system in an emergency, a complete polling cycle time is too long, which will cause the system response speed to drop significantly, thereby affecting the timeliness of the fire extinguishing response. In this case, a long polling time may delay the timing of fire extinguishing treatment, thereby affecting the overall safety and reliability of the system. Therefore, in order to meet the strict real-time requirements of the fire control system, shortening the polling time, improving data transmission efficiency and reducing delay have become the optimization directions that must be considered in the design.
[0004] In view of this, there is an urgent need for an efficient and real-time composite probe data acquisition and communication method to overcome the shortcomings of the current polling method, such as long response time and low data transmission efficiency when processing a large number of composite probes, so as to improve the rapid response capability and reliability of the energy storage fire control system in emergency situations. This will ensure that the fire protection system can obtain accurate environmental data in a timely manner, so as to respond quickly and effectively ensure the safety of the system and the fire extinguishing effect. Summary of the invention
[0005] The purpose of the present invention is to provide a multifunctional gateway with extended IO (Input / Output), an energy storage fire control system and an efficient energy storage fire control network method, which overcomes the problems of communication delay, low data transmission efficiency, and inability to respond quickly in the traditional polling method, so as to improve the communication efficiency, real-time performance and reliability of the energy storage fire system. Through the dual isolation of hardware and software, more efficient composite probe management and control are achieved, ensuring that the fire protection system can respond quickly and execute fire extinguishing measures in an emergency, thereby enhancing the safety and efficiency of the system.
[0006] In order to solve the above technical problems, the present invention provides a multifunctional gateway with extended IO, the multifunctional gateway includes an MCU module, a 4-way DI analog input module, a DO analog output module, a 2-way CAN communication module, and a 485 communication module, wherein: The MCU module is used to receive the signal from the DI analog input module, process and analyze the signal, generate a control instruction according to a preset program and send it to the DO analog output module; and is used to parse the 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 to perform serial communication with external devices and send the received data to the MCU module; The CAN communication module is connected to the main controller through one channel and connected to 32 composite probes at most through another channel. After receiving the instruction of the MCU module, the CAN communication module collects the data of the composite probes in sequence and then sends the collected data to the MCU module. The 4-way DI analog input module is respectively connected to the first temperature sensor, the second temperature sensor, the first smoke sensor and the second smoke sensor, and after receiving the instruction of the MCU module, collects the analog signals of the first temperature sensor, the second temperature sensor, the first smoke sensor and the second smoke sensor, and transmits them to the MCU module after ADC conversion; 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 instruction from the MCU module.
[0007] Preferably, the hardware circuit of the CAN communication module includes: The CAN signal is connected to the CAN transceiver U2 through the digital isolator U1. The differential signals CAN1_RXD and CAN1_TXD after the CAN transceiver U2 is 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 through the common-mode inductor L1 and resistors R1 and R3, and bidirectional transient diodes D1, D2, and D3 are connected in series between the differential signals and between the differential signals and the reference ground.
[0008] Preferably, the circuit of the DI analog input module includes: When the DI1 input terminal receives a low-level signal, the optocoupler U7 is grounded and turned on to form a loop, and 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 terminal is at a high level, the optocoupler U7 is not conducting, the loop is disconnected, and the resistor R18 pulls the DI1_A signal up to a 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 at a high level, the optocoupler U10 is turned on, DI1 will be pulled to a low level, the optocoupler U7 is turned on, the signal DI1_A is at a low level, and the DI input self-test is completed.
[0009] Preferably, the circuit of the DO analog output module includes: The MCU module turns on the optocoupler U12 through the control signal DO1_B, which forms a loop with the phototransistor, and the transistor Q3 is turned on, so that the relay P1 coil is energized to work; the relay P1 coil is connected in parallel with the freewheeling diode D9, and a resistor R38 and a capacitor C30 are connected in series with the varistor RY5 between the normally open contact DO1_ON and the common terminal DO1_COM on the contact side of the relay P1, and a resistor R41 and a capacitor C32 are connected in series with the varistor RY7 between the normally closed contact DO1_OFF and the common terminal DO1_COM; 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, completing the DO output self-test.
[0010] Preferably, the circuit of the 485 communication module includes: After the 485 signal is electrically isolated by the digital isolator U24, the 485 transceiver U25 processes the sending and receiving of the signal. Bidirectional TVS diodes D13 and D14 are connected between the signal line of the 485 transceiver U25 and the ground.
[0011] Preferably, the multifunctional gateway further includes: SWD debug interface module, used for debugging and program download, provides high-speed, low-pin-count debugging support.
[0012] A storage fire control system includes a main controller, under which are mounted a plurality of multifunctional gateways with extended IO as described in any one of claims 1 to 6, and each of the multifunctional gateways has no more than 32 composite probes mounted thereon.
[0013] A method for efficiently storing energy for fire control network, applied to a multifunctional gateway with extended IO as claimed in any one of claims 1 to 6, comprising: The plurality of multifunctional gateways periodically poll the lower 32 composite probes one by one and cache the data responded by the composite probes; When receiving the query composite probe information from the main controller, the multifunctional gateway uniformly packages the cached data of the 32 composite probes and sends the data to the main controller.
[0014] Preferably, the method further comprises: After the multifunctional gateway receives the command to read or write the specified composite probe issued by the main controller, it determines whether the destination device address accessed by the command belongs to the address range of the 32 composite probes under the multifunctional gateway based on the frame address information of the command. If not, the command is filtered; if so, the command is forwarded.
[0015] Preferably, the method further comprises: A low priority queue and a high priority queue are set inside the multifunctional gateway. The multifunctional gateway itself periodically polls the polling command of the lower composite probe to enter the low priority queue. When the polling command enters the low priority queue, the corresponding life countdown is started. When the life countdown is 0, the corresponding polling command is automatically transferred to the high priority queue. The read command or write command issued by the main controller enters the high priority queue after filtering if it needs to be forwarded.
[0016] In summary, the present invention provides a multifunctional gateway with extended IO, an energy storage fire control system and an efficient energy storage fire control network method, which are applied to energy storage fire extinguishing control systems, and solve the problems of communication delay and low data transmission efficiency in traditional polling methods. Through hardware electrical isolation and software CAN message isolation, the extended IO can independently and quickly process the data of each composite probe, improving the response speed and real-time performance of the system. This method has the characteristics of efficient data acquisition and rapid response, and can judge the status of composite probes in real time in the case of multiple composite probes, and quickly forward it to the main controller with the highest priority when an alarm occurs, effectively shortening the polling cycle, reducing the system response time, and improving the reliability and safety of the energy storage fire control system. It is particularly suitable for efficient and accurate fire extinguishing control and emergency alarm processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a schematic diagram of a traditional energy storage fire control system; Figure 2 is a schematic diagram of an energy storage fire control system according to an embodiment of the present invention; Figure 3 is a schematic diagram of a multifunctional gateway with extended IO according to an embodiment of the present invention; Figure 4 A circuit diagram of a DI analog input module according to an embodiment of the present invention; Figure 5 A circuit diagram of a DO analog input module according to an embodiment of the present invention; Figure 6 is a CAN communication hardware circuit diagram of an embodiment of the present invention; Figure 7 It is a 485 communication hardware circuit diagram of an embodiment of the present invention. DETAILED DESCRIPTION
[0018] In order to make the purpose, technical scheme and advantages of the present invention clearer, the embodiments of the present invention will be described in detail in conjunction with the accompanying drawings hereinafter. It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be arbitrarily combined with each other. In order to better understand the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, other embodiments obtained by ordinary technicians in this field without making creative work are all within the scope of protection of the present invention.
[0019] Figure 1 This is a schematic diagram of a traditional energy storage fire control system, such as Figure 1As shown in the figure, the current energy storage fire extinguishing controller generally adopts the method of direct connection with the composite probe, and performs polling instructions through the CAN bus to obtain the environmental data collected by each composite probe. Each composite probe usually monitors multiple parameters, such as temperature, smoke concentration, gas concentration, etc., and the number of composite probes may be very large. Assuming that a certain energy storage fire control system has 96 composite probes, the data acquisition of each composite probe requires the controller to poll through the CAN bus. If the polling cycle of each composite probe is 50 milliseconds, the time required for the system to obtain all the composite probe data will be 4.8 seconds. For fire control systems in emergency situations, a polling cycle that is too long will cause the system response speed to drop significantly, thereby affecting the timeliness of the fire extinguishing response, which is contrary to the system's high requirements for rapid response.
[0020] Figure 2 Schematic diagram of an energy storage fire control system according to an embodiment of the present invention. Figure 2 As shown, the main controller in the energy storage fire control system of this embodiment is connected to three multifunctional gateways with extended IO of this embodiment, such as extended IO multifunctional gateway #1, extended IO multifunctional gateway #2 and extended IO multifunctional gateway #3. In actual applications, the number of multifunctional gateways with extended IO of this embodiment supported by the main controller can be determined according to actual conditions, and this is only an example.
[0021] Assuming that the 96 composite probes in the system are divided into 3 groups, each group has 32 composite probes, and the polling cycle of each composite probe is 50ms, the polling time required for each group is 1.6 seconds. By grouping and processing composite probes in parallel, the polling cycle is shortened and the response speed is maximized. The multifunctional gateway of this expansion IO supports the cache function, which can store 33 frames of data from the composite probes and exchange data with the main controller through the optimized communication protocol.
[0022] The data frame of each composite probe has a total of 8 bytes: the first byte is used to indicate the self-test status and warning level of the temperature, special gas, smoke and other sensors in the composite probe, and the second byte indicates the alarm status of the above temperature, smoke and other sensors. The remaining 6 bytes are used to transmit various data collected in real time by the composite probe (such as temperature, special gas concentration, etc.). In addition, the extended IO will also generate a frame to indicate the online or offline status of the composite probe. Each frame of data 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 33 frames of data for each extended IO is only 1.617 seconds, which significantly improves communication speed and efficiency.
[0023] The energy storage fire control system of this embodiment is different from the traditional controller connection method of composite probes. The composite probes can be grouped by using multi-functional extended IO, and each extended IO only polls the composite probe data in its own area. Different composite probe groups are polled in parallel. After the extended IO caches the composite probe data in this area, it interacts with the main controller data through the CAN bus, which greatly reduces the time required for each polling of the main controller. As the number of composite probes increases, the performance advantage of the extended IO becomes more obvious, and it can effectively support large-scale composite probe networks and ensure the timeliness and accuracy of system response.
[0024] Real-time forwarding of composite probe status: Once a composite probe in a certain area detects an alarm, it will forward the alarm to the upper-layer expansion IO with the highest priority, and finally pass it to the main controller. This mechanism enables the alarm information to be quickly transmitted to the main controller, avoiding the delay of the traditional polling method and improving the response speed of the system.
[0025] Figure 3 FIG. 1 is a schematic diagram of a multifunctional gateway with extended IO according to an embodiment of the present invention. Figure 3 As shown, a multifunctional gateway with extended IO in this embodiment includes: an MCU module, a 4-way DI (Digital Input) analog input module, a 4-way DO (Digital Output) analog output module, a 2-way CAN (Controller Area Network) communication module, a 485 communication module and a 1-way SWD debugging interface; wherein, The MCU module (Microcontroller Unit) is the core control unit of the multi-function gateway, responsible for coordinating and managing the work of each module. Specifically, the main functions of the MCU module include: A. Data processing and control: The MCU module is responsible for receiving signals from the 4-way DI analog input module, and processing and analyzing these signals. According to the preset logic or algorithm, the MCU module will generate corresponding control signals and output them through the 4-way DO analog output module to control external devices.
[0026] B. Communication management: The MCU module exchanges data with other devices or systems through 2 CAN communication modules and 1 485 communication module. It is responsible for parsing the data received from the CAN communication module or 485 communication module, and sending the processed data to other modules or external devices as needed.
[0027] C. Debugging and maintenance: The MCU module is connected to the debugging tool through a SWD (Serial Wire Debug) interface module to support firmware debugging, updating and maintenance. Developers can program, debug and troubleshoot the MCU module through the SWD interface module.
[0028] D. System coordination: As the core of the entire gateway, the MCU module is responsible for coordinating the work of each module to ensure stable operation of the system. It can also dynamically adjust the system's working status or parameters based on external input signals or communication data.
[0029] 485 communication module, used for serial communication with external devices (such as personal computers), configured in full-duplex mode, supporting high-speed data transmission; The CAN communication module is configured in standard mode and 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 a maximum of 32 composite probes.
[0030] The 4-channel DI analog input module is used to collect analog signals from external sensors and transmit them to the MCU module after conversion by ADC (Analog-to-Digital Converter).
[0031] The 4-channel DI analog input modules (DI1-4) in this embodiment are respectively connected to non-coding typical temperature sensor 1, non-coding typical temperature sensor 2, non-coding typical smoke sensor 1 and non-coding typical smoke sensor 2. (Non-coding means that the signal output by the sensor is an analog signal, not a coded digital signal. Typical means that this sensor is a common, standard type, universal and representative).
[0032] The 4-channel DO analog output module is used to provide analog control signals to external modules, and can accurately adjust the output range and signal changes.
[0033] The two DO analog output modules (DO1-2) in this embodiment are connected to cluster-level solenoid valve 1 and cluster-level solenoid valve 2 respectively. If the composite probe under the gateway detects an alarm message, 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 spraying water, thereby achieving fire-fighting linkage. The other two DO analog output modules (DO3-4) are redundant and standby.
[0034] The SWD interface module is used for debugging and program downloading, providing high-speed, low-pin-count debugging support.
[0035] Each composite probe has four wires, two power lines are powered by the power lines led out from the main controller, and two communication lines are hung on the lead-out lines of the CAN communication module of the expanded IO function gateway.
[0036] 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 the PCB traces on the board. The program in the MCU module controls each module to complete the corresponding function.
[0037] In a polling cycle, the DI analog input module transmits the real-time collected signals from the temperature sensor and the smoke sensor to the MCU module. At the same time, the MCU module starts with the composite probe #1 and sends a query command to it through the CAN communication module. After receiving the command, the composite probe #1 transmits the various data collected by the composite probe to the MCU module through the CAN communication module. Each composite probe repeats the above operation in sequence. When the composite probe #32 completes this action, a polling cycle ends.
[0038] Figure 4 : is a circuit diagram of a DI analog input module according to an embodiment of the present invention, such as Figure 4 As shown, the circuit of the DI analog input module includes: transistor output optocouplers U7 and U10, voltage regulator tubes ZD2 and ZD26, resistors R17, R18, R19, R30 and capacitor C17.
[0039] When the DI1 input receives a low-level signal, the optocoupler U7 is grounded and turned on to form a loop. The photosensitive transistor 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. When the DI1 input is at a high level, the optocoupler U7 is not turned on, the loop is disconnected, and the resistor R18 pulls the DI1_A signal up to a high level and transmits it to the MCU. The self-test signal DI1_Cheak is connected to the IO output pin of the MCU. When DI1_Cheak is at a high level, the optocoupler U10 is turned on, DI1 will be pulled to a low level, the optocoupler U7 is turned on, the signal DI1_A is at a low level, and the DI input self-test is completed. The optocouplers U7 and U10 can play an isolation role in the circuit to prevent high voltage or noise from affecting the operation of the MCU; the voltage regulators ZD2 and ZD26 provide a stable power supply to ensure the reliability of the circuit; the resistors R30, R19, R17 and the capacitor C17 are used for signal conditioning, filtering noise, and improving signal stability.
[0040] Figure 5 FIG. 4 is a circuit diagram of a DO analog input module according to an embodiment of the present invention, as shown in FIG. Figure 5 As shown, the circuit of the DO analog output module of this embodiment includes: transistor output optocouplers U8 and U12, digital transistor Q3 and relay P1; The MCU module turns on the optocoupler U12 through the control signal DO1_B, and the phototransistor in the optocoupler U12 is turned on to form a circuit, and the transistor Q3 is turned on, so that the relay P1 coil can be energized to work and complete the corresponding control action; the relay P1 coil is connected in parallel with the freewheeling diode D9, and the diode can quickly absorb the reverse current generated when the relay coil is powered off, preventing the instantaneous large voltage of the collector from damaging the transistor and playing a protective role; between the normally open contact DO1_ON on the contact side of the relay P1 and the common terminal DO1_COM, there are resistor R38 and capacitor C30 in series and then connected in parallel with the varistor RY5, and between the normally closed contact DO1_OFF and the common terminal DO1_COM, there are resistor R41 and capacitor C32 After being connected in series, it is connected in parallel with RY7. Resistors R38 and R41 are designed between the normally open contact DO1_ON on the contact side of relay P1 and the common terminal DO1_COM, and between the normally closed contact DO1_OFF and the common terminal DO1_COM. The arc extinguishing circuit of capacitors C30 and C32 in series works together with varistors RY5 and RY7 to effectively suppress the arc generated when the relay contacts are switched, protect the reliability of the circuit and extend its service life. When the relay P1 coil is energized, the signal DO1_ON will be connected to DO1_COM, the optocoupler U7 will form a path, the phototransistor in U7 will be turned on, the DO1_Cheak signal will be low and transmitted to the MCU, completing the output self-test of the DO analog output module.
[0041] Figure 6 is a circuit diagram of a CAN communication module according to an embodiment of the present invention, such as Figure 6 As shown, the hardware circuit of the CAN communication module of this embodiment includes: a digital isolator U1, a CAN transceiver U2, a common mode inductor L1, resistors R1, R3, a terminal matching resistor R2 and decoupling capacitors C1, C2, C3, C172; The CAN signal is connected to the CAN transceiver U2 through the digital isolator U1 to ensure the electrical isolation of the signal and prevent noise interference; the CAN transceiver U2 has the ability to fully independently process the sending and receiving of CAN frames, and a high-speed and small-volume 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 is connected to the digital isolator U1 are connected to the CAN controller inside the MCU to ensure the stability and reliability of data transmission; on the right side of the transceiver U2, the differential signal is connected to the external interface through the common-mode inductor L1, resistors R1, R3 and other components to effectively reduce electromagnetic interference and ensure signal quality; in addition, 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 signal; the terminal resistor R2 at the two farthest CAN nodes can be enabled or disabled as needed to optimize the stability and communication quality of the CAN network. H2 is a plug-in terminal, which is equivalent to a short circuit after the short-circuit cap is connected, and is equivalent to an open circuit without the short-circuit cap.
[0042] The multifunctional gateway with extended IO in this embodiment can be used as an isolator and repeater of 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. The software also ensures CAN message isolation, ensuring that the data exchange between the main controller and the composite probe is more efficient and reliable.
[0043] The main controller sends a write command, and the multifunctional gateway with extended IO connected to the main controller judges and processes the command, ensuring that the command is only passed to the relevant composite probe under the corresponding multifunctional gateway with extended IO. In this process, the multifunctional gateway of this embodiment does not simply forward commands, but acts as a hub for data filtering and processing, which improves communication efficiency and reduces data conflicts and redundancy in the network. Different from the traditional transparent communication mode, this non-transparent communication mode is more intelligent and integrated when processing data.
[0044] Figure 7 485 communication module of the embodiment of the present invention, such as Figure 7 As shown, the hardware circuit of the 485 communication module of this embodiment includes: a digital isolator U24, a 485 transceiver U25, bidirectional TVS (Transient Voltage Suppressor) diodes D13 and D14, an optocoupler U26, decoupling capacitors C69, C70, and C71, resistors R57, R58, R60, R61, and R62, and a terminal resistor R154; The 485 signal is electrically isolated through the digital isolator U24 to ensure signal stability and avoid noise interference; the 485 transceiver U25 processes the sending and receiving of signals to ensure the reliability of data transmission; the bidirectional TVS diodes D13 and D14 are connected between the signal line and the ground of the 485 transceiver U25 to suppress voltage transients and protect the circuit from electromagnetic interference; at the two farthest 485 nodes, a terminal resistor R154 is designed to ensure the transmission stability of the differential signal; by connecting or disconnecting H4 (H4 H4 is a plug-in terminal, which is equivalent to a short circuit when a short-circuit cap is connected, and an open circuit when the short-circuit cap is not connected), the user can enable or disable the terminal resistor R154 to adapt to different communication requirements and network topologies.
[0045] The multifunctional gateway with extended IO in this embodiment supports 485 communication, and the application can be upgraded online through this two-way communication interface. The program storage space is divided into three parts, and the user program and the boot program are switched with each other through the boot flag. UDP (User Datagram Protocol) is used to transmit commands and data, and detailed communication rules for connection, downloading and export are defined. Without entering or changing the energy storage fire protection installation environment, program updates and maintenance can be made simpler and more convenient through the host computer software.
[0046] When the main controller in this embodiment sends a read command, the multifunctional gateway with extended IO not only provides electrical isolation in hardware, but also realizes the isolation of CAN messages at the software level. Each multifunctional gateway with extended IO is only responsible for the data acquisition and processing of the composite probes hanging below it, avoiding data interference between composite probes in different areas and improving the stability and anti-interference ability of the system. Due to the data isolation and management between composite probes, and the multifunctional gateway with extended IO in this embodiment also integrates a 4-channel DI analog input module and a 4-channel DO analog output module with self-test function, which can be connected to the cluster-level solenoid valve or temperature / smoke input under the group of composite probe areas, the extended IO can support the distributed deployment of composite probes in energy storage units of different levels, which is helpful for the classified management and efficient operation and maintenance of the system.
[0047] The multifunctional gateway with extended IO in this embodiment can be composed of two upper and lower boards, the upper board includes an MCU module, a 2-way CAN communication module, a 485 communication module and a SWD debugging interface module, and the lower board includes a 4-way DI analog input module and a 4-way DO analog output module. When in use, the two boards need to be connected through hardware pins and then encapsulated in a special shell for use.
[0048] The embodiment of the present invention also provides a method for an efficient energy storage fire control network, which configures three multifunctional gateways with extended IO of the present embodiment, and each multifunctional gateway is configured with a maximum of 32 composite probes. The multifunctional gateway normally polls the 32 lower composite probes one by one every 100 milliseconds, and caches the composite probe response data inside the multifunctional gateway. When the upper energy storage fire controller queries the composite probe information, the multifunctional gateway uniformly encapsulates and packages the cached 32 composite probe data for response, thereby effectively improving communication efficiency. The method of the energy storage fire control network of the present embodiment also polls 96 composite probes, and each gateway simultaneously polls its own 32 lower composite probes, so that the total polling cycle is shortened to 3.2 seconds. Compared with the traditional transparent forwarding method, the polling cycle is shortened by 6.4 seconds, which greatly improves communication efficiency.
[0049] For the command to read a single composite probe issued by the energy storage fire protection main controller, after receiving the read command, the multifunctional gateway of this embodiment first determines whether the destination device address accessed by the read command belongs to the address range of the lower 32 composite probes of the multifunctional gateway based on the command frame address information. If not, the multifunctional gateway filters the read command; if so, the multifunctional gateway forwards the read command.
[0050] For the command to write a single composite probe issued by the energy storage fire protection main controller, after receiving the write command, the multi-functional gateway first determines whether the destination device address accessed by the write 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 write command; if so, the multi-functional gateway forwards the write command.
[0051] The multifunctional gateway is internally designed with two command queues with different priorities. The queue length is configurable according to the actual number of communication frames. The 0# queue has a high priority and the 1# queue has a low priority. The multifunctional gateway itself periodically polls the commands of the lower composite probe to enter the low priority queue. The read or write commands issued by the upper energy storage fire protection main controller enter the high priority queue after filtering if they need to be forwarded. When the multifunctional gateway of this embodiment sends a command to the lower composite probe, it first scans the high priority queue. If the high priority queue is not empty, it takes the command from the high priority queue according to the first-in-first-out principle and sends it to the lower composite probe; if the high priority queue is empty, it scans the low priority queue. If the low priority queue is not empty, it takes the command from the low priority queue according to the first-in-first-out principle and sends it to the lower composite probe.
[0052] To avoid extreme situations where the upper energy storage fire control main controller sends read commands or write commands that need to be forwarded by the gateway at high speed and high frequency, causing the high priority queue to always be not empty, thereby causing the low priority query command to always be blocked and unable to be sent to the lower composite probe, for this reason, the multi-function gateway is specially designed with a life cycle mechanism for the low priority queue. Each polling command that enters the low priority starts the life countdown from the moment it enters the queue. When the life countdown corresponding to the polling command becomes 0, it will automatically transfer from the low priority queue to the high priority queue, thereby fundamentally avoiding the low priority polling command from being blocked and unable to be issued.
[0053] The embodiments of the present invention provide a multifunctional gateway with extended IO and a method for an efficient energy storage fire control network, which are applied to energy storage fire extinguishing control systems, and solve the problems of communication delay and low data transmission efficiency in traditional polling methods. Through hardware electrical isolation and software CAN message isolation, the extended IO can independently and quickly process the data of each composite probe, thereby improving the response speed and real-time performance of the system. The method has the characteristics of efficient data acquisition and rapid response, and can judge the status of composite probes in real time in the case of multiple composite probes, and quickly forward it to the main controller with the highest priority when an alarm occurs. It effectively shortens the polling cycle, reduces the system response time, and improves the reliability and safety of the energy storage fire control system, and is particularly suitable for efficient and accurate fire extinguishing control and emergency alarm processing.
[0054] Those skilled in the art will appreciate that all or part of the steps in the above method can be completed by instructing related hardware through a program, 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 embodiment can also be implemented using one or more integrated circuits. Accordingly, each module / unit in the above embodiment can be implemented in the form of hardware or in the form of a software functional module. The present invention is not limited to any particular form of combination of hardware and software.
[0055] The above are only preferred embodiments of the present invention. Of course, the present invention may also have many other embodiments. Without departing from the spirit and essence of the present invention, those skilled in the art may make various corresponding changes and modifications based on the present invention, but these corresponding changes and modifications should all fall within the scope of protection of the claims attached to the present invention.
Claims
1. A multifunctional gateway with extended IO, characterized in that: The multifunctional gateway includes an MCU module, a 4-way DI analog input module, a DO analog output module, a 2-way CAN communication module, and a 485 communication module. The MCU module is used to receive the signal from the DI analog input module, process and analyze the signal, generate a control instruction according to a preset program and send it to the DO analog output module; and is used to parse the 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 to perform serial communication with external devices and send the received data to the MCU module; The CAN communication module is connected to the main controller through one channel and connected to 32 composite probes at most through another channel. After receiving the instruction of the MCU module, the CAN communication module collects the data of the composite probes in sequence and then sends the collected data to the MCU module. The 4-way DI analog input module is respectively connected to the first temperature sensor, the second temperature sensor, the first smoke sensor and the second smoke sensor, and after receiving the instruction of the MCU module, collects the analog signals of the first temperature sensor, the second temperature sensor, the first smoke sensor and the second smoke sensor, and transmits them to the MCU module after ADC conversion; 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 instruction from the MCU module.
2. The multifunctional gateway according to claim 1, characterized in that: The hardware circuit of the CAN communication module includes: The CAN signal is connected to the CAN transceiver U2 through the digital isolator U1. The differential signals CAN1_RXD and CAN1_TXD after the CAN transceiver U2 is 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 through the common-mode inductor L1 and resistors R1 and R3, and 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 multifunctional gateway according to claim 1, characterized in that: The circuit of the DI analog input module includes: When the DI1 input terminal receives a low-level signal, the optocoupler U7 is grounded and turned on to form a loop, and 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 terminal is at a high level, the optocoupler U7 is not conducting, the loop is disconnected, and the resistor R18 pulls the DI1_A signal up to a 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 at a high level, the optocoupler U10 is turned on, DI1 will be pulled to a low level, the optocoupler U7 is turned on, the signal DI1_A is at a low level, and the DI input self-test is completed.
4. The multifunctional gateway according to claim 1, characterized in that: The circuit of the DO analog output module includes: The MCU module turns on the optocoupler U12 through the control signal DO1_B, which forms a loop with the phototransistor, and the transistor Q3 is turned on, so that the relay P1 coil is energized to work; the relay P1 coil is connected in parallel with the freewheeling diode D9, and a resistor R38 and a capacitor C30 are connected in series with the varistor RY5 between the normally open contact DO1_ON and the common terminal DO1_COM on the contact side of the relay P1, and a resistor R41 and a capacitor C32 are connected in series with the varistor RY7 between the normally closed contact DO1_OFF and the common terminal DO1_COM; 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, completing the DO output self-test.
5. The multifunctional gateway according to claim 1, characterized in that: The circuit of the 485 communication module includes: After the 485 signal is electrically isolated by the digital isolator U24, the 485 transceiver U25 processes the sending and receiving of the signal. Bidirectional TVS diodes D13 and D14 are connected between the signal line of the 485 transceiver U25 and the ground.
6. The multifunctional gateway according to any one of claims 1 to 5, characterized in that: The multifunctional gateway further includes: SWD debug interface module, used for debugging and program download, provides high-speed, low-pin-count debugging support.
7. An energy storage fire control system, characterized in that: It comprises a main controller, under which are mounted a plurality of multifunctional gateways with extended IO as described in any one of claims 1 to 6, and each of the multifunctional gateways is mounted with no more than 32 composite probes.
8. A method for an efficient energy storage fire control network, applied to a multifunctional gateway with extended IO as claimed in any one of claims 1 to 6, comprising: The plurality of multifunctional gateways periodically poll the lower 32 composite probes one by one and cache the data responded by the composite probes; When receiving the query composite probe information from the main controller, the multifunctional gateway uniformly packages the cached data of the 32 composite probes and sends the data to the main controller.
9. The method according to claim 8, characterized in that The method further comprises: After the multifunctional gateway receives the command to read or write the specified composite probe issued by the main controller, it determines whether the destination device address accessed by the command belongs to the address range of the 32 composite probes under the multifunctional gateway based on the frame address information of the command. If not, the command is filtered; if so, the command is forwarded.
10. The method according to claim 8 or 9, characterized in that The method further comprises: A low priority queue and a high priority queue are set inside the multifunctional gateway. The multifunctional gateway itself periodically polls the polling command of the lower composite probe to enter the low priority queue. When the polling command enters the low priority queue, the corresponding life countdown is started. When the life countdown is 0, the corresponding polling command is automatically transferred to the high priority queue. The read command or write command issued by the main controller enters the high priority queue after filtering if it needs to be forwarded.
Citation Information
Patent Citations
Battery storage monitoring device and method and storage medium
CN111624910A
Energy gateway device
CN208924267U
5G Internet of Things integrated gateway
CN216795028U