Fire-fighting information forwarding method and device, equipment and storage medium
By using the fire information forwarding method in the intelligent fire detection system, the forwarding behavior of the sensor nodes is managed according to the forwarding priority and delay time, the signal attenuation and network stability problems of traditional wireless fire detection technology in complex fire scenarios is solved, and the stability and battery life of the system are improved.
Patent Information
- Application Number
- CN202411818958.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-03-25
AI Technical Summary
In data center computer rooms, traditional wireless fire detection technology can easily lead to signal attenuation, insufficient network stability and poor battery life in complex fire scenarios with high temperature and thick smoke, affecting safety.
By introducing a fire information forwarding method in the intelligent fire detection system, the source sensor node determines the forwarding delay time of the target sensor node according to the forwarding priority, and obtains the received state when the delay time is over, suppressing the forwarding of the target sensor node in the received state to reduce packet collisions and non-essential energy consumption.
It improves the stability of fire information forwarding and network battery life performance, reduces the risk of packet collision, reduces the energy consumption of source sensor nodes, and extends the battery life of nodes.
Smart Images

Figure CN119697697A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things, and in particular to a fire information forwarding method, device, equipment and storage medium. Background Art
[0002] In recent years, fire safety in data center rooms has received increasing attention. A large number of temperature and smoke sensors are often distributed in the room. These sensors are often connected to the fire host through open wires. The lines are numerous and complex, which can easily affect the line planning of the data center and cause line connection failures. Therefore, an intelligent fire detection system based on the Internet of Things has emerged. This system uses networked sensors to collect environmental data, and uses cloud computing and data analysis technology to monitor fire-related indicators such as temperature, smoke concentration, and harmful gases in real time.
[0003] However, due to the large number and variety of equipment in the data center room, the fire scene is relatively complex and the wireless signal is attenuated. If traditional wireless fire detection technology is used in complex fire scenes with high temperature and thick smoke, it will cause signal attenuation, insufficient network stability and poor endurance performance, which will seriously affect the safety of the data center room. Summary of the invention
[0004] The present invention provides a fire information forwarding method to ensure accurate forwarding of fire information while improving the network stability and endurance performance of the system.
[0005] According to a first aspect of the present invention, a fire information forwarding method is provided, which is applied to an intelligent fire detection system, wherein the intelligent fire detection system is composed of a plurality of sensor nodes, and the method comprises:
[0006] Determine the forwarding priority of each target sensor node through the source sensor node to send the fire information;
[0007] Determining the forwarding delay time of each of the target sensor nodes according to the forwarding priority by the source sensor node;
[0008] For each of the target sensor nodes, when the forwarding delay time ends, obtaining the receiving state of the target sensor node, wherein the receiving state includes received and not received;
[0009] When the receiving state of the target sensor node is received, forwarding is suppressed for the target sensor node.
[0010] According to another aspect of the present invention, there is provided a fire information forwarding device, comprising: a forwarding priority determination module, for determining the forwarding priority of each target sensor node through a source sensor node to which fire information is to be sent;
[0011] A forwarding delay time determination module, used to determine the forwarding delay time of each of the target sensor nodes according to the forwarding priority through the source sensor node;
[0012] A receiving state acquisition module, used for acquiring the receiving state of each target sensor node when the forwarding delay time ends, wherein the receiving state includes received and not received;
[0013] The forwarding suppression module is used to suppress forwarding of the target sensor node when the receiving state of the target sensor node is received.
[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0015] at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can perform the method described in any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method described in any embodiment of the present invention when executed.
[0019] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, and when the computer program is executed by a processor, the method described in any embodiment of the present invention is implemented.
[0020] The beneficial technical effect of the present invention is that by determining the forwarding delay time of each target sensor node according to the priority, and forwarding each target sensor node according to different forwarding delay times, the risk of data packet collision is reduced, thereby improving the stability of information forwarding, and when it is determined that each target sensor node has received the fire message sent by the target sensor node with a higher priority, the source sensor node does not need to repeatedly forward it to it, thereby effectively reducing the unnecessary energy consumption of the source sensor node and improving the endurance performance of the node.
[0021] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 is a flow chart of a fire information forwarding method provided according to Embodiment 1 of the present invention;
[0024] Figure 2 is a structural diagram of an intelligent fire detection system provided according to Embodiment 1 of the present invention;
[0025] Figure 3 is a flow chart of a fire information forwarding method provided according to Embodiment 2 of the present invention;
[0026] Figure 4 This is a schematic diagram of the structure of a fire information forwarding device provided according to Embodiment 3 of the present invention;
[0027] Figure 5 It is a schematic diagram of the structure of an electronic device provided by Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. In addition, the information collected in this embodiment is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data are all in compliance with the relevant laws, regulations and standards of the relevant countries and regions, necessary confidentiality measures are taken, and public order and good customs are not violated, and corresponding operation entrances are provided for users to choose to authorize or refuse.
[0030] Embodiment 1
[0031] Figure 1 A flowchart of a fire information forwarding method is provided for the first embodiment of the present invention. This embodiment is applicable to the case of forwarding fire information in a data center computer room. The method can be executed by a fire information forwarding device, which can be implemented in the form of hardware and / or software. Figure 1 As shown, the method includes:
[0032] Step S101: determining the forwarding priority of each target sensor node through the source sensor node to which the fire information is to be sent.
[0033] Optionally, before determining the forwarding priority of each target sensor node through the source sensor node to send the fire information, the method further includes: determining the transmission control range of the source sensor node itself; and taking the sensor nodes within the control transmission range as the target sensor nodes.
[0034] Optionally, determining the forwarding priority of each target sensor node through the source sensor node to which the fire information is to be sent includes: determining the remaining power of each target sensor node and the distance to itself through the source sensor node to which the fire information is to be sent; and determining the forwarding priority of each target sensor node according to the remaining power and the distance.
[0035] Specifically, in this embodiment, different types of sensors, such as smoke sensors, gas sensors, and temperature sensors, are arranged at different locations in the data room. Different types of sensors are used to collect smoke concentration, gas concentration, and temperature values in the fire scene in the data room, and the collected data are used as fire information. Different types of sensors are networked using Bluetooth mesh technology, and each sensor is used as a node in the network, and the fire information is forwarded through the sensor node. In addition, the intelligent fire detection system also includes monitoring equipment. This embodiment does not limit the specific structure included in the intelligent fire detection system, and the fire information is transmitted to the monitoring equipment through the forwarding of each node in the network, and is visualized on the monitoring equipment, so that the monitoring personnel can quickly and timely obtain the fire situation in the data center room, and adopt different disaster relief plans according to the severity of the fire.
[0036] It should be noted that in this embodiment, if the network adopts a flooding transmission mode when broadcasting data, that is, all nodes in the network forward data once, a large number of unnecessary data copies will be generated in the network, and unnecessary data forwarding will consume the energy of the nodes, thereby increasing the energy consumption of the entire network. Therefore, in this embodiment, in order to solve the problems of high energy consumption and data packet collision involved in the process of fire information forwarding, a Bluetooth adaptive energy optimization routing algorithm is proposed. Through this algorithm, the non-essential node forwarding behavior can be significantly reduced, thereby controlling the generation of redundant data packets in the network. The Bluetooth adaptive energy optimization algorithm mainly involves introducing a priority system for sensor node forwarding, thereby providing a judgment standard for limiting the unnecessary forwarding behavior of sensor nodes; by delaying the forwarding of nodes, the possibility of synchronous data transmission of multiple sensor nodes is reduced, and the problem of data packet collision is effectively alleviated; unnecessary data forwarding between sensor nodes is suppressed, and the strategy of forwarding priority and introducing forwarding delay is combined to minimize the number of forwarded sensor nodes and redundant data packets in the network, thereby solving the problem of energy waste. Therefore, the essence of the adaptive energy optimization routing algorithm is to determine the forwarding priority of each adjacent node, so as to set their respective forwarding delay times. At the same time, according to the set forwarding delay time, each node performs a delay operation. Finally, according to the node forwarding suppression strategy, after the delay, it evaluates whether each node has the authority to transmit data, thereby restricting the forwarding behavior of certain nodes.
[0037] Among them, the source sensor node to send fire information will take the sensor nodes in the network within its transmission control range as target sensor nodes, and obtain the remaining power of each target sensor node and the distance from the source sensor node, and determine the forwarding priority of each target sensor based on the above two parameters.
[0038] In a specific implementation, Figure 2 As shown, it is a structural diagram of an intelligent fire detection system. The network of the system consists of 16 sensor nodes. When sensor node 1 needs to forward the generated fire information, that is, data packet p, in the network to upload it to the monitoring device in the system, sensor node 1 serves as the source sensor node for this forwarding. Among them, the sensor nodes located within the transmission control range of sensor node 1 include: 2, 3, 4, 5, 6, 7 and 8. The seven sensor nodes located within the transmission control range are taken as target sensor nodes, and sensor node 1 needs to forward data packet p to all target sensor nodes. In order to avoid data packet collision during the forwarding process, the forwarding priority of the seven target transmission nodes will be determined. Specifically, the forwarding priority of each target sensor can be determined based on two parameters: the remaining power and the distance from the source sensor node. For example, the priority can be determined based on the product result of the remaining power and the distance. Of course, the specific method for determining the forwarding priority is not limited in this embodiment. For example, the target sensor node 4 is determined to be level one, 2 is level two, 3 is level three, 6 is level four, 7 is level five, 5 is level six, and 8 is level seven by calculation, and the priority is reduced in sequence. Of course, this embodiment is only an example and does not limit the level of the forwarding priority of each target sensor.
[0039] Step S102: The source sensor node determines the forwarding delay time of each target sensor node according to the forwarding priority.
[0040] Optionally, determining the forwarding delay time of each target sensor node according to the forwarding priority by the source sensor node includes: determining the forwarding weight of each target sensor node according to the forwarding priority by the source sensor node; and determining the forwarding delay time of each target sensor node according to the forwarding weight.
[0041] Optionally, after the source sensor node determines the forwarding delay time of each target sensor node according to the forwarding priority, the method further includes: sorting the target sensor nodes in ascending order of the forwarding delay time to obtain a fire information forwarding sequence.
[0042] Specifically, in this embodiment, after determining the forwarding priority of each target sensor node, the forwarding weight of each target sensor node is determined according to the forwarding priority, and the pre-configured forwarding time is also obtained, so as to determine the forwarding delay time of each target sensor node according to the product result of the forwarding weight and the forwarding time, and the higher the forwarding priority, the smaller the relative forwarding delay time, that is, the information sent by the source sensor node is received first, so the forwarding delay time of the target sensor nodes 4, 2, 3, 6, 7, 5, and 8 in the above example increases in sequence, for example, the forwarding delay time of the target sensor node 4 is 1 second, the forwarding delay time of the target sensor node 2 is 2 seconds, the forwarding delay time of the target sensor node 3 is 3 seconds, the forwarding delay time of the target sensor node 6 is 4 seconds, the forwarding delay time of the target sensor node 7 is 5 seconds, the forwarding delay time of the target sensor node 5 is 6 seconds, and the forwarding delay time of the target sensor node 8 is 7 seconds. Of course, this embodiment is only an example, and the specific values of each target sensor node are not limited.
[0043] It should be noted that, in this implementation, the above-mentioned target sensor nodes will be excluded in the order of forwarding delay time from small to large to obtain the fire information forwarding sequence, so that the subsequent source sensor nodes will forward the fire information based on the fire information forwarding sequence. For example, the source sensor node will forward the data packet p based on the order of target sensor nodes 4, 2, 3, 6, 7, 5, and 8. Of course, this implementation is only an example for illustration, and does not limit the specific content of the fire information forwarding sequence.
[0044] Step S103 : for each target sensor node, when the forwarding delay time ends, the receiving state of the target sensor node is obtained.
[0045] Specifically, the target sensor node 4 will first receive the data packet p and forward it. Once the target sensor node 4 starts the forwarding process, such as Figure 2 As shown, sensor nodes 7 and 8 located within the transmission control range of target sensor node 4 can immediately receive data packet p forwarded by target sensor node 4, and target sensor node 4 serves as a new source sensor node for target sensor nodes 7 and 8, and the time for receiving data packet p will be advanced. For example, assuming that sensor node 4 sends data packet p to sensor node 7 immediately after receiving it, the time for target sensor node 7 to receive data packet p will be advanced from 7 seconds to 1 second. Of course, this embodiment is only an example and does not limit the specific time for each target sensor node to receive data packet p.
[0046] Among them, after the forwarding delay time of the target sensor node 2 of 2 seconds is over, the receiving state of the target sensor node 2 will be obtained. Since the target sensor node 2 is not within the transmission control range of the target sensor node 4, the target sensor node does not receive the data packet forwarded by the target sensor node 4, so the receiving state of the target sensor node 2 will be obtained as received. Similarly, when the forwarding delay time of the target sensor node 7 is over, since the target sensor node 7 has received the data packet p forwarded by the target transmission node 4 in advance, the receiving state of the target sensor node 7 can be obtained as not received. Of course, this embodiment is only an example, and does not limit the receiving state obtained by each target sensor node.
[0047] Step S104: when the receiving state of the target sensor node is received, suppressing forwarding of the target sensor node.
[0048] Optionally, when the receiving state of the target sensor node is received, forwarding of the target sensor node is suppressed, including: when the receiving state of the target sensor node is received, deleting the target sensor node from the fire information forwarding sequence; and stopping the source sensor node from forwarding the fire message to the deleted target sensor node.
[0049] Optionally, the method further includes: when the receiving state of the target sensor node is not received, forwarding the fire information to the target sensor, so that the target sensor forwards the fire information within its own transmission control range; and receiving the forwarding result of the target sensor node through the source sensor node.
[0050] Specifically, when the source sensor node obtains the receiving state of the target sensor node as not received, it directly forwards the data packet p. However, when the receiving state is received, the target sensor node is deleted from the fire information forwarding sequence, and the source sensor node stops forwarding the fire message to the deleted target sensor node. For the above example, when the receiving state of the target sensor node 7 is received at the 7th second, in order to avoid repeated forwarding of the data packet, the source sensor node 1 will not send the data packet p to the target sensor node 7 again, thereby effectively reducing the number of times the source sensor node 1 forwards the data packet p, reducing the energy consumption of the source sensor node p, and thus improving the endurance of the source sensor node 1. Of course, in this embodiment, only sensor node 1 is used as an example to illustrate the source sensor node that sends fire information. Since each sensor node in the network has the situation of sending and receiving information, any sensor node in the network that sends fire information can be used as a source sensor node. The specific forwarding principle is the same as that of sensor node 1, and it will not be repeated in this embodiment. Therefore, in this embodiment, the frequency and number of communication of sensor message forwarding are intelligently adjusted according to the current energy consumption status and network environment status of the sensor through the adaptive energy optimization algorithm. In the event of a fire with insufficient energy supply, unnecessary data communication and forwarding between nodes is reduced, and the network's endurance is enhanced, thereby maximizing endurance time.
[0051] In the implementation mode of the present application, by determining the forwarding delay time of each target sensor node according to the priority, and forwarding each target sensor node according to a different forwarding delay time, the risk of data packet collision is reduced, thereby improving the stability of information forwarding, and when it is determined that each target sensor node has received the fire message sent by the target sensor node with a higher priority, the source sensor node does not need to repeatedly forward it to it, thereby effectively reducing the unnecessary energy consumption of the source sensor node and improving the endurance performance of the node.
[0052] Embodiment 2
[0053] Figure 3 This is a flowchart of a fire information forwarding method provided by Embodiment 2 of the present invention. This embodiment is based on the above embodiment. When the receiving state of the target sensor node is received, after suppressing forwarding of the target sensor node, it also includes: obtaining the signal strength of each sensor node, and updating the connection state of each sensor node according to the signal strength. Figure 3 As shown, the method includes:
[0054] Step S201: determining the forwarding priority of each target sensor node through the source sensor node to which the fire information is to be sent.
[0055] Optionally, before determining the forwarding priority of each target sensor node through the source sensor node to send the fire information, the method further includes: determining the transmission control range of the source sensor node itself; and taking the sensor nodes within the control transmission range as the target sensor nodes.
[0056] Optionally, determining the forwarding priority of each target sensor node through the source sensor node to which the fire information is to be sent includes: determining the remaining power of each target sensor node and the distance to itself through the source sensor node to which the fire information is to be sent; and determining the forwarding priority of each target sensor node according to the remaining power and the distance.
[0057] Step S202: The source sensor node determines the forwarding delay time of each target sensor node according to the forwarding priority.
[0058] Optionally, determining the forwarding delay time of each target sensor node according to the forwarding priority by the source sensor node includes: determining the forwarding weight of each target sensor node according to the forwarding priority by the source sensor node; and determining the forwarding delay time of each target sensor node according to the forwarding weight.
[0059] Optionally, after the source sensor node determines the forwarding delay time of each target sensor node according to the forwarding priority, the method further includes: sorting the target sensor nodes in ascending order of the forwarding delay time to obtain a fire information forwarding sequence.
[0060] Step S203 : when the forwarding delay time of each target sensor node ends, the receiving state of the target sensor node is obtained.
[0061] Step S204: when the receiving state of the target sensor node is received, suppressing forwarding of the target sensor node.
[0062] Optionally, when the receiving state of the target sensor node is received, forwarding of the target sensor node is suppressed, including: when the receiving state of the target sensor node is received, deleting the target sensor node from the fire information forwarding sequence; and stopping the source sensor node from forwarding the fire message to the deleted target sensor node.
[0063] Optionally, the method further includes: when the receiving state of the target sensor node is not received, forwarding the fire information to the target sensor, so that the target sensor forwards the fire information within its own transmission control range; and receiving the forwarding result of the target sensor node through the source sensor node.
[0064] Step S205: acquiring the signal strength of each sensor node, and updating the connection status of each sensor node according to the signal strength.
[0065] Specifically, in this embodiment, the intelligent fire detection system will also detect the smoke concentration of the fire scene in real time and build a fire scene received signal strength (Received Signal Strength Indication, RSSI) model, and judge the real-time signal strength of each node based on the model, and update the network structure in real time according to the signal strength, that is, the connection status of each sensor node, and select the appropriate sensor node for connection, thereby improving the stability and response time of the Bluetooth network in fire scenarios.
[0066] For example, sensor node 1 is initially connected to sensor nodes 2, 3 and 4. When it is determined that the signal strength value of sensor node 3 is reduced due to insufficient power, the connection between sensor node 1 and sensor node 3 can be disconnected, and only the connection between sensor node 3 and sensor node 4 is retained, thereby avoiding the mistransmission of fire information due to insufficient energy of sensor node 2, thereby improving the stability of the entire network. Of course, this implementation is only an example for illustration, and does not limit the update content of the connection status of each sensor node.
[0067] In the implementation mode of the present application, by determining the forwarding delay time of each target sensor node according to the priority, and forwarding each target sensor node according to a different forwarding delay time, the risk of data packet collision is reduced, thereby improving the stability of information forwarding, and when it is determined that each target sensor node has received the fire message sent by the target sensor node with a higher priority, the source sensor node does not need to repeatedly forward it to it, thereby effectively reducing the unnecessary energy consumption of the source sensor node and improving the endurance performance of the node.
[0068] Embodiment 3
[0069] Figure 4 This is a schematic diagram of the structure of a fire information forwarding device provided in Embodiment 3 of the present invention. Figure 4 As shown, the device includes: a forwarding priority determination module 310, a forwarding delay time determination module 320, a receiving state acquisition module 330 and a forwarding suppression module 340.
[0070] The forwarding priority determination module 310 is used to determine the forwarding priority of each target sensor node through the source sensor node to which the fire information is to be sent;
[0071] A forwarding delay time determination module 320, configured to determine the forwarding delay time of each target sensor node according to the forwarding priority through the source sensor node;
[0072] The receiving state acquisition module 330 is used to acquire the receiving state of each target sensor node when the forwarding delay time ends, wherein the receiving state includes received and not received;
[0073] The forwarding suppression module 340 is configured to suppress forwarding of the target sensor node when the receiving state of the target sensor node is received.
[0074] Optionally, the device further comprises a target sensor node determination module, which is used to determine its own transmission control range through the source sensor node;
[0075] The sensor nodes within the control transmission range are regarded as target sensor nodes.
[0076] Optionally, a forwarding priority determination module is used to determine the remaining power of each target sensor node and the distance from itself through the source sensor node to which the fire information is to be sent;
[0077] The forwarding priority of each target sensor node is determined according to the remaining power and distance.
[0078] Optionally, a forwarding delay time determination module is used to determine the forwarding weight of each target sensor node according to the forwarding priority through the source sensor node;
[0079] The forwarding delay time of each target sensor node is determined according to the forwarding weight.
[0080] Optionally, the device further comprises a fire information forwarding sequence acquisition module, which is used to sort the target sensor nodes in order of forwarding delay time from small to large to acquire the fire information forwarding sequence.
[0081] Optionally, the device further includes a forwarding result receiving module, which is used to forward the fire information to the target sensor when the receiving state of the target sensor node is not received, so that the target sensor forwards the fire information within its own transmission control range;
[0082] The forwarding result of the target sensor node is received through the source sensor node.
[0083] Optionally, a forwarding suppression module is used to delete the target sensor node from the fire information forwarding sequence when the receiving state of the target sensor node is received;
[0084] Stop the source sensor node from forwarding the fire message to the deleted target sensor node.
[0085] The fire information forwarding device provided in the embodiment of the present invention can execute the fire information forwarding method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0086] Embodiment 4
[0087] Figure 5A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0088] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0089] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0090] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a fire information forwarding method.
[0091] In some embodiments, the fire information forwarding method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the fire information forwarding method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the fire information forwarding method in any other appropriate manner (for example, by means of firmware).
[0092] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0093] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0094] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0095] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0096] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0097] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0098] Embodiment 5
[0099] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the fire information forwarding method provided in any embodiment of the present application.
[0100] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0101] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0102] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A fire information forwarding method, characterized in that: Applied to an intelligent fire detection system, the intelligent fire detection system is composed of a plurality of sensor nodes, and the method comprises: Determine the forwarding priority of each target sensor node through the source sensor node to send the fire information; Determining the forwarding delay time of each of the target sensor nodes according to the forwarding priority by the source sensor node; For each of the target sensor nodes, when the forwarding delay time ends, obtaining the receiving state of the target sensor node, wherein the receiving state includes received and not received; When the receiving state of the target sensor node is received, forwarding is suppressed for the target sensor node.
2. The method according to claim 1, characterized in that Before determining the forwarding priority of each target sensor node by the source sensor node to send the fire information, the method further includes: Determining its own transmission control range through the source sensor node; The sensor nodes within the control transmission range are taken as the target sensor nodes.
3. The method according to claim 1, characterized in that The step of determining the forwarding priority of each target sensor node through the source sensor node to send the fire information includes: Determine the remaining power of each target sensor node and the distance to itself through the source sensor node to send the fire information; The forwarding priority of each target sensor node is determined according to the remaining power and the distance.
4. The method according to claim 1, characterized in that The step of determining the forwarding delay time of each target sensor node according to the forwarding priority by the source sensor node includes: Determining the forwarding weight of each of the target sensor nodes according to the forwarding priority by the source sensor node; The forwarding delay time of each target sensor node is determined according to the forwarding weight.
5. The method according to claim 4, characterized in that After the source sensor node determines the forwarding delay time of each target sensor node according to the forwarding priority, the method further includes: The target sensor nodes are sorted in ascending order of the forwarding delay time to obtain a fire information forwarding sequence.
6. The method according to claim 1, characterized in that The method further comprises: When the receiving state of the target sensor node is not received, forwarding the fire information to the target sensor, so that the target sensor forwards the fire information within its own transmission control range; The forwarding result of the target sensor node is received through the source sensor node.
7. The method according to claim 5, characterized in that When the receiving state of the target sensor node is received, suppressing forwarding of the target sensor node comprises: When the receiving state of the target sensor node is received, deleting the target sensor node from the fire information forwarding sequence; The source sensor node is stopped from forwarding the fire message to the deleted target sensor node.
8. A fire information forwarding device, characterized in that: The device comprises: A forwarding priority determination module is used to determine the forwarding priority of each target sensor node through the source sensor node to which the fire information is to be sent; A forwarding delay time determination module, used to determine the forwarding delay time of each of the target sensor nodes according to the forwarding priority through the source sensor node; A receiving state acquisition module, used for acquiring the receiving state of each target sensor node when the forwarding delay time ends, wherein the receiving state includes received and not received; The forwarding suppression module is used to suppress forwarding of the target sensor node when the receiving state of the target sensor node is received.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method according to any one of claims 1 to 7 when executed.
11. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 7 when being executed by a processor.