Fire-fighting lamp polling method and emergency lamp control system

文档序号:1631074 发布日期:2020-01-14 浏览:19次 中文

阅读说明:本技术 一种消防灯具轮询方法及应急灯具控制系统 (Fire-fighting lamp polling method and emergency lamp control system ) 是由 王九洲 于 2019-09-10 设计创作,主要内容包括:本发明公开了一种消防灯具轮询方法及应急灯具控制系统,通过在第一时刻由处理器按照全轮询方式对连接于所述消防应急灯具控制系统中的所有灯具进行轮询,获得并将包括与所述消防应急灯具控制系统中每个灯具一一对应的灯具标识及灯具地址的第一系统灯具信息存储于预设的存储器内;当之后系统进行轮询时可以从存储器内调取所述第一系统灯具信息,并按照每个灯具地址对灯具进行轮询,获得每个灯具的工作状态。由于实际应用时连接到系统的灯具数量远少于系统预设的全轮询地址数量,因此本方案在之后的系统轮询时可以大幅减少轮询时间,具有能保证及时响应疏散预案、及时定位故障灯具的技术效果。(The invention discloses a fire-fighting lamp polling method and an emergency lamp control system.A processor polls all lamps connected in the fire-fighting emergency lamp control system in a full polling mode at a first moment to obtain and store first system lamp information comprising lamp identifiers and lamp addresses which are in one-to-one correspondence with all lamps in the fire-fighting emergency lamp control system in a preset memory; when the system conducts polling later, the first system lamp information can be called from the storage, lamps are polled according to each lamp address, and the working state of each lamp is obtained. In practical application, the number of the lamps connected to the system is far less than the number of the full polling addresses preset by the system, so that the polling time can be greatly reduced in the subsequent system polling, and the technical effects of timely responding to an evacuation plan and timely positioning a fault lamp can be ensured.)

1. A fire-fighting lamp polling method is applied to a fire-fighting emergency lamp control system and is characterized by comprising the following steps:

polling all lamps connected in the fire-fighting emergency lamp control system through a processor in a full polling mode at a first moment to obtain first system lamp information, wherein the first system lamp information comprises lamp identifiers and lamp addresses which are in one-to-one correspondence with all lamps in the fire-fighting emergency lamp control system;

storing the first system lamp information in a preset memory;

when system polling is performed after the first time, the first system lamp information is called from the memory, and lamps are polled according to each lamp address in the first system lamp information, so that the working state of the lamp corresponding to each lamp identifier in the first system lamp information is obtained.

2. The method of claim 1, wherein said polling luminaires for each luminaire address in said first system luminaire information to obtain an operational status of the luminaire corresponding to each luminaire identification in said first system luminaire information comprises:

after the lamps are polled for the first time according to each lamp address in the first system lamp information, obtaining a result that the first lamp corresponding to the initial detection offline lamp identification is in an offline state;

within a preset time length after the first polling is finished, continuously performing M times of cyclic polling on the first lamp according to the address of the primary detection off-line lamp corresponding to the primary detection off-line lamp identifier, wherein M is an integer greater than or equal to 1;

and if the result of representing that a second lamp in the first lamps is in an off-line state is obtained in the M times of cyclic polling for N times and N/M is greater than or equal to a preset proportion, generating and sending an alarm signal representing that the second lamp is in a fault, wherein N is an integer greater than or equal to 1.

3. The method of claim 1, wherein the method further comprises:

after the fire emergency lamp system is connected with a new lamp or disconnected with the connected lamp, the fire emergency lamp control system polls each fire lamp connected in the fire emergency lamp control system through the processor at a second moment after the first moment according to a full polling mode to obtain second system lamp information, wherein the second system lamp information comprises a lamp identifier and a lamp address which are in one-to-one correspondence with each lamp in the fire emergency lamp system;

storing the second system lamp information in a preset memory;

and when system polling is performed after the second moment, the second system lamp information is called from the memory, and lamps are polled according to each lamp address in the second system lamp information to obtain the working state of the lamp corresponding to each lamp identifier in the second system lamp information.

4. A fire emergency light control system, comprising:

the lamp connecting end is used for connecting at least two lamps;

the processor is connected with the lamp connecting end and used for polling the at least two lamps in a full polling mode at a first moment to obtain first system lamp information; storing the first system lamp information in a preset memory; when system polling is performed after the first time, the first system lamp information is called from the memory, and lamps are polled according to each lamp address in the first system lamp information to obtain the working state of the lamp corresponding to each lamp identifier in the first system lamp information, wherein the first system lamp information comprises the first system lamp information of the lamp identifier and the lamp address, which are in one-to-one correspondence with each lamp in the fire emergency lamp control system.

5. The system of claim 4, wherein the processor is configured to obtain a result that a first luminaire corresponding to a first detected offline luminaire identifier is in an offline state after a first polling of luminaires according to all luminaire addresses in the first system luminaire information; within a preset time length after the first polling is finished, continuously performing M times of cyclic polling on the first lamp according to the address of the primary detection off-line lamp corresponding to the primary detection off-line lamp identifier; and if the result of representing that a second lamp in the first lamps is in an offline state is obtained in the M times of cyclic polling, and N times is obtained, and N/M is greater than or equal to a preset proportion, generating and sending an alarm signal representing that the second lamp is in a fault, wherein M, N is an integer greater than or equal to 1.

6. The system of claim 4, wherein after the fire emergency light fixture system has accessed a new light fixture or disconnected an accessed light fixture, the fire emergency light fixture control system at a second time after the first time, the processor to poll each fire light fixture connected to the fire emergency light fixture control system, still in a full polling manner, for second system light fixture information; storing the second system lamp information in a preset memory; and when system polling is performed after the second moment, calling the second system lamp information from the memory, and polling lamps according to each lamp address in the second system lamp information to obtain the working state of the lamp corresponding to each lamp identifier in the second system lamp information, wherein the second system lamp information comprises the lamp identifier and the lamp address which are in one-to-one correspondence with each lamp in the fire emergency lamp system.

7. The system of any one of claims 4 to 6, wherein the processor is an MCU of a distribution electrical device connected to the fire emergency light control system.

8. The system of claim 7, wherein the memory is a flash or EEPROM.

9. A distribution electrical apparatus, comprising:

the fire emergency light control system of any one of claims 4 to 8.

10. A computer arrangement, characterized in that the arrangement comprises processing means for implementing the steps of the method as claimed in any one of claims 1-3 when executing a computer program stored in a memory.

11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1-3.

Technical Field

The invention relates to the technical field of fire-fighting emergency equipment control, in particular to a fire-fighting lamp polling method and an emergency lamp control system.

Background

The "polling" refers to a method in which the host acquires data from the slave nodes in sequence in a roll call manner according to a plurality of addresses preset by the system, in other words, the "polling" is a manner in which the host queries one by one.

At present, traditional fire emergency light control system all adopts to carry out the polling to lamps and lanterns with the maximum address quantity (that is to say start at every turn and all roll call in proper order lamps and lanterns according to a plurality of addresses that the system is preset, following call is full polling), and the address quantity that the system is preset often is more than the lamps and lanterns quantity of actual access a lot of, consequently, the system often can pass through a plurality of blank addresses when carrying out full polling to the lamps and lanterns of access, not only system processing resource is wasted, also can consume a large amount of time simultaneously.

Too long polling time will cause that the evacuation plan of the emergency lamp control system cannot be issued in time, which causes serious consequences such as self-rescue delay of related personnel in emergency, missing of optimal escape time and the like.

In addition, because the full polling time of the emergency lamp control system is too long, not only the failed lamp cannot be located in time, but also the method of confirming the failed lamp through multiple polling is not suitable (because the full polling time consumption is too long, if each lamp adopts full polling to confirm whether the failure occurs or not, the polling time is increased by times, so that the problem of polling delay is more serious), thereby not only the failure of the failed lamp cannot be timely eliminated, but also the false alarm rate of the lamp failure is increased.

Therefore, the technical problems that the evacuation plan of the emergency lamp control system cannot be issued in time, the fault lamp cannot be positioned in time and the lamp fault false alarm rate is increased due to the fact that the emergency lamp control system adopts a full polling mode in the prior art exist.

Disclosure of Invention

The application provides a fire-fighting lamp polling method and an emergency lamp control system, which are used for solving the technical problems that an evacuation plan of the emergency lamp control system cannot be issued in time, a fault lamp cannot be positioned in time and the lamp fault false alarm rate is increased due to the fact that the emergency lamp control system adopts a full polling mode in the prior art.

The application provides a fire-fighting lamp polling method in a first aspect, which is applied to a fire-fighting emergency lamp control system and comprises the following steps:

polling all lamps connected in the fire-fighting emergency lamp control system through a processor in a full polling mode at a first moment to obtain first system lamp information, wherein the first system lamp information comprises lamp identifiers and lamp addresses which are in one-to-one correspondence with all lamps in the fire-fighting emergency lamp control system;

storing the first system lamp information in a preset memory;

when system polling is performed after the first time, the first system lamp information is called from the memory, and lamps are polled according to each lamp address in the first system lamp information, so that the working state of the lamp corresponding to each lamp identifier in the first system lamp information is obtained.

Optionally, the polling the lamps according to each lamp address in the first system lamp information to obtain the operating state of the lamp corresponding to each lamp identifier in the first system lamp information includes:

after the lamps are polled for the first time according to each lamp address in the first system lamp information, obtaining a result that the first lamp corresponding to the initial detection offline lamp identification is in an offline state;

within a preset time length after the first polling is finished, continuously performing M times of cyclic polling on the first lamp according to the address of the primary detection off-line lamp corresponding to the primary detection off-line lamp identifier, wherein M is an integer greater than or equal to 1;

and if the result of representing that a second lamp in the first lamps is in an off-line state is obtained in the M times of cyclic polling for N times and N/M is greater than or equal to a preset proportion, generating and sending an alarm signal representing that the second lamp is in a fault, wherein N is an integer greater than or equal to 1.

Optionally, the method further comprises:

after the fire emergency lamp system is connected with a new lamp or disconnected with the connected lamp, the fire emergency lamp control system polls each fire lamp connected in the fire emergency lamp control system through the processor at a second moment after the first moment according to a full polling mode to obtain second system lamp information, wherein the second system lamp information comprises a lamp identifier and a lamp address which are in one-to-one correspondence with each lamp in the fire emergency lamp system;

storing the second system lamp information in a preset memory;

and when system polling is performed after the second moment, the second system lamp information is called from the memory, and lamps are polled according to each lamp address in the second system lamp information to obtain the working state of the lamp corresponding to each lamp identifier in the second system lamp information.

This application second aspect provides a fire emergency lighting control system, includes:

the lamp connecting end is used for connecting at least two lamps;

the processor is connected with the lamp connecting end and used for polling the at least two lamps in a full polling mode at a first moment to obtain first system lamp information; storing the first system lamp information in a preset memory; when system polling is performed after the first time, the first system lamp information is called from the memory, and lamps are polled according to each lamp address in the first system lamp information to obtain the working state of the lamp corresponding to each lamp identifier in the first system lamp information, wherein the first system lamp information comprises the first system lamp information of the lamp identifier and the lamp address, which are in one-to-one correspondence with each lamp in the fire emergency lamp control system.

Optionally, the processor is configured to obtain a result that the first lamp corresponding to the initially detected offline lamp identifier is in an offline state after the first polling of the lamps is performed according to all the lamp addresses in the first system lamp information; within a preset time length after the first polling is finished, continuously performing M times of cyclic polling on the first lamp according to the address of the primary detection off-line lamp corresponding to the primary detection off-line lamp identifier; and if the result of representing that a second lamp in the first lamps is in an offline state is obtained in the M times of cyclic polling, and N times is obtained, and N/M is greater than or equal to a preset proportion, generating and sending an alarm signal representing that the second lamp is in a fault, wherein M, N is an integer greater than or equal to 1.

Optionally, after the fire emergency light fixture system accesses a new light fixture or disconnects an accessed light fixture, at a second time after the first time, the processor is configured to poll each fire light fixture connected to the fire emergency light fixture control system in a full polling manner to obtain second system light fixture information; storing the second system lamp information in a preset memory; and when system polling is performed after the second moment, calling the second system lamp information from the memory, and polling lamps according to each lamp address in the second system lamp information to obtain the working state of the lamp corresponding to each lamp identifier in the second system lamp information, wherein the second system lamp information comprises the lamp identifier and the lamp address which are in one-to-one correspondence with each lamp in the fire emergency lamp system.

Optionally, the processor is an MCU of a distribution electric device connected to the fire emergency light control system.

Optionally, the memory is a flash or EEPROM.

A third aspect of the present application provides a distribution apparatus, comprising:

the fire emergency light control system of the second aspect.

A fourth aspect of the application provides a computer apparatus comprising processing means for implementing the steps of the method as claimed in any one of claims 1-3 when executing a computer program stored in a memory.

A fifth aspect of the application provides a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1-3.

One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

according to the technical scheme, all lamps connected to the fire-fighting emergency lamp control system are polled by a processor in a full polling mode at a first moment, and first system lamp information including lamp identifiers and lamp addresses corresponding to all lamps in the fire-fighting emergency lamp control system in a one-to-one mode is obtained and stored in a preset memory; when the system conducts polling later, the first system lamp information can be called from the storage, lamps are polled according to each lamp address, and the working state of each lamp is obtained. In practical application, the number of the lamps connected to the system is far less than the number of the full polling addresses preset by the system, so that the polling time can be greatly reduced in the subsequent system polling, and the technical effects of timely responding to an evacuation plan and timely positioning a fault lamp can be ensured.

Drawings

Fig. 1 is a flowchart of a fire fighting lamp polling method according to an embodiment of the present invention;

fig. 2 is a structural diagram of an emergency lamp control system according to an embodiment of the present invention.

Detailed Description

The application provides a fire-fighting lamp polling method and an emergency lamp control system, which are used for solving the technical problems that an evacuation plan of the emergency lamp control system cannot be issued in time, a fault lamp cannot be positioned in time and the lamp fault false alarm rate is increased due to the fact that the emergency lamp control system adopts a full polling mode in the prior art.

In order to solve the technical problems, the general idea of the embodiment of the application is as follows:

according to the technical scheme, all lamps connected to the fire-fighting emergency lamp control system are polled by a processor in a full polling mode at a first moment, and first system lamp information including lamp identifiers and lamp addresses corresponding to all lamps in the fire-fighting emergency lamp control system in a one-to-one mode is obtained and stored in a preset memory; when the system conducts polling later, the first system lamp information can be called from the storage, lamps are polled according to each lamp address, and the working state of each lamp is obtained. In practical application, the number of the lamps connected to the system is far less than the number of the full polling addresses preset by the system, so that the polling time can be greatly reduced in the subsequent system polling, and the technical effects of timely responding to an evacuation plan and timely positioning a fault lamp can be ensured.

The technical solutions of the present application are described in detail below with reference to the drawings and specific embodiments, and it should be understood that the specific features in the embodiments and examples of the present application are detailed descriptions of the technical solutions of the present application, and are not limitations of the technical solutions of the present application, and the technical features in the embodiments and examples of the present application may be combined with each other without conflict.

The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:用于听筒的印刷电路板组件及终端

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!