Method and system for quickly identifying and determining address codes of bus type fire alarm

By sending inspection instructions in the fire controller, the fire alarm compresses its ID information code to generate a single-byte address encoding, solving the problem of low address recognition efficiency in fire protection projects in the prior art, achieving fast and accurate address recognition, and improving debugging efficiency.

CN119922165AActive Publication Date: 2025-05-02JINAN BENAN TECH DEV CO LTD

Patent Information

Application Number
CN202510415307.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-03
Publication Date
2025-05-02
Estimated Expiration
2045-04-03

AI Technical Summary

Technical Problem

In fire protection projects, it is difficult for the prior art to quickly, accurately and automatically identify the equipment address encoding on the alarm bus, resulting in low engineering debugging efficiency, and mechanical dialing and electronic encoding have their own defects and cumbersomeness.

Method used

By sending inspection instructions in the fire controller, the fire alarm compresses its unique ID information code according to the command code, generates a single-byte compressed code as the address code, and achieves rapid identification and confirmation of the bus device address through the gradual increase of the inspection address code.

Benefits of technology

This method significantly shortens the inspection cycle, avoids the defects of mechanical dialing and the cumbersomeness of electronic coding, realizes the rapid and accurate identification of fire alarm address coding, and improves engineering debugging efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119922165A_ABST
    Figure CN119922165A_ABST
Patent Text Reader

Abstract

The invention relates to a bus type fire alarm address code rapid identification and determination method and system, and the method comprises the steps: enabling a fire alarm to compress the ID information code of the fire alarm according to a first command code in an inspection instruction, and generating a corresponding first compression code, judging whether the routing inspection address code is matched with the routing inspection address code in the routing inspection instruction, and if so, sending response data; after the fire-fighting controller judges that the response data is correct, the ID information codes are stored in a database in sequence, and a confirmation instruction is sent; the fire alarm judges whether the inspection address code is matched with the first compression code or not according to the confirmation instruction, and if yes, identification is confirmed; and the inspection address code + 1, and repeating the previous steps until all the inspection address codes are sent. The method has the beneficial effects that the address codes of the fire alarm on the bus can be quickly identified, the defects of mechanical dial-up are avoided, and the trouble that special equipment is needed for electronic dial-up and the address needs to be manually identified is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of bus-type fire alarm systems, and in particular to a method and system for quickly identifying and determining address codes of bus-type fire alarms. Background Art

[0002] In the field of fire alarm, especially the communication bus between fire controller and on-site alarm, its circuit principle is generally pulse sending, current code return, and half-duplex communication through two wires. 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 code return end is the slave. The host query and slave response mechanism is adopted to prevent communication timing confusion; therefore, in the same bus, each slave device must have a unique address, and the address information must be stored in the bus fire controller, or stored in the bus loop board to ensure that each slave address can be inspected normally, and then the status or related information of each slave device can be obtained. 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 set the slave device address: 1) DIP switch method. 2) Electronic coding method.

[0004] The dip switch is mechanical, generally 8-bit, which requires more interface resources of the MCU and has a high cost. The advantages of mechanical dip switches are that they are simple and intuitive, can directly distinguish the address of the device, and can change the address at any time. However, in the long-term operation of the mechanical dip switch structure, some individual dip switches may fail. For example, it appears to be in the OFF position, but it is actually in the on state; or it appears to be in the ON position, but it is actually in the off state. At this time, the MCU will read the IO state incorrectly, which will cause the address to be lost and report a fault. This will result in the dip switch address seen from the appearance being different from the address obtained by the MCU, making it difficult to find the fault.

[0005] The electronic encoding method requires less interface resources from the MCU and has a lower cost, but a dedicated encoder is needed to write the address. The address information is stored in the memory inside the slave device and cannot be identified from the appearance. Therefore, it is usually necessary to manually record the internally stored address number on the product casing to facilitate quick identification of the product's address information during the inspection process.

[0006] In the actual project installation site, there are generally the following situations: 1. The drawings have been designed and marked with the bus device numbers at each location. On-site installation workers need to set the addresses of the bus devices one by one at the construction site according to the drawings and then install them. For electronic encoding, each worker needs to carry an encoder and watchFigure 1 It is very inconvenient to work at the same time.

[0007] 2. The drawings have been designed, but only the locations of the bus devices are marked, but no numbers are marked. On-site installers need to set the bus device numbers and install them while recording the set numbers on the drawings. Finally, they need to re-enter the drawing information into the controller to achieve the correspondence between the device locations and numbers, which is a very heavy workload.

[0008] 3. For some small projects, when there are not many bus devices, some construction parties do not have coding equipment and require the manufacturer to write the slave address in advance when shipping, and mark the electronic address code on the shell. In this case, if the product is taken by mistake or confused with other engineering products at the project site, it will greatly increase the difficulty of debugging and finding. In addition, if the bus device needs to be replaced or added, the subsequent communication and coordination work will become extremely cumbersome.

[0009] 4. For some large projects, there are many bus devices, which can reach hundreds, thousands or even tens of thousands. The address of each device needs to be identified one by one. The early debugging process is complicated. Once the address is written incorrectly or the DIP switch is wrong, it is difficult to find, time-consuming and laborious.

[0010] Based on the above practical situations, the current fire protection engineering urgently needs to be able to quickly, accurately and automatically identify the device address code on the alarm bus to improve the efficiency of engineering debugging. Summary of the invention

[0011] In order to quickly identify the device address code on the alarm bus and avoid the defects of mechanical dialing, the electronic dialing requires special equipment and the trouble of manual address identification, the present application provides a method and system for quickly identifying the address code of a bus-type fire alarm.

[0012] In the first aspect, the present application provides a method for quickly identifying and determining the address code of a bus-type fire alarm, which adopts the following technical solution: A method for quickly identifying and determining the address code of a bus-type fire alarm, with a fire controller as the execution subject, comprising: Sending an inspection instruction, the inspection instruction including an inspection address code and a first command code; after receiving the inspection instruction, all fire alarms on the fire bus compress their own ID information codes according to the first command code to generate a corresponding first compressed code as the local address code of this round of fire controller inspection; the ID information codes of the fire alarms are arranged according to the setting rules of the manufacturer, and the inspection address code and the local address code are both single-byte; Receive response data; when the first compression code matches the inspection address code, the corresponding fire alarm sends the response data to the fire controller, and the response data includes the ID information code of the fire alarm itself and the first compression code generated by compressing the ID information code in this round; Determining whether the response data is correct; If yes, the received ID information code of the fire alarm is stored in the database in order, and a confirmation instruction is sent; after the fire alarm receives the confirmation instruction, it is determined again whether the inspection address code matches the first compression code, if yes, a confirmation mark is made, if not, no processing is performed; Inspection address code + 1, repeat the above steps until all inspection address codes within the range of this round of single-byte data are sent.

[0013] By adopting the above technical solution, since the complete ID information code of each fire alarm is unique, the ID information code (including equipment type, production date, production batch, production serial number, etc.) can be compressed into the expected single-byte operation result through a compression algorithm, and used as the local address code. In this way, the fire controller can conduct inspections one by one in the form of a single-byte address command. Since the maximum number of rounds is 256 times, and according to the requirements of the standard specifications, a fire alarm bus can be installed with a maximum of 240 address points, this solution can significantly shorten the inspection cycle. At the same time, the fire alarm ID information code obtained by each correct inspection will be stored in the fire controller to confirm that the corresponding fire alarm has been correctly identified by the current inspection instruction. This solution effectively realizes the rapid identification of the address code of the fire alarm on the alarm bus, avoiding the defects of mechanical dialing and the cumbersomeness of electronic dialing requiring special equipment and manual address identification.

[0014] Optionally, the step of determining whether the response data is correct further includes: If not, the next inspection instruction is sent, in which the inspection address code is the inspection address code in the previous inspection instruction + 1, and the above steps are repeated until all inspection address codes within the range of the current single-byte data are sent.

[0015] By adopting the above technical solution, although the response data of the fire alarm is received within the predetermined time period, the response data is incorrect after analysis. This means that there are multiple fire alarms responding to the response data of the inspection address code, resulting in incorrect response data received. In this case, the response data is discarded, and the inspection instruction is continued to be sent and the inquiry is continued.

[0016] Optionally, the steps after sending the inspection instruction include: Determine whether the response data is received within a preset time period; If yes, then determine whether the response data is correct; If not, the next inspection instruction is sent, in which the inspection address code is the inspection address code in the previous inspection instruction + 1, and the above steps are repeated until all inspection address codes within the range of the current single-byte data are sent.

[0017] By adopting the above technical solution, if no response is received from any fire alarm within the predetermined time, it means that no matching local address code exists this time, so inspection instructions can continue to be sent and inquiries can continue.

[0018] Optionally, after determining whether the response data is correct, the following steps are performed: After completing a round of inspection, determine whether all fire alarms are marked; If not, send the next round of inspection instructions; the next round of inspection instructions includes an inspection address code and a second command code, and the identified fire alarm no longer participates in this round of inspection response; the unidentified fire alarm compresses its own ID information code according to the second command code to generate a corresponding second compression code as the local address code for this round of fire controller inspection; when the second compression code matches the inspection address code, the corresponding fire alarm sends the response data to the fire controller.

[0019] By adopting the above technical solution, although the complete ID information code of each fire alarm is unique and will not be repeated, the single-byte operation result generated after compression may be repeated; that is, although this method effectively reduces the number of inspections (maximum 256 times per round), it may cause the local address code to be repeated, resulting in errors in the data received by the fire controller and the inability to accurately identify the ID information of the on-site fire alarm.

[0020] To overcome this problem, the fire controller issues different inspection instructions in each round (i.e., the command codes are different in each round), and the fire alarm can change the order of its own ID information code and compress it according to different command codes, that is, the same fire alarm obtains different compressed information sources, and then obtains different expected operation results, so that it can avoid the situation where several different fire alarms fixed on the same bus obtain the same operation results under different inspection instructions. In this way, after the fire controller patrols again, and the fire alarm that was correctly detected in the previous round does not respond to this patrol, the possibility of response conflict with other fire alarms on the bus is further reduced, and the ID information code of the fire alarm that conflicted in the previous round is obtained as quickly as possible. If there is still a conflict in this round, the ID information code of all fire alarms on the bus can be obtained in full by repeating this process several times. After obtaining the ID information codes of all fire alarms on the bus, the ID information code can be used as an index to inspect the fire alarms on the bus one by one in order, and there will be no non-existent fire alarms being inspected, wasting inspection time and causing inspection delays.

[0021] Optionally, the method for quickly identifying and determining an address code further includes: Based on external trigger conditions, the fire controller maps the ID information code of the fire alarm stored in sequence internally into single-byte data as a mapping address, or uses the storage sequence number of the ID information code of the fire alarm in the fire controller as a mapping address.

[0022] By adopting the above technical solution, the fire controller performs address mapping, maps the longer ID information code of the fire alarm on the bus into a single byte length, and inspects the fire alarms on the bus one by one in order, so that no non-existent fire alarm is inspected and inspection time is wasted, so as to supervise the status of the fire alarms on the bus and facilitate management and communication. The more fire alarms on the fire alarm bus, the more convenient this method is.

[0023] Optionally, the fire controller maps the ID information code of the fire alarm stored in sequence internally into single-byte data as a mapping address based on an external trigger condition, or uses the storage sequence number of the ID information code of the fire alarm in the fire controller as the mapping address, and further includes: Mapping instructions are issued one by one; the mapping instructions include a mapping address and the ID information code of the fire alarm; after the fire alarm receives the mapping instruction that matches its own ID information code, it updates its own address code according to the mapping address; the mapping instruction is sent the same number of times as the number of fire alarms.

[0024] By adopting the above technical solution, the fire controller can then conduct inspections according to the single-byte address and display the address code of the fire alarm to facilitate management and communication.

[0025] Optionally, the method for quickly identifying and determining an address code further includes: When the mapping instruction is issued, it is issued continuously for n times, where n≥2; the fire alarm will update its own address code according to the mapping address only after it receives the mapping instruction matching its own ID information code for n consecutive times.

[0026] By adopting the above technical solution, the accuracy and rigor of address modification can be ensured, and the occurrence of unexpected situations can be effectively prevented.

[0027] Optionally, before sending the inspection instruction, the step includes: When the fire alarm is installed, a broadcast inspection command is sent; all fire alarms that can receive the broadcast inspection command light up their own LED flashing prompts; After all fire alarms are installed, the system receives address coding inspection instructions and enters the state of automatically setting the coding address.

[0028] By adopting the above technical solution, on-site installation personnel can know that the currently installed fire alarm communicates normally with the bus.

[0029] In the second aspect, the present application provides a system for quickly identifying and determining the address code of a bus-type fire alarm, which adopts the following technical solution: A system for quickly identifying and determining address codes of a bus-type fire alarm, comprising a fire controller and a fire alarm; Among them, the fire controller includes: The first instruction sending module is used to send an inspection instruction, wherein the inspection instruction includes an inspection address code and a command code; the command code in each round of inspection instructions is different; the command code of the inspection instructions sent each time in the same round is the same, and the inspection address code of this time is the previous inspection address code + 1; A data receiving module, used for receiving response data; A first judging module, used to judge whether the response data is correct; A storage module, used for storing the ID information code of the fire alarm in a database in order when the response data is correct, and the instruction sending module sends a confirmation instruction; The fire alarm comprises: A first instruction receiving module, used for receiving the inspection instruction; The data compression module is used to compress its own ID information code according to different command codes to generate corresponding compression codes as the local address code of the corresponding round of fire controller inspection; the ID information code of the fire alarm is arranged according to the manufacturer's setting rules, and the inspection address code and the local address code are both single-byte; The second judgment module is used to judge whether the compression code of each round matches the inspection address code of the corresponding round; A data sending module, used for sending the response data of the corresponding round when the compression code matches the inspection address code of the corresponding round; Identification module: after the first instruction receiving module receives the confirmation instruction, the second judgment module again determines whether the compression code matches the inspection address code of the corresponding round. If so, the identification module performs confirmation identification.

[0030] In summary, the present application has at least the following beneficial effects: 1. After receiving the inspection instruction, all fire alarms on the fire bus compress their own ID information codes according to the first command code to generate the corresponding first compressed code; the purpose of arranging the ID information codes of the fire alarms according to different setting rules is that since the complete ID information code of each fire alarm is unique, the ID information code (including equipment type, production date, production batch, production serial number, etc.) can be compressed into the expected single-byte operation result through the compression algorithm, and used as the local address code. In this way, the fire controller can inspect one by one in the form of a single-byte address command. Since the maximum number of rounds is 256 times, and according to the standard specification requirements, a fire alarm bus can be installed with a maximum of 240 address points, this solution can significantly shorten the inspection cycle. At the same time, the fire alarm ID information code obtained by each correct inspection will be stored in the fire controller to confirm that the corresponding fire alarm has been correctly identified by the current inspection instruction. This solution effectively realizes the rapid identification of the address code of the fire alarm on the alarm bus, avoiding the defects of mechanical dialing and the cumbersomeness of electronic dialing requiring special equipment and manual address identification.

[0031] 2. After completing a round of inspection, determine whether all fire alarms are identified. If not, send the next round of inspection instructions; the identified fire alarms no longer participate in the current round of inspection responses; the purpose of the unidentified fire alarm compressing its own ID information code according to the second command code to generate the corresponding second compression code is that although the complete ID information code of each fire alarm is unique and will not be repeated, the single-byte operation result generated after compression may be repeated; that is, although this method effectively reduces the number of inspections (maximum 256 times per round), it may cause the phenomenon of repeated local address codes, resulting in errors in the data received by the fire controller and the inability to accurately identify the ID information of the on-site fire alarm; to overcome this problem, the fire controller sends different inspection instructions each round (that is, the command codes are different in each round), and the fire alarm can change the order of its own ID information code according to different command codes and compress it, that is, the same fire alarm obtains different compressed information sources, and then obtains different expected operation results, so that it can avoid the situation where several different fire alarms fixed on the same bus obtain the same operation results under different inspection instructions. In this way, after the fire controller has been patrolled again, and the fire alarm that was correctly detected in the previous round does not respond to this patrol, the possibility of response conflicts with other fire alarms on the bus is further reduced, and the ID information code of the fire alarm that conflicted in the previous round can be obtained as quickly as possible. If there is still a conflict in this round, the ID information codes of all fire alarms on the bus can be obtained in full after several rounds of reciprocation. After obtaining the ID information codes of all fire alarms on the bus, the ID information codes can be used as indexes to inspect the fire alarms on the bus one by one in order, so that there will be no non-existent fire alarms being inspected, wasting inspection time and causing inspection delays.

[0032] 3. Based on external trigger conditions, the fire controller maps the ID information code of the fire alarm stored in sequence inside into single-byte data as the mapping address, or uses the storage sequence number of the ID information code of the fire alarm in the fire controller as the mapping address. The purpose is that the fire controller performs address mapping, maps the longer ID information code of the fire alarm on the bus into a single-byte length, and inspects the fire alarms on the bus one by one in sequence, so that there will be no non-existent fire alarms being inspected and wasting inspection time, so as to supervise the status of the fire alarms on the bus and facilitate management and communication. The more fire alarms on the fire alarm bus, the more convenient this method is. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a flowchart of an embodiment of the method of the present application; Figure 2It is a schematic table showing the compression of the ID information code of the fire alarm according to different command codes; Figure 3 This is the flow chart after completing a round of 000-255 inspection addresses; Figure 4 It is a structural block diagram of an embodiment of the system of the present application. DETAILED DESCRIPTION

[0034] 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 4 , 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.

[0035] The first embodiment of the present application discloses a method for quickly identifying and determining the address code of a bus-type fire alarm. As an implementation of the method for quickly identifying and determining the address code, the method for quickly identifying and determining the address code may include the following steps: When the fire alarm is installed, a broadcast inspection command is sent; all fire alarms that can receive the broadcast inspection command light up their own LED flashing prompts; after all fire alarms are installed, address coded inspection commands are received.

[0036] Specifically, when the fire alarm is installed, the fire controller sends a "broadcast inspection command" to the bus. All fire alarms that can receive the broadcast inspection command light up their own LED flashing prompts, letting the on-site installation personnel know that the currently installed fire alarm is communicating normally with the bus and that the fire alarm does not need to reply.

[0037] After the on-site fire alarm is installed, the construction personnel operate the fire controller and issue an address coding inspection instruction, and the fire controller enters the state of automatically setting the coding address.

[0038] Reference Figure 1 , further, when the fire controller enters the state of automatically setting the coding address, S110-S160 can be executed: S110, sending an inspection instruction, which includes an inspection address code and a first command code; after receiving the inspection instruction, all fire alarms on the fire bus compress their own ID information codes according to the first command code to generate a corresponding first compressed code as the local address code of the current round of fire controller inspection; the ID information codes of the fire alarms are arranged according to the manufacturer's setting rules, and the inspection address code and the local address code are both single-byte; S120, receiving response data; when there is a match between the first compression code and the inspection address code, the corresponding fire alarm sends response data to the fire controller, and the response data includes the ID information code of the fire alarm itself and the first compression code generated by compressing the ID information code in this round; S130, determining whether the response data is correct; S140, if not, send the next inspection instruction, the inspection address code in the next inspection instruction is the inspection address code of the previous inspection instruction + 1; S150, if yes, the received ID information code of the fire alarm is stored in the database in order, and a confirmation instruction is sent; after the fire alarm receives the confirmation instruction, it is determined again whether the inspection address code matches the first compression code, if yes, a confirmation mark is made, if not, no processing is performed; S160, repeat S110-S150 until all inspection address codes within the current round of single-byte data are sent.

[0039] Specifically, S110-S160 is a round of polling process, and the inspection address code is the address code sent by the fire controller to the fire alarm. Before the inspection, the ID information codes of all fire alarms are arranged according to the manufacturer's setting rules; for example, the arrangement order of the ID information code of the fire alarm is equipment type-production year-production month-production batch-production serial number. The inspection instruction includes an inspection address code and a first command code. The inspection address code ranges from 000-255. The inspection address code in each inspection instruction in a round of polling is different. The first command code can be the same. For example, the inspection address code (001) in the inspection instruction sent for the second time is the inspection address code (000) in the first inspection instruction + 1; the first command code represents the operation rule for compressing the fire alarm ID information code. For example, refer to Figure 2 As shown, taking the CRC-8 checksum compression algorithm as an example, four operation rules are listed; of course, in other implementations, other compression algorithms can also be used as long as the ID information code can be compressed into a single byte.

[0040] Among them, host command 1 refers to the first command code, host command 2 refers to the second command code, host command 3 refers to the third command code, and host command 4 refers to the fourth command code. The four operation rules represent that four rounds of polling can be performed. SWAP means to swap the high and low four bits of the content of the byte. For example, the original content is 0x12, and after SWAP it is 0x21. The purpose of this is to ensure that the data source participating in the compression is different each time, so that different command codes can generate different compressed data results, that is, for the same fire alarm ID information code, after four compressions with different rules, the output results are different.

[0041] When the first CRC compression code generated by the fire alarm matches the inspection address code, the response data is sent to the fire controller. In addition to the ID information code of the fire alarm itself and the first CRC compression code generated by this round of compression of the ID information code, the response data also includes the accompanying check code and frame header data. The fire controller will determine whether the response data is correct. If so, the ID information code of the fire alarm will be stored in the database in sequence and a confirmation instruction will be sent.

[0042] Among them, the way to judge whether the response data is correct can be: 1) the frame header is correct; 2) the address code is consistent; 3) the check code of this communication frame is correct; 4) the equipment type code complies with the regulations; 5) the production year code complies with the regulations; 6) the production month code complies with the regulations, etc.; only if all the above contents are correct, it means that the response data is correct; if any one of them is wrong, it means that the response data is wrong.

[0043] In addition, the ID information codes of fire alarms can be stored in the database in order by placing the same type of fire alarms in a separate area and then sorting them by production date; for fire alarms with the same production date, sorting them by production batch; for fire alarms with the same production batch, sorting them by production serial number. After sorting, the fire controller can implement patrol inspection of the fire alarms on the bus by "production batch, production serial number".

[0044] When the fire alarm receives the confirmation instruction, it will again determine whether the inspection address code matches the first CRC compression code. If so, a confirmation mark will be issued to indicate that it has been inspected; if not, no processing will be performed.

[0045] Furthermore, when the fire alarm sends response data to the fire controller, the fire controller needs to determine whether the response data is received within the preset time length; if so, it further determines whether the response data is correct; if not, it means that there is no matching local address code this time, then the fire controller will add 1 to the current patrol address code, and continue to repeat until the query of the patrol address code of 0 to 255 is completed.

[0046] If the response data is received within the preset time and the data is correct after analysis (the judgment process is described above), it means that the current inspection address has a unique corresponding ID information code on the current bus. The received ID information code is stored in the received database in sequence, and a confirmation instruction is sent. Then the current inspection address code is increased by 1, and the process is repeated until the inquiry of the inspection address code from 0 to 255 is completed.

[0047] If the response data is received within the preset time, but the data is incorrect after analysis, it means that there are multiple fire alarms responding to the data of the patrol address code, resulting in incorrect response data received. The response data will be discarded, and then the current patrol address code will be increased by 1, and the process will be repeated until the query of patrol address codes 0 to 255 is completed.

[0048] In this round of inspection, the number of repeated local address codes cannot be determined temporarily. It is necessary to wait until this round of inspection is completed and replace the new command code for re-inspection.

[0049] Reference Figure 3 Furthermore, the method for quickly identifying and determining an address code may also include S210-S230: S210, after completing a round of inspection, determining whether all fire alarms are marked; S220, if not, send the next round of inspection instructions; the next round of inspection instructions include the inspection address code and the second command code, and the identified fire alarm no longer participates in the inspection response of this round; the unidentified fire alarm compresses its own ID information code according to the second command code to generate the corresponding second compressed code as the local address code of the fire controller inspection of this round; when the second compressed code matches the inspection address code, the corresponding fire alarm sends the response data to the fire controller; S230, execute S120-S160, S210-S230 until all fire alarms are identified.

[0050] Specifically, take the compression algorithm CRC-8 as an example; the ID information codes of the fire alarm are arranged according to different predetermined rules, and then CRC-8 verification is performed to obtain a single-byte CRC compression code, which is regarded as the local address code of the fire alarm. The fire controller adopts a single address coding format, and inspects all fire alarms on the bus one by one from the inspection address 000 to the inspection address 255. When the inspection address code in the inspection instruction received by the fire alarm is consistent with its own CRC compression code, it sends the response data to the fire controller. If the fire controller can correctly receive the response data, then the ID information code of the fire alarm is stored in the database in sequence, and the fire alarm is fed back; if the fire controller does not receive the response data within the preset time, it means that there is no such address in the current bus; if the fire alarm can receive the response data, but the response data does not meet the correct decoding rules, then it means that there are multiple identical local address codes on the bus, which may be that the ID information codes of different fire alarms are compressed to obtain the same compression code, so there is a phenomenon of simultaneous return codes, causing the fire controller to receive the return code error.

[0051] In the first round of inspection, if there is only one reception error, it means that there are still unrecognized fire controllers on the bus. After the first round of inspection, the fire controller sends a new inspection command, and each fire alarm compresses the ID information code according to the new command code in the new inspection instruction to generate a new CRC compression code. The fire controller still uses a single address encoding format, and inspects all fire alarms on the bus one by one from inspection address 000 to inspection address 255. When the inspection address code received by the fire alarm is consistent with the CRC compression code of this round of the machine, it responds to the fire controller. Because the fire alarm that responded correctly for the first time does not respond to the inspection response of this round, and the generation rule of the compression code has been changed this time, it is avoided that the fire alarm with the local address code conflict in the last round of inspection still conflicts in this round of inspection. The fire controller adds the ID information code of the fire alarm that has been correctly received to the database of the fire controller until all inspection addresses are inspected.

[0052] If the receiving response data error still occurs in the second round of inspection, it means that there is a conflict in the local address code. The fire controller changes the inspection command again and repeats the second round of inspection process.

[0053] The fire controller uses multiple inspection commands. The fire alarm uses different algorithms to obtain multiple CRC compression codes based on the inspection commands of the fire controller. The purpose is to obtain different compression codes each time. This avoids the situation where several fixed fire alarms always have the same address in different rounds of inspections, which affects communication and causes unrecognition.

[0054] Time analysis: The communication rate of the fire bus is generally 2400bps, that is, 4ms per byte; the fire controller sends a patrol command of 7 bytes, which takes 28ms; the fire alarm responds once with 10 bytes, which takes 40ms; the fire controller sends a confirmation command of 7 bytes, which takes 28ms; the idle time after each transmission is 8ms; the time to correctly receive a response data is: 28+8+40+8+28+8=120ms; if a round of patrol can be correctly received, the time required is 112msX256=30S; even if four rounds of patrol are carried out, the time required is only 120 seconds. In other words, within 120 seconds, the ID information codes of all fire alarms on a bus can be automatically patrolled without manual intervention, which greatly reduces the difficulty of engineering debugging and shortens the debugging time.

[0055] Furthermore, after the ID information codes of all fire alarms on the bus are stored in sequence in the database of the fire controller, the fire controller can directly use the ID information code of the fire alarm as display information, but this method does not conform to people's management habits, and the number is too long, which is not convenient for communication and use. In order to make the display and communication more convenient, it is necessary to shorten the originally long ID information code, as mentioned above, shorten it to a length of one byte. Therefore, an external trigger condition can be given to the fire controller, so that the fire controller maps the ID information code stored in sequence inside it into single-byte data as the mapping address, or directly uses the sequence number of the ID information code in the database as the mapping address; the external trigger condition can be that the worker operates the fire controller to enter the operation interface of the mapping address.

[0056] The fire controller has an independent operation interface, which displays the address information to be mapped. During the process, the order can be changed manually, and even some ID information codes can be locked to prevent the mapping address from being changed. This method is suitable for the situation where several address points need to be added during future use to ensure that the original mapping address information remains unchanged. The required ID information code can also be edited directly. This method is suitable for the needs of on-site product replacement, that is, the original product is faulty and is replaced with a new product, but the mapping address remains unchanged.

[0057] After manually confirming the remapping operation, the fire controller will send mapping instructions one by one. The mapping instructions include the mapping address and the ID information code of the fire alarm. After the fire alarm receives the mapping instruction that matches its own ID information code, it updates its own address code according to the mapping address. The number of times the mapping instruction is sent matches the number of fire alarms, that is, all fire alarms need to reset their addresses one by one. To ensure that the information is accurate, each mapping instruction will be sent repeatedly n times (n≥2). If the fire alarm on the bus receives the mapping instruction that matches its own ID information code n times in a row, it will update its own address code according to the mapping address. After that, it can be inspected and displayed according to the single-byte address for easy management and communication.

[0058] Based on the above method embodiment, the second embodiment of the present application discloses a system for quickly identifying and determining the address code of a bus-type fire alarm. Figure 4 The address code rapid identification and determination system may include a fire controller and a fire alarm.

[0059] The fire controller includes: The first instruction sending module is used to send an inspection instruction, which includes an inspection address code and a command code; the command code in each round of inspection instructions is different; the command code of the inspection instructions sent each time in the same round is the same, and the inspection address code of this time is the previous inspection address code + 1; A second instruction receiving module, used for receiving an address code inspection instruction; An address mapping module is used to map the ID information code of the internally stored fire alarm into single-byte data based on an external trigger condition; A data receiving module, used for receiving response data; The first judging module is used to judge whether the response data is correct; The storage module is used to store the ID information code of the fire alarm in the database in order when the response data is correct, and the instruction sending module sends a confirmation instruction.

[0060] Fire alarms include: A first instruction receiving module, used for receiving inspection instructions, broadcast inspection instructions and mapping instructions; The data compression module is used to compress its own ID information code according to different command codes to generate the corresponding compression code as the local address code of the corresponding round of fire controller inspection; the ID information code of the fire alarm is arranged according to the manufacturer's setting rules, and the inspection address code and the local address code are both single-byte; The second judgment module is used to judge whether the compression code of each round matches the inspection address code of the corresponding round; A data sending module, used for sending the response data of the corresponding round when the compression code matches the inspection address code of the corresponding round; Identification module: After the first instruction receiving module receives the confirmation instruction, the second judgment module again determines whether the compression code matches the inspection address code of the corresponding round. If so, the identification module performs confirmation identification; LED module, used to light up and flash according to the broadcast inspection instructions; The address change module is used to receive the mapping address and update its own address code according to the mapping instruction.

[0061] The modules of the system for quickly identifying and determining the address code of the bus-type fire alarm correspond one to one with the method for quickly identifying and determining the address code of the bus-type fire alarm, and no further details will be given here.

[0062] 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 quickly identifying and determining the address code of a bus-type fire alarm, characterized in that: The fire controller is the executive body, including: Sending an inspection instruction, the inspection instruction including an inspection address code and a first command code; after receiving the inspection instruction, all fire alarms on the fire bus compress their own ID information codes according to the first command code to generate a corresponding first compressed code as the local address code of this round of fire controller inspection; the ID information codes of the fire alarms are arranged according to the setting rules of the manufacturer, and the inspection address code and the local address code are both single-byte; Receive response data; when the first compression code matches the inspection address code, the corresponding fire alarm sends the response data to the fire controller, and the response data includes the ID information code of the fire alarm itself and the first compression code generated by compressing the ID information code in this round; Determining whether the response data is correct; If yes, the received ID information code of the fire alarm is stored in the database in order, and a confirmation instruction is sent; after the fire alarm receives the confirmation instruction, it is determined again whether the inspection address code matches the first compression code, if yes, a confirmation mark is made, if not, no processing is performed; Inspection address code + 1, repeat the above steps until all inspection address codes within the range of this round of single-byte data are sent.

2. The method for quickly identifying and determining the address code of a bus-type fire alarm according to claim 1 is characterized in that: The step of judging whether the response data is correct also includes: If not, the next inspection instruction is sent, in which the inspection address code is the inspection address code in the previous inspection instruction + 1, and the above steps are repeated until all inspection address codes within the range of the current single-byte data are sent.

3. The method for quickly identifying and determining the address code of a bus-type fire alarm according to claim 2 is characterized in that: The steps after sending the inspection instruction include: Determine whether the response data is received within a preset time period; If yes, then determine whether the response data is correct; If not, the next inspection instruction is sent, in which the inspection address code is the inspection address code in the previous inspection instruction + 1, and the above steps are repeated until all inspection address codes within the range of the current single-byte data are sent.

4. A method for quickly identifying and determining the address code of a bus-type fire alarm according to claim 3, characterized in that: After determining whether the response data is correct, the method further comprises: After completing a round of inspection, determine whether all fire alarms are marked; If not, send the next round of inspection instructions; the next round of inspection instructions includes an inspection address code and a second command code, and the identified fire alarm no longer participates in this round of inspection response; the unidentified fire alarm compresses its own ID information code according to the second command code to generate a corresponding second compression code as the local address code for this round of fire controller inspection; when the second compression code matches the inspection address code, the corresponding fire alarm sends the response data to the fire controller.

5. The method for quickly identifying and determining the address code of a bus-type fire alarm according to claim 1 is characterized in that: The method for quickly identifying and determining address codes also includes: Based on external trigger conditions, the fire controller maps the ID information code of the fire alarm stored in sequence internally into single-byte data as a mapping address, or uses the storage sequence number of the ID information code of the fire alarm in the fire controller as a mapping address.

6. A method for quickly identifying and determining the address code of a bus-type fire alarm according to claim 5, characterized in that: The method further comprises: mapping the ID information codes of the fire alarms stored in sequence in the fire controller into single-byte data as a mapping address according to the communication command, or using the storage sequence number of the ID information codes of the fire alarms in the fire controller as a mapping address, and further comprising: Mapping instructions are issued one by one; the mapping instructions include a mapping address and the ID information code of the fire alarm; after the fire alarm receives the mapping instruction that matches its own ID information code, it updates its own address code according to the mapping address; the mapping instruction is sent the same number of times as the number of fire alarms.

7. A method for quickly identifying and determining the address code of a bus-type fire alarm according to claim 5, characterized in that: The method for quickly identifying and determining address codes also includes: When the mapping instruction is issued, it is issued continuously for n times, where n≥2; the fire alarm will update its own address code according to the mapping address only after it receives the mapping instruction matching its own ID information code for n consecutive times.

8. The method for quickly identifying and determining the address code of a bus-type fire alarm according to claim 1, characterized in that: Before sending the inspection instruction, the method includes: When the fire alarm is installed, a broadcast inspection command is sent; all fire alarms that can receive the broadcast inspection command light up their own LED flashing prompts; After all fire alarms are installed, the system receives address coding inspection instructions and enters the state of automatically setting the coding address.

9. A system for quickly identifying and determining the address code of a bus-type fire alarm, characterized in that: Including fire controller and fire alarm; Among them, the fire controller includes: The first instruction sending module is used to send an inspection instruction, wherein the inspection instruction includes an inspection address code and a command code; the command code in each round of inspection instructions is different; the command code of the inspection instructions sent each time in the same round is the same, and the inspection address code of this time is the previous inspection address code + 1; A data receiving module, used for receiving response data; A first judging module, used to judge whether the response data is correct; A storage module, used for storing the ID information code of the fire alarm in a database in order when the response data is correct, and the instruction sending module sends a confirmation instruction; The fire alarm comprises: A first instruction receiving module, used for receiving the inspection instruction; The data compression module is used to compress its own ID information code according to different command codes to generate corresponding compression codes as the local address codes of the corresponding rounds of fire controller inspections; the ID information codes of the fire alarm are arranged according to the manufacturer's setting rules, and the inspection address code and the local address code are both single-byte; The second judgment module is used to judge whether the compression code of each round matches the inspection address code of the corresponding round; A data sending module, used for sending the response data of the corresponding round when the compression code matches the inspection address code of the corresponding round; Identification module: after the first instruction receiving module receives the confirmation instruction, the second judgment module again determines whether the compression code matches the inspection address code of the corresponding round. If so, the identification module performs confirmation identification.

Citation Information

Patent Citations

  • Feed type bus method

    CN105812214A

  • Dynamic recognition method of CPS (Cyber-Physical System) slave node based on UM-BUS

    CN108845965A

  • Fire alarm system and address coding method thereof

    CN109035670A

  • Interrupt processing method and interrupt processing device

    CN109977061A

  • Inspection method, system and device

    CN110519072A

Cited By

  • Fire-fighting peripheral duplicate address detection method and device and electronic equipment

    CN121000702A