Alarm information transmission method, device and equipment based on multi-concurrency

By using the transmission method of dual wireless channels in the gateway device, the first alarm information with a small amount of data is monitored and received, and the second alarm information with a large amount of data is requested and received through the second wireless channel, the multiple concurrency scenarios are solved. The following problem of the same frequency interference improves the reliability and real-timeness of alarm information transmission.

CN119402823APending Publication Date: 2025-02-07HANGZHOU MICROIMAGE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411525111.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

In multiple concurrency scenarios, when multiple sensors generate alarms at the same time, the signal-to-noise ratio of the receiver is reduced due to the same frequency interference, which affects the communication quality, which may lead to the gateway fail to receive alarms, and the reliability and real-time performance of alarm information transmission are poor.

Method used

By adopting the transmission method of dual wireless channels, the first wireless channel monitors and receives the first alarm information with a small amount of data through the first wireless channel, and sends an alarm information request to the target sensor through the second wireless channel and receives the second alarm information with a large amount of data through the second wireless channel. The frequency bands of the two are different to avoid interference.

Benefits of technology

It effectively reduces the probability of conflict in multiple concurrent scenarios, improves the success rate and real-time nature of alarm information transmission, and ensures reliable transmission of alarm information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402823A_ABST
    Figure CN119402823A_ABST
Patent Text Reader

Abstract

The invention discloses an alarm information transmission method, device and equipment based on multi-concurrence, and relates to the technical field of wireless communication, the method is applied to gateway equipment, and the method comprises the following steps: monitoring whether at least two sensors send first alarm information through a preset first wireless channel; receiving first alarm information sent by a target sensor in the at least two sensors; sending an alarm information request to the target sensor through a preset second wireless channel; wherein the alarm information request is used for requesting the target sensor to send second alarm information, the data volume of the second alarm information is greater than that of the first alarm information, and the frequency bands of the first wireless channel and the second wireless channel are different; and receiving second alarm information sent by the target sensor through the second wireless channel. According to the method and the device, the probability of conflict of alarm information transmission in a multi-concurrence scene is effectively reduced, and the reliability and the real-time performance during alarm multi-concurrence are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communication technology, and in particular to a method, device and equipment for transmitting alarm information based on multi-concurrency. Background Art

[0002] In the field of wireless communication technology, the success rate and real-time performance of alarm information transmission in wireless radio frequency communication detection systems are crucial.

[0003] At present, for the alarm information transmission of a single sensor, the success rate and real-time performance of the alarm information transmission can be guaranteed to a certain extent.

[0004] However, in multi-concurrency scenarios, for example, when multiple sensors generate alarms at the same time and the amount of alarm information data is large, there may be co-frequency interference caused by multiple sensors actively and continuously sending alarm information for a long time at the same time. This interference will cause the signal-to-noise ratio of the receiver (such as the gateway) to decrease, affecting the communication quality, which may cause the gateway to fail to receive the alarm, and the reliability and real-time performance of the alarm information transmission will be poor. Summary of the invention

[0005] The main purpose of this application is to provide a method, device and equipment for transmitting alarm information based on multi-concurrency, aiming to solve the technical problems of poor reliability and real-time performance of alarm information transmission.

[0006] To achieve the above purpose, the present application proposes a multi-concurrency-based alarm information transmission method, which is applied to a gateway device. The method includes:

[0007] Monitoring whether at least two sensors send first alarm information through a preset first wireless channel;

[0008] Receiving the first alarm information sent by a target sensor among the at least two sensors;

[0009] Sending an alarm information request to the target sensor through a preset second wireless channel; wherein the alarm information request is used to request the target sensor to send a second alarm information, the data volume of the second alarm information is greater than the data volume of the first alarm information, and the frequency bands of the first wireless channel and the second wireless channel are different;

[0010] The second alarm information sent by the target sensor is received through the second wireless channel.

[0011] In one embodiment, the first alarm information is used to indicate that the target sensor has generated the second alarm information to be transmitted;

[0012] The step of sending an alarm information request to the target sensor through a preset second wireless channel includes:

[0013] When the first alarm information is received, an alarm information request is sent to the target sensor through a preset second wireless channel.

[0014] In one embodiment, after the step of receiving the first alarm information sent by the target sensor among the at least two sensors, the method further includes:

[0015] Recording the target identification of the target sensor and setting an alarm flag for the target identification;

[0016] The step of sending an alarm information request to the target sensor through a preset second wireless channel includes:

[0017] When the alarm flag of the target identification is set, an alarm information request is sent to the target sensor through the second wireless channel.

[0018] In one embodiment, after the step of receiving the second alarm information sent by the target sensor through the second wireless channel, the method further includes:

[0019] Clearing the alarm flag setting of the target identification;

[0020] When the alarm flag of the target identification is not set, the collected data of the at least two sensors are obtained through the second wireless channel in a polling manner.

[0021] In one embodiment, the method further comprises:

[0022] sequentially receiving N first alarm information sent by N target sensors through the first wireless channel, wherein N is an integer greater than 1;

[0023] Recording the N target identifiers corresponding to the N target sensors in sequence according to the time sequence of receiving the N first alarm information, and setting alarm flags for the N target identifiers;

[0024] According to the order in which the alarm flags of the N target identifiers are set, the following steps are performed on each of the N target sensors in turn:

[0025] Sending the alarm information request to the target sensor through the second wireless channel;

[0026] receiving, via the second wireless channel, the second alarm information sent by the target sensor;

[0027] Clear the alarm flag setting of the target identification corresponding to the target sensor.

[0028] In one embodiment, the method further comprises:

[0029] In the case where the first alarm information is not received, the following steps are performed on each of the at least two sensors in a polling manner:

[0030] Sending a data collection request to the sensor through the second wireless channel; wherein the data collection request is used to request the sensor to transmit the collected data, and the collected data is the data collected by the sensor;

[0031] The collected data is received through the second wireless channel.

[0032] In one embodiment, two wireless communication modules are integrated on the gateway device, and the RF parameters of the two wireless communication modules are respectively set to the first RF parameter and the second RF parameter. One wireless communication module is integrated on the at least two sensors, and the RF parameters of the one wireless communication module support being set to the first RF parameter or the second RF parameter. The first RF parameter is related to the frequency band of the first wireless channel, and the second RF parameter is related to the frequency band of the second wireless channel, and the first RF parameter is different from the second RF parameter.

[0033] In addition, to achieve the above purpose, the present application also proposes a multi-concurrency-based alarm information transmission method, which is applied to a target sensor, and the method includes:

[0034] When the first alarm information is generated, the first alarm information is sent to the gateway device through a preset first wireless channel;

[0035] In the case where a second alarm message is generated, storing the second alarm message; wherein the data volume of the second alarm message is greater than the data volume of the first alarm message;

[0036] When an alarm information request is received from the gateway device through a preset second wireless channel, the second alarm information is sent to the gateway device through the second wireless channel; wherein the frequency bands of the first wireless channel and the second wireless channel are different.

[0037] In one embodiment, the first alarm information is used to indicate that the target sensor has generated the second alarm information to be transmitted;

[0038] Before the step of sending the first alarm information to the gateway device through the preset first wireless channel, the method further includes:

[0039] generating the second alarm information;

[0040] The first alarm information is generated according to the second alarm information.

[0041] In one embodiment, after the step of sending the first alarm information to the gateway device through the preset first wireless channel, the method further includes:

[0042] The number of conflicts is recorded by a preset conflict counter; wherein the number of conflicts is used to represent the total number of failures in sending the first alarm information;

[0043] In the case of determining that the first alarm information fails to be sent, increasing a preset value based on the number of conflicts by the conflict counter as the updated number of conflicts;

[0044] Determine the target backoff time corresponding to the target sensor according to the updated number of conflicts and the preset backoff time window; wherein there is an exponential relationship between the updated number of conflicts and the target backoff time;

[0045] After the target backoff time has passed, the first alarm information is resent to the gateway device.

[0046] In one embodiment, the method further comprises:

[0047] In the case where the second alarm information is not generated, monitoring whether a data collection request sent by the gateway device is received through the second wireless channel; wherein the data collection request is used to request the target sensor to transmit collection data, and the collection data is data collected by the target sensor;

[0048] When a data collection request sent by the gateway device is received through the second wireless channel, the collected data is sent to the gateway device through the second wireless channel.

[0049] In one embodiment, a wireless communication module is integrated on the target sensor, and the method further includes:

[0050] By setting the radio frequency parameters of the wireless communication module to first radio frequency parameters, the transmission with the gateway device through the first wireless channel is adjusted; wherein the first radio frequency parameters are related to the frequency band of the first wireless channel;

[0051] The transmission with the gateway device through the second wireless channel is adjusted by setting the RF parameters of the wireless communication module to second RF parameters; wherein the second RF parameters are related to the frequency band of the second wireless channel, and the first RF parameters are different from the second RF parameters.

[0052] In one embodiment, the gateway device is integrated with two wireless communication modules, and the radio frequency parameters of the two wireless communication modules are respectively set to the first radio frequency parameter and the second radio frequency parameter. The target sensor is integrated with one wireless communication module, and the radio frequency parameter of the one wireless communication module supports being set to the first radio frequency parameter or the second radio frequency parameter. The first radio frequency parameter is related to the frequency band of the first wireless channel, and the second radio frequency parameter is related to the frequency band of the second wireless channel, and the first radio frequency parameter is different from the second radio frequency parameter.

[0053] After the step of sending the first alarm information to the gateway device through the preset first wireless channel, the method further includes:

[0054] The radio frequency parameters of the wireless communication module of the target sensor are switched to the second radio frequency parameters, and whether the gateway device sends the alarm information request is monitored through the second wireless channel.

[0055] In addition, to achieve the above purpose, the present application also proposes a multi-concurrency-based alarm information transmission device, which is applied to a gateway device. The multi-concurrency-based alarm information transmission device includes:

[0056] A monitoring module, used for monitoring whether at least two sensors send first alarm information through a preset first wireless channel;

[0057] A first receiving module, used for receiving the first alarm information sent by a target sensor among the at least two sensors;

[0058] A first sending module is used to send an alarm information request to the target sensor through a preset second wireless channel; wherein the alarm information request is used to request the target sensor to send a second alarm information, the data volume of the second alarm information is greater than the data volume of the first alarm information, and the frequency bands of the first wireless channel and the second wireless channel are different;

[0059] The second receiving module is used to receive the second alarm information sent by the target sensor through the second wireless channel.

[0060] In addition, to achieve the above purpose, the present application also proposes a multi-concurrency-based alarm information transmission device, which is applied to a target sensor. The multi-concurrency-based alarm information transmission device includes:

[0061] A second sending module is used to send the first alarm information to the gateway device through a preset first wireless channel when the first alarm information is generated;

[0062] A storage module, used for storing the second alarm information when the second alarm information is generated; wherein the data volume of the second alarm information is greater than the data volume of the first alarm information;

[0063] The third sending module is used to send the second alarm information to the gateway device through the preset second wireless channel when the alarm information request sent by the gateway device is received through the preset second wireless channel; wherein the frequency bands between the first wireless channel and the second wireless channel are different.

[0064] In addition, to achieve the above-mentioned purpose, the present application also proposes a multi-concurrency-based alarm information transmission device, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the multi-concurrency-based alarm information transmission method as described in any of the above embodiments.

[0065] In addition, to achieve the above-mentioned purpose, the present application also proposes a multi-concurrency-based alarm information transmission system, the system comprising a gateway device and at least two sensors; wherein the gateway device is used to implement the steps of the multi-concurrency-based alarm information transmission method on the gateway device side described in any of the above-mentioned embodiments, and the at least two sensors are used to implement the steps of the multi-concurrency-based alarm information transmission method on the sensor side described in any of the above-mentioned embodiments.

[0066] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the multi-concurrency based alarm information transmission method as described in any of the above embodiments are implemented.

[0067] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the steps of the multi-concurrency based alarm information transmission method as described in any of the above embodiments.

[0068] One or more technical solutions proposed in this application have at least the following technical effects:

[0069] The present application adopts a dual wireless channel transmission method to transmit alarm information. The specific gateway device and the target sensor are transmitted through the first wireless channel and the second wireless channel. The first wireless channel and the second wireless channel have different frequency bands and can transmit data simultaneously without affecting each other. In the present application, the target sensor transmits the first alarm information with a smaller data volume through the first wireless channel, and transmits the alarm information request and the second alarm information with a larger data volume through the second wireless channel. The two transmissions do not affect each other.

[0070] For the first wireless channel, the gateway device can monitor whether at least two sensors actively report the first alarm information with a smaller data volume through the first wireless channel. Since the data volume of the first alarm information is small, it can be considered that its transmission time is extremely short. Compared with the second alarm information with a larger data volume, it can effectively shorten the duration of transmission to the gateway device, thereby reducing the probability of conflicts in multiple concurrent scenarios.

[0071] For the second wireless channel, the gateway device can send an alarm information request to the target sensor through the second wireless channel to request the target sensor to send the second alarm information with a larger amount of data. This can effectively avoid multiple sensors sending the second alarm information to the gateway device at the same time, resulting in the failure of alarm transmission on the second wireless channel due to co-frequency interference, further improving the reliability and real-time performance when multiple alarms are concurrent. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0073] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0074] Figure 1 One of the flowcharts provided for the multi-concurrency-based alarm information transmission method of this application;

[0075] Figure 2 The second flowchart diagram of the multi-concurrency alarm information transmission method provided by this application;

[0076] Figure 3 The third flowchart diagram of the multi-concurrency alarm information transmission method provided by this application;

[0077] Figure 4 The fourth flowchart diagram of the multi-concurrency alarm information transmission method provided by this application;

[0078] Figure 5 The fifth flowchart diagram of the multi-concurrency alarm information transmission method provided by this application;

[0079] Figure 6 The sixth flowchart diagram of the multi-concurrency alarm information transmission method provided by this application;

[0080] Figure 7 A topological diagram of a wireless radio frequency communication detection system used in the multi-concurrency alarm information transmission method of the present application;

[0081] Figure 8 This is a flow chart of the gateway device side in the multi-concurrency alarm information transmission method of this application;

[0082] Fig. 9 This is a flow chart of the sensor side in the multi-concurrency based alarm information transmission method of this application;

[0083] Fig.10 This is one of the structural diagrams of the multi-concurrency alarm information transmission device of the present application;

[0084] Fig.11 This is the second structural diagram of the multi-concurrency alarm information transmission device of the present application;

[0085] Fig.12 A structural diagram of a multi-concurrency alarm information transmission device provided for this application.

[0086] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0087] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0088] Unless otherwise defined, all technical and scientific terms used in this application have the same meanings as those commonly understood by technicians in the technical field to which this application belongs; the terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0089] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0090] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.

[0091] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0092] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0093] For wireless radio frequency communication detection systems, the success rate and real-time performance of alarm information transmission are crucial. Currently, there are a variety of related technologies for the transmission of alarm information.

[0094] For example, the gateway can transmit data to the sensor through two wireless channels. The two wireless channels are at different frequencies, there is no co-frequency interference, and data can be transmitted simultaneously. The gateway passively receives the alarm information actively uploaded by the sensor through a wireless channel A, and actively polls the sensor to collect terminal data through another wireless channel B. Under normal circumstances, the RF frequency of the sensor is within the frequency band of the wireless channel B of the gateway. After passively receiving the gateway request, it sends the data it collects to the gateway. When an alarm message is generated, it actively switches the frequency to the frequency band of the wireless channel A of the gateway and actively uploads the alarm message.

[0095] It can be seen that the solution of the related technology has improved the success rate and real-time performance of alarm information transmission to a certain extent, and can realize the simultaneous transmission of sensor alarm information and collected data.

[0096] However, when multiple sensors generate alarms at the same time and the amount of alarm data is large, multiple sensors may actively and continuously send alarm signals for a long time at the same time, causing co-frequency interference, which in turn leads to gateway reception failure. There will be problems with alarm transmission failure and untimely transmission when there are multiple concurrent alarms.

[0097] It should be noted that the co-channel interference mentioned above refers to the interference caused by two or more signals with the same carrier frequency to the receiver receiving the co-channel signal. This interference will reduce the signal-to-noise ratio of the receiver and affect the communication quality. Corresponding to the above solution, that is, multiple sensors transmit alarm information with a large amount of data for a long time through wireless channel A (same frequency band), which will cause co-channel interference to the gateway, resulting in the gateway failing to receive multiple alarm information or not receiving it in time.

[0098] In response to the above problems, the embodiments of the present application provide a method, device and equipment for alarm information transmission based on multi-concurrency. Although the gateway device also has wireless dual channels, there are differences in the transmission method and internal processing logic of the alarm information, which makes it not only suitable for the alarm information transmission of a single sensor, but also suitable for alarm information transmission in multi-concurrency scenarios, and suitable for scenarios with large amounts of alarm data. In the case of multi-concurrency of sensor alarm big data, it can significantly improve the success rate and real-time performance of alarm transmission, and ensure the reliability and real-time performance of alarm information transmission in many aspects.

[0099] It should be noted that the executing entity of the embodiment of the present application can be a sensor, which is installed on a computing service device with data processing, network communication and program running functions, such as a tablet computer, personal computer, mobile phone and other devices, or an electronic device that can realize the above functions, and is used to collect data for security detection and other aspects.

[0100] It should also be noted that the above-mentioned sensor specifically refers to a detection device that can sense the information being measured and can convert the sensed information into an electrical signal or other required form of information output according to a certain rule to meet the requirements of information transmission, processing, storage, display, recording and control. For example, the sensor can be a camera, a recorder, a thermal imaging device, etc.

[0101] In some embodiments, multiple sensors in the present application may be set on the same terminal or on different terminals, as long as these sensors are all transmitted to the same gateway, and the present application does not impose any restrictions on this.

[0102] This embodiment and the following embodiments are described in detail below.

[0103] The present application embodiment provides a method for transmitting alarm information based on multi-concurrency. Figure 1 , Figure 1 This is one of the flow charts provided for the multi-concurrency based alarm information transmission method of the present application, which is applied to a gateway device.

[0104] In this embodiment, the multi-concurrency based alarm information transmission method includes steps S101 to S104:

[0105] Step S101: monitoring whether at least two sensors send first alarm information through a preset first wireless channel.

[0106] It should be noted that the at least two sensors may be at least two sensors set on the terminal, and the at least two sensors may be set on any number of devices, as long as the sensors share a gateway device, and this application does not impose any restrictions on this.

[0107] Step S102: receiving the first alarm information sent by a target sensor among the at least two sensors.

[0108] Step S103, sending an alarm information request to the target sensor via a preset second wireless channel;

[0109] The alarm information request is used to request the target sensor to send a second alarm information, the data volume of the second alarm information is greater than the data volume of the first alarm information, and the frequency bands of the first wireless channel and the second wireless channel are different.

[0110] Step S104: receiving the second alarm information sent by the target sensor through the second wireless channel.

[0111] It should be noted that the present application does not limit the order between steps S101-S102 and steps S103-S104, that is, the first alarm information with a smaller data volume actively reported by the target sensor can be listened to and received through the first wireless channel, or an alarm information request can be sent to the target sensor through the second wireless channel to request the sending of the second alarm information with a larger data volume, and the second alarm information can be received through the second wireless channel. The above two operations can also be performed using the first wireless channel and the second wireless channel at the same time, and the present application does not impose any restrictions on this.

[0112] In some embodiments, data is transmitted between the gateway device and each of the at least two sensors via a first wireless channel and a second wireless channel. The first wireless channel and the second wireless channel have different frequency bands and can transmit data simultaneously without affecting each other.

[0113] Specifically, for the first wireless channel, if the sensor generates a first alarm message with a small amount of data, it can be actively reported to the gateway device side through the first wireless channel. The gateway device continuously monitors whether at least two sensors send first alarm messages with a small amount of data through the first wireless channel, and receives the first alarm message actively reported by the target sensor;

[0114] For the second wireless channel, if the sensor generates a second alarm information with a large amount of data, it is necessary to store the second alarm information first and then send the alarm information after the gateway device requests it. The specific gateway device can send an alarm information request to the target sensor through the second wireless channel. After receiving the alarm information request, the target sensor can transmit the stored second alarm information to the gateway device through the second wireless channel.

[0115] The present embodiment provides a multi-concurrency-based alarm information transmission method, which adopts a dual wireless channel transmission method to transmit alarm information. Specifically, the gateway device and the target sensor transmit information through the first wireless channel and the second wireless channel. The first wireless channel and the second wireless channel have different frequency bands, and data can be transmitted simultaneously without affecting each other. In the present application, the target sensor transmits the first alarm information with a smaller data volume through the first wireless channel, and transmits the alarm information request and the second alarm information with a larger data volume through the second wireless channel, and the two transmissions do not affect each other. For the first wireless channel, the gateway device can monitor whether at least two sensors actively report the first alarm information with a smaller data volume through the first wireless channel. Since the data volume of the first alarm information is small, it can be considered that its transmission time is extremely short. Compared with the second alarm information with a larger data volume, it can effectively shorten the duration of transmission to the gateway device, thereby reducing the probability of conflict in multi-concurrency scenarios; for the second wireless channel, the gateway device can send an alarm information request to the target sensor through the second wireless channel to request the target sensor to send the second alarm information with a larger data volume, which can effectively avoid multiple sensors sending the second alarm information to the gateway device at the same time, resulting in the failure of alarm transmission in the second wireless channel due to co-frequency interference, further improving the reliability and real-time performance of multi-concurrency alarms.

[0116] In some embodiments, the first alarm information may be used to indicate that the target sensor has generated the second alarm information to be transmitted;

[0117] The specific implementation method of sending the alarm information request to the target sensor through the preset second wireless channel may include:

[0118] When the first alarm information is received, an alarm information request is sent to the target sensor through a preset second wireless channel.

[0119] Specifically, the gateway device can continuously monitor whether at least two sensors send the first alarm information through the first wireless channel to indicate whether the at least two sensors have generated the second alarm information, that is, at this time, the first alarm information and the second alarm information are related. After receiving the first alarm information sent by the target sensor among the at least two sensors, the gateway device can determine that the target sensor has generated the second alarm information based on the first alarm information, and the second alarm information is to be transmitted to the gateway device. At this time, the gateway device can send an alarm information request to the target sensor through the second wireless channel to request the target sensor to send the second alarm information corresponding to the first alarm information, and then receive the second alarm information corresponding to the first alarm information sent by the target sensor through the second wireless channel, so as to realize the reliable and timely transmission of the alarm information.

[0120] In some embodiments, two wireless communication modules are integrated on the gateway device, and the RF parameters of the two wireless communication modules are respectively set to the first RF parameter and the second RF parameter. One wireless communication module is integrated on the at least two sensors, and the RF parameters of the one wireless communication module support being set to the first RF parameter or the second RF parameter. The first RF parameter is related to the frequency band of the first wireless channel, and the second RF parameter is related to the frequency band of the second wireless channel, and the first RF parameter is different from the second RF parameter.

[0121] For at least two sensors, under normal circumstances (no first alarm information or second alarm information is generated), the sensor can set the radio frequency parameters of the wireless communication module to the second radio frequency parameters, monitor whether the gateway device sends a data collection request through the second wireless channel, and after receiving the data collection request, send the collected data to the gateway device through the second wireless channel;

[0122] If the sensor generates a second alarm message, the alarm message is temporarily stored first, and the RF parameters of the wireless communication module are set to the first RF parameters to switch to the first wireless channel, and the first alarm message is sent to the gateway device through the first wireless channel. After successful sending, the RF parameters are adjusted to the second RF parameters, and switched to the second wireless channel. The gateway device is monitored through the second wireless channel to see whether it sends an alarm message request. If it is sent, the second alarm message is sent to the gateway device through the second wireless channel. After that, the sensor returns to the normal state, and the gateway device is monitored through the second wireless channel to see whether it sends a data collection request.

[0123] In some other embodiments, when the gateway device does not receive the first alarm information, the gateway device may perform the following steps on each of the at least two sensors in a polling manner:

[0124] Sending a data collection request to the sensor through the second wireless channel; wherein the data collection request is used to request the sensor to transmit the collected data, and the collected data is the data collected by the sensor;

[0125] The collected data is received through the second wireless channel.

[0126] Specifically, when the gateway device has not received the first alarm information, it can collect data from each of the at least two sensors in a polling manner. Specifically, according to the order of polling, data collection requests are sent to the sensors in sequence through the second wireless channel to request the sensors to transmit the collected data. For the sensors, the collected data will be stored first, and then transmitted to the gateway device after receiving the data collection request.

[0127] Since the collected data is requested and transmitted through the second wireless channel, and the first alarm information is transmitted through the first wireless channel, and the frequency bands of the first wireless channel and the second wireless channel are different, the transmission between the two does not affect each other, thereby ensuring the reliability and real-time performance of the alarm information transmission.

[0128] Based on this application Figure 1 Corresponding embodiments, in this embodiment, the same or similar contents as the above embodiments can be referred to the above description, and will not be described in detail later. Figure 2 , Figure 2 The second flowchart diagram of the multi-concurrency alarm information transmission method provided by the present application, after step S102, the multi-concurrency alarm information transmission method further includes step S105, and step S103 is replaced by step S103-1:

[0129] Step S105, recording the target identifier of the target sensor, and setting an alarm flag for the target identifier.

[0130] Step S103 - 1 : when the alarm flag of the target identifier is set, sending an alarm information request to the target sensor through the second wireless channel.

[0131] Specifically, after receiving the first alarm information sent by the target sensor among at least two sensors, the gateway device can record the target identification (ID) of the target sensor and set the alarm flag of the target identification to indicate that the target sensor corresponding to the target identification has generated a second alarm information that needs to be transmitted to the gateway device.

[0132] The gateway device continuously checks whether the alarm flag of the identification corresponding to each sensor is set. If the alarm flag of the target identification corresponding to the target sensor is set, an alarm information request is sent to the target sensor through the second wireless channel to request the target sensor to send the corresponding second alarm information.

[0133] In some embodiments, when the alarm flag of the target identifier corresponding to the target sensor is set and the gateway device is not transmitting the alarm information request and the second alarm information corresponding to other sensors, the gateway device sends an alarm information request to the target sensor to avoid channel interference on the second wireless channel and affect the transmission of the alarm information request and the alarm information.

[0134] In some embodiments, after the above step S104, please refer to Figure 2 The method further comprises steps S106 to S107:

[0135] Step S106, clearing the alarm flag of the target identifier;

[0136] Step S107: when the alarm flag of the target identifier is not set, acquiring the collected data of the at least two sensors through the second wireless channel in a polling manner.

[0137] Specifically, when the alarm flag of the target identifier is set, the gateway device can send an alarm information request to the target sensor through the second wireless channel and receive the second alarm information corresponding to the alarm information request. After receiving the second alarm information, the alarm flag of the target identifier needs to be cleared to indicate that the target sensor corresponding to the target identifier currently has no second alarm information that needs to be transmitted. If the gateway device does not have other alarm information requests and second alarm information that needs to be transmitted at this time, it can obtain the collected data of at least two sensors through the second wireless channel by polling. If the gateway device has other sensors' second alarm information that needs to be obtained, it will continue to transmit until the alarm flags of the identifiers corresponding to all sensors are not set, and then obtain the collected data of at least two sensors by polling.

[0138] In some embodiments, reference Figure 3 , Figure 3 The third flowchart diagram of the multi-concurrency-based alarm information transmission method provided by the present application, the multi-concurrency-based alarm information transmission method may further include steps S301 to S303:

[0139] Step S301, sequentially receiving N first alarm information sent by N target sensors through the first wireless channel;

[0140] Wherein, N is an integer greater than 1.

[0141] Step S302: recording N target identifiers corresponding to the N target sensors in sequence according to the time sequence of receiving the N first alarm information, and setting alarm flags for the N target identifiers.

[0142] Step S303, in the order of setting the alarm flags of the N target identifiers, perform the following steps on each of the N target sensors in turn: send the alarm information request to the target sensor through the second wireless channel; receive the second alarm information sent by the target sensor through the second wireless channel; clear the alarm flag setting of the target identifier corresponding to the target sensor.

[0143] Specifically, in a multi-concurrency situation, that is, when N target sensors need to transmit the second alarm information almost at the same time, the gateway device first records the identification of each sensor in sequence according to the time sequence of receiving multiple first alarm messages and sets the alarm flag of the identification, and then obtains the alarm information of each sensor in sequence according to the order of the identification setting. Specifically, for the sensor that sets the identification first, an alarm information request is sent to the sensor through the second wireless channel, and the corresponding second alarm information is received through the second wireless channel. After successfully receiving the second alarm information, the alarm flag of the identification corresponding to the sensor is cleared, and then the operation of sending the alarm information request and receiving the corresponding second alarm information is repeated for the next sensor with the alarm flag set, and so on and so forth until the second alarm information of the N target sensors is acquired.

[0144] In the embodiment of the present application, while ensuring the timeliness of alarm information transmission, it is avoided that multiple sensors simultaneously and continuously transmit the second alarm information with a large amount of data through the second wireless channel for a long time, thereby generating a large co-channel interference, and then causing the failure of the second alarm information transmission, thereby effectively improving the success rate and real-time performance of the alarm information transmission.

[0145] The present application also provides a method for transmitting alarm information based on multi-concurrency. Figure 4 , Figure 4 The fourth flowchart diagram provided for the multi-concurrency-based alarm information transmission method of the present application is applied to a target sensor, and the target sensor can be understood as a sensor among at least two sensors that generates the first alarm information and / or the second alarm information.

[0146] In this embodiment, the multi-concurrency based alarm information transmission method includes steps S401 to S403:

[0147] Step S401: when first alarm information is generated, the first alarm information is sent to a gateway device through a preset first wireless channel.

[0148] Step S402, when the second alarm information is generated, storing the second alarm information;

[0149] The data volume of the second alarm information is greater than the data volume of the first alarm information.

[0150] Specifically, the sensor is normally used to collect information about the surrounding environment, obtain collected data, and send the collected data to the gateway device. Alarm parameters can be configured for each sensor according to actual conditions. The alarm parameters corresponding to different sensors can be the same or different. The sensor can detect whether there is any abnormality in the surrounding environment based on its own corresponding alarm parameters.

[0151] If one or some sensors determine that the surrounding environment is abnormal based on the alarm parameters, these sensors (considered to be target sensors) will generate the first alarm information or the second alarm information. The data volume of the first alarm information is relatively small, and the data volume of the second alarm information is relatively large. The second alarm information, for example, includes alarm data, alarm pictures, and alarm videos, and its data volume is usually relatively large. If the second alarm information with a larger data volume is directly reported to the gateway device by the sensor, the transmission time will be relatively long. If other sensors also generate and transmit the second alarm information when a certain sensor reports the second alarm information, it may cause the gateway device to fail to receive it.

[0152] In the embodiment of the present application, when the target sensor generates the second alarm information with a large amount of data, the second alarm information is first stored instead of being reported directly through the wireless channel.

[0153] Step S403, when receiving the alarm information request sent by the gateway device through the preset second wireless channel, sending the second alarm information to the gateway device through the second wireless channel;

[0154] The first wireless channel and the second wireless channel have different frequency bands.

[0155] In some embodiments, the first alarm information may be used to indicate that the target sensor has generated the second alarm information to be transmitted;

[0156] Before the step of sending the first alarm information to the gateway device through the preset first wireless channel, the following steps may also be performed:

[0157] generating the second alarm information;

[0158] The first alarm information is generated according to the second alarm information.

[0159] Specifically, after the target sensor generates the second alarm information, it can generate the corresponding first alarm information with a smaller data volume based on the second alarm information with a larger data volume, and send it to the gateway device through the first wireless channel to indicate that the target sensor has generated the second alarm information to be transmitted. The gateway device then requests the target sensor to transmit the second alarm information by sending an alarm information request.

[0160] The first alarm information, for example, only includes key alarm data, etc., and may not include large amounts of data such as alarm pictures and alarm videos, so as to facilitate short-term transmission to the gateway device.

[0161] It can be seen that the gateway device and the target sensor transmit data through the first wireless channel and the second wireless channel. The first wireless channel and the second wireless channel have different frequency bands, and data can be transmitted simultaneously without affecting each other. In this application, a first alarm message with a smaller data volume is transmitted through the first wireless channel, and an alarm information request and a second alarm message with a larger data volume are transmitted through the second wireless channel.

[0162] It should be noted that the gateway device monitors whether at least two sensors send the first alarm information through the first wireless channel to determine whether each sensor has generated the second alarm information. Since the data volume of the first alarm information is small, it can be considered that its transmission time is extremely short. Compared with the larger data volume of the second alarm information, it can effectively shorten the duration of transmission to the gateway device, thereby reducing the probability of conflicts in multiple concurrent scenarios.

[0163] After the target sensor sends the first alarm information to the gateway device through the first wireless channel, it can monitor through the second wireless channel whether the gateway device has sent an alarm information request for the first alarm information. After receiving the alarm information request, it can send the second alarm information corresponding to the first alarm information to the gateway device through the second wireless channel.

[0164] It should also be noted that the gateway device and the target sensor transmit the alarm information request and the second alarm information with a large amount of data through the second wireless channel, which can avoid affecting the gateway device's reception of the first alarm information sent by other sensors that generate the second alarm information through the first wireless channel due to the transmission of these data, so as to ensure the timely transmission of the first alarm information and a high success rate.

[0165] In some embodiments, after receiving the second alarm information, the gateway device can use the second alarm information for internal processing or upper-layer linkage processing, such as uploading it to a central platform via a wired network or performing sound and light prompts, alarm output, etc. This application does not impose any restrictions on this.

[0166] The present embodiment provides a multi-concurrency-based alarm information transmission method, which adopts a dual wireless channel transmission method to transmit alarm information. Specifically, the gateway device and the target sensor transmit the information through the first wireless channel and the second wireless channel. The first wireless channel and the second wireless channel have different frequency bands, and data can be transmitted simultaneously without affecting each other. In the present application, the target sensor transmits the first alarm information with a smaller data volume through the first wireless channel, and transmits the alarm information request and the second alarm information with a larger data volume through the second wireless channel, and the two transmissions do not affect each other. After the target sensor generates a first alarm message with a small amount of data, it can actively report it to the gateway device through the first wireless channel. Since the data amount of the first alarm message is small, it can be considered that its transmission time is extremely short, which can effectively shorten the duration of transmission to the gateway device, thereby reducing the probability of conflict in multiple concurrent scenarios; and in the case of generating a second alarm message with a large amount of data, the target sensor needs to first store the second alarm message, and after receiving the alarm message request sent from the gateway device through the second wireless channel, send the second alarm message to the gateway device through the second wireless channel. In this application, after the gateway device sends the alarm message request to the target sensor, the target sensor transmits the second alarm message with a large amount of data through the second wireless channel, which can effectively avoid multiple sensors sending the second alarm message to the gateway device at the same time, resulting in the failure of alarm transmission in the second wireless channel due to co-frequency interference, further improving the reliability and real-time performance of multiple concurrent alarms.

[0167] Based on this application Figure 4 Corresponding embodiments, in this embodiment, the same or similar contents as the above embodiments can be referred to the above description, and will not be described in detail later. Figure 5 , Figure 5 The fifth flowchart of the multi-concurrency alarm information transmission method provided by the present application, after step S401, the multi-concurrency alarm information transmission method further includes steps S404 to S407:

[0168] Step S404, recording the number of conflicts by a preset conflict counter;

[0169] The number of conflicts is used to represent the total number of failures in sending the first alarm information.

[0170] Specifically, the target sensor may pre-set a conflict counter to record the total number of times the first alarm information fails to be sent as the number of conflicts.

[0171] Step S405: When it is determined that the first alarm information fails to be sent, the conflict counter increases a preset value based on the number of conflicts as the updated number of conflicts.

[0172] Specifically, whenever it is determined that the first alarm message fails to be sent, the conflict count needs to be updated through the conflict counter. This can be achieved by increasing a preset value based on the conflict count. Here, the preset value is usually set to be greater than 0, so the updated conflict count is greater than the original conflict count.

[0173] Exemplarily, the initial value of the number of conflicts of the conflict counter can be set to 0, and the preset value can be set to 1. When it is determined for the first time that the first alarm message fails to be sent, the number of conflicts can be updated to 0+1=1; when it is determined for the second time that the first alarm message fails to be sent, the number of conflicts can be updated to 1+1=2; when it is determined for the third time that the first alarm message fails to be sent, the number of conflicts can be updated to 2+1=3, and so on, to update the number of conflicts, until the first alarm message is sent successfully, and the number of conflicts of the conflict counter is reset to the initial value.

[0174] It should be noted that the initial value and preset value of the above-mentioned number of conflicts can be set according to actual conditions. The above-mentioned embodiments are only examples and this application does not impose any limitation on this.

[0175] Step S406, determining a target backoff time corresponding to the target sensor according to the updated number of conflicts and a preset backoff time window;

[0176] There is an exponential relationship between the updated number of conflicts and the target backoff time.

[0177] Step S407: after the target backoff time has passed, resend the first alarm information to the gateway device.

[0178] Specifically, after updating the number of conflicts, the target backoff time corresponding to the target sensor can be determined according to the updated number of conflicts and a preset backoff time window, and then the first alarm information is resent to the gateway device after the target backoff time has passed.

[0179] It should be noted that there is an exponential relationship between the target backoff time determined above and the updated number of conflicts, so the more conflicts there are, the longer the target backoff time may be. This method of handling heavy loads causes repeated failures in transmission attempts to result in longer backoff times, which will help smooth the load. Without such a backoff method, the following situation may occur: two or more sensors attempt to transmit data at the same time, which will cause a conflict, and then these sensors immediately try to retransmit, resulting in a new conflict, and so on, it is difficult to avoid conflicts.

[0180] In some embodiments, if the updated conflict number reaches a limited conflict number, the target sensor can be set to stop sending the first alarm information, but the gateway device can be notified of the failure to send the first alarm information of the target sensor by other means to avoid loss of alarm information.

[0181] In other embodiments, when the target sensor fails to transmit the first alarm information, it is necessary to execute steps S404 to S407 to resend the first alarm information to the gateway device. After successful transmission, it is necessary to monitor whether the gateway device sends an alarm information request through the second wireless channel and upload the second alarm information corresponding to the first alarm information.

[0182] In an embodiment of the present application, when a certain sensor generates a second alarm message and sends a corresponding first alarm message to a gateway device, there may still be other sensors that also generate a second alarm message and simultaneously send a corresponding first alarm message to the gateway device, resulting in a gateway reception failure. Although the probability of this scenario occurring is very small, it is possible. To avoid the loss of the first alarm message due to this situation, in the present application, if the sensor fails to send the first alarm message, the number of conflicts can be recorded through a conflict counter to represent the total number of sending failures, so as to calculate the backoff time corresponding to the current sensor based on the updated number of conflicts and the backoff time window, and resend the first alarm message after the backoff time has passed. The backoff time determined here has an exponential relationship with the number of conflicts, so the more conflicts there are, the longer the backoff time may be, which will help to smooth the load, avoid conflicts from happening again as much as possible, and ensure that the first alarm message will not be lost and can be successfully sent to the gateway device.

[0183] In some embodiments, please refer to Figure 6 , Figure 6 The sixth flowchart of the multi-concurrency alarm information transmission method provided by the present application further includes steps S601 to S602, without limiting the order of steps S601 to S602 and the above steps S401 to S407; wherein:

[0184] Step S601: when the second alarm information is not generated, monitoring whether a data collection request sent by the gateway device is received through the second wireless channel;

[0185] The collected data request is used to request the target sensor to transmit collected data, and the collected data is data collected by the target sensor.

[0186] Step S602: When a data collection request sent by the gateway device is received through the second wireless channel, the collected data is sent to the gateway device through the second wireless channel.

[0187] Specifically, when the target sensor determines based on the alarm parameters that no second alarm information has been generated, it can monitor through the second wireless channel whether a data collection request sent by the gateway device has been received. After receiving the data collection request, the collected data will be transmitted to the gateway device through the second wireless channel, so that the gateway device can perform security detection based on the collected data.

[0188] In an embodiment of the present application, when no second alarm information is generated, the target sensor monitors through the second wireless channel whether a data collection request sent by the gateway device is received, and when the data collection request is received, the target sensor transmits the collection data collected by the target sensor to the gateway device through the second wireless channel, so that the gateway device can use the collection data for internal processing or upper-layer linkage processing, etc.

[0189] In some embodiments, a wireless communication module is integrated on the target sensor, and the target sensor can also perform the following steps:

[0190] By setting the radio frequency parameters of the wireless communication module to first radio frequency parameters, the transmission with the gateway device through the first wireless channel is adjusted; wherein the first radio frequency parameters are related to the frequency band of the first wireless channel;

[0191] The transmission with the gateway device through the second wireless channel is adjusted by setting the RF parameters of the wireless communication module to second RF parameters; wherein the second RF parameters are related to the frequency band of the second wireless channel, and the first RF parameters are different from the second RF parameters.

[0192] Specifically, the target sensor may have only one wireless communication module integrated therein. The target sensor may adjust the transmission with the gateway device through the first wireless channel by setting the RF parameters of the wireless communication module to the first RF parameters. The target sensor may also adjust the transmission with the gateway device through the second wireless channel by setting the RF parameters of the wireless communication module to the second RF parameters.

[0193] In some embodiments, two wireless communication modules are integrated on the gateway device, and the RF parameters of the two wireless communication modules are respectively set to the first RF parameter and the second RF parameter. The target sensor is integrated with a wireless communication module, and the RF parameters of the one wireless communication module support being set to the first RF parameter or the second RF parameter. The first RF parameter is related to the frequency band of the first wireless channel, and the second RF parameter is related to the frequency band of the second wireless channel, and the first RF parameter is different from the second RF parameter.

[0194] After sending the first alarm information to the gateway device through the pre-set first wireless channel, the target sensor can switch the radio frequency parameters of the wireless communication module of the target sensor to the second radio frequency parameters, and monitor whether the gateway device sends the alarm information request through the second wireless channel.

[0195] Specifically, since the gateway device needs to transmit information with more sensors, two wireless communication modules can be set on the gateway device, corresponding to the first wireless channel and the second wireless channel respectively, so that the first alarm information can be transmitted through the first wireless channel while the second alarm information with a larger amount of data is transmitted through the second wireless channel, and the two do not affect each other;

[0196] Compared with the gateway device, for each sensor, under normal circumstances, the sensor will transmit the collected data through the second wireless channel. When the second alarm information is generated, the second alarm information will be temporarily stored first, and the first alarm information will be sent through the first wireless channel. In this process, the second wireless channel does not need to be used. After the first alarm information is sent successfully, the alarm information request will be listened and received through the second wireless channel, and the second alarm information will be sent through the channel. In this process, the first wireless channel does not need to be used.

[0197] Therefore, the present application may integrate only one wireless communication module on the sensor, and adjust the radio frequency parameters of the wireless communication module to switch it to the first wireless channel or the second wireless channel for transmission.

[0198] Exemplarily, under normal circumstances, the sensor may set the radio frequency parameters of the wireless communication module to the second radio frequency parameters, monitor whether the gateway device sends a data collection request through the second wireless channel, and send the collected data to the gateway device after sending the data collection request;

[0199] If the sensor generates a second alarm message, the second alarm message is temporarily stored first, and the RF parameters of the wireless communication module are set to the first RF parameters to switch to the first wireless channel, and the first alarm message is sent to the gateway device through the first wireless channel. After successful sending, the RF parameters are adjusted to the second RF parameters, and switched to the second wireless channel. The gateway device is monitored through the second wireless channel to see whether it sends an alarm message request. If sent, the second alarm message is sent to the gateway device through the second wireless channel, and then the sensor returns to the normal state, and the gateway device is monitored through the second wireless channel to see whether it sends a data collection request.

[0200] In an embodiment of the present application, for each sensor under the same gateway, since there is no need to use the first wireless channel and the second wireless channel for transmission at the same time, only one wireless communication module can be integrated. By switching the wireless communication module to different radio frequency parameters, the transmission with the gateway device through the first wireless channel or the second wireless channel can be adjusted. Compared with setting up two wireless communication modules, the method of the present application can reduce the cost and complexity of the sensor to a certain extent.

[0201] The following example illustrates the obstacle detection method based on multimodal features provided by the present application.

[0202] Figure 7 This is a topological diagram of a wireless radio frequency communication detection system used in the multi-concurrency alarm information transmission method of the present application, such as Figure 7 As shown, in a wireless RF communication detection system composed of several sensors (for example, n) and a gateway device, the sensor can communicate with the gateway device in a two-way manner. After the sensor detects the surrounding environment information, it will send the collected data to the gateway device. The sensor can also configure alarm parameters. After detecting the surrounding environment abnormality, it will upload the alarm information to the gateway device. The alarm information contains alarm data, alarm pictures and alarm videos, and the data volume is large. After the gateway device receives the collected data and alarm information sent by the sensor, it processes it internally and then performs upper-level linkage, for example, it can upload it to the central platform through the wired network or perform sound and light prompts, alarm output and other linkages.

[0203] In this wireless RF communication detection system, the sensor integrates a wireless communication module, so there is only one wireless channel, but the channel frequency can be switched. The gateway device integrates two wireless communication modules, so it has two wireless channels. The two wireless channels have different frequency bands and can transmit data simultaneously without interference.

[0204] The interaction mode between the gateway device and the sensor regarding the collected data and alarm information of the sensor is as follows: the gateway device passively monitors the first alarm information actively reported by the sensor through the first wireless channel. The data volume of this alarm information is small, and there is only alarm key data, no alarm pictures and videos, so the transmission time is extremely short; the second wireless channel of the gateway device usually actively polls the sensor to obtain the collected data of the terminal. When the first alarm information of the sensor is received, the process of polling the sensor to obtain the collected data of the terminal will be interrupted, and the sensor of the alarm will be actively requested to obtain the complete second alarm information. At this time, the second alarm information obtained is complete alarm data with a large amount of data, including alarm pictures and alarm videos, and the transmission time is long.

[0205] For the sensor, the channel frequency is usually within the frequency band of the second wireless channel of the gateway device, waiting for the gateway device to send a data collection request to send the collected data to the gateway device. When the second alarm information is generated, the second alarm information will be temporarily stored first, and then the channel frequency will be switched to the frequency band of the first wireless channel of the gateway device. The first alarm information will be actively reported to the gateway device through the first wireless channel. After the communication is completed, the sensor will switch back to the second wireless channel and wait for the gateway device to send an alarm information request to send the temporarily stored second alarm information to the gateway device.

[0206] The following describes the communication process on the gateway device side and the processing flow of the alarm information.

[0207] Figure 8 This is a flow chart of the gateway device side in the multi-concurrency alarm information transmission method of this application, such as Figure 8 As shown, it is divided into two parts, a first wireless channel and a second wireless channel, and the two parts perform different steps, wherein:

[0208] 1) First wireless channel: The gateway device monitors whether the first alarm information from the sensor is received through the first wireless channel. If so, the ID of the sensor is recorded and the alarm flag of the sensor is set; if not, the step of monitoring whether the first alarm information from the sensor is received is continued.

[0209] 2) Second wireless channel: The gateway device detects whether the alarm flag of any sensor is set. If so, it sends an alarm information request to the sensor and receives the corresponding second alarm information. After performing upper-layer linkage processing on the second alarm information, the alarm flag of the sensor is cleared. If not, a data collection request is sent to sensor i to obtain the collected data of sensor i for upper-layer linkage processing, and then i is updated by i=i+1 to execute the above steps for the next sensor.

[0210] Specifically, the first wireless channel of the gateway device passively receives the first alarm information of the sensor. If received, the ID of the sensor is recorded and the alarm flag of the sensor is set. The second wireless channel of the gateway device is used to actively obtain the collected data and the second alarm information of the sensor. Before polling to obtain the collected information of the sensor, it is detected whether the alarm flag of the sensor is set. If the alarm flag of the sensor is set, the set sensor is actively requested to transmit the second alarm information, and then the upper-level alarm linkage processing is performed, and the alarm flag of the sensor is cleared, and then the collected data of the sensor is requested and the collected information is linked to the upper-level linkage processing.

[0211] The following describes the communication process on the sensor side and the processing flow of the alarm information.

[0212] Fig. 9 This is a flow chart of the sensor side in the multi-concurrency alarm information transmission method of this application, such as Fig. 9 As shown, the sensor first initializes the RF parameters to the frequency band of the second wireless channel of the gateway device. On the one hand, after receiving the data collection request sent by the gateway device, it sends its own collected data to the gateway device. On the other hand, when the second alarm information is generated, the second alarm information is first stored, and then the RF frequency is switched to the frequency band of the first wireless channel of the gateway device, and the first alarm information is sent to the gateway device. After the sending is completed, the RF parameters are switched back to the frequency band of the second wireless channel of the gateway device, and then the alarm information request of the gateway device is received, and the stored second alarm information is sent to the gateway device. After the alarm information is successfully sent, the stored second alarm information is cleared.

[0213] Among them, when the second alarm information is generated and the first alarm information is sent to the gateway device, other sensors may also generate the second alarm information and send the first alarm information to the gateway device at the same time, resulting in the gateway device failing to receive the information. Although the probability of such a scenario is very small, it is possible. In order to avoid the loss of the first alarm information due to such a situation, if the sensor fails to send the first alarm information, the binary exponential backoff algorithm is used to resend the first alarm information to avoid conflict again and ensure that the first alarm information can be successfully sent to the gateway device.

[0214] In the multi-concurrency-based alarm information transmission method provided in the embodiment of the present application, for the multi-concurrency processing scenario of alarm big data, the dual channels of the gateway device are used to ensure that the sensor collected data and the first alarm information can be transmitted simultaneously without affecting each other, and the first alarm information is passively received through the first wireless channel of the gateway device, and the second alarm information is actively requested through the second wireless channel to ensure the reliability and real-time transmission of the second alarm information. The transmission time of the first alarm information is extremely short, and the probability of conflict is extremely low in multi-concurrency. Even if a conflict occurs, a binary exponential backoff algorithm can be used for retransmission to further reduce the probability of conflict, thereby maintaining extremely high reliability and real-time performance even in multi-concurrency alarms.

[0215] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the multi-concurrency alarm information transmission method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0216] This application also provides a multi-concurrency based alarm information transmission device, which is applied to gateway equipment. Please refer to Fig.10 , Fig.10 This is one of the structural diagrams of the multi-concurrency based alarm information transmission device of the present application, and the multi-concurrency based alarm information transmission device includes:

[0217] A monitoring module 1001 is used to monitor whether at least two sensors send first alarm information through a preset first wireless channel;

[0218] A first receiving module 1002 is used to receive the first alarm information sent by a target sensor among the at least two sensors;

[0219] A first sending module 1003 is used to send an alarm information request to the target sensor through a preset second wireless channel; wherein the alarm information request is used to request the target sensor to send a second alarm information, the data volume of the second alarm information is greater than the data volume of the first alarm information, and the frequency bands of the first wireless channel and the second wireless channel are different;

[0220] The second receiving module 1004 is configured to receive the second alarm information sent by the target sensor through the second wireless channel.

[0221] The multi-concurrency-based alarm information transmission device provided by the present application adopts the multi-concurrency-based alarm information transmission method on the gateway device side in the above-mentioned embodiment, which can solve the technical problems of poor reliability and real-time performance of alarm information transmission. Compared with the related art, the beneficial effects of the multi-concurrency-based alarm information transmission device provided by the present application are the same as the beneficial effects of the multi-concurrency-based alarm information transmission method provided by the above-mentioned embodiment, and the other technical features in the multi-concurrency-based alarm information transmission device are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.

[0222] This application also provides a multi-concurrency based alarm information transmission device, which is applied to the target sensor, please refer to Fig.11 , Fig.11 This is the second structural diagram of the multi-concurrency-based alarm information transmission device of the present application, and the multi-concurrency-based alarm information transmission device includes:

[0223] The second sending module 1101 is used to send the first alarm information to the gateway device through a preset first wireless channel when the first alarm information is generated;

[0224] The storage module 1102 is used to store the second alarm information when the second alarm information is generated; wherein the data volume of the second alarm information is greater than the data volume of the first alarm information;

[0225] The third sending module 1103 is used to send the second alarm information to the gateway device through the pre-set second wireless channel when an alarm information request sent by the gateway device is received through the second wireless channel; wherein the frequency bands between the first wireless channel and the second wireless channel are different.

[0226] The multi-concurrency-based alarm information transmission device provided by the present application adopts the multi-concurrency-based alarm information transmission method on the target sensor side in the above-mentioned embodiment, which can solve the technical problems of poor reliability and real-time performance of alarm information transmission. Compared with the related art, the beneficial effects of the multi-concurrency-based alarm information transmission device provided by the present application are the same as the beneficial effects of the multi-concurrency-based alarm information transmission method provided by the above-mentioned embodiment, and the other technical features in the multi-concurrency-based alarm information transmission device are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.

[0227] The present application also provides an alarm information transmission device based on multi-concurrency, and the alarm information transmission device based on multi-concurrency includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the alarm information transmission method based on multi-concurrency in any of the above-mentioned embodiments.

[0228] Reference below Fig.12 , Fig.12 A structural diagram of the multi-concurrency alarm information transmission device provided for the present application shows a structural diagram of the multi-concurrency alarm information transmission device suitable for implementing the embodiment of the present application. The multi-concurrency alarm information transmission device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.12 The multi-concurrency based alarm information transmission device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0229] like Fig.12As shown, the multi-concurrency-based alarm information transmission device may include a processing device 1201 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1202 or a program loaded from a storage device 1203 to a random access memory (RAM: Random Access Memory) 1204. Various programs and data required for the operation of the multi-concurrency-based alarm information transmission device are also stored in the RAM 1204. The processing device 1201, the ROM 1202, and the RAM 1204 are connected to each other via a bus 1205. An input / output (I / O) interface 1206 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1206: input devices 1207 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1208 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1203 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1209. The communication device 1209 can allow the multi-concurrency-based alarm information transmission device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a multi-concurrency-based alarm information transmission device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.

[0230] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1203, or installed from a ROM 1202. When the computer program is executed by the processing device 1201, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0231] The multi-concurrency-based alarm information transmission device provided by the present application adopts the multi-concurrency-based alarm information transmission method in the above-mentioned embodiment, which can solve the technical problems of poor reliability and real-time performance of alarm information transmission. Compared with the related art, the beneficial effects of the multi-concurrency-based alarm information transmission device provided by the present application are the same as the beneficial effects of the multi-concurrency-based alarm information transmission method provided in the above-mentioned embodiment, and the other technical features in the multi-concurrency-based alarm information transmission device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0232] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0233] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0234] The present application also provides an alarm information transmission system based on multi-concurrency, which includes: a gateway device and at least two sensors; wherein the gateway device is used to implement the steps of the alarm information transmission method based on multi-concurrency on the gateway device side described in any of the above embodiments, and the at least two sensors are used to implement the steps of the alarm information transmission method based on multi-concurrency on the sensor side described in any of the above embodiments.

[0235] The present application also provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, the computer-readable program instructions being used to execute the multi-concurrency-based alarm information transmission method in the above-mentioned embodiment.

[0236] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared systems, systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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 thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0237] The computer-readable storage medium may be included in the multi-concurrency-based alarm information transmission device; or may exist independently without being assembled into the multi-concurrency-based alarm information transmission device.

[0238] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the multi-concurrency-based alarm information transmission device, the multi-concurrency-based alarm information transmission device performs the following steps:

[0239] Monitoring whether at least two sensors send first alarm information through a preset first wireless channel;

[0240] Receiving the first alarm information sent by a target sensor among the at least two sensors;

[0241] Sending an alarm information request to the target sensor through a preset second wireless channel; wherein the alarm information request is used to request the target sensor to send a second alarm information, the data volume of the second alarm information is greater than the data volume of the first alarm information, and the frequency bands of the first wireless channel and the second wireless channel are different;

[0242] The second alarm information sent by the target sensor is received through the second wireless channel.

[0243] Alternatively, perform the following steps:

[0244] When the first alarm information is generated, the first alarm information is sent to the gateway device through a preset first wireless channel;

[0245] In the case where a second alarm message is generated, storing the second alarm message; wherein the data volume of the second alarm message is greater than the data volume of the first alarm message;

[0246] When an alarm information request is received from the gateway device through a preset second wireless channel, the second alarm information is sent to the gateway device through the second wireless channel; wherein the frequency bands of the first wireless channel and the second wireless channel are different.

[0247] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may 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 may 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 may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0248] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0249] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0250] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned alarm information transmission method based on multi-concurrency, and can solve the technical problems of poor reliability and real-time performance of alarm information transmission. Compared with the related art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the alarm information transmission method based on multi-concurrency provided by the above-mentioned embodiment, and will not be repeated here.

[0251] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned multi-concurrency-based alarm information transmission method when executed by a processor.

[0252] The computer program product provided by the present application can solve the technical problems of poor reliability and real-time performance of alarm information transmission. Compared with the related art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the alarm information transmission method based on multi-concurrency provided by the above embodiment, which will not be repeated here.

[0253] The above descriptions are only some embodiments of the present application, and are not intended to limit the scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the protection scope of the present application.

Claims

1. A method for transmitting alarm information based on multi-concurrency, characterized in that: Applied to a gateway device, the method comprises: Monitoring whether at least two sensors send first alarm information through a preset first wireless channel; Receiving the first alarm information sent by a target sensor among the at least two sensors; Sending an alarm information request to the target sensor through a preset second wireless channel; wherein the alarm information request is used to request the target sensor to send a second alarm information, the data volume of the second alarm information is greater than the data volume of the first alarm information, and the frequency bands of the first wireless channel and the second wireless channel are different; The second alarm information sent by the target sensor is received through the second wireless channel.

2. The method according to claim 1, characterized in that The first alarm information is used to indicate that the target sensor has generated the second alarm information to be transmitted; The step of sending an alarm information request to the target sensor through a preset second wireless channel includes: When the first alarm information is received, an alarm information request is sent to the target sensor through a preset second wireless channel.

3. The method according to claim 1 or 2, characterized in that After the step of receiving the first alarm information sent by the target sensor among the at least two sensors, the method further includes: Recording the target identification of the target sensor and setting an alarm flag for the target identification; The step of sending an alarm information request to the target sensor through a preset second wireless channel includes: When the alarm flag of the target identification is set, an alarm information request is sent to the target sensor through the second wireless channel.

4. The method according to claim 3, characterized in that After the step of receiving the second alarm information sent by the target sensor through the second wireless channel, the method further includes: Clearing the alarm flag setting of the target identification; When the alarm flag of the target identification is not set, the collected data of the at least two sensors are obtained through the second wireless channel in a polling manner.

5. The method according to claim 1 or 2, characterized in that: The method further comprises: sequentially receiving N first alarm information sent by N target sensors through the first wireless channel, wherein N is an integer greater than 1; Recording the N target identifiers corresponding to the N target sensors in sequence according to the time sequence of receiving the N first alarm information, and setting alarm flags for the N target identifiers; According to the order in which the alarm flags of the N target identifiers are set, the following steps are performed on each of the N target sensors in turn: Sending the alarm information request to the target sensor through the second wireless channel; receiving, via the second wireless channel, the second alarm information sent by the target sensor; Clear the alarm flag setting of the target identification corresponding to the target sensor.

6. The method according to claim 1 or 2, characterized in that: The method further comprises: In the case where the first alarm information is not received, the following steps are performed on each of the at least two sensors in a polling manner: Sending a data collection request to the sensor through the second wireless channel; wherein the data collection request is used to request the sensor to transmit the collected data, and the collected data is the data collected by the sensor; The collected data is received through the second wireless channel.

7. The method according to claim 1 or 2, characterized in that: The gateway device is integrated with two wireless communication modules, and the RF parameters of the two wireless communication modules are respectively set to the first RF parameter and the second RF parameter. The at least two sensors are integrated with one wireless communication module, and the RF parameters of the one wireless communication module support being set to the first RF parameter or the second RF parameter. The first RF parameter is related to the frequency band of the first wireless channel, and the second RF parameter is related to the frequency band of the second wireless channel, and the first RF parameter is different from the second RF parameter.

8. A method for transmitting alarm information based on multi-concurrency, characterized in that: Applied to a target sensor, the method comprises: When the first alarm information is generated, the first alarm information is sent to the gateway device through a preset first wireless channel; In the case where a second alarm message is generated, storing the second alarm message; wherein the data volume of the second alarm message is greater than the data volume of the first alarm message; When an alarm information request is received from the gateway device through a preset second wireless channel, the second alarm information is sent to the gateway device through the second wireless channel; wherein the frequency bands of the first wireless channel and the second wireless channel are different.

9. The method according to claim 8, characterized in that The first alarm information is used to indicate that the target sensor has generated the second alarm information to be transmitted; Before the step of sending the first alarm information to the gateway device through the preset first wireless channel, the method further includes: generating the second alarm information; The first alarm information is generated according to the second alarm information.

10. The method according to claim 8 or 9, characterized in that After the step of sending the first alarm information to the gateway device through the preset first wireless channel, the method further includes: The number of conflicts is recorded by a preset conflict counter; wherein the number of conflicts is used to represent the total number of failures in sending the first alarm information; In the case of determining that the first alarm information fails to be sent, increasing a preset value based on the number of conflicts by the conflict counter as the updated number of conflicts; Determine the target backoff time corresponding to the target sensor according to the updated number of conflicts and the preset backoff time window; wherein there is an exponential relationship between the updated number of conflicts and the target backoff time; After the target backoff time has passed, the first alarm information is resent to the gateway device.

11. The method according to claim 8 or 9, characterized in that: The method further comprises: In the case where the second alarm information is not generated, monitoring whether a data collection request sent by the gateway device is received through the second wireless channel; wherein the data collection request is used to request the target sensor to transmit collection data, and the collection data is data collected by the target sensor; When a data collection request sent by the gateway device is received through the second wireless channel, the collected data is sent to the gateway device through the second wireless channel.

12. The method according to claim 8 or 9, characterized in that The target sensor is integrated with a wireless communication module, and the method further comprises: By setting the radio frequency parameters of the wireless communication module to first radio frequency parameters, the transmission with the gateway device through the first wireless channel is adjusted; wherein the first radio frequency parameters are related to the frequency band of the first wireless channel; The transmission with the gateway device through the second wireless channel is adjusted by setting the RF parameters of the wireless communication module to second RF parameters; wherein the second RF parameters are related to the frequency band of the second wireless channel, and the first RF parameters are different from the second RF parameters.

13. The method according to claim 8 or 9, characterized in that Two wireless communication modules are integrated on the gateway device, and the radio frequency parameters of the two wireless communication modules are respectively set to the first radio frequency parameter and the second radio frequency parameter. One wireless communication module is integrated on the target sensor, and the radio frequency parameter of the one wireless communication module supports being set to the first radio frequency parameter or the second radio frequency parameter. The first radio frequency parameter is related to the frequency band of the first wireless channel, and the second radio frequency parameter is related to the frequency band of the second wireless channel, and the first radio frequency parameter is different from the second radio frequency parameter. After the step of sending the first alarm information to the gateway device through the preset first wireless channel, the method further includes: The radio frequency parameters of the wireless communication module of the target sensor are switched to the second radio frequency parameters, and whether the gateway device sends the alarm information request is monitored through the second wireless channel.

14. A multi-concurrency based alarm information transmission device, characterized in that: The device comprises: A monitoring module, used for monitoring whether at least two sensors send first alarm information through a preset first wireless channel; A first receiving module, used for receiving the first alarm information sent by a target sensor among the at least two sensors; A first sending module is used to send an alarm information request to the target sensor through a preset second wireless channel; wherein the alarm information request is used to request the target sensor to send a second alarm information, the data volume of the second alarm information is greater than the data volume of the first alarm information, and the frequency bands of the first wireless channel and the second wireless channel are different; The second receiving module is used to receive the second alarm information sent by the target sensor through the second wireless channel.

15. A multi-concurrency based alarm information transmission device, characterized in that: The device comprises: A second sending module is used to send the first alarm information to the gateway device through a preset first wireless channel when the first alarm information is generated; A storage module, used for storing the second alarm information when the second alarm information is generated; wherein the data volume of the second alarm information is greater than the data volume of the first alarm information; The third sending module is used to send the second alarm information to the gateway device through the preset second wireless channel when the alarm information request sent by the gateway device is received through the preset second wireless channel; wherein the frequency bands between the first wireless channel and the second wireless channel are different.

16. A multi-concurrency based alarm information transmission device, characterized in that: The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the multi-concurrency-based alarm information transmission method as described in any one of claims 1 to 7, or to implement the steps of the multi-concurrency-based alarm information transmission method as described in any one of claims 8 to 13.

17. A multi-concurrency based alarm information transmission system, characterized in that: The system includes a gateway device and at least two sensors; wherein the gateway device is used to implement the steps of the multi-concurrency based alarm information transmission method as described in any one of claims 1 to 7, and the at least two sensors are used to implement the steps of the multi-concurrency based alarm information transmission method as described in any one of claims 8 to 13.

18. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the multi-concurrency based alarm information transmission method as described in any one of claims 1 to 7 are implemented, or the steps of the multi-concurrency based alarm information transmission method as described in any one of claims 8 to 13 are implemented.

19. A computer program product, characterized in that The computer program product includes a computer program, which, when executed by a processor, implements the steps of the multi-concurrency based alarm information transmission method as described in any one of claims 1 to 7, or implements the steps of the multi-concurrency based alarm information transmission method as described in any one of claims 8 to 13.