Method, system and circuit for automatically determining coding address of bus-type fire alarm system
The address encoding of the fire alarm system is automatically identified through broadcast inspection instructions, which solves the construction difficulties and security risks caused by address encoding setting errors in the prior art, and achieves efficient and safe address encoding confirmation.
Patent Information
- Application Number
- CN202510315707.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-18
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2045-03-18
AI Technical Summary
During the installation process of existing fire alarm systems, errors in address encoding settings often lead to construction difficulties, safety risks and high costs. The existing technology needs to check and confirm address encoding one by one, which is time-consuming and labor-intensive.
The ID ID code of the alarm is automatically identified by broadcast inspection instructions, the address code is generated based on the response information, and the installation is prompted by the LED light to avoid mechanical dialing or electronic writing operations.
It realizes automatic confirmation of address encoding during installation, reduces construction difficulty, reduces safety risks and costs, and improves construction efficiency. It is suitable for bus-type fire alarm systems.
Smart Images

Figure CN119888983B_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] An increasing number of fire alarm systems are adopting a bus-based operation system, significantly reducing on-site wiring and project costs. In the fire alarm field, the two-way bus communication between fire controllers and on-site alarms typically utilizes a pulse transmission and current return signal, providing both power and communication via two lines. Because this bus communication method lacks contention, there is only one master on the bus: the pulse transmitter is the master, and the current return signal is the slave. This utilizes a master-inquiry, slave-response mechanism to prevent communication timing confusion. Therefore, slave devices connected to the fire bus must have an address code to be recognized by the master. The master can be considered the fire controller installed in the fire monitoring room, while the slaves can be considered the detectors / alarms installed on-site.
[0003] Address coding is generally implemented in two ways: 1) using a DIP switch; 2) using an electronic code. Both DIP switches and electronic codes use a single byte to represent the address of the field slave device, facilitating the fire alarm system's reduced command mode communication. Correctly setting the address code of the field slave device during installation is crucial for the fire alarm system to function properly. However, in engineering, the following situations often occur: mechanical switch failure, incorrect dialing due to misunderstanding of the mechanical switch position, incorrect or ineffective electronic code entry, and discrepancies between the set address and the drawing.
[0004] If an address coding error is discovered during slave device commissioning, the slave must be inspected and repaired. During this inspection and repair, some slaves are located high up, requiring a climbing vehicle or platform. This is extremely inconvenient, poses safety risks, and is both costly and time-consuming. Some slaves, such as explosion-proof equipment, require the removal of connecting pipes. Some even require the removal of mounting hardware and disconnection of connecting lines before re-coding. If the problem cannot be pinpointed, each slave must be investigated individually, making fire alarm system commissioning time-consuming and labor-intensive. Summary of the Invention
[0005] In order to confirm the address code when installing the alarm without having to set 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 code address of a bus-type fire alarm system.
[0006] In a 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 solutions:
[0007] A method for automatically determining the coding address of a bus-type fire alarm system, with a fire controller as the execution body, includes:
[0008] Send 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;
[0009] Receiving a response message, the response message sent by the alarm device that has just been installed and responds to the broadcast inspection instruction includes the ID code of the alarm device;
[0010] 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 identity code;
[0011] After receiving the response instruction, the alarm correctly receives the address reset instruction, sends the response instruction, and lights up its own LED light.
[0012] By adopting the above technical solution, 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 a broadcast inspection instruction 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 power-on operation of n seconds 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 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 consistent, the alarm correctly receives the assigned address code, replies to the fire controller, and lights up the LED to remind the construction workers that the alarm is correctly assigned the address code, and the alarm is successfully installed.
[0013] 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 even have 3-4 points. In this case, one worker usually installs and debugs. Using this solution, it can be confirmed while installing, and there is no need to dial the address or electronically write the address. 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 address coding setting errors and work mistakes, which lead to abnormalities requiring high-altitude maintenance. In addition, for electronically coded products, the code writer is also eliminated, and even the mechanical coding method can be completely cancelled, thereby facilitating the debugging of the fire alarm system.
[0014] Optionally, the method for automatically determining the coded address further includes:
[0015] When sending the address reset instruction to the alarm, it is sent m times continuously, where m≥2.
[0016] By adopting the above technical solution, the rigor of address modification can be ensured and accidents can be prevented.
[0017] Optionally, the method for automatically determining the coded address further includes:
[0018] The power-on running time n seconds is greater than 2 times the inspection cycle z.
[0019] By adopting the above technical solution, it can be ensured that the alarm can correctly receive the broadcast inspection instruction.
[0020] In a 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:
[0021] A method for automatically determining the coding address of a bus-type fire alarm system, with the alarm as the execution subject, includes:
[0022] The newly installed alarm 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 messages 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;
[0023] 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;
[0024] 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;
[0025] If not, the address reset instruction is not responded to.
[0026] Optionally, before responding to the broadcast inspection instruction, the newly installed alarm includes:
[0027] Determine whether it is a power-on reset or a power-on abnormal reset;
[0028] If it is a power-on reset, then timing is performed to determine whether the broadcast inspection instruction is received within the time threshold n seconds;
[0029] If yes, responding to the broadcast inspection instruction;
[0030] If not, do not respond to the broadcast inspection instruction;
[0031] If it is reset due to abnormal power-on, it will not respond to the broadcast inspection instruction.
[0032] 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 the broadcast inspection instruction, ensuring that the alarm that has just been connected to the bus is the only device that responds to the broadcast inspection instruction of the fire controller, and avoiding communication errors.
[0033] 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 solutions:
[0034] A bus-type fire alarm system coding address automatic determination system, built into the fire controller, the alarm address determination system includes:
[0035] The command sending module is used to send a broadcast inspection command according to a preset inspection cycle z, wherein the broadcast inspection command means "Which alarm is powered on and running within n seconds?", where n is a preset time threshold;
[0036] An information receiving module is used to receive a response message, wherein the response message sent by the alarm device that has just been installed and responds to the broadcast inspection instruction includes the ID code of the alarm device;
[0037] An address identification module, configured to generate a corresponding address code according to the storage order of the response information inside the fire controller, and issue an address reset instruction to the alarm, wherein the address reset instruction includes the address code and the ID identity code;
[0038] The instruction receiving module 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 light.
[0039] In a fourth aspect, the present application provides an alarm power supply circuit, which adopts the following technical solution:
[0040] An alarm power supply circuit, comprising:
[0041] The delayed power-on circuit has an input terminal connected to the communication bus or the power supply bus, a first output terminal being the Vout terminal, and a second output terminal being grounded, and is used for delaying the alarm from powering on;
[0042] A power supply changing circuit, having an input terminal connected to the Vout terminal, a first output terminal being the VCC terminal, and a second output terminal being grounded, for converting the voltage of the Vout terminal into the voltage of the VCC terminal;
[0043] The reset distinction 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 grounded, and is used to distinguish whether the alarm is power-on reset or power-on abnormal reset.
[0044] By implementing this technical solution, the power-on delay circuit prevents sparks from occurring when the alarm is connected to the bus, potentially causing other alarms on the bus to reset and affect the determination of "Which alarm is powered on and operating within 5 seconds?" The reset distinction circuit distinguishes between power-on reset and power-on abnormal reset, further preventing misjudgment of "Which alarm is powered on and operating within 5 seconds?" This ensures that the newly connected alarm is the only device that responds to the fire controller's broadcast inspection commands, thus avoiding communication errors.
[0045] Optionally, the delayed power-on circuit includes:
[0046] A first capacitor C1, with a positive electrode marked as terminal Va and a negative electrode connected to the second output terminal of the delayed power-on circuit;
[0047] 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 terminal of the delayed power-on circuit;
[0048] 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;
[0049] MOS transistor V1, whose source terminal is connected to the other end of the first resistor R1, and whose drain terminal is connected to the first output end of the delay power-on circuit;
[0050] A second resistor R2, one end of which is connected to the gate of the MOS transistor V1;
[0051] an 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;
[0052] 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.
[0053] By adopting the above technical solution, the power is delayed to prevent the generation of electric sparks at the moment of access 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?"
[0054] During initial power-up, the voltage at terminal Va of capacitor C1 is 0V, NPN transistor V2 is off, MOS transistor V1 is off, and no voltage is output at Vout. As capacitor C1 is charged by resistor R1, the voltage at terminal Va gradually increases. When it exceeds the voltage drop across the BE junction of Zener diode D2 and NPN transistor V2, NPN transistor V2 turns on, turning on MOS transistor V1 as well. This results in voltage output at Vout, thus implementing the power-on delay output function.
[0055] When the alarm is powered off, the first diode D1 quickly releases the charge on the first capacitor C1, so that a reliable delay circuit can be formed when the alarm is powered on again. The delay time can be adjusted by adjusting the parameters of the first resistor R1 and the first capacitor C1.
[0056] Optionally, the reset distinction circuit includes:
[0057] 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;
[0058] a second diode D3, having an anode connected to the anode of the second capacitor C2 and a cathode connected to the input terminal of the reset distinguishing circuit;
[0059] 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.
[0060] By adopting the above technical solution, the third resistor R3 and the second capacitor C2 form a charging circuit. By adjusting the parameters of the third resistor R3 and the second capacitor C2, the charging delay time can be adjusted. The second diode D2 has a rapid discharge function. When the second capacitor C2 is fully charged, if the alarm loses power, the second diode D2 can quickly release the energy stored in the second capacitor C2, ensuring that the second capacitor C2 is charged from the initial state after the next power-on.
[0061] 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 a power off, 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 its 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 abnormality reset, avoiding misjudgment of "which product is powered on and running for 5 seconds", ensuring that the alarm that has just been connected is the only device that responds to the fire controller's broadcast inspection instructions, and avoiding communication errors.
[0062] In summary, this application has at least the following beneficial effects:
[0063] 1. Send broadcast inspection instructions according to the inspection cycle z, and generate corresponding address codes according to the received response information. The purpose of the address code is to store the response information in the alarm in the order in which it is stored in the fire controller, without changing the hardware and structure of the original bus equipment, only changing the software, and having strong portability; no mechanical dialing or electronic coding operation is required, and address recognition can be completed quickly and automatically, greatly improving construction efficiency; there is no need to purchase or 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.
[0064] 2. The purpose of sending the address reset command to the alarm m times in succession is to ensure the rigor of the address modification and prevent accidents.
[0065] 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
[0066] Figure 1 It is a flowchart of an embodiment of the method of the present application;
[0067] Figure 2 It is a structural block diagram of an embodiment of the system of the present application;
[0068] Figure 3 This is a circuit diagram of the power supply circuit of the alarm device of this application.
[0069] 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
[0070] 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 only part of the embodiments of the present invention, not all of them. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.
[0071] The first embodiment of the present application discloses a method for automatically determining the 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:
[0072] S110, sending a broadcast inspection instruction according to a preset inspection cycle z, the broadcast inspection instruction meaning "Which alarm is powered on and running within n seconds?", where n is a preset time threshold;
[0073] 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 including the alarm ID code;
[0074] S130, for generating a corresponding address code according to the storage order of the response information inside the fire controller, and sending an address reset instruction to the alarm, the address reset instruction including the address code and ID code;
[0075] 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.
[0076] Specifically, the specific frame format of the broadcast inspection command is not limited; the power-on operation period (n seconds) is greater than twice the inspection cycle (z) to ensure that the alarm correctly receives the broadcast inspection command. The ID code is a unique identification code stored and readable by the manufacturer within the alarm. After receiving the response command, the fire controller stores the received ID code in the controller's FLASH memory and increments the storage pointer by one.
[0077] This application is applicable to the scenario where a worker is installing and debugging a fire alarm system, for example, with less than 16 alarms. The time required for a worker to transfer from installing the current alarm to installing the next alarm is much longer than the n seconds it takes for this application to be powered on. 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, thus achieving a unique alarm response 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 receiving the response message, the fire controller generates a corresponding address code based on the storage order of the response information (which can be understood as the order in which the alarms respond to the broadcast inspection instruction, or the order in which the alarms are installed); if the current alarm is installed first, the address code is 1; if the current alarm is installed second, 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.
[0078] After the fire controller correctly receives the response command containing the ID code, it sends an address reset command to the current alarm. When sending the address reset command, it can send it m times in a row, where m ≥ 2. The specific number can be set 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 they are consistent, the address of the device is refreshed and the LED is flashing to remind the construction personnel on site that the alarm address has been 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.
[0079] If the operator does not see the LED flashing to indicate that the address has been successfully set within the scheduled time (approximately 6 seconds), the problem may be with the alarm itself or the wiring. The operator should disconnect the alarm's power cord / bus communication cable for approximately 3 seconds, then reconnect it and restart the system. If the fire controller has already stored the alarm's ID information, the sequence number of the previous ID code in the memory will be used as the address to be reset this time to prevent the address code from being incorrect.
[0080] If the alarm is confirmed to be faulty, the aforementioned communication process will not be successful, and the fire controller will not have obtained the alarm's ID code. In this case, the alarm can be replaced with a new one and reconnected. The system will automatically re-confirm the problem without manual intervention. This method allows construction workers to confirm whether the alarm is faulty at once, avoiding the situation mentioned in the background art where construction workers discover the alarm problem during debugging and need to go back to the height to work, greatly reducing construction costs and time.
[0081] Additionally, after installing the alarm, construction workers can manually record the actual location of the alarm. Once all alarms are installed, this manually recorded location information can be posted next to the fire controller or entered into the fire controller, depending on the type of fire controller. This allows management personnel to immediately determine the actual location of the alarm when the fire controller displays the address code of the alarm / fault alarm. The actual location of the alarm refers to the installation location (for example, the east corridor, balcony, etc.).
[0082] A scenario is as follows:
[0083] 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 has been powered on and running for less than 5 seconds?"; After the on-site construction personnel install the alarm, they connect the alarm bus and power cable. When the alarm receives the broadcast inspection command from the fire controller, it responds to the fire controller and sends the response information integrated with the ID identity code to the fire controller. After receiving the reply code from the on-site alarm, the fire controller stores the response information and issues an address reset command, which is sent three times in succession. If the on-site alarm receives the address reset command three times in a row, it refreshes the address of the alarm and flashes the LED to remind the on-site construction personnel that the alarm has been correctly addressed. It then sends a response command to the fire controller, which identifies the ID identity code information corresponding to the alarm as normal.
[0084] If the on-site construction personnel do not see the LED flashing indicating that the address is successfully set within the predetermined 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 cable of the alarm for about 3 seconds, then reconnect it and the system will restart operation. If there is a problem, it is necessary to replace the alarm with a new one and reconnect it. The system will automatically reconfirm.
[0085] 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.
[0086] The fire controller is in normal monitoring mode, inspecting and monitoring the operating status of all alarms one by one using address code commands. When an alarm on site fails or sounds an alarm, the fire controller in the fire control room will display the alarm's coded address. The management staff can then check the corresponding location information to determine which alarm has failed or sounded an alarm.
[0087] In addition, for the explanation of the above power-on running time:
[0088] Fire alarm systems are limited by site distance and communication wiring, resulting in a bus communication rate of typically 2400bps, or 4ms per byte. Due to fire alarm time constraints, the alarm's communication protocol is streamlined, lacking any additional features. Each protocol frame is just over 10 bytes long, and transmitting a single frame takes 50-80ms, fully meeting the aforementioned requirements for broadcasting inspection commands and power-on operation time.
[0089] A 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. The method includes:
[0090] The newly installed alarm responds to the broadcast inspection command sent by the fire controller and sends a response message, which includes the alarm's ID code. After receiving the response message, the fire controller generates a corresponding address code based on the order in which the response messages are stored in the fire controller, and sends an address reset command to the alarm, which includes the address code and ID code.
[0091] 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;
[0092] If yes, then confirm the address code in the address reset command as the address identification code for the normal inspection command of the fire controller in the future, send a response command to the fire controller, and light up the LED light;
[0093] If not, the address reset instruction will not be responded to.
[0094] Furthermore, when the fire controller sends an 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.
[0095] It should be noted that before a newly installed alarm responds to a broadcast inspection command, it must:
[0096] The alarm determines whether it is reset by power on or reset by abnormal power on;
[0097] 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;
[0098] If it is reset due to abnormal power-on, it will not respond to the broadcast inspection command.
[0099] Based on the first method embodiment described above, the third embodiment of the present application discloses a bus-type fire alarm system coding address automatic determination system. Figure 2, built into the fire controller; the coding address automatic determination system may include:
[0100] The instruction sending module 101 is used to send a broadcast inspection instruction according to a preset inspection cycle z, wherein the broadcast inspection instruction includes "Which alarm is powered on and running within n seconds?", where n is a preset time threshold;
[0101] The information receiving module 102 is used to receive a response message. The alarm that has just been installed and responds to the broadcast inspection instruction sends a response message, and the response message includes the ID code of the alarm;
[0102] The address recognition 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;
[0103] 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.
[0104] 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 terminal of the delayed power-on circuit 200 is marked as the Vdd terminal, which is connected to the communication bus or the power supply bus, the first output terminal is the Vout terminal, and the second output terminal is grounded, which is used to delay the power-on of the alarm. The input terminal of the power supply variation circuit (DC / DC) is connected to the Vout terminal, the first output terminal is the VCC terminal, and the second output terminal is grounded, which is used to convert the voltage of the Vout terminal to the voltage of the VCC terminal. The input terminal of the reset distinction circuit 300 is connected to the VCC terminal, the first output terminal is connected to the AD terminal of the MCU inside the alarm, and the second output terminal is grounded, which is used to distinguish whether the alarm is reset on power or reset with power abnormality.
[0105] Vdd is the power supply from the fire controller to the alarm, typically 24V DC. Vout is the power after the delay circuit 200, which is the input to the power conversion circuit. The power conversion circuit is a conventional circuit with several implementations, which are not detailed in this application. VCC is the output of the power conversion circuit, typically 5V, which is used to power the MCU and other circuits in the alarm.
[0106] The power-on delay circuit 200 prevents sparks from occurring when an alarm is connected to the bus, potentially resetting other alarms on the bus and affecting the determination of "which alarm is powered on and operating within 5 seconds?" The reset distinction circuit 300 distinguishes between power-on reset and power-on abnormal reset, further preventing misjudgments of "which alarm is powered on and operating within 5 seconds." This ensures that the newly connected alarm is the only device that responds to the fire controller's broadcast inspection command, preventing communication errors.
[0107] 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.
[0108] The positive electrode of the first capacitor C1 is designated as terminal Va, 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 transistor 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, and the gate is connected to the negative electrode of the Zener diode D2. The positive electrode of the Zener diode D2 is connected to the second output terminal of the delay power-on circuit 200.
[0109] The reset distinction circuit 300 may include a second capacitor C2 , a second diode D2 , and a third resistor R3 .
[0110] The cathode of the second capacitor C2 is connected to the second output terminal of the reset distinction circuit 300, and the other end is connected to the first output terminal of the reset distinction 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 distinction 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.
[0111] For example, the charging constant τ = RC = 20K * 47uF = 20 x 10 3 ×47ⅹ10 -6≈1s, and the second capacitor C2 is fully charged after approximately 3τ. That is, when R3 = 20K and C2 = 47uF, after 1s, the voltage of C2 is approximately VCC / 3. This allows the voltage at the AD terminal to be collected after the MCU is reset, determining whether the alarm was reset due to a power-on reset or a power-on abnormality reset. After confirming a power-on reset, the on-site alarm's internal MCU begins timing. If it receives a broadcast inspection command from the fire controller within n seconds, for example, between 3 and 6 seconds, it will respond normally.
[0112] In addition, in other embodiments, the distinction between power-on reset and power-on abnormal reset can also be made by software; the internal RAM of a general MCU has chaotic and disordered internal data when initially powered on; a reset in a powered state does not change its previous content.
[0113] A specific area, such as 8 bytes, is allocated. Upon power-on, the RAM in this area is checked for patterns (this pattern is later assigned during runtime), such as by continuous increments. If so, this indicates a power-on reset. If not, this indicates a power-on reset. After the program begins running, the RAM in this area is assigned the pattern.
[0114] The above are all preferred embodiments of the present application and are not intended to limit the scope of protection of the present application. Unless otherwise specified, any feature disclosed in this specification (including the abstract and drawings) may be replaced by other equivalent or similar features. In other words, unless otherwise specified, each feature is merely 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 command according to the preset inspection cycle z, the broadcast inspection command means "Which alarm is powered on and running within n seconds?", n is the preset time threshold; the alarm that is powered on and running for n seconds is greater than 2 times the inspection cycle z; Receiving a response message, the response message sent by the alarm device that has just been installed and responds to the broadcast inspection instruction includes 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; when sending the address reset instruction to the alarm, send it m times continuously, where m ≥ 2; Receive a response command. After the alarm correctly receives the address reset command, it sends the response command and lights up its own LED light. After the fire controller receives the response command, it stores the ID identity code received this time in the controller's FLASH memory and increases the storage pointer by one. Before responding to the broadcast inspection instruction, the newly installed alarm 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 time threshold n seconds; If yes, responding to the broadcast inspection instruction; If not, do not respond to the broadcast inspection instruction; If it is reset due to abnormal power-on, it will not respond to the broadcast inspection instruction.
2. A method for automatically determining the coding address of a bus-type fire alarm system, characterized in that: The alarm is the main execution body, including: The newly installed alarm responds to the broadcast inspection command sent by the fire controller by sending a response message, the response message including the alarm's ID code, and the broadcast inspection command means "Which alarm is powered on and running within n seconds?"; after receiving the response message, the fire controller generates a corresponding address code based on the storage order of the response information within the fire controller, and sends an address reset command to the alarm, the address reset command including 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.
3. A bus-type fire alarm system code address automatic determination system, characterized in that: Built into the fire controller, the automatic coding address 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, wherein the alarm device that has just been installed and responds to the broadcast inspection instruction sends the response information, and the response information includes an ID code of the alarm device; 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 issue 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 light.
4. A method for automatically determining the coding address of a bus-type fire alarm system according to claim 1, characterized in that: The device also includes an alarm power supply circuit, which includes: A delayed power-on circuit (200), having an input end connected to a communication bus or a power supply bus, a first output end being a Vout end, and a second output end being grounded, for delaying the power-on of the alarm; A power supply changing circuit, having an input terminal connected to the Vout terminal, a first output terminal being the VCC terminal, and a second output terminal being grounded, for converting the voltage of the Vout terminal into the voltage of the VCC terminal; The reset distinguishing circuit (300) has an input terminal connected to the VCC terminal, a first output terminal connected to the AD terminal of the MCU inside the alarm, and a second output terminal connected to ground, and is used to distinguish whether the alarm is reset by power-on or reset by abnormal power-on.
5. A method for automatically determining the coding address of a bus-type fire alarm system according to claim 4, 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 positive electrode of which is connected to the positive electrode of the first capacitor C1, and the negative electrode 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 of which is connected to the other end of the first resistor R1, and the drain 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; an 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).
6. A method for automatically determining the coding address of a bus-type fire alarm system according to claim 4, characterized in that: The reset differentiation 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 distinction 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
I2C bus isolation circuit
CN116932448A
Method and device for automatically distributing communication addresses of circuit breakers of internet of things
CN116962351A
Power-on reset circuit
CN118694350A