Carbon monoxide and smoke and temperature sensing composite fire detection device based on RS232 self-coding

Automatically assign a unique address to the fire detection device through RS232 self-encoding technology, which solves the problems of low coding efficiency and error-prone in the existing technology, achieves accurate address coding and positioning, and improves the stability and anti-interference ability of the system.

CN118762464APending Publication Date: 2024-10-11四川千页科技股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410843846.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

The on-site coding of existing fire detection devices is inefficient and error-prone. Especially when there are a large number of detection devices, problems such as missing codes and confusing addresses are prone to occur.

Method used

Using self-encoding technology based on RS232, the detector is automatically assigned a unique address through communication between the controller and the encoder. The RS232 communication management unit and protection circuit are used to realize automatic encoding of the detector to ensure the uniqueness and consistency of the address encoding. sex.

Benefits of technology

It improves the coding efficiency, reduces the time and error rate of manual coding, can accurately locate the relationship between the virtual address and the actual position of the detection device, and enhances the anti-interference ability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762464A_ABST
    Figure CN118762464A_ABST
Patent Text Reader

Abstract

The invention discloses a carbon monoxide and smoke-sensing and temperature-sensing composite fire detection device based on RS232 self-encoding, which is characterized by comprising a controller, and an encoder and a carbon monoxide and smoke-sensing and temperature-sensing composite detector which are in communication connection with the controller through a field bus, the TX end of the encoder is in communication connection with the RX end of any detector, the TX end of the detector n is in communication connection with the RX end of the detector n + 1, and the detector n + 1 responds to the encoding initial address sent by the detector n and updates the communication address of the detector n + 1. According to the invention, self-coding is carried out through RS232, so that the problems of low field coding efficiency and high error rate can be solved, the actual position relationship between the virtual address and the detection device can be positioned, and the anti-interference capability of the whole device is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of detection equipment, and in particular to a carbon monoxide and smoke and temperature sensing composite fire detection device based on RS232 self-coding. Background Art

[0002] Carbon monoxide and smoke temperature composite fire detection devices for energy storage power stations are important components of battery thermal runaway systems. Battery thermal runaway systems consist of multiple fire detection devices and other equipment connected through a wired network. Each fire detection device has a unique address in the system.

[0003] The existing field equipment system consists of Figure 2 As shown ( Figure 2 In the illustration, only the detection device is marked, and other devices are not reflected in the system. The red line indicates the field bus, and the encoder is an auxiliary device for address encoding). In order to achieve the unique address of the fire detection device in the system, each detection device is independently encoded after the on-site installation is completed. For example, the address of detection device 1 is first encoded as 1, and then the address of detection device 2 is encoded as 2, and so on.

[0004] This system has several significant disadvantages:

[0005] 1. Each detection device is individually encoded, which takes a lot of time and is very inefficient;

[0006] 2. When there are many detection devices in the system, there are on-site omissions, such as detection device 4 is not coded;

[0007] 3. The on-site coding is confusing. For example, the addresses of the detection device 3 and the detection device 4 are reversed. Summary of the invention

[0008] In view of the above-mentioned deficiencies in the prior art, the carbon monoxide and smoke and temperature composite fire detection device based on RS232 self-coding provided by the present invention solves the problem of low efficiency and easy error in on-site coding in the prior art.

[0009] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:

[0010] A carbon monoxide and smoke and temperature composite fire detection device based on RS232 self-encoding is provided, which includes a controller, an encoder and a carbon monoxide and smoke and temperature composite detector connected to the controller through a field bus; wherein:

[0011] The TX end of the encoder is connected to the RX end of any detector, and the detector connected to the TX end of the encoder is detector No. 1; the encoder sends an encoding instruction to detector No. 1, and detector No. 1 responds to the corresponding encoding instruction, writes the received encoding start address into the register as its communication address and feeds it back to the controller and / or encoder, and sends the encoding start address + address increment as the new encoding start address to the next detector;

[0012] The TX end of detector No. n is communicatively connected with the RX end of detector No. n+1, and detector No. n+1 responds to the encoding start address sent by detector No. n, updates its own communication address and feeds back to the controller and / or encoder until the number of successful address encodings counted by the controller and / or encoder is consistent with the actual number of installations and there is no address conflict. Then, the controller or encoder sends an exit self-encoding instruction to all detectors; the detector responds to the exit self-encoding instruction and enters normal working mode; n is an integer greater than or equal to 1.

[0013] Furthermore, the format of the encoding instruction is 0x55 0xAA 0x5A 0xXX 0xXX 0xAA 0x5ACRC; wherein 0x55 0xAA is the frame header, 0x5A is the self-encoding command code, the first 0xXX is the encoding start address, the second 0xXX is the address increment, 0xAA 0x5A is the frame tail, and CRC is the check code.

[0014] Further, the encoder includes an RS232 communication management unit, a protection circuit and an RS232 encoding unit, the RS232 communication management unit includes a chip U6 of model TPT3232E-TS3R, the pin 1 of the chip U6 is connected to its pin 3 through a capacitor C26; the pin 2 of the chip U6 is grounded; the pin 4 of the chip U6 is connected to its pin 5 through a capacitor C29; the pin 6 of the chip U6 is connected to the grounding capacitor C30;

[0015] The protection circuit includes a resistor R16, a resistor R17, an inductor L6, an inductor L7, a bidirectional breakdown diode D11, a bidirectional breakdown diode D12 and a bidirectional breakdown diode D13;

[0016] Pin 7 of chip U6 is respectively connected to grounded capacitor C33 and one end of resistor R16, and the other end of resistor R16 is respectively connected to one end of bidirectional breakdown diode D12 and one end of bidirectional breakdown diode D11 through inductor L6; Pin 8 of chip U6 is respectively connected to grounded capacitor C32 and one end of resistor R17; the other end of resistor R17 is respectively connected to the TX end of RS232 encoding unit, the other end of bidirectional breakdown diode D12, and one end of bidirectional breakdown diode D13 through inductor L7; the other end of bidirectional breakdown diode D13 is connected to the other end of bidirectional breakdown diode D11 and is grounded;

[0017] Pins 9 and 10 of chip U6 are respectively connected to the PB pin of the controller; pin 15 of chip U6 is respectively connected to one end of capacitor C24, one end of capacitor C28 and grounded; pin 16 of chip U6 is respectively connected to the other end of capacitor C24 and the other end of capacitor C28 and connected to an external power supply.

[0018] Furthermore, the controller includes a chip U8 of model STM32F103C8T6, a pin 21 of the chip U8 is connected to a pin 10 of the chip U6, and a pin 22 of the chip U8 is connected to a pin 9 of the chip U6.

[0019] The beneficial effects of the present invention are as follows: the present invention performs self-encoding through RS232, which can not only solve the problem of low efficiency and easy error of on-site encoding, but also locate the actual position relationship between the virtual address and the detection device, thereby improving the anti-interference ability of the entire device. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 is the structural block diagram of the device;

[0021] Figure 2 It is the structural block diagram of the existing field equipment system;

[0022] Figure 3 It is the functional topology diagram of the device;

[0023] Figure 4 It is the circuit diagram of RS232 communication management unit;

[0024] Figure 5 A circuit diagram for protecting the circuit;

[0025] Figure 6 is the circuit diagram of the controller;

[0026] Figure 7 This is the topological diagram of the encoder and controller. DETAILED DESCRIPTION

[0027] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0028] like Figure 1 , Figure 3 and Figure 7As shown, the carbon monoxide and smoke temperature composite fire detection device based on RS232 self-encoding includes a controller, an encoder and a carbon monoxide and smoke temperature composite detector connected to the controller through a field bus; wherein:

[0029] The number of carbon monoxide and smoke and temperature composite detectors is one or more; other detectors can be added according to actual conditions;

[0030] The TX end of the encoder is connected to the RX end of any detector, and the detector connected to the TX end of the encoder is detector No. 1; the encoder sends an encoding instruction to detector No. 1, and detector No. 1 responds to the corresponding encoding instruction, writes the received encoding start address into the register as its communication address and feeds it back to the controller and / or encoder, and sends the encoding start address + address increment as the new encoding start address to the next detector;

[0031] The TX end of detector No. n is communicatively connected with the RX end of detector No. n+1, and detector No. n+1 responds to the encoding start address sent by detector No. n, updates its own communication address and feeds back to the controller and / or encoder until the number of successful address encodings counted by the controller and / or encoder is consistent with the actual number of installations and there is no address conflict. Then, the controller or encoder sends an exit self-encoding instruction to all detectors; the detector responds to the exit self-encoding instruction and enters normal working mode; n is an integer greater than or equal to 1.

[0032] In this embodiment, since the subsequent detectors are automatically encoded according to the connection order, their virtual addresses (encoded addresses of the detectors) must be associated with the physical addresses. For example, detector 4 must be between detector 3 and detector 5. However, the method mentioned in the prior art cannot be implemented because each detector is individually encoded by an encoder, and detector 4 can be at any position determined by the on-site encoder.

[0033] As shown in Table 1, the format of the encoding instruction is 0x55 0xAA 0x5A 0xXX 0xXX 0xAA 0x5ACRC; 0x55 0xAA is the frame header, 0x5A is the self-encoding command code, the first 0xXX is the encoding start address, the second 0xXX is the address increment, 0xAA 0x5A is the frame tail, and CRC is the check code.

[0034] Table 1

[0035]

[0036] The encoder includes a RS232 communication management unit, a protection circuit and a RS232 encoding unit. Figure 4As shown, the RS232 communication management unit includes a chip U6 of model TPT3232E-TS3R, wherein the pin 1 of the chip U6 is connected to the pin 3 thereof through the capacitor C26; the pin 2 of the chip U6 is grounded; the pin 4 of the chip U6 is connected to the pin 5 thereof through the capacitor C29; and the pin 6 of the chip U6 is connected to the grounding capacitor C30;

[0037] like Figure 5 As shown, the protection circuit includes a resistor R16, a resistor R17, an inductor L6, an inductor L7, a bidirectional breakdown diode D11, a bidirectional breakdown diode D12 and a bidirectional breakdown diode D13;

[0038] Pin 7 of chip U6 is respectively connected to grounded capacitor C33 and one end of resistor R16, and the other end of resistor R16 is respectively connected to one end of bidirectional breakdown diode D12 and one end of bidirectional breakdown diode D11 through inductor L6; Pin 8 of chip U6 is respectively connected to grounded capacitor C32 and one end of resistor R17; the other end of resistor R17 is respectively connected to the TX end of RS232 encoding unit, the other end of bidirectional breakdown diode D12, and one end of bidirectional breakdown diode D13 through inductor L7; the other end of bidirectional breakdown diode D13 is connected to the other end of bidirectional breakdown diode D11 and is grounded;

[0039] Pins 9 and 10 of chip U6 are respectively connected to the PB pin of the controller; pin 15 of chip U6 is respectively connected to one end of capacitor C24, one end of capacitor C28 and grounded; pin 16 of chip U6 is respectively connected to the other end of capacitor C24 and the other end of capacitor C28 and connected to an external power supply.

[0040] like Figure 6 As shown, the controller includes a chip U8 of model STM32F103C8T6, a pin 21 of the chip U8 is connected to a pin 10 of the chip U6, and a pin 22 of the chip U8 is connected to a pin 9 of the chip U6.

[0041] like Figure 5 As shown, the TX port of the encoder or controller is connected to CODE_RX1, and after passing through the protection circuit, CODE_RX1 is connected to chip U6 through CODE_RX. Chip U6 modulates the CODE_RX signal and then connects to chip U8 through MCUCODE_RX. This link enables the detector to receive automatic encoding instructions. The specific link is: MCUCODE_RX—U6-CODE_TX—R16—L6—CODE_TX1.

[0042] In this embodiment, the device adopts a dual control mode, namely encoder encoding and controller encoding. When the controller has an automatic encoding function, encoding can be achieved through the controller. However, in actual use, the controller may not have an automatic encoding function. In this case, the automatic encoding function can also be achieved through a handheld encoder, thereby expanding the application scope of this function.

[0043] This device uses RS232 communication automatic encoding + system communication bus to complete the automatic encoding function. RS232 realizes automatic encoding, and the communication bus completes the successful confirmation of encoding. By confirming the successful encoding through the communication bus, the wiring of the last node can be reduced.

[0044] In summary, the present invention performs self-encoding through RS232, which can not only solve the problem of low efficiency and easy error of on-site encoding, but also locate the actual position relationship between the virtual address and the detection device, thereby improving the anti-interference ability of the entire device.

Claims

1. A carbon monoxide and smoke temperature composite fire detection device based on RS232 self-encoding, characterized in that: It includes a controller, and an encoder, a carbon monoxide detector, and a smoke and temperature composite detector connected to the controller through a field bus; wherein: The TX end of the encoder is connected to the RX end of any detector, and the detector connected to the TX end of the encoder is detector No. 1; the encoder sends an encoding instruction to detector No. 1, and detector No. 1 responds to the corresponding encoding instruction, writes the received encoding start address into the register as its communication address and feeds it back to the controller and / or encoder, and sends the encoding start address + address increment as the new encoding start address to the next detector; The TX end of detector No. n is communicatively connected with the RX end of detector No. n+1, and detector No. n+1 responds to the encoding start address sent by detector No. n, updates its own communication address and feeds back to the controller and / or encoder until the number of successful address encodings counted by the controller and / or encoder is consistent with the actual number of installations and there is no address conflict. Then, the controller or encoder sends an exit self-encoding instruction to all detectors; the detector responds to the exit self-encoding instruction and enters normal working mode; n is an integer greater than or equal to 1.

2. The carbon monoxide and smoke and temperature composite fire detection device based on RS232 self-encoding according to claim 1 is characterized in that: The format of the encoding instruction is 0x55 0xAA 0x5A 0xXX 0xXX 0xAA 0x5A CRC; 0x550xAA is the frame header, 0x5A is the self-encoding command code, the first 0xXX is the encoding start address, the second 0xXX is the address increment, 0xAA 0x5A is the frame tail, and CRC is the check code.

3. The carbon monoxide and smoke and temperature composite fire detection device based on RS232 self-encoding according to claim 1 is characterized in that: The encoder includes an RS232 communication management unit, a protection circuit and an RS232 encoding unit. The RS232 communication management unit includes a chip U6 of model TPT3232E-TS3R. Pin 1 of the chip U6 is connected to its pin 3 through a capacitor C26; pin 2 of the chip U6 is grounded; pin 4 of the chip U6 is connected to its pin 5 through a capacitor C29; and pin 6 of the chip U6 is connected to a grounding capacitor C30; The protection circuit includes a resistor R16, a resistor R17, an inductor L6, an inductor L7, a bidirectional breakdown diode D11, a bidirectional breakdown diode D12 and a bidirectional breakdown diode D13; Pin 7 of chip U6 is respectively connected to grounded capacitor C33 and one end of resistor R16, and the other end of resistor R16 is respectively connected to one end of bidirectional breakdown diode D12 and one end of bidirectional breakdown diode D11 through inductor L6; Pin 8 of chip U6 is respectively connected to grounded capacitor C32 and one end of resistor R17; the other end of resistor R17 is respectively connected to the TX end of RS232 encoding unit, the other end of bidirectional breakdown diode D12, and one end of bidirectional breakdown diode D13 through inductor L7; the other end of bidirectional breakdown diode D13 is connected to the other end of bidirectional breakdown diode D11 and is grounded; Pins 9 and 10 of chip U6 are respectively connected to the PB pin of the controller; pin 15 of chip U6 is respectively connected to one end of capacitor C24, one end of capacitor C28 and grounded; pin 16 of chip U6 is respectively connected to the other end of capacitor C24 and the other end of capacitor C28 and connected to an external power supply.

4. The carbon monoxide and smoke and temperature composite fire detection device based on RS232 self-encoding according to claim 3 is characterized in that: The controller includes a chip U8 of model STM32F103C8T6, a pin 21 of the chip U8 is connected to a pin 10 of the chip U6, and a pin 22 of the chip U8 is connected to a pin 9 of the chip U6.