CN111565236A - Automatic coding method and device for sensor of fire protection system - Google Patents

Automatic coding method and device for sensor of fire protection system Download PDF

Info

Publication number
CN111565236A
CN111565236A CN202010334619.1A CN202010334619A CN111565236A CN 111565236 A CN111565236 A CN 111565236A CN 202010334619 A CN202010334619 A CN 202010334619A CN 111565236 A CN111565236 A CN 111565236A
Authority
CN
China
Prior art keywords
coding
sensor
level
control unit
main control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010334619.1A
Other languages
Chinese (zh)
Other versions
CN111565236B (en
Inventor
邢映彪
劳中建
胡锦炉
丘嘉乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Tongda Auto Electric Co Ltd
Original Assignee
Guangzhou Tongda Auto Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Tongda Auto Electric Co Ltd filed Critical Guangzhou Tongda Auto Electric Co Ltd
Priority to CN202010334619.1A priority Critical patent/CN111565236B/en
Publication of CN111565236A publication Critical patent/CN111565236A/en
Application granted granted Critical
Publication of CN111565236B publication Critical patent/CN111565236B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/681Types of network addresses using addresses for wireless personal area networks or wireless sensor networks, e.g. Zigbee addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Alarm Systems (AREA)
  • Fire Alarms (AREA)

Abstract

The embodiment of the application discloses a sensor automatic coding method and device of a fire protection system. According to the technical scheme provided by the embodiment of the application, the main control unit sends the coding instruction to all the sensors, the effective level signals are transmitted in the serial links of the sensors, so that all the sensors are driven to automatically code in sequence, and a coding success message is replied to the main control unit after the coding is finished. And after receiving the successful coding message, the main control unit sequentially sends a next coding instruction to each sensor through the communication network based on the successful coding message until the main control unit receives an effective level signal transmitted by the sensor at the tail end of the serial link, thereby completing the sensor coding process. By adopting the technical means, the automatic coding of the sensor can be realized, and the coding efficiency of the sensor is improved. And the sensor carries out automatic coding in sequence through the effective level signal, and the accuracy and the flexibility of coding can be further improved.

Description

Automatic coding method and device for sensor of fire protection system
Technical Field
The embodiment of the application relates to the technical field of sensors, in particular to a sensor automatic coding method and device of a fire protection system.
Background
At present, in order to protect the life and property safety of people, fire protection systems are arranged in public places, houses and other scenes to protect fire in real time. The fire protection system detects fire in real time through sensors distributed in a detection area, so that detection and protection of fire are realized. In general, in a fire protection system, in order to distinguish different sensors to accurately locate a fire occurrence position and take corresponding measures, the sensors need to be encoded. In a conventional encoding mode, technicians manually write corresponding codes into the sensors and record the codes in a main control unit, so that the codes of the sensors are realized. However, the manual encoding method is relatively inefficient and has insufficient flexibility.
Disclosure of Invention
The embodiment of the application provides a method and a device for automatically coding a sensor of a fire protection system, electronic equipment and a storage medium, which can improve the coding efficiency of the sensor of the fire protection system and improve the accuracy and flexibility of coding.
In a first aspect, an embodiment of the present application provides a method for automatically encoding a sensor of a fire protection system, including:
the fire protection system comprises a main control unit and a plurality of sensors, wherein the main control unit is in butt joint with each sensor through a communication network to carry out communication, each sensor is sequentially connected in series through a level output interface and a level input interface to form a series link, the level output interface of the main control unit is in butt joint with the level input interface of the sensor at the head end of the series link, and the level input interface of the main control unit is in butt joint with the level output interface of the sensor at the tail end of the series link to form a level loop;
the automatic sensor coding method of the fire protection system comprises the following steps:
when the automatic coding is started, a level output interface of a main control unit outputs a first level state signal and sends a coding instruction through a communication network, wherein the coding instruction comprises coding address information of the corresponding sensor, and the first level state signal is an effective level signal;
the sensor carries out coding based on the received first level state signal and the coding instruction, replies a coding success message to the main control unit through a communication network after the coding is finished, and transmits the first level state signal in a serial link to sequentially drive the next sensor to carry out coding;
and the main control unit receives the coding success message, outputs a second level state signal to the serial link at a level output interface of the main control unit, and sequentially sends a next coding instruction to each sensor through a communication network based on the coding success message until the main control unit receives a first level state signal transmitted by the sensor at the tail end of the serial link, thereby completing the sensor coding process.
Further, the first level state signal is a high level signal, and the second level state signal is a low level signal.
Further, after the sensor encoding process is completed, the method further includes:
and triggering a recoding process when detecting that the sensors are increased, decreased or replaced in the fire protection system through the communication network at intervals of a set time period.
Further, when detecting that the number of the sensors is increased, decreased or replaced in the fire protection system through the communication network every other set time period, the triggering recoding process includes:
and when the sensors in the fire protection system are detected to be reduced, triggering a recoding process, judging that the corresponding sensors are deleted if the level loops are conducted based on the state judgment result of the level loops, and judging that the corresponding sensors are in fault if the level loops are interrupted.
Further, the receiving, by the master control unit, the successful encoding packet, and outputting a second level status signal to the serial link at the level output interface of the master control unit, further includes:
and the main control unit performs timing after sending the coding instruction, does not receive the corresponding coding success message within a set timing period, and exits the coding process.
Further, the main control unit performs timing after sending the coding instruction, does not receive the corresponding coding success message within a set timing period, and exits from the coding process, and the method further includes:
and outputting a fault prompt to prompt operation and maintenance personnel to repair the fault.
Further, the communication network is a CAN network.
In a second aspect, an embodiment of the present application provides a sensor automatic encoding device of a fire protection system, including:
the transmitting module is used for outputting a first level state signal through a level output interface of the main control unit when automatic coding is started, and transmitting a coding instruction through a communication network, wherein the coding instruction comprises coding address information of the corresponding sensor, and the first level state signal is an effective level signal;
the coding module is used for coding based on the received first level state signal and the coding instruction through the sensor, replying a coding success message to the main control unit through a communication network after the coding is finished, and transmitting the first level state signal in a serial link to sequentially drive the next sensor to code;
and the message module is used for receiving the coding success message through the main control unit, outputting a second level state signal to the serial link at a level output interface of the message module, and sending a next coding instruction to each sensor through a communication network in sequence based on the coding success message until the main control unit receives a first level state signal transmitted by the sensor at the tail end of the serial link, so as to complete a sensor coding process.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a memory and one or more processors;
the memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method for sensor auto-coding for a fire protection system according to the first aspect.
In a fourth aspect, embodiments of the present application provide a storage medium containing computer-executable instructions for performing the method for sensor auto-coding of a fire protection system as described in the first aspect when executed by a computer processor.
According to the embodiment of the application, the main control unit sends the coding instruction to all the sensors, the effective level signal is transmitted in the serial links of the sensors to drive all the sensors to automatically code in sequence, and a coding success message is replied to the main control unit after the coding is finished. And after receiving the successful coding message, the main control unit sequentially sends a next coding instruction to each sensor through the communication network based on the successful coding message until the main control unit receives an effective level signal transmitted by the sensor at the tail end of the serial link, thereby completing the sensor coding process. By adopting the technical means, the automatic coding of the sensor can be realized, and the coding efficiency of the sensor is improved. And the sensor carries out automatic coding in sequence through the effective level signal, and the accuracy and the flexibility of coding can be further improved.
Drawings
Fig. 1 is a flowchart of a method for automatically encoding a sensor of a fire protection system according to an embodiment of the present disclosure;
FIG. 2 is a schematic structural diagram of a fire protection system according to one embodiment of the present disclosure;
FIG. 3 is a flow chart of another method for automatically encoding a sensor of a fire protection system according to the second embodiment of the present application;
fig. 4 is a schematic structural diagram of a sensor automatic coding device of a fire protection system according to a third embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application will be described in detail with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The embodiment of the application provides an automatic coding method for a sensor of a fire protection system, which aims to improve the coding efficiency of the fire protection system and improve the flexibility and accuracy of sensor coding by issuing coding instructions in sequence and driving the sensor to perform automatic coding through effective level signals transmitted in sequence. For a traditional fire protection system, when sensor coding is performed, a manual coding mode is generally adopted, codes are written into corresponding sensors in advance, and recording is performed through a main control unit, so that manual coding of the sensors is completed. When the encoding is carried out manually, the input efficiency is relatively low, and the error rate of manual operation is relatively high. Moreover, the pre-numbering can make the sensor have corresponding installation position requirements during installation, and the situation that the actual installation position is not in accordance with the numbering is easy to occur. In addition, after the installation, if the number of the sensors is increased, replaced or decreased, the number of the original sensor needs to be checked, and even all the sensors need to be manually numbered again, so that the implementation is inconvenient. Based on the above, the automatic sensor coding method for the fire protection system in the embodiment of the application is provided to solve the technical problems of complicated and low-efficiency sensor coding of the existing fire protection system.
The first embodiment is as follows:
fig. 1 is a flowchart illustrating an automatic sensor encoding method of a fire protection system according to an embodiment of the present disclosure, where the automatic sensor encoding method of the fire protection system provided in this embodiment may be performed by a fire protection system, the fire protection system may be implemented by software and/or hardware, and the fire protection system may be formed by two or more physical entities or may be formed by one physical entity.
The following description will be made taking a sensor automatic encoding apparatus of a fire protection system as an example of a main body of a sensor automatic encoding method for executing a fire protection system. Referring to fig. 1, the method for automatically encoding a sensor of a fire protection system specifically includes:
s110, when the automatic coding is started, a level output interface of the main control unit outputs a first level state signal and sends a coding instruction through a communication network, wherein the coding instruction comprises coding address information of the corresponding sensor, and the first level state signal is an effective level signal.
Specifically, refer to fig. 2, provide the structural schematic diagram of fire protection system of this application embodiment, wherein, fire protection system includes main control unit and a plurality of sensor, main control unit docks each through communication network 11 the sensor communicates, each the sensor concatenates in proper order through level output interface and level input interface and forms series link 12, main control unit's level output interface butt joint series link head end the level input interface of sensor, main control unit's level input interface butt joint series link is terminal the level output interface of sensor to form the level return circuit.
The main control unit sends corresponding signals to the sensors through the IO interface and the communication network respectively, wherein the communication network is a CAN network. The IO interface is used for transmitting high and low level signals to drive the sensor to perform automatic coding. And the communication network is used for sending a coding command, and the sensor responds to the coding command and is driven by the first level state signal to carry out automatic coding. When the main control unit transmits the coding command, all the sensors CAN receive the coding command through the CAN network. However, since the sensor needs to be driven by the first level state signal when performing the automatic encoding, only the sensor of the first level state signal received at the present time performs the automatic encoding. It should be noted that each time the main control unit sends a coded command, the coded command should be a coded command corresponding to a certain sensor, and the coded address information contained in the coded command is different. After each sensor is coded according to the coding command, the code of each sensor should correspond to the coding address to serve as the identifier of the sensor.
In addition, in the embodiment of the present application, the first level state signal is a high level signal, and the second level state signal is a low level signal. The high level is used as an effective level signal, the initial state of the sensor is a low level state, and the sensor performs automatic coding when receiving the high level signal and a coding command. It will be appreciated that since the sensors are connected in series to form a serial link, the high level signal is passed from sensor to sensor along the serial link when performing the automatic encoding.
In one embodiment, the first level state signal may also be a low level signal, the initial state of the sensor is a high level state, and the sensor is automatically encoded upon receiving the low level signal and the encoding instruction.
And S120, the sensor carries out coding based on the received first level state signal and the coding instruction, replies a coding success message to the main control unit through a communication network after the coding is finished, and transmits the first level state signal in a serial link to sequentially drive the next sensor to carry out coding.
S130, the main control unit receives the coding success message, outputs a second level state signal to the serial link at a level output interface of the main control unit, and sends a next coding instruction to each sensor through the communication network in sequence based on the coding success message until the main control unit receives a first level state signal transmitted by the sensor at the tail end of the serial link, so that the sensor coding process is completed.
Specifically, the main control unit sends the first level state signal and sends the coding instruction to each sensor through the communication network, and at the same time, the first level state signal firstly reaches the sensor at the head end of the serial link through the level output interface. Thus, referring to fig. 2, the sensor 1 at the head end of the serial link performs automatic encoding at this time. And further after the automatic coding is finished, sending a coding success message to the main control unit through a communication network, and simultaneously transmitting a first level state signal to the sensor 2. And the main control unit records the sensor according to the received coding success message, and correspondingly stores the coding of the sensor and the coding address thereof as the identifier of the sensor.
Further, after receiving the coding success message sent by the sensor 1, the main control unit sends a second coding instruction to each sensor. It should be noted that each coded command includes a different coded address, so as to distinguish the identifiers of the sensors. All the sensors do not automatically encode after receiving the encoding command. Since the sensor 1 transmits the first level state signal to the sensor 2 at this time, only the sensor 2 is automatically encoded by being driven by the first level state signal. Before sending the second encoding command, the main control unit also outputs a second level state signal to the serial link through the level output interface, and the sensor 1 first receives the second level state signal to restore the sensor 1 to the initial state. Then the sensor 1 will not automatically encode again when it receives the second encoding command.
Similarly, the sensor 2 returns a coding success message after automatic coding, and transmits a first level status signal to the sensor 3. And the main control unit at the other end receives the coding success message and sends a third coding instruction to each sensor, at the moment, only the sensor 3 is in the first level state, and the second level state signal is transmitted to the sensor 2 from the sensor 1, so that only the sensor 3 performs automatic coding. And the rest can be done in the same way until the automatic coding of all the sensors is finished. It can be understood that, since the sensors are connected in series and the sensor N at the end of the series link is connected to the level input interface of the main control unit, when the level input interface of the main control unit receives the first level state signal transmitted by the sensor N, the automatic encoding process of all the sensors is finished.
In one embodiment, the main control unit performs timing after sending the coding instruction, does not receive the corresponding coding success message within a set timing period, and exits from the coding process. It will be appreciated that, depending on the manner in which the sensors in the serial link are connected in series, each encoding command is sent to all sensors, and each sensor switches the level state and starts to automatically encode at the point in time when it receives the first level state signal. Therefore, the main control unit sets the timing period corresponding to the time interval at which the two sensors perform automatic encoding. The timing period indicates the time at which the sensor should return an encoding success message. Therefore, if the coding success message is not received in the timing period, the sensor is possibly damaged, and the automatic coding is interrupted to the damaged sensor. Then the main control unit will exit the encoding after the timing period (e.g. 10S), no encoding command will be sent, and the sensor that has completed encoding will work normally. Further, according to the serial order of the sensors and the serial number of the currently sent coding instruction, the main control unit may also determine which sensor in the serial link has failed according to the message of the communication network. And further outputting a corresponding alarm prompt through the main control unit to prompt operation and maintenance personnel to correspondingly maintain the sensor.
And sending a coding instruction to all the sensors through the main control unit, transmitting an effective level signal in a serial link of the sensors to drive all the sensors to automatically code in sequence, and returning a coding success message to the main control unit after the coding is finished. And after receiving the successful coding message, the main control unit sequentially sends a next coding instruction to each sensor through the communication network based on the successful coding message until the main control unit receives an effective level signal transmitted by the sensor at the tail end of the serial link, thereby completing the sensor coding process. By adopting the technical means, the automatic coding of the sensor can be realized, and the coding efficiency of the sensor is improved. And the sensor carries out automatic coding in sequence through the effective level signal, and the accuracy and the flexibility of coding can be further improved.
Example two:
on the basis of the above embodiments, fig. 3 provides another automatic sensor encoding method of the fire protection system of the present application, and referring to fig. 3, the automatic sensor encoding method of the fire protection system specifically includes:
s210, when automatic coding is started, a level output interface of a main control unit outputs a first level state signal and sends a coding instruction through a communication network, wherein the coding instruction comprises coding address information of the corresponding sensor, and the first level state signal is an effective level signal;
s220, the sensor carries out coding based on the received first level state signal and the coding instruction, replies a coding success message to the main control unit through a communication network after the coding is finished, and transmits the first level state signal in a serial link to sequentially drive the next sensor to carry out coding;
s230, the main control unit receives the coding success message, outputs a second level state signal to the serial link at a level output interface of the main control unit, and sends a next coding instruction to each sensor through the communication network in sequence based on the coding success message until the main control unit receives a first level state signal transmitted by the sensor at the tail end of the serial link, so that a sensor coding process is completed;
and S240, triggering a recoding process when detecting that the sensors are added, reduced or replaced in the fire protection system through the communication network at intervals of a set time period.
After the sensor coding process is completed, the embodiment of the application performs sensor detection every set time period (for example, 5 minutes). The communication with the sensors is carried out through the communication network, the sensor coding information is obtained and compared with the coding information stored in the main control unit, and the sensors which are added, reduced or replaced in the current system are determined. And further re-encoding based on the detection result. In the case of adding or replacing the sensor, re-encoding is performed with reference to the encoding flow of the first embodiment. And when the sensors in the fire protection system are detected to be reduced, triggering a recoding process, determining that the corresponding sensors are deleted if the level loop is judged to be conducted based on the state judgment result of the level loop, and determining that the corresponding sensors are in fault if the level loop is judged to be interrupted. It will be appreciated that since the sensors are connected in series, a sensor that fails to detect a decrease in sensors at the master control unit may cause the series link to be broken. And when the level loop is determined to be interrupted, the current corresponding sensor fault is indicated, and an alarm needs to be given in time to prompt operation and maintenance personnel to maintain.
Example three:
on the basis of the above embodiments, fig. 4 is a schematic structural diagram of an automatic sensor encoding device of a fire protection system according to a third embodiment of the present application. Referring to fig. 4, the automatic sensor encoding device of the fire protection system provided in this embodiment specifically includes: a sending module 31, an encoding module 32 and a message module 33.
The sending module 31 is configured to output a first level state signal through a level output interface of the main control unit when starting automatic coding, and send a coding instruction through a communication network, where the coding instruction includes coding address information of the corresponding sensor, and the first level state signal is an effective level signal;
the encoding module 32 is configured to perform encoding based on the received first level state signal and the encoding instruction through the sensor, reply an encoding success message to the main control unit through a communication network after the encoding is completed, and transmit the first level state signal in a serial link to sequentially drive the next sensor to perform encoding;
the message module 33 is configured to receive the successful encoding message through the main control unit, output a second level status signal to the serial link at a level output interface of the message module, and send a next encoding instruction to each sensor through the communication network in sequence based on the successful encoding message until the main control unit receives a first level status signal transmitted by the sensor at the end of the serial link, thereby completing a sensor encoding process.
And sending a coding instruction to all the sensors through the main control unit, transmitting an effective level signal in a serial link of the sensors to drive all the sensors to automatically code in sequence, and returning a coding success message to the main control unit after the coding is finished. And after receiving the successful coding message, the main control unit sequentially sends a next coding instruction to each sensor through the communication network based on the successful coding message until the main control unit receives an effective level signal transmitted by the sensor at the tail end of the serial link, thereby completing the sensor coding process. By adopting the technical means, the automatic coding of the sensor can be realized, and the coding efficiency of the sensor is improved. And the sensor carries out automatic coding in sequence through the effective level signal, and the accuracy and the flexibility of coding can be further improved.
Specifically, still include:
and the recoding module is used for triggering a recoding process when detecting that the number of the sensors is increased, decreased or replaced in the fire protection system through the communication network every other set time period.
The re-encoding module further comprises:
and the judging unit is used for triggering a recoding process when the sensor in the fire protection system is detected to be reduced, judging that the corresponding sensor is deleted if the level loop is judged to be conducted based on the state judgment result of the level loop, and judging that the corresponding sensor is in fault if the level loop is judged to be interrupted.
Specifically, the message module 33 further includes:
and the exit unit is used for timing after the coding instruction is sent by the main control unit, and exiting the coding process if the corresponding coding success message is not received in a set timing period.
And the prompting unit is used for outputting a fault prompt to prompt operation and maintenance personnel to overhaul faults. .
The sensor automatic coding device of the fire protection system provided by the third embodiment of the application can be used for executing the sensor automatic coding method of the fire protection system provided by the first embodiment and the second embodiment, and has corresponding functions and beneficial effects.
Example four:
an embodiment of the present application provides an electronic device, and with reference to fig. 5, the electronic device includes: a processor 41, a memory 42, a communication module 43, an input device 44, and an output device 45. The number of processors in the electronic device may be one or more, and the number of memories in the electronic device may be one or more. The processor, memory, communication module, input device, and output device of the electronic device may be connected by a bus or other means.
The memory 42 is a computer readable storage medium, and can be used to store software programs, computer executable programs, and modules, such as program instructions/modules corresponding to the sensor automatic encoding method of the fire protection system according to any embodiment of the present application (for example, the sending module, the encoding module, and the message module in the sensor automatic encoding device of the fire protection system). The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The communication module 43 is used for data transmission.
The processor 41 executes various functional applications of the device and data processing by running software programs, instructions and modules stored in the memory, that is, implements the above-described automatic sensor encoding method of the fire protection system.
The input device 44 is operable to receive input numeric or character information and to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 45 may include a display device such as a display screen.
The electronic device provided above can be used to execute the sensor automatic coding method of the fire protection system provided in the first and second embodiments above, and has corresponding functions and advantages.
Example five:
embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for sensor auto-encoding of a fire protection system, the method comprising: when the automatic coding is started, a level output interface of a main control unit outputs a first level state signal and sends a coding instruction through a communication network, wherein the coding instruction comprises coding address information of the corresponding sensor, and the first level state signal is an effective level signal;
the sensor carries out coding based on the received first level state signal and the coding instruction, replies a coding success message to the main control unit through a communication network after the coding is finished, and transmits the first level state signal in a serial link to sequentially drive the next sensor to carry out coding;
and the main control unit receives the coding success message, outputs a second level state signal to the serial link at a level output interface of the main control unit, and sequentially sends a next coding instruction to each sensor through a communication network based on the coding success message until the main control unit receives a first level state signal transmitted by the sensor at the tail end of the serial link, thereby completing the sensor coding process.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations, e.g., in different computer systems connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided by the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the above-mentioned method for automatically encoding a sensor of a fire protection system, but may also perform related operations in the method for automatically encoding a sensor of a fire protection system provided by any of the embodiments of the present application.
The sensor automatic coding device, the storage medium, and the electronic device of the fire protection system provided in the above embodiments may perform the sensor automatic coding method of the fire protection system provided in any embodiment of the present application, and reference may be made to the sensor automatic coding method of the fire protection system provided in any embodiment of the present application without detailed technical details described in the above embodiments.
The foregoing is considered as illustrative of the preferred embodiments of the invention and the technical principles employed. The present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (10)

1. The automatic coding method of the sensor of a fire protection system, characterized by, the said fire protection system includes main control unit and multiple sensors, the said main control unit carries on the communication through the communication network butt joint each said sensor, each said sensor connects in series sequentially through level output interface and level input interface and forms the serial link, the level output interface of the said main control unit butts the level input interface of the said sensor of the head end of the serial link, the level input interface of the said main control unit butts the level output interface of the said sensor of the end of the serial link, in order to form the level loop;
the automatic sensor coding method of the fire protection system comprises the following steps:
when the automatic coding is started, a level output interface of a main control unit outputs a first level state signal and sends a coding instruction through a communication network, wherein the coding instruction comprises coding address information of the corresponding sensor, and the first level state signal is an effective level signal;
the sensor carries out coding based on the received first level state signal and the coding instruction, replies a coding success message to the main control unit through a communication network after the coding is finished, and transmits the first level state signal in a serial link to sequentially drive the next sensor to carry out coding;
and the main control unit receives the coding success message, outputs a second level state signal to the serial link at a level output interface of the main control unit, and sequentially sends a next coding instruction to each sensor through a communication network based on the coding success message until the main control unit receives a first level state signal transmitted by the sensor at the tail end of the serial link, thereby completing the sensor coding process.
2. The method of claim 1, wherein the first level state signal is a high level signal and the second level state signal is a low level signal.
3. The method for automatically encoding a sensor of a fire protection system according to claim 1, further comprising, after the completion of the sensor encoding process:
and triggering a recoding process when detecting that the sensors are increased, decreased or replaced in the fire protection system through the communication network at intervals of a set time period.
4. The method as claimed in claim 3, wherein the triggering of the recoding process when the sensor is detected to be added, decreased or replaced in the fire protection system through the communication network at every predetermined time interval comprises:
and when the sensors in the fire protection system are detected to be reduced, triggering a recoding process, judging that the corresponding sensors are deleted if the level loops are conducted based on the state judgment result of the level loops, and judging that the corresponding sensors are in fault if the level loops are interrupted.
5. The method of claim 1, wherein the master control unit receives the encoding success message and outputs a second level status signal to the serial link at its level output interface, further comprising:
and the main control unit performs timing after sending the coding instruction, does not receive the corresponding coding success message within a set timing period, and exits the coding process.
6. The method of claim 5, wherein the main control unit counts time after sending the coding command, and exits the coding process after not receiving the corresponding coding success message within a set timing period, further comprising:
and outputting a fault prompt to prompt operation and maintenance personnel to repair the fault.
7. The method of claim 1, wherein the communication network is a CAN network.
8. An automatic sensor encoding device for a fire protection system, comprising:
the transmitting module is used for outputting a first level state signal through a level output interface of the main control unit when automatic coding is started, and transmitting a coding instruction through a communication network, wherein the coding instruction comprises coding address information of the corresponding sensor, and the first level state signal is an effective level signal;
the coding module is used for coding based on the received first level state signal and the coding instruction through the sensor, replying a coding success message to the main control unit through a communication network after the coding is finished, and transmitting the first level state signal in a serial link to sequentially drive the next sensor to code;
and the message module is used for receiving the coding success message through the main control unit, outputting a second level state signal to the serial link at a level output interface of the message module, and sending a next coding instruction to each sensor through a communication network in sequence based on the coding success message until the main control unit receives a first level state signal transmitted by the sensor at the tail end of the serial link, so as to complete a sensor coding process.
9. An electronic device, comprising:
a memory and one or more processors;
the memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method for sensor auto-coding for a fire protection system as recited in any of claims 1-7.
10. A storage medium containing computer-executable instructions for performing a method for sensor auto-coding for a fire protection system as claimed in any one of claims 1 to 7 when executed by a computer processor.
CN202010334619.1A 2020-04-24 2020-04-24 Automatic coding method and device for sensor of fire protection system Active CN111565236B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010334619.1A CN111565236B (en) 2020-04-24 2020-04-24 Automatic coding method and device for sensor of fire protection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010334619.1A CN111565236B (en) 2020-04-24 2020-04-24 Automatic coding method and device for sensor of fire protection system

Publications (2)

Publication Number Publication Date
CN111565236A true CN111565236A (en) 2020-08-21
CN111565236B CN111565236B (en) 2021-02-23

Family

ID=72074420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010334619.1A Active CN111565236B (en) 2020-04-24 2020-04-24 Automatic coding method and device for sensor of fire protection system

Country Status (1)

Country Link
CN (1) CN111565236B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116016015A (en) * 2022-12-13 2023-04-25 烟台创为新能源科技股份有限公司 Automatic coding and communication redundancy strategy and equipment for vehicle-mounted equipment
CN117240822A (en) * 2023-11-14 2023-12-15 哲弗智能系统(上海)有限公司 Coding method and coding system applied to communication equipment group

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2349293A (en) * 1999-03-02 2000-10-25 Visionpower Limited Alarm sensor
CN202306754U (en) * 2011-11-01 2012-07-04 山东北仁汇智能源发展有限公司 Intelligent wireless fire control alarming system
CN203554485U (en) * 2013-06-26 2014-04-16 珠海欧比特控制工程股份有限公司 CAN bus test equipment
CN105675168A (en) * 2016-01-05 2016-06-15 上海建工集团股份有限公司 Automatic numbering device and method for temperature sensors
US20160184619A1 (en) * 2012-01-19 2016-06-30 Phantom Ip, Inc. Systems and methods for coding hose appliance to a fire-fighting device
JP2016192115A (en) * 2015-03-31 2016-11-10 パナソニックIpマネジメント株式会社 sensor
CN107478688A (en) * 2017-09-19 2017-12-15 重庆七彩虹数码科技有限公司 A kind of radio transmission transducing device of Smoke Detection
CN108316975A (en) * 2018-02-06 2018-07-24 天地(常州)自动化股份有限公司 A kind of coal mine safety monitoring system sensor address auto-allocation method
CN108777051A (en) * 2018-09-20 2018-11-09 广州通达汽车电气股份有限公司 Fire alarm method, device, computer equipment and storage medium
WO2019220313A1 (en) * 2018-05-14 2019-11-21 Terrence Keith Ashwin A controller unit having a wifi authentication sensor for detecting smoke and fire and activating emergency notification apparatus

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2349293A (en) * 1999-03-02 2000-10-25 Visionpower Limited Alarm sensor
CN202306754U (en) * 2011-11-01 2012-07-04 山东北仁汇智能源发展有限公司 Intelligent wireless fire control alarming system
US20160184619A1 (en) * 2012-01-19 2016-06-30 Phantom Ip, Inc. Systems and methods for coding hose appliance to a fire-fighting device
CN203554485U (en) * 2013-06-26 2014-04-16 珠海欧比特控制工程股份有限公司 CAN bus test equipment
JP2016192115A (en) * 2015-03-31 2016-11-10 パナソニックIpマネジメント株式会社 sensor
CN105675168A (en) * 2016-01-05 2016-06-15 上海建工集团股份有限公司 Automatic numbering device and method for temperature sensors
CN107478688A (en) * 2017-09-19 2017-12-15 重庆七彩虹数码科技有限公司 A kind of radio transmission transducing device of Smoke Detection
CN108316975A (en) * 2018-02-06 2018-07-24 天地(常州)自动化股份有限公司 A kind of coal mine safety monitoring system sensor address auto-allocation method
WO2019220313A1 (en) * 2018-05-14 2019-11-21 Terrence Keith Ashwin A controller unit having a wifi authentication sensor for detecting smoke and fire and activating emergency notification apparatus
CN108777051A (en) * 2018-09-20 2018-11-09 广州通达汽车电气股份有限公司 Fire alarm method, device, computer equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116016015A (en) * 2022-12-13 2023-04-25 烟台创为新能源科技股份有限公司 Automatic coding and communication redundancy strategy and equipment for vehicle-mounted equipment
CN116016015B (en) * 2022-12-13 2024-06-18 烟台创为新能源科技股份有限公司 Device and method for realizing automatic coding and communication redundancy strategy of vehicle-mounted equipment
CN117240822A (en) * 2023-11-14 2023-12-15 哲弗智能系统(上海)有限公司 Coding method and coding system applied to communication equipment group
CN117240822B (en) * 2023-11-14 2024-04-09 哲弗智能系统(上海)有限公司 Coding method and coding system applied to communication equipment group

Also Published As

Publication number Publication date
CN111565236B (en) 2021-02-23

Similar Documents

Publication Publication Date Title
CN111565236B (en) Automatic coding method and device for sensor of fire protection system
CN107534592B (en) Method for protecting configuration data of a data bus transceiver, data bus transceiver and data bus system
CN105224362A (en) Host computer carries out the method and system of program upgrade to slave computer
CN112130881A (en) Firmware remote upgrading method and device
CN114385421A (en) Data storage method and device, electronic equipment and storage medium
CA2551433C (en) Sending device, receiving device, communication control device, communication system, and communication control method
CN109061585B (en) Radar data storage method and device
CN111918236B (en) Internet of things security sensor network searching method, device, equipment and storage medium
CN111367934A (en) Data consistency checking method, device, server and medium
CN116244255A (en) RSMC chip, chip multi-stage starting method and Beidou communication navigation device
CN113904723B (en) Infrared communication method and device, storage medium and electronic device
CN112433968B (en) Controller sharing synchronization method and device
CN101765204A (en) Alarming reporting method and device
CN112527551B (en) Method and system for improving data interaction reliability of internal outlet of relay protection device
CN108037942B (en) Adaptive data recovery and update method and device for embedded equipment
CN111181247A (en) System and method for restarting power distribution automation terminal
KR20160043378A (en) Apparatus and method for updating vehicle device having multiple modules
CN114802665B (en) Acoustic release control method, acoustic release control device, releaser and computer storage medium
CN112199103B (en) Equipment upgrading method and terminal equipment
JP2020116972A (en) Electronic control device
CN115208712B (en) Control method, cell stack management system, device and medium
CN117406698B (en) ECU fault processing method and device in brushing process
CN113032222B (en) Solid state disk resistant to single event functional interruption
CN107169064A (en) Data asynchronous processing method and device
JPH1168802A (en) Faulty environment supervisory system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB03 Change of inventor or designer information

Inventor after: Lao Zhongjian

Inventor after: Xing Yingbiao

Inventor after: Hu Jinlu

Inventor after: Qiu Jiale

Inventor before: Xing Yingbiao

Inventor before: Lao Zhongjian

Inventor before: Hu Jinlu

Inventor before: Qiu Jiale

CB03 Change of inventor or designer information
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant