Search

CN-121619353-B - Dynamic stable pairing method and system for sensor and gateway

CN121619353BCN 121619353 BCN121619353 BCN 121619353BCN-121619353-B

Abstract

The invention relates to the technical field of the Internet of things and discloses a dynamic stable pairing method of a sensor and a gateway, which comprises the following steps that 1, related information of all sensors to be paired and all available gateways is obtained; the method comprises the steps of calculating gateway evaluation data and sensor evaluation data, calculating evaluation scores of different gateways of each sensor and evaluation scores of different sensors of each gateway according to gateway evaluation data, corresponding first weights, sensor evaluation data and corresponding second weights, through a multi-criterion decision model, constructing a preference list of each sensor and a preference list of each gateway, generating a stable pairing scheme according to the preference list of each sensor and the preference list of each gateway by adopting an improved delay receiving algorithm, and establishing network connection between the sensors and the corresponding gateways according to the stable pairing scheme. Meanwhile, a dynamic stable pairing system of the sensor and the gateway is also disclosed.

Inventors

  • YANG MENG
  • YANG HAIPENG
  • TAO YANG

Assignees

  • 广州鲁邦通物联网科技股份有限公司

Dates

Publication Date
20260512
Application Date
20260131

Claims (9)

  1. 1. The dynamic stable pairing method of the sensor and the gateway is characterized by comprising the following steps of: the method comprises the steps of 1, acquiring related information of all sensors to be paired and related information of all available gateways, and respectively calculating to obtain a plurality of gateway evaluation data of each sensor and a plurality of sensor evaluation data of each gateway according to the related information of all sensors to be paired and the related information of all available gateways; Step 2, allocating corresponding first weights to each gateway evaluation data and corresponding second weights to each sensor evaluation data, calculating the evaluation scores of each sensor to different gateways through a multi-criterion decision model according to the plurality of gateway evaluation data and the corresponding first weights, and calculating the evaluation scores of each gateway to different sensors through the multi-criterion decision model according to the plurality of sensor evaluation data and the corresponding second weights; step 3, based on the evaluation scores of each sensor to different gateways, arranging the evaluation scores of the different gateways in descending order, and constructing a preference list of each sensor; based on the evaluation scores of different sensors by each gateway, the evaluation scores of different sensors are arranged in descending order, and a preference list of each gateway is constructed; step 4, generating a stable pairing scheme between related information of all sensors to be paired and all available gateways by adopting an improved delay receiving algorithm according to the preference list of each sensor and the preference list of each gateway; and 5, sending a pairing instruction to the sensor according to the stable pairing scheme, and establishing network connection between the sensor and the corresponding gateway according to the pairing instruction.
  2. 2. The method of dynamically stable pairing of sensors and gateways according to claim 1, wherein the relevant information of the sensors to be paired includes at least three of sensor data type, communication protocol used by the sensors, RSSI value of the sensors to the gateways, data production rate, data real-time requirements, data traffic priority, data throughput requirements, requirements for gateway functions and physical location of the sensors; The related information of the available gateway comprises at least four of CPU utilization rate, memory utilization rate, network bandwidth, current load state, current available resources, supported communication protocols, supported data processing capacity, physical position and coverage range of the gateway; The plurality of gateway evaluation data comprises at least three of sensor-to-gateway signal strength data, sensor-to-gateway communication distance data, gateway residual load data, gateway data processing capacity and sensor demand matching degree data and gateway support degree data of a sensor data type or a communication protocol; The plurality of sensor evaluation data comprises at least three of data traffic priority data of the sensor, matching degree data of data throughput requirements of the sensor and current available resources of the gateway, communication distance data of the sensor to the gateway and matching degree data of a physical area where the sensor is located and a coverage area of the gateway.
  3. 3. The method for dynamically and stably pairing a sensor and a gateway according to claim 2, wherein in the step 1, the signal strength data from the sensor to the gateway is calculated in such a way that the RSSI value from the sensor to the gateway is the signal strength data from the sensor to the gateway; the calculation mode of the communication distance data from the sensor to the gateway is that the physical distance data from the sensor to the gateway is obtained based on the physical position of the sensor and the physical position of the gateway; The calculation mode of the residual load data of the gateway is that the residual load data of the gateway is calculated by adopting a residual load rate formula based on the current load state; The data processing capacity of the gateway and the matching degree data of the sensor requirement are calculated in a mode of obtaining the processing requirement index of the sensor based on the data production rate and the data real-time requirement, obtaining the processing capacity index of the gateway based on the CPU utilization rate and the memory utilization rate, and obtaining the matching degree data of the data processing capacity of the gateway and the sensor requirement by adopting a matching degree formula based on the processing requirement index of the sensor and the processing capacity index of the gateway; The gateway calculates the support degree data of the sensor data type or the communication protocol based on the communication protocol used by the sensor and the supported communication protocol to obtain the support degree of the communication protocol; calculating to obtain the data type support based on the sensor data type and the supported data processing capacity, and calculating to obtain the support of the gateway to the sensor data type or the communication protocol based on the communication protocol support and the data type support; the data service priority data of the sensor is calculated by decrementing the interval of each level according to 1/level number from 1 based on the level number of the data service priority, giving a corresponding value to each priority, and obtaining the data service priority data of the sensor according to the data service priority; The data throughput demand of the sensor and the matching degree data of the current available resources of the gateway are calculated by adopting a matching degree formula based on the data throughput demand and the current available resources to obtain the matching degree data of the data throughput demand of the sensor and the current available resources of the gateway; The calculation mode of the matching degree data of the physical area where the sensor is located and the gateway coverage area is that based on the physical position of the sensor and the physical position of the gateway, the spatial distance between the sensor and the gateway is calculated by adopting a weighted Euclidean formula, and the matching degree data of the physical area where the sensor is located and the gateway coverage area is calculated based on the spatial distance and the gateway coverage area.
  4. 4. The method for dynamically and stably pairing a sensor and a gateway according to claim 3, wherein the matching degree formula is: wherein A is the processing capacity index or the current available resource of the gateway, and B is the processing requirement index or the data throughput requirement of the sensor.
  5. 5. The method of dynamically stable pairing of sensors and gateways according to claim 1, wherein step 2 comprises the steps of: A1, respectively distributing corresponding initial first weights to a plurality of gateway evaluation data, respectively distributing corresponding initial second weights to a plurality of sensor evaluation data, wherein the sum of the initial first weights is 1, and the sum of the initial second weights is 1; A2, respectively setting system state index thresholds related to gateway evaluation data and sensor evaluation data, acquiring all system state indexes in real time, and when any system state index related to the gateway evaluation data or the sensor evaluation data is larger than the corresponding system state index threshold, lifting the initial first weight of the corresponding gateway evaluation data or the initial second weight of the sensor evaluation data by N percent, and adjusting the initial first weight of the rest gateway evaluation data or the initial second weight of the sensor evaluation data according to lifting quantity to obtain the first weight of all gateway evaluation data or the second weight of the sensor evaluation data, wherein the range of N is 10-80, the sum of all first weights is 1, and the sum of all second weights is 1; and A3, calculating the evaluation scores of each sensor to different gateways through a multi-criterion decision model according to the plurality of gateway evaluation data and the corresponding first weights, and calculating the evaluation scores of each gateway to different sensors through the multi-criterion decision model according to the plurality of sensor evaluation data and the corresponding second weights.
  6. 6. The method of dynamically stable pairing of sensors and gateways according to claim 5, wherein the multi-criterion decision model is: where n is the number of gateway evaluation data or sensor evaluation data selected, As a function of the normalization, For gateway evaluation data or sensor evaluation data, Either as a respective first weight or second weight.
  7. 7. The method of dynamically stable pairing of sensors with a gateway according to claim 1, wherein step 4 comprises the steps of: B1, distributing quota quantity to each gateway through a quota calculation formula, and constructing a pre-pairing list for each gateway; step B2, each sensor searches its own preference list and sends a connection request to the gateway which is ranked highest and is not rejected by the corresponding gateway; Step B3, after receiving the sensor request, the gateway adds the sensor into a pre-pairing list, and sequences the sensors in the pre-pairing list according to a preference list of the gateway to obtain a sensor candidate set, and when the total number of the sensors in the sensor candidate set is greater than the quota number, the gateway refuses the sensors ranked in the quota number in the sensor candidate set and rejects the sensors from the sensor candidate set; step B4, after the sensor receives the refusing operation of the gateway, removing the gateway from the preference list of the sensor to obtain a new preference list of the sensor, and replacing the old preference list of the sensor; and B5, circularly executing the steps B2 to B4 until the termination condition is met, and generating a stable pairing scheme between all the sensors to be paired and all the available gateways.
  8. 8. The method for dynamically stabilizing pairing between a sensor and a gateway according to claim 2, further comprising step 6, after the pairing between the sensor and the gateway is completed, when one of the reconfiguration conditions is satisfied, carrying out steps 1 to 5 again; The reconfiguration conditions include: the CPU utilization rate is more than 85%, the RSSI value from the sensor to the gateway is less than-90 dBm, and a new gateway or an existing gateway is added offline; And (II) recalculating the global preference score of the current pairing scheme every preset time to obtain a theoretical global preference score, wherein the theoretical global preference score is 1.15 times greater than the current global preference score.
  9. 9. A dynamically stable pairing system of a sensor and a gateway, which is used for implementing a dynamically stable pairing method of a sensor and a gateway according to any one of claims 1-8, and comprises the following units: The information acquisition unit is used for acquiring the related information of all the sensors to be paired and the related information of all the available gateways, and respectively calculating to obtain a plurality of gateway evaluation data of each sensor and a plurality of sensor evaluation data of each gateway according to the related information of all the sensors to be paired and the related information of all the available gateways; The system comprises a score calculation unit, a multi-criterion decision model, a gateway evaluation unit, a sensor evaluation unit and a sensor evaluation unit, wherein the score calculation unit is used for allocating corresponding first weights to each gateway evaluation data and allocating corresponding second weights to each sensor evaluation data; the preference list generation unit is used for arranging the evaluation scores of the different gateways according to the descending order of the evaluation scores of the different gateways based on the evaluation scores of the different sensors, and constructing a preference list of each gateway according to the descending order of the evaluation scores of the different sensors based on the evaluation scores of the different sensors; A pairing scheme generating unit, which is used for generating stable pairing schemes between relevant information of all sensors to be paired and all available gateways by adopting an improved delay receiving algorithm according to the preference list of each sensor and the preference list of each gateway; And the connection establishment unit is used for sending a pairing instruction to the sensor according to the stable pairing scheme, and the sensor establishes network connection with the corresponding gateway according to the pairing instruction.

Description

Dynamic stable pairing method and system for sensor and gateway Technical Field The application belongs to the technical field of the Internet of things, and particularly relates to a dynamic stable pairing method and a system of a sensor and a gateway. Background With the wide application of the internet of things in the elevator industry, a plurality of elevators are generally deployed in a modern large intelligent building, and each elevator integrates various sensors including a vibration sensor, a temperature sensor, a door machine state sensor, an environmental parameter sensor in a car, a high-bandwidth video analysis sensor and the like. These sensors continuously generate massive data, which needs to be converged and transmitted through multiple internet of things gateways. The following technical problems exist in the data transmission connection management of the existing elevator Internet of things under the scene of multiple sensors and multiple gateways: 1. The resource allocation efficiency is low, and the existing system mostly adopts a static sensor-gateway connection strategy based on simple rules (such as nearest distance). The strategy can not dynamically adapt to the increase and decrease of sensors or gateways, faults or network environment changes, so that partial gateways are overloaded, other gateway resources are idle, and the data transmission efficiency and stability of the whole system are seriously affected. 2. Critical data transmission priority is lost-existing methods often have difficulty in effectively prioritizing the traffic of different sensor data. For example, elevator fault alarms or safety-related emergency data, which are transmitted in much greater real-time than conventional environment monitoring data. The conventional method cannot guarantee low-delay transmission of high-priority data, and may delay fault response and safety precaution. 3. It is difficult to balance the benefits of having a sensor connected to the best performing, lowest latency gateway in a complex elevator internet of things environment, and a gateway connected to a sensor that matches its processing power and load and handles high value data preferentially. It is difficult for existing methods to achieve a balanced, stable pairing between these mutually constraining factors. The technical problem addressed by the present application is therefore how to achieve an balanced, stable pairing scheme between multiple sensors and multiple gateways. Disclosure of Invention The application mainly aims to provide a dynamic stable pairing method of a sensor and a gateway, which comprises the steps of calculating gateway evaluation data of the sensor and sensor evaluation data of the gateway, obtaining evaluation scores according to a first weight and a second weight, constructing a preference list based on the evaluation scores, and calculating a pairing scheme through a delay receiving algorithm. In this way, the requirements between the individual sensors and the gateways can be balanced, thereby achieving a balanced, stable pairing state between the plurality of sensors and the plurality of gateways. Meanwhile, a dynamic stable pairing system of the sensor and the gateway is also provided. In order to achieve the above purpose, the present application adopts the following technical scheme: A dynamic stable pairing method of a sensor and a gateway comprises the following steps: the method comprises the steps of 1, acquiring related information of all sensors to be paired and related information of all available gateways, and respectively calculating to obtain a plurality of gateway evaluation data of each sensor and a plurality of sensor evaluation data of each gateway according to the related information of all sensors to be paired and the related information of all available gateways; Step 2, allocating corresponding first weights to each gateway evaluation data and corresponding second weights to each sensor evaluation data, calculating the evaluation scores of each sensor to different gateways through a multi-criterion decision model according to the plurality of gateway evaluation data and the corresponding first weights, and calculating the evaluation scores of each gateway to different sensors through the multi-criterion decision model according to the plurality of sensor evaluation data and the corresponding second weights; step 3, based on the evaluation scores of each sensor to different gateways, arranging the evaluation scores of the different gateways in descending order, and constructing a preference list of each sensor; based on the evaluation scores of different sensors by each gateway, the evaluation scores of different sensors are arranged in descending order, and a preference list of each gateway is constructed; step 4, generating a stable pairing scheme between related information of all sensors to be paired and all available gateways by adopting an improved delay receiving algor