Bus type fire alarm system code address automatic determination method, system and circuit
By implementing a broadcast inspection and response mechanism between the fire controller and the alarm, address encoding is automatically generated and confirmed, debugging difficulties and security risks caused by address encoding errors in the fire alarm system are solved, and fast and secure automatic determination of address encoding is achieved.
Patent Information
- Application Number
- CN202510315707.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-18
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2045-03-18
AI Technical Summary
During the debugging process of fire alarm systems, address encoding errors often cause the system to fail to work properly, and checking and correcting address encoding requires a lot of time and cost, especially when repairing in high places or special environments, there are safety risks.
By implementing the sending and answering mechanism of broadcast patrol instructions in the fire controller, the alarm responds and provides the ID identity code after receiving the patrol instructions. The fire controller generates the address code based on the response information and issues the address reset command. After receiving the alarm, the LED light is lit, and the automatic determination of the address encoding is completed.
It realizes automatic confirmation of address encoding when installing an alarm, without manual dialing or electronic writing, simplifying the construction process, reducing costs and time expenditures, and improving construction safety.
Smart Images

Figure CN119888983A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of bus-type alarm systems, and in particular to a method, system and circuit for automatically determining a coding address of a bus-type fire alarm system. Background Art
[0002] At present, more and more fire alarm systems adopt bus-type working mode, which can greatly save on-site wires and greatly reduce engineering costs. In the field of fire alarm, especially the two-bus communication between the fire controller and the on-site alarm, the circuit principle is generally pulse sending and current return code, and both power supply and communication are realized through two lines. Since this bus communication method has no competition mechanism, there is only one host on the bus, the pulse sending end is the host, and the current return code end is the slave. The host query and slave response mechanism is adopted to prevent communication timing confusion; therefore, the slave connected to the fire bus must have an address code to be recognized by the host. The host can be understood as a fire controller installed in the fire monitoring room, and the slave can be understood as a detector / alarm installed at the project site.
[0003] There are generally two ways to implement address coding: 1) DIP switch method; 2) electronic coding method. DIP switches or electronic coding use a single byte to express the coding address of the on-site slave, which is convenient for the fire alarm system's reduced command mode communication. Since the address coding of the on-site slave must be correctly set during engineering installation, the fire alarm system can work properly; and in engineering, the following situations often occur: mechanical dial failure, misunderstanding of the mechanical dial position leading to incorrect dialing, incorrect electronic code writing or writing failure, and the set address does not match the drawing mark.
[0004] Once the address coding is found to be incorrect during the debugging of the slave, the slave needs to be inspected and repaired. During the inspection and repair, some slaves are located at a high position and need to be equipped with a climbing vehicle / frame, which is inconvenient to construct and poses safety risks to personnel, consuming high costs and time. Some slaves, such as explosion-proof equipment, need to remove the connecting pipelines. Some slaves even need to remove the installation parts and disconnect the connecting lines before resetting the coding. If it is not certain which slave has a problem, it is necessary to check them one by one, making the debugging of the fire alarm system time-consuming and labor-intensive. Summary of the invention
[0005] In order to confirm the address code while installing the alarm without setting the address of the on-site alarm, so as to facilitate the debugging of the fire alarm system; the present application provides a method, system and circuit for automatically determining the coding address of a bus-type fire alarm system.
[0006] In the first aspect, the present application provides a method for automatically determining the coding address of a bus-type fire alarm system, which adopts the following technical solution: A method for automatically determining the coding address of a bus-type fire alarm system, with a fire controller as the execution subject, comprising: Send a broadcast inspection instruction according to a preset inspection cycle z, wherein the broadcast inspection instruction means "Which alarm is powered on and running within n seconds?", where n is a preset time threshold; Receiving a response message, the response message sent by the alarm device that has just been installed and responds to the broadcast inspection instruction, the response message including the ID code of the alarm device; Generate a corresponding address code according to the storage order of the response information inside the fire controller, and send an address reset instruction to the alarm, wherein the address reset instruction includes the address code and the ID identity code; After receiving the response instruction, the alarm correctly receives the address reset instruction, sends the response instruction, and lights up its own LED lamp.
[0007] By adopting the above technical scheme, full consideration is given to the small number of bus devices required on the project site and the situation of one worker working on the construction. The fire controller enters the address recognition interface through manual operation, and the fire controller sends broadcast inspection instructions at a certain period. The broadcast inspection instruction means asking "Which alarm is powered on and running within n seconds?" Only the alarm that is powered on and running within n seconds will respond to the fire controller; because when there is only one worker for installation and debugging, the time required to transfer from the current alarm installation to the next alarm installation is much longer than the n seconds of power-on operation in the broadcast inspection instruction, and the construction personnel are clear and unique in the installation order of the alarms. In this way, only one alarm responds to the fire controller, avoiding communication conflicts. After the fire controller receives the response information, it generates the corresponding address code according to the storage order of the alarm response information stored in the fire controller, and sends an address reset instruction to the alarm. The alarm determines whether the ID identity code in the address reset instruction is consistent with its own ID identity code. If they are consistent, the alarm correctly receives the assigned address code, replies to the fire controller, and lights up the LED to prompt the construction workers that the alarm is correctly assigned the address code, and the alarm is successfully installed.
[0008] For fire alarm systems in specific areas, such as some "nine small venues" and various fire alarm systems installed and used by regular catering users, the general bus capacity is less than 16 points, and some are even 3-4 points. In this case, one worker usually installs and debugs. With this solution, it can be installed and confirmed at the same time, and there is no need to dial the address or write the address electronically. It ensures that the storage order, that is, the installation order, is the address code of the alarm. It is convenient and can directly determine whether the installation is successful, greatly reducing the difficulty of construction, avoiding errors in address coding setting and work errors, resulting in abnormalities that require high-altitude maintenance, and for electronically coded products, the code writer is also omitted, and even the mechanical coding method can be completely cancelled, so as to facilitate the debugging of the fire alarm system.
[0009] Optionally, the method for automatically determining the coded address further includes: When sending the address reset instruction to the alarm, it is sent m times continuously, where m≥2.
[0010] By adopting the above technical solution, the rigor of address modification can be ensured and accidents can be prevented.
[0011] Optionally, the method for automatically determining the coded address further includes: The power-on operation time n seconds is greater than 2 times the inspection cycle z.
[0012] By adopting the above technical solution, it can be ensured that the alarm can correctly receive the broadcast inspection instruction.
[0013] In the second aspect, the present application provides a method for automatically determining the coding address of a bus-type fire alarm system, which adopts the following technical solution: A method for automatically determining the coding address of a bus-type fire alarm system, with an alarm as the execution subject, comprising: The alarm that has just been installed responds to the broadcast inspection command sent by the fire controller and sends a response message, wherein the response message includes the ID code of the alarm; after receiving the response message, the fire controller generates a corresponding address code according to the storage order of the response message inside the fire controller, and sends an address reset command to the alarm, wherein the address reset command includes the address code and the ID code; After receiving the address reset instruction, determining whether the ID identity code in the address reset instruction is consistent with its own ID identity code; If yes, reset the address code according to the address reset instruction, send a response instruction to the fire controller, and light up the LED light; If not, the address reset instruction is not responded to.
[0014] Optionally, before the newly installed alarm responds to the broadcast inspection instruction, the following steps are performed: Determine whether it is a power-on reset or a power-on abnormal reset; If it is a power-on reset, then timing is performed to determine whether the broadcast inspection instruction is received within the duration threshold n seconds; If yes, respond to the broadcast inspection instruction; If not, then do not respond to the broadcast inspection instruction; If it is reset due to power-on abnormality, the broadcast inspection instruction will not be responded.
[0015] By adopting the above technical solution, it is possible to distinguish whether the alarm is reset by power-on or reset by power-on abnormality, thereby avoiding misjudgment of broadcast inspection instructions, ensuring that the alarm that has just been connected to the bus is the only device that responds to the broadcast inspection instructions of the fire controller, and avoiding communication errors.
[0016] In a third aspect, the present application provides a system for automatically determining the coding address of a bus-type fire alarm system, which adopts the following technical solution: A bus-type fire alarm system coding address automatic determination system, built into the fire controller, the alarm address determination system includes: An instruction sending module is used to send a broadcast inspection instruction according to a preset inspection cycle z, wherein the broadcast inspection instruction means "Which alarm is powered on and running within n seconds?", where n is a preset time threshold; An information receiving module, used for receiving a response message, wherein the alarm device that has just been installed and responds to the broadcast inspection instruction sends the response message, and the response message includes an ID code of the alarm device; An address identification module, used to generate a corresponding address code according to the storage order of the response information inside the fire controller, and send an address reset instruction to the alarm, wherein the address reset instruction includes the address code and the ID identity code; The command receiving module is used to receive a response command. After the alarm correctly receives the address reset command, it sends the response command and lights up its own LED lamp.
[0017] In a fourth aspect, the present application provides an alarm power supply circuit, which adopts the following technical solution: An alarm power supply circuit, comprising: The delayed power-on circuit has an input end connected to the communication bus or the power supply bus, a first output end is a Vout end, and a second output end is grounded, and is used for delaying the alarm to power on; A power supply changing circuit, the input end is connected to the Vout end, the first output end is the VCC end, the second output end is grounded, and is used to convert the voltage of the Vout end into the voltage of the VCC end; The reset distinguishing circuit has an input end connected to the VCC end, a first output end connected to the AD end of the MCU inside the alarm, and a second output end connected to ground, and is used to distinguish whether the alarm is reset by power-on or reset by power-on abnormality.
[0018] By adopting the above technical solution, the delayed power-on circuit can prevent the alarm from generating sparks at the moment of connecting to the bus, avoiding causing other alarms on the bus to reset, thereby affecting the judgment of "Which alarm is powered on and running within 5 seconds?" The reset distinction circuit is used to distinguish between power-on reset and power-on abnormal reset, further avoiding the misjudgment of "Which alarm is powered on and running within 5 seconds?", so as to ensure that the alarm that has just been connected is the only device that responds to the broadcast inspection command of the fire controller, avoiding communication errors.
[0019] Optionally, the delayed power-on circuit includes: A first capacitor C1, with a positive electrode marked as terminal Va and a negative electrode connected to the second output terminal of the delay power-on circuit; A first diode D1, an anode of which is connected to the anode of the first capacitor C1, and a cathode of which is connected to the first output end of the delay power-on circuit; a first resistor R1, one end of which is connected to the positive electrode of the first capacitor C1, and the other end of which is connected to the input end of the delay power-on circuit; MOS tube V1, the source level of which is connected to the other end of the first resistor R1, and the drain level of which is connected to the first output end of the delay power-on circuit; A second resistor R2, one end of which is connected to the gate of the MOS transistor V1; NPN transistor V2, the collector of which is connected to the other end of the second resistor R2, and the base of which is connected to the positive electrode of the first capacitor C1; The voltage stabilizing diode D2 has a cathode connected to the emitter of the NPN transistor V2 and an anode connected to the second output end of the delayed power-on circuit.
[0020] By adopting the above technical solution, delayed power-on can prevent electric sparks from being generated at the moment of access to the bus, avoiding resetting of other alarms on the bus, thereby affecting the judgment of "which alarm is powered on and running within 5 seconds?"
[0021] When the power is initially turned on, the Va terminal of the first capacitor C1 is 0V, the NPN transistor V2 is turned off, the MOS transistor V1 is turned off, and there is no voltage output at the Vout terminal. After the first resistor R1 charges the first capacitor C1, the voltage at the Va terminal gradually increases. When it exceeds the voltage drop of the BE node of the voltage stabilizing diode D2 and the NPN transistor V2, the NPN transistor V2 is turned on, causing the MOS transistor V1 to be turned on, and then there is voltage output at the Vout terminal, that is, the function of power-on delay output is realized.
[0022] When the alarm is powered off, the first diode D1 quickly releases the electricity at the first capacitor C1 to form a reliable delay circuit when the alarm is powered on next time. The delay time can be adjusted by adjusting the parameters of the first resistor R1 and the first capacitor C1.
[0023] Optionally, the reset distinction circuit includes: A second capacitor C2, a negative electrode of which is connected to the second output terminal of the reset distinction circuit, and a positive electrode of which is connected to the first output terminal of the reset distinction circuit; a second diode D3, an anode of which is connected to the anode of the second capacitor C2, and a cathode of which is connected to the input end of the reset distinguishing circuit; The third resistor R3 has one end connected to the cathode of the second diode D3 and the other end connected to the anode of the second capacitor C2.
[0024] By adopting the above technical solution, the third resistor R3 and the second capacitor C2 form a charging circuit, and the charging delay time can be adjusted by adjusting the parameters of the third resistor R3 and the second capacitor C2. The second diode D2 has a fast discharge function. When the second capacitor C2 is fully charged, if the alarm is powered off, the second diode D2 can quickly release the electricity stored in the second capacitor C2 to ensure that the second capacitor C2 is charged from the initial state after the next power-on.
[0025] If the alarm is reset by power-on, the voltage of the second capacitor C2 is 0V after power-on, and then gradually increases. If the alarm is reset by power-on abnormality, the voltage of the second capacitor C2 is VCC; by collecting the voltage at the AD terminal after the MCU is reset, it is possible to determine whether the alarm is reset by power-on or reset by power-on abnormality. In the case of power failure, the capacitor is discharged and has no electricity. When the power is first turned on, it takes a certain amount of time for the capacitor to be fully charged. If the entire circuit is always powered and the processor MCU is accidentally reset, the capacitor will remain in the previous fully charged state. By judging the voltage at the capacitor terminal, the MCU can distinguish whether it is a power-on reset or a power-on abnormal reset, avoiding misjudgment of "which product is powered on and running for 5 seconds", to ensure that the alarm that has just been connected is the only device that responds to the broadcast inspection command of the fire controller, and avoid communication errors.
[0026] In summary, the present application has at least the following beneficial effects: 1. Send a broadcast inspection command according to the inspection cycle z, and generate the corresponding address code according to the received response information. The purpose of the address code being the storage order of the response information in the alarm stored in the fire controller is that there is no need to change the hardware and structure of the original bus equipment, only the software needs to be changed, and it has strong portability; there is no need for mechanical dialing or electronic coding operation, and address recognition can be completed quickly and automatically, greatly improving construction efficiency; there is no need to purchase and carry professional code writers for on-site construction, saving costs; there is no need to worry about the problem of duplicate codes in alarms on the bus, avoiding ineffective troubleshooting; the address code can be clearly identified during the installation process, and the installation sequence number is its address code.
[0027] 2. The purpose of sending the address reset command to the alarm for m consecutive times is to ensure the rigor of the address modification and prevent accidents.
[0028] 3. This application has no impact on the bus communication of the existing fire alarm system and the hardware of the fire controller. It is convenient to transplant and easy to implement. It is suitable for fire alarm systems, electrical fire systems, combustible gas alarm systems, emergency lighting and evacuation systems, linkage control systems and other systems in the fire protection system, as well as systems with similar needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is a flowchart of an embodiment of the method of the present application; Figure 2 It is a structural block diagram of an embodiment of the system of the present application; Figure 3 It is a circuit diagram of the power supply circuit of the alarm device of this application.
[0030] Description of the accompanying drawings: 101, instruction sending module; 102, information receiving module; 103, address recognition module; 104, instruction receiving module; 200, delayed power-on circuit; 300, reset distinction circuit. DETAILED DESCRIPTION
[0031] To make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the following will be combined with the appended drawings of the embodiments of the present invention. Figure 1 -Attached Figure 3 , the technical solutions in the embodiments of the present invention are clearly and completely described. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0032] The first embodiment of the present application discloses a method for automatically determining a coding address of a bus-type fire alarm system. Figure 1, with the fire controller as the execution subject, the method for automatically determining the coding address may include S110-S140: S110, sending a broadcast inspection instruction according to a preset inspection cycle z, the broadcast inspection instruction means "Which alarm is powered on and running within n seconds?", where n is a preset time threshold; S120, receiving a response message, the alarm that has just been installed and responds to the broadcast inspection command sends a response message, the response message includes the ID code of the alarm; S130, used to generate a corresponding address code according to the storage order of the response information inside the fire controller, and send an address reset instruction to the alarm, the address reset instruction including the address code and the ID code; S140, receiving a response instruction. After the alarm correctly receives the address reset instruction, it sends a response instruction and lights up its own LED light.
[0033] Specifically, the specific frame format of the broadcast inspection command is not limited; the power is turned on and the operation time is n seconds greater than 2 times the inspection cycle z to ensure that the alarm can correctly receive the broadcast inspection command. The ID code is a unique identity information code stored and readable by the manufacturer inside the alarm. After receiving the response command, the fire controller stores the ID code received this time in the controller's FLASH memory and increases the storage pointer by one.
[0034] This application is applicable to the scenario where a worker installs and debugs a fire alarm system, for example, with less than 16 alarms. The time required for the worker to transfer from the installation of the current alarm to the installation of the next alarm is much longer than the time it takes for this application to be powered on for n seconds. Therefore, when the fire controller sends a broadcast inspection instruction according to the inspection cycle z, after the current alarm is installed, only the current alarm will respond, so that the only alarm responds to the fire controller. The current alarm responds to the broadcast inspection instruction, integrates its own ID identity code into a response message, and sends it to the fire controller. After the fire controller receives the response message, it generates the corresponding address code according to the storage order of the response information (which can be understood as the order in which the alarm responds to the broadcast inspection instruction, or the order in which the alarm is installed); if the current alarm is installed in the first order, the address code is 1, if the current alarm is installed in the second order, the address code is 2, and so on. The response information will be stored in the fire controller, and the response information will be associated with the address code.
[0035] After the fire controller correctly receives the response command containing the ID code, it sends the address reset command to the current alarm. When sending the address reset command, it can be sent m times in a row, m ≥ 2, and the specific setting can be made according to the actual situation. After the current alarm receives the address reset command m times in a row, it determines whether the ID code in the address reset command is consistent with its own ID code. If it is consistent, the address of the device is refreshed and the LED is flashing to remind the construction personnel on site that the address of the alarm is correctly set; the fire controller continues to send broadcast inspection commands and waits for the construction personnel to install the next alarm until all alarms are installed.
[0036] If the construction personnel do not see the LED flashing prompt of successful address setting within the scheduled time (about 6 seconds), it may be due to the alarm itself or the line. The construction personnel disconnect the power cord / bus communication line of the alarm for about 3 seconds, then reconnect it and the system will operate again. If the ID information of the alarm has been stored inside the fire controller, the sequence number of the previous ID code in the memory will still be used as the address to be reset this time to prevent the address code from being wrong.
[0037] If it is confirmed that there is a problem with the alarm, the above communication process will not be successful, and the fire controller will not obtain the ID code of the alarm. At this time, you only need to replace a new alarm and reconnect it. The system will automatically reconfirm again without manual intervention. In this way, construction personnel can confirm whether there is a problem with the alarm at one time, avoiding the situation mentioned in the background technology that construction personnel find that there is a problem with the alarm during debugging and need to climb up again, which greatly reduces construction costs and time.
[0038] In addition, after installing the alarm, the construction personnel can manually record the actual location of the alarm. After all the alarms are installed, the manually recorded actual location information of the alarm can be posted next to the fire controller or entered into the fire controller according to the type of fire controller. In this way, after the fire controller displays the address code of the alarm / fault alarm, the management personnel can immediately determine the actual location of the alarm. The actual location of the alarm refers to the installation location of the alarm (for example, the east corridor, balcony, etc.).
[0039] A scenario is as follows: When the alarm is installed during on-site construction, the fire controller sends a broadcast inspection command with a 2-second inspection cycle, asking "Which alarm is powered on and running within 5 seconds?"; After the on-site construction personnel install the alarm, they connect the bus and power connection line of the alarm. When the alarm receives the broadcast inspection command sent by the fire controller, it responds to the fire controller and sends the response information integrated with the ID code to the fire controller. After receiving the reply code from the on-site alarm, the fire controller stores the response information and sends the address reset command three times in a row. If the on-site alarm receives the address reset command three times in a row, the address of the alarm will be refreshed and the LED will flash to remind the on-site construction personnel that the address of the alarm has been set correctly, and send a response command to the fire controller. The fire controller identifies the ID code information corresponding to the alarm as normal.
[0040] If the on-site construction personnel do not see the LED flashing prompt of successful address setting within the scheduled time (about 6 seconds), that is, the fire controller does not receive a response command within 6 seconds, it means that the reset address has failed. The construction personnel will disconnect the power cord / bus communication line of this alarm for about 3 seconds, and then reconnect it, and the system will operate again. If there is a problem, you need to replace a new alarm and reconnect it, and the system will automatically confirm again.
[0041] When the workers have correctly installed all the alarms for this project, all the alarms are assigned accurate address codes, and the workers also record the actual location information of the corresponding alarms according to the construction sequence.
[0042] The fire controller is in normal monitoring state, and it inspects and monitors the operating status of all alarms one by one by command of address code. When an alarm on site fails or alarms, the fire controller in the fire control room will display the coded address of the alarm. The management personnel can check the corresponding location information to know which alarm has failed or alarmed at which location.
[0043] In addition, the following descriptions are given for the above power-on running time: The fire alarm system is subject to the limitations of site distance and communication wires. The bus communication rate is generally 2400bps, which is 4ms per byte. Due to the regulations on fire alarm time, the alarm communication protocol is simplified and has no additional content. The length of a frame protocol is more than 10 bytes, and sending a frame of data is 50ms to 80ms, which fully meets the requirements of the above-mentioned broadcast inspection instructions and power-on operation time.
[0044] The second embodiment of the present application provides a method for automatically determining a coding address of a bus-type fire alarm system, with an alarm as the execution subject, and the method includes: The newly installed alarm responds to the broadcast inspection command sent by the fire controller and sends a response message, which includes the ID code of the alarm; after receiving the response message, the fire controller generates a corresponding address code according to the storage order of the response message stored in the fire controller, and sends an address reset command to the alarm, which includes the address code and the ID code; After the alarm receives the address reset command from the fire controller, it determines whether the ID code in the address reset command is consistent with its own ID code; If yes, then confirm the address code in the address reset command as the address identification code for future normal inspection commands of the fire controller, send a response command to the fire controller, and light up the LED light; If not, the address reset instruction will not be responded.
[0045] Furthermore, when the fire controller sends the address reset instruction m times in succession, the reset coding address is confirmed only when the alarm receives the reset instruction m times in succession and the received ID identity code is consistent with the ID identity code inside the alarm.
[0046] It should be noted that before the newly installed alarm responds to the broadcast inspection command, it includes: The alarm determines whether it is reset by power-on or abnormal power-on; If it is a power-on reset, then timing is performed and determining whether a broadcast inspection instruction is received within a time threshold; if so, responding to the broadcast inspection instruction; if not, not responding to the broadcast inspection instruction; If it is reset due to power-on abnormality, it will not respond to the broadcast inspection command.
[0047] Based on the first method embodiment described above, the third embodiment of the present application discloses a system for automatically determining the coding address of a bus-type fire alarm system. Figure 2 , built into the fire controller; the coding address automatic determination system may include: The instruction sending module 101 is used to send a broadcast inspection instruction according to a preset inspection cycle z, and the broadcast inspection instruction includes "Which alarm is powered on and running within n seconds?", where n is a preset time threshold; The information receiving module 102 is used to receive the response information. The alarm that has just been installed and responds to the broadcast inspection command sends the response information, and the response information includes the ID code of the alarm; The address identification module 103 is used to generate a corresponding address code according to the storage order of the response information inside the fire controller; the instruction sending module 101 is used to send an address reset instruction to the alarm, and the address reset instruction includes an address code and an ID identity code; The instruction receiving module 104 is used to receive a response instruction; after the alarm correctly receives the address reset instruction, it sends a response instruction and lights up its own LED light.
[0048] The fourth embodiment of the present application provides an alarm power supply circuit. Figure 3 , the alarm power supply circuit may include a delayed power-on circuit 200, a power supply variation circuit and a reset distinction circuit 300. The input end of the delayed power-on circuit 200 is marked as the Vdd end, which is connected to the communication bus or the power supply bus, the first output end is the Vout end, and the second output end is grounded, which is used to delay the alarm power-on. The input end of the power supply variation circuit (DC / DC) is connected to the Vout end, the first output end is the VCC end, and the second output end is grounded, which is used to convert the voltage of the Vout end into the voltage of the VCC end. The input end of the reset distinction circuit 300 is connected to the VCC end, the first output end is connected to the AD end of the MCU inside the alarm, and the second output end is grounded, which is used to distinguish whether the alarm is powered on and reset or reset with power abnormality.
[0049] Vdd is the power supply from the fire controller to the alarm, which is generally DC24V; Vout is the power supply after the delayed power-on circuit 200, which is the input of the power change circuit. The power change circuit is a conventional circuit with several implementation methods, which will not be described in detail in this application. VCC is the output of the power change circuit, which is generally 5V and is used to power the MCU and other circuits in the alarm.
[0050] The power-on delay circuit 200 can prevent electric sparks from being generated at the moment when the alarm is connected to the bus, thereby preventing other alarms on the bus from being reset, thereby affecting the judgment of "Which alarm is powered on and running within 5 seconds?" The reset distinction circuit 300 is used to distinguish between power-on reset and power-on abnormal reset, further avoiding misjudgment of "Which alarm is powered on and running within 5 seconds?", ensuring that the alarm that has just been connected is the only device that responds to the broadcast inspection command of the fire controller, avoiding communication errors.
[0051] The delayed power-on circuit 200 may include a first capacitor C1, a first diode D1, a first resistor R1, a MOS transistor V1, a second resistor R2, an NPN transistor V2 and a voltage-stabilizing diode D2.
[0052] The positive electrode of the first capacitor C1 is marked as the Va terminal, and the negative electrode is connected to the second output terminal of the delay power-on circuit 200. The positive electrode of the first diode D1 is connected to the positive electrode of the first capacitor C1, and the negative electrode is connected to the first output terminal of the delay power-on circuit 200. One end of the first resistor R1 is connected to the positive electrode of the first capacitor C1, and the other end is connected to the input terminal of the delay power-on circuit 200. The source of the MOS tube V1 is connected to the other end of the first resistor R1, the drain is connected to the first output terminal of the delay power-on circuit 200, and the gate is connected to one end of the second resistor R2; the other end of the second resistor R2 is connected to the collector of the NPN transistor V2, the base of the NPN transistor V2 is connected to the positive electrode of the first capacitor C1, the gate is connected to the negative electrode of the voltage-stabilizing diode D2, and the positive electrode of the voltage-stabilizing diode D2 is connected to the second output terminal of the delay power-on circuit 200.
[0053] The reset distinguishing circuit 300 may include a second capacitor C2 , a second diode D2 , and a third resistor R3 .
[0054] The cathode of the second capacitor C2 is connected to the second output terminal of the reset distinguishing circuit 300, and the other end is connected to the first output terminal of the reset distinguishing circuit 300. The anode of the second diode D3 is connected to the anode of the second capacitor C2, and the cathode is connected to the input terminal of the reset distinguishing circuit 300. One end of the third resistor R3 is connected to the cathode of the second diode D3, and the other end is connected to the anode of the second capacitor C2.
[0055] For example, the charging constant τ=RC=20K*47uF=20ⅹ10 3 ×47ⅹ10 -6 ≈1s, after about 3τ time, the second capacitor C2 can be fully charged. That is, when R3=20K, C2=47uF, after 1s, C2 is about VCC / 3 voltage. In this way, by collecting the voltage at the AD end after the MCU is reset, it can be determined whether the alarm is reset by power-on or reset by abnormal power-on. After confirming that it is a power-on reset, the internal MCU of the on-site alarm starts timing. If it receives a broadcast inspection command from the fire controller during n seconds, it will respond normally, for example, during 3 seconds to 6 seconds.
[0056] In addition, in other implementations, the distinction between power-on reset and power-on abnormal reset can also be made by software; generally, the internal RAM of an MCU has chaotic and disordered internal data when it is initially powered on; a reset in a powered state does not change its previous content.
[0057] A certain area is opened, for example, 8 bytes. When the power is turned on, it is directly determined whether the RAM in the area has a certain pattern (the regular content is assigned during the subsequent operation), such as continuous addition. If there is a regularity, it means that this is a power-on abnormal reset. If there is no regularity, it means that this is a power-on reset. After the program starts running, the RAM in the area is assigned with regular content.
[0058] The above are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application in sequence. Any feature disclosed in this specification (including the abstract and drawings), unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.
Claims
1. A method for automatically determining the coding address of a bus-type fire alarm system, characterized in that: The fire controller is the executive body, including: Send a broadcast inspection instruction according to a preset inspection cycle z, the meaning of which is "Which alarm is powered on and running within n seconds?", where n is a preset time threshold; Receiving a response message, the response message sent by the alarm device that has just been installed and responds to the broadcast inspection instruction, the response message including the ID code of the alarm device; Generate a corresponding address code according to the storage order of the response information inside the fire controller, and send an address reset instruction to the alarm, wherein the address reset instruction includes the address code and the ID identity code; After receiving the response instruction, the alarm correctly receives the address reset instruction, sends the response instruction, and lights up its own LED lamp.
2. A method for automatically determining the coding address of a bus-type fire alarm system according to claim 1, characterized in that: The method for automatically determining the coded address also includes: When sending the address reset instruction to the alarm, it is sent m times continuously, where m≥2.
3. A method for automatically determining the coding address of a bus-type fire alarm system according to claim 1, characterized in that: The method for automatically determining the coded address also includes: The power-on operation time n seconds is greater than 2 times the inspection cycle z.
4. A method for automatically determining the coding address of a bus-type fire alarm system, characterized in that: The alarm is the execution subject, including: The alarm that has just been installed responds to the broadcast inspection command sent by the fire controller and sends a response message, wherein the response message includes the ID code of the alarm; after receiving the response message, the fire controller generates a corresponding address code according to the storage order of the response message inside the fire controller, and sends an address reset command to the alarm, wherein the address reset command includes the address code and the ID code; After receiving the address reset instruction, determining whether the ID identity code in the address reset instruction is consistent with its own ID identity code; If yes, reset the address code according to the address reset instruction, send a response instruction to the fire controller, and light up the LED light; If not, the address reset instruction is not responded to.
5. A method for automatically determining the coding address of a bus-type fire alarm system according to claim 4, characterized in that: Before the newly installed alarm responds to the broadcast inspection instruction, it includes: Determine whether it is a power-on reset or a power-on abnormal reset; If it is a power-on reset, then timing is performed to determine whether the broadcast inspection instruction is received within the duration threshold n seconds; If yes, respond to the broadcast inspection instruction; If not, then do not respond to the broadcast inspection instruction; If it is reset due to power-on abnormality, the broadcast inspection instruction will not be responded.
6. A bus-type fire alarm system coding address automatic determination system, characterized in that: Built into the fire controller, the coding address automatic determination system includes: An instruction sending module (101) is used to send a broadcast inspection instruction according to a preset inspection cycle z, wherein the broadcast inspection instruction means "Which alarm is powered on and running within n seconds?", where n is a preset time threshold; An information receiving module (102) is used to receive response information, the response information being sent by an alarm that has just been installed and responds to the broadcast inspection instruction, the response information including an ID code of the alarm; An address identification module (103) is used to generate a corresponding address code according to the storage order of the response information inside the fire controller, and send an address reset instruction to the alarm, wherein the address reset instruction includes the address code and the ID identity code; The instruction receiving module (104) is used to receive a response instruction. After the alarm correctly receives the address reset instruction, it sends the response instruction and lights up its own LED lamp.
7. An alarm power supply circuit, characterized in that: include: A delayed power-on circuit (200), the input end of which is connected to a communication bus or a power supply bus, the first output end of which is a Vout end, and the second output end of which is grounded, and is used for delaying the power-on of an alarm; A power supply changing circuit, the input end is connected to the Vout end, the first output end is the VCC end, the second output end is grounded, and is used to convert the voltage of the Vout end into the voltage of the VCC end; A reset distinguishing circuit (300) has an input end connected to a VCC end, a first output end connected to an AD end of an MCU inside the alarm, and a second output end connected to ground, and is used to distinguish whether the alarm is reset by power-on or reset by abnormal power-on.
8. The alarm power supply circuit according to claim 7, characterized in that: The delayed power-on circuit (200) comprises: A first capacitor C1, the positive electrode of which is marked as the Va terminal, and the negative electrode of which is connected to the second output terminal of the delayed power-on circuit (200); a first diode D1, the anode of which is connected to the anode of the first capacitor C1, and the cathode of which is connected to the first output end of the delayed power-on circuit (200); A first resistor R1, one end of which is connected to the positive electrode of the first capacitor C1, and the other end of which is connected to the input end of the delayed power-on circuit (200); MOS tube V1, the source level of which is connected to the other end of the first resistor R1, and the drain level of which is connected to the first output end of the delayed power-on circuit (200); A second resistor R2, one end of which is connected to the gate of the MOS transistor V1; NPN transistor V2, the collector of which is connected to the other end of the second resistor R2, and the base of which is connected to the positive electrode of the first capacitor C1; The voltage stabilizing diode D2 has a cathode connected to the emitter of the NPN transistor V2, and an anode connected to the second output end of the delayed power-on circuit (200).
9. The alarm power supply circuit according to claim 7, characterized in that: The reset distinction circuit (300) comprises: A second capacitor C2, a negative electrode of which is connected to the second output end of the reset distinction circuit (300), and a positive electrode of which is connected to the first output end of the reset distinction circuit (300); a second diode D3, the anode of which is connected to the anode of the second capacitor C2, and the cathode of which is connected to the input end of the reset distinguishing circuit (300); The third resistor R3 has one end connected to the cathode of the second diode D3 and the other end connected to the anode of the second capacitor C2.
Citation Information
Patent Citations
Software anti-interference method and device
CN101034369A
A single-wire shared bus protocol system and a working method
CN109873741A
Method for automatically allocating ammeter addresses
CN111629080A
Slave device address identification system, method and device
CN115720142A
I2C bus isolation circuit
CN116932448A