CN-122002234-A - Alarm system, alarm method, gateway equipment and sensor equipment
Abstract
The embodiment of the application provides an alarm system, an alarm method, gateway equipment and sensor equipment, which are applied to the field of security monitoring systems, and the mode of acquiring alarm information by actively polling sensors through a gateway reduces the condition of alarm failure caused by the same-frequency interference generated by simultaneous active alarm of a plurality of sensors, and improves the alarm success rate. In addition, when the alarm information generated by the sensor is the first alarm, the sensor uploads the alarm information in an active reporting mode, so that the instantaneity of the first alarm can be improved.
Inventors
- YANG JIAN
- HAN WEI
- MA DENGFENG
Assignees
- 杭州微影软件有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241101
Claims (15)
- 1. An alarm system is characterized by comprising a gateway and a plurality of sensors; The gateway is used for determining a current sensor to be polled according to a preset polling sequence; sending a first message for requesting alarm information to a current sensor to be polled; The sensor is used for responding to the existence of alarm information to be reported after receiving the first message and uploading the alarm information to the gateway; The gateway is also used for disconnecting the current sensor to be polled after finishing the current polling, waiting for a first preset time period after disconnecting the current sensor to be polled, determining a new sensor to be polled according to a preset polling sequence after finishing the waiting of the first preset time period, and carrying out polling on the new sensor to be polled; The sensor is further used for sending a third message for uploading alarm information to the gateway when a preset active alarm condition is met; and the gateway is further used for establishing connection with a sensor for sending the third message and receiving the uploaded alarm information if the third message is received in the process of waiting for the first preset time.
- 2. The system of claim 1, wherein the sensor is configured to randomly generate a second duration within a preset duration range when a preset active alarm condition is satisfied, and to send a third message for uploading alarm information to the gateway after waiting for the second duration.
- 3. The system of claim 2, wherein the preset duration range is an exponential multiple level of a maximum reporting duration or a single reporting duration, and not more than twenty times the maximum reporting duration or the single reporting duration, and the maximum reporting duration is a maximum duration of a single uploading alarm information of the sensor.
- 4. The system of claim 2, wherein the sensor is further configured to determine whether the currently generated alarm information is a first alarm in response to generating the alarm information, and if so, to determine that the preset active alarm condition is satisfied.
- 5. The system of claim 2, wherein the sensor is further configured to determine an alert level of the currently generated alert information in response to generating the alert information, and determine that the preset active alert condition is satisfied if the alert level is not below a preset level threshold.
- 6. The system of claim 2, wherein the sensor is further configured to, when the gateway does not answer to the third message, resend the third message to the gateway after waiting for a maximum reporting period or a single reporting period until a preset number of retransmissions is reached or the gateway answers to the third message.
- 7. An alarm method, applied to a gateway, the method comprising: Determining a current sensor to be polled according to a preset polling sequence; Sending a first message for requesting alarm information to a current sensor to be polled; After the current polling is finished, disconnecting the current sensor to be polled; After disconnecting the sensor from the previous sensor, waiting for a first preset period of time; And after the waiting of the first preset time length is completed, determining a new sensor to be polled according to a preset polling sequence, and polling the new sensor to be polled.
- 8. The alarm method of claim 7, wherein the method further comprises: if a third message for uploading alarm information sent by the sensor is received in the process of waiting for the first preset time period, connection with the sensor for sending the third message is established, and the uploaded alarm information is received.
- 9. The gateway equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus; A memory for storing a computer program; A processor for implementing the method steps of claim 7 or 8 when executing a program stored on a memory.
- 10. An alarm method, applied to a sensor, the method comprising: receiving a first message which is sent by a gateway and used for requesting alarm information, wherein the first message is a message which is sent by the gateway to a current sensor to be polled according to a preset polling sequence and used for requesting alarm information; in response to the existence of alarm information to be reported, uploading the alarm information to the gateway; and when the preset active alarm condition is met, sending a third message for uploading alarm information to the gateway.
- 11. The method according to claim 10, wherein the sending a third message for uploading alarm information to the gateway when a preset active alarm condition is satisfied comprises: And when the preset active alarm condition is met, randomly generating a second duration within a preset duration range, and after waiting for the second duration, sending a third message for uploading alarm information to the gateway.
- 12. The alarm method of claim 11, wherein the method further comprises: And responding to the generated alarm information, judging whether the currently generated alarm information is the first alarm, and if so, judging that the preset active alarm condition is met.
- 13. The alarm method of claim 11, wherein the method further comprises: and responding to the generated alarm information, determining the alarm level of the currently generated alarm information, and judging that the preset active alarm condition is met if the alarm level is not lower than a preset level threshold.
- 14. The alarm method of claim 11, wherein the method further comprises: and when the gateway does not answer to the third message, the gateway sends the third message to the gateway again after waiting for the maximum reporting time or the single reporting time until the preset retransmission times are reached or the gateway answers to the third message.
- 15. The sensor device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus; A memory for storing a computer program; a processor for carrying out the method steps of any one of claims 10-14 when executing a program stored on a memory.
Description
Alarm system, alarm method, gateway equipment and sensor equipment Technical Field The application relates to the field of security monitoring systems, in particular to an alarm system, an alarm method, gateway equipment and sensor equipment. Background In a wireless radio frequency communication monitoring system, multiple sensors can give an alarm at the same time to cause the same-frequency interference, namely when the carrier frequencies of alarm signals sent by two or more sensors are the same, the interference can be caused to a receiver for receiving the same-frequency signals, so that the signal-to-noise ratio of the receiver is reduced, the signal transmission quality is influenced, the condition that the transmission of the alarm signals fails is easily caused when the multiple sensors give an alarm at the same time, and the alarm success rate is low. Disclosure of Invention The embodiment of the application aims to provide an alarm system, an alarm method, gateway equipment and sensor equipment so as to improve the alarm success rate. The specific technical scheme is as follows: in a first aspect, an alarm system is provided, the system comprising a gateway, a plurality of sensors; The gateway is used for determining a current sensor to be polled according to a preset polling sequence; sending a first message for requesting alarm information to a current sensor to be polled; The sensor is used for responding to the existence of alarm information to be reported after receiving the first message and uploading the alarm information to the gateway; The gateway is further used for disconnecting the current sensor to be polled after the current polling is completed, waiting for a first preset time period after the connection with the last sensor is disconnected, determining a new sensor to be polled according to a preset polling sequence after the waiting for the first preset time period is completed, and carrying out polling on the new sensor to be polled. The sensor is further used for sending a third message for uploading alarm information to the gateway when a preset active alarm condition is met; and the gateway is further used for establishing connection with a sensor for sending the third message and receiving the uploaded alarm information if the third message is received in the process of waiting for the first preset time. In one possible implementation, the sensor is specifically configured to randomly generate a second duration within a preset duration range when a preset active alarm condition is met, and send a third message for uploading alarm information to the gateway after waiting for the second duration. In one possible implementation manner, the preset duration range is an exponential multiple level of a maximum reporting duration or a single reporting duration, and is not more than twenty times of the maximum reporting duration or the single reporting duration, and the maximum reporting duration is the maximum duration of single reporting alarm information of the sensor. In a possible implementation mode, the sensor is further used for responding to generation of alarm information, judging whether the currently generated alarm information is an alarm for the first time or not, and if so, judging that the preset active alarm condition is met. In one possible implementation, the sensor is further configured to determine, in response to generating the alarm information, an alarm level of the currently generated alarm information, and determine that the preset active alarm condition is satisfied if the alarm level is not below a preset level threshold. In a possible implementation manner, the sensor is further used for sending the third message to the gateway again after waiting for the maximum reporting duration or the single reporting duration when the gateway does not answer to the third message until the preset retransmission times are reached or the gateway answers to the third message. In a second aspect, an alarm method is provided and applied to a gateway, and the method includes: Determining a current sensor to be polled according to a preset polling sequence; Sending a first message for requesting alarm information to a current sensor to be polled; After the current polling is finished, disconnecting the current sensor to be polled; After disconnecting the sensor from the previous sensor, waiting for a first preset period of time; And after the waiting of the first preset time length is completed, determining a new sensor to be polled according to a preset polling sequence, and polling the new sensor to be polled. Optionally, the method further comprises: if a third message for uploading alarm information sent by the sensor is received in the process of waiting for the first preset time period, connection with the sensor for sending the third message is established, and the uploaded alarm information is received. In a third aspect, there is provided an alarm device, the devic