Sensor network networking method, system, device and medium

By enabling sensors to autonomously discover, evaluate, and register high-priority gateways, the automation and intelligence issues in sensor-gateway networking are resolved, achieving network load balancing and improved communication stability.

CN122120883APending Publication Date: 2026-05-29SUZHOU JIEJIE SENSOR TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SUZHOU JIEJIE SENSOR TECH CO LTD
Filing Date
2026-02-26
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

The existing sensor and gateway networking suffers from low levels of automation, low levels of intelligence, low deployment efficiency, and unreasonable allocation of sensor and gateway resources, leading to a decline in network performance and reliability.

Method used

The sensor autonomously performs the gateway discovery, evaluation, and registration process. It determines the priority order by comprehensively evaluating signal information and load information, and selects the gateway with better signal quality and load status to connect, thereby achieving network load balancing.

Benefits of technology

It improves the overall network load uniformity and communication stability, reduces network signaling overhead and sensor power consumption, and enhances the success rate of sensor registration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122120883A_ABST
    Figure CN122120883A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of Internet of Things communication, and provides a sensor network networking method, a system, equipment and a medium, wherein the method is applied to a sensor side, and the method comprises the following steps: searching for a plurality of gateways in a communication range; receiving responses from the plurality of gateways, wherein the responses at least include signal information and load information of the corresponding gateways; based on the signal information and the load information of each gateway, comprehensively evaluating each gateway and determining a priority order of all the gateways; and according to the priority order, sequentially selecting the gateways to initiate registration attempts. In the application, the sensor can autonomously perform the whole process of gateway discovery, evaluation and registration, and does not need manual configuration or external network setting. The sensor selects the gateway with good signal quality and good load state to access based on the signal information and the load information of the gateway, so that the load uniformity and the communication stability of the whole network are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet of Things (IoT) communication technology, and in particular to a sensor network networking method, system, device and medium. Background Technology

[0002] In industrial wireless communication networks, pairing sensors with gateways is the first step in achieving communication. Existing pairing methods mainly include manual network configuration and networking based on standard protocols such as Zigbee or Bluetooth Mesh.

[0003] Manually configuring the network requires first determining the gateway's deployment location, ID information, and communication channel, and then manually configuring each sensor individually to bind the sensor to the gateway. This method requires manual operation by technicians, is inefficient, and cannot meet the needs of large-scale, flexible network deployment in industrial settings.

[0004] Networking methods based on Zigbee or Bluetooth Mesh also have limitations. Under the Zigbee protocol framework, the decision-making strategy for selecting gateway nodes when sensors join the network is relatively simple, mainly based on received signal strength. This signal strength-driven access mechanism easily leads to a large number of sensors concentrating on a few gateways with strong signals, causing these gateways to be overloaded, resulting in communication delays and congestion, while gateways with weaker signals remain idle, failing to effectively share the network pressure, and ultimately degrading overall network performance and reliability. Under the Bluetooth Mesh protocol framework, sensors rely on external network configuration devices, such as mobile phones with pre-installed network apps, to assign them network keys and add them to the network. This mechanism makes the sensors themselves lack the ability to autonomously and intelligently select the optimal network access point. Once a sensor needs a battery replacement or power failure and restarts, it usually cannot automatically reconnect to the original network without intervention from an external network configuration device, reducing network maintainability and long-term operational stability.

[0005] Therefore, how to solve the technical problems of low automation, low intelligence, low deployment efficiency, and unreasonable allocation of sensor and gateway resources when networking sensors and gateways is a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0006] The purpose of this application is to overcome the shortcomings of the prior art and provide a sensor network networking method, system, device and medium. This method is applied to the sensor side and enables the sensor to autonomously perform the entire process of gateway discovery, evaluation and registration, while promoting network load balancing and improving networking efficiency and overall network performance.

[0007] The technical solution adopted in this application is as follows: In the first aspect, a sensor network configuration method is provided, applied to the sensor side, the method comprising: Search for multiple gateways within the communication range; Receive responses from the plurality of gateways, wherein the responses include at least the signal information and load information of the corresponding gateway; Based on the signal and load information of each gateway, a comprehensive evaluation is performed on each gateway and the priority order of all gateways is determined; Registration attempts are initiated by selecting the gateways in sequence according to the aforementioned priority order.

[0008] Furthermore, the step of comprehensively evaluating each gateway and determining the priority order of all gateways based on the signal and load information of each gateway includes: Based on the aforementioned signal information, perform the first round of sorting for all gateways; Based on the load information, a second round of sorting is performed on at least some of the gateways after the first round of sorting to determine the priority order of all gateways.

[0009] Furthermore, the signal information includes signal strength; The first round of sorting of all gateways based on the signal information includes: Based on the signal strength, all gateways are sorted in the first round from high to low.

[0010] Furthermore, the load information includes the number of active connections to the gateway; The second round of sorting based on the load information for at least a portion of the gateways after the first round of sorting includes: Based on the number of active connections of the gateway, a second round of sorting is performed on multiple gateways whose signal strength meets the preset similarity condition from smallest to largest.

[0011] Furthermore, the step of comprehensively evaluating each gateway and determining the priority order of all gateways based on the signal and load information of each gateway includes: Based on the signal and load information of each gateway, calculate the performance score of each gateway; Based on the performance scores, all gateways are sorted from highest to lowest to determine their priority order.

[0012] Furthermore, the signal information includes signal strength, and the load information includes the load rate of the gateway; The calculation of a performance score for each gateway based on its signal and load information includes: Perform a forward normalization calculation on the signal strength to determine the signal strength score of the gateway; Perform inverse normalization calculation on the load rate to determine the load rate score of the gateway; A weighted summation is performed on the signal strength score and the load rate score to determine the performance score of the gateway.

[0013] Furthermore, the method also includes: Based on the gateway response received after initiating the registration attempt, a decision is made as to whether to complete the registration or reselect a gateway.

[0014] Furthermore, the step of determining whether to complete registration or reselect a gateway based on the gateway response received after initiating the registration attempt includes: If a registration success response is received from the current gateway, then registration with the current gateway is confirmed to be complete. or, If the current gateway receives a response suggesting registration with another gateway, then the current gateway is marked as busy, and the next-level gateway is selected to initiate a registration attempt according to the priority order.

[0015] Furthermore, the method also includes: If registration attempts to all gateways in the order of priority fail, a new round of registration attempts will be initiated.

[0016] Furthermore, the multiple gateways within the search communication range include: Broadcast search data frames are sent through multiple wireless communication channels. The broadcast search data frame includes at least: the sensor's device identifier and the network identifier used to identify the wide area network to which the sensor belongs.

[0017] In a second aspect, a sensor network networking system is provided, the system comprising: The search unit is used to search for multiple gateways within the communication range; A response receiving unit is configured to receive responses from the plurality of gateways, wherein the responses include at least the signal information and load information of the corresponding gateway; The processing unit is used to comprehensively evaluate each gateway and determine the priority order of all gateways based on the signal information and load information of each gateway. The registration unit is used to select the gateways in sequence according to the priority order to initiate registration attempts.

[0018] In a third aspect, a computer device is provided, including a memory and a processor, the memory storing a computer program, the processor executing the computer program to implement the steps of the method in the first aspect.

[0019] In a fourth aspect, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect.

[0020] According to the specific embodiments provided in this application, the following technical effects are disclosed: This application relates to the field of Internet of Things (IoT) communication technology, and provides a sensor network networking method, system, device, and medium. The method includes: searching for multiple gateways within communication range; receiving responses from multiple gateways, each response including at least the corresponding gateway's signal and load information; comprehensively evaluating each gateway based on its signal and load information and determining the priority order of all gateways; and sequentially selecting gateways to initiate registration attempts according to the priority order. In this application, sensors can autonomously execute the entire process of gateway discovery, evaluation, and registration without manual configuration or external network setup. Sensors select gateways with superior signal quality and optimal load status for connection based on their signal and load information, thereby improving the overall load uniformity and communication stability of the network. Ordered priority registration attempts reduce blind broadcast detection and duplicate registration, lowering network signaling overhead and sensor power consumption, while simultaneously enhancing the success rate of sensor registration in dynamic industrial networks. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 This is a schematic diagram illustrating the connection between the sensor, gateway, and cloud platform provided in an embodiment of this application; Figure 2 This is a general flowchart of the sensor network networking method provided in the embodiments of this application; Figure 3 This is a flowchart of the search gateway provided in an embodiment of this application; Figure 4 This is a flowchart of one method for determining the priority order of gateways provided in an embodiment of this application; Figure 5 This is a flowchart of the first round of sorting provided in an embodiment of this application; Figure 6 This is a flowchart of the second round of sorting provided in an embodiment of this application; Figure 7 This is a flowchart of another method for determining the priority order of gateways provided in an embodiment of this application; Figure 8 This is a flowchart illustrating the calculation of gateway performance scoring provided in an embodiment of this application; Figure 9 This is a flowchart for determining whether registration is complete, provided in an embodiment of this application; Figure 10 This is a flowchart illustrating the successful registration and suggested registration of other gateways provided in this application embodiment; Figure 11 This is a flowchart of initiating a new round of registration provided in an embodiment of this application; Figure 12 This is a schematic diagram of the sensor network networking system provided in the embodiments of this application; Figure 13 This is a schematic diagram of the computer device provided in the embodiments of this application. Detailed Implementation

[0023] The technical solutions in the embodiments of this application will be clearly and completely described below. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art are within the scope of protection of this application.

[0024] As described in the background section, manual network configuration requires prior knowledge of the gateway's deployment location, ID information, and communication channels, followed by manual configuration of each sensor to bind them to the gateway. This method, requiring manual operation by technicians, is inefficient and cannot meet the needs of large-scale, flexible network deployment in industrial settings. Zigbee or Bluetooth Mesh networking methods also have limitations. Under the Zigbee protocol framework, the decision-making strategy for selecting a gateway node when a sensor joins the network is relatively simple, primarily based on received signal strength. This signal strength-driven access mechanism easily leads to a large number of sensors concentrating on a few gateways with strong signals, causing these gateways to become overloaded, resulting in communication delays and congestion, while gateways with weaker signals remain idle, failing to effectively share network pressure, and ultimately reducing overall network performance and reliability. Under the Bluetooth Mesh protocol framework, sensors rely on external network configuration devices, such as mobile phones pre-installed with a network application, to assign network keys and add them to the network. This mechanism makes the sensors themselves lack the ability to autonomously and intelligently select the optimal network access point. Once a sensor restarts due to a battery replacement or power outage, it usually cannot automatically reconnect to the original network without intervention from an external network adapter, reducing network maintainability and long-term operational stability.

[0025] Based on this, this application provides a sensor network networking method, system, device and medium, aiming to solve the technical problems of low automation, low intelligence, low deployment efficiency and unreasonable allocation of sensor and gateway resources in the prior art when networking sensors and gateways.

[0026] The embodiments of this application will be analyzed in detail below with reference to the accompanying drawings.

[0027] Example 1 refer to Figure 1 In an Industrial Internet of Things (IIoT) scenario, a system typically includes a cloud platform, multiple gateways deployed in the field, and multiple sensors. Sensors are used to monitor and collect status data of the physical environment or industrial equipment, such as temperature, pressure, and vibration. Gateways, acting as data aggregation nodes and communication relays in local areas, receive data uploaded by sensors within their coverage area, perform preliminary processing or encapsulation, and finally upload the data to the cloud platform via a wide area network for remote monitoring, analysis, and decision-making.

[0028] The sensor network formation method provided in this embodiment is applied to the sensor side. This method will be activated when a sensor powers on, resets, or loses connection with the original gateway and needs to autonomously re-establish its network. (See reference...) Figure 2 Sensor network topology methods include: S1: Search for multiple gateways within the communication range; S2: Receive responses from the plurality of gateways, the responses including at least the signal information and load information of the corresponding gateway; S3: Based on the signal and load information of each gateway, perform a comprehensive evaluation of each gateway and determine the priority order of all gateways; S4: Select the gateways in sequence according to the priority order to initiate registration attempts.

[0029] In step S1, the sensor initiates the networking process to discover all available gateways within its wireless communication range. Since sensors are typically deployed within the wireless signal coverage area of ​​gateways, this step actively sends discovery requests and listens for responses from different gateways to identify all potential network nodes in the current environment, establishing an information foundation for subsequent gateway ranking and registration.

[0030] In some examples, reference Figure 3 S1: Search for multiple gateways within the communication range, including: S10: Broadcast search data frames are sent through multiple wireless communication channels respectively; the broadcast search data frames include at least: the sensor's device identifier and the network identifier used to identify the wide area network to which the sensor belongs.

[0031] When sensors are networking, they sequentially send broadcast search data frames through multiple wireless communication channels to ensure that all potential gateways can be discovered. To optimize the discovery process and reduce conflicts and interference in signal interaction, this embodiment improves the frame structure of the broadcast search data frame. The broadcast search data frame includes a source address field, a destination address field, and a wide area network identifier field; the source address field consists of a source personal area network identifier (source PanID) and a source node identifier (source NodeID), the destination address field consists of a target personal area network identifier (target PanID) and a target node identifier (target NodeID), and the wide area network identifier field carries a network identifier (CanID).

[0032] The source address field is used to identify the sender of the message. In some examples, the source node identifier uses the sensor's own DeviceID, which serves as a unique identifier for the sensor, allowing the gateway receiving the data frame to clearly identify the individual sensor that initiated the search request. In other examples, to shorten the data frame length or to comply with specific communication standards, such as IEEE 802.15.4, a specific portion of the DeviceID, such as its lower 2 bytes, can be used as the source Personal Area Network (PAN) identifier. Since 2 bytes can represent a limited number of devices, to ensure the uniqueness of the source address, the complete DeviceID needs to be included in other parts of the data frame.

[0033] The destination address field is used to specify the recipient of the message. The destination address consists of the target personal area network identifier and the target node identifier. In the case of broadcast search, both are usually set to specific broadcast address values, such as 0xFFFF. The purpose is to declare that the target of this data frame is all devices listening on this channel, ensuring that any gateway within the communication range can receive and process this request.

[0034] The Wide Area Network Identifier (WAN) field is a logical network identifier at the company or factory level to which the sensor belongs. Its function is to perform initial screening and logical isolation during the network discovery phase. Upon receiving a broadcast search data frame, the gateway first checks whether the network identifier in the data frame matches the network identifier configured in the gateway itself. Only when they match will the gateway consider the sensor to belong to the network it is serving and respond accordingly. This mechanism prevents the sensor from receiving responses from gateways in irrelevant or adjacent networks, reducing unnecessary signal interference.

[0035] Through the aforementioned structured data frame optimization, the sensor is able to complete the gateway discovery process efficiently and systematically, laying a reliable information foundation for subsequent intelligent decision-making.

[0036] In step S2, after receiving and parsing the broadcast search data frame, the gateway sends a response to the sensor.

[0037] In some examples, the response includes gateway identifier, network identifier, signaling information, load information, and initial registration information.

[0038] The gateway identifier is a unique identifier for the gateway within the local or global network. Its purpose is to allow sensors to accurately address the gateway during subsequent registration attempts. The network identifier here is the identifier of the wide area network to which the gateway belongs. The gateway verifies whether the sensor's network identifier matches its own. If the network identifiers match and the gateway supports the sensor type, it responds. If the network identifiers do not match, or if the network identifiers match but the gateway does not support the sensor type, it does not respond.

[0039] Signal information includes, but is not limited to, the signal strength and signal-to-noise ratio of the sensor signals received by the gateway. Load information includes, but is not limited to, the number of currently connected sensors, load rate, and remaining access capacity. Initial registration information is a prediction and suggestion made by the gateway based on its real-time status, mainly its current load. It is usually an indicator, such as "Accept Registration," which indicates that the gateway's current load is light and resources are sufficient, encouraging sensor registration. Conversely, "Suggest Registering with Other Gateways" or "Busy" indicates that the gateway's current load is approaching or has reached a threshold, or that the gateway is configured not to accept sensor registrations.

[0040] Based on the above, in some examples, the gateway first verifies the integrity of the received broadcast search data frame and immediately checks whether the network identifier in the data frame matches its own. If they do not match, the frame is discarded without response. If they match, the gateway, in response to the matching request, obtains its own status information in real time, acquires the signal strength (RSSI) of the received sensor signals from the physical layer, and obtains current load information, such as the number of connected sensors and load rate, from the network management layer or resource monitoring module. Finally, based on a preset strategy and the current load information, the gateway determines whether it is suitable to accept the new device and generates corresponding preliminary registration information; the preset strategy includes a judgment strategy based on load thresholds. If it is suitable to accept the new device, it encapsulates its own gateway identifier, network identifier, measured signal information, acquired load information, and the preliminary registration information generated by the decision into a response frame and sends it back to the sensor that initiated the request.

[0041] In step S3, the sensor comprehensively evaluates and intelligently sorts all candidate gateways based on the signal and load information received from each gateway. The core of this process is to combine the two key dimensions of signal quality and gateway load, and calculate the access priority of each gateway through specific decision-making algorithms, such as hierarchical sorting or comprehensive scoring. Finally, a priority order list is generated to guide subsequent registration attempts, thereby guiding the sensor to register with gateways that have more stable communication links and lighter loads.

[0042] Regarding hierarchical sorting, a two-level progressive sorting strategy can be adopted. In the first level of sorting, the sensors rank the gateways from best to worst based on key indicators in the signal information, such as received signal strength or signal-to-noise ratio, to filter out a set of candidate gateways with reliable wireless link quality. In the second level of sorting, the sensors further rank the gateways ranked in the first level from lightest to heaviest based on gateway load metrics, such as the number of currently connected sensors, load rate, or remaining access capacity. By combining these two levels of sorting, this embodiment can intelligently guide new sensors to the gateways with the lightest load and most abundant resources while prioritizing communication quality, thereby effectively achieving load balancing and resource optimization at the network layer.

[0043] Regarding the comprehensive scoring, signal information and load information can be uniformly converted into comparable evaluation values. Specifically, based on the signal information of each gateway, such as signal strength or signal-to-noise ratio, a score is obtained through normalization processing. Simultaneously, based on load information, such as the number of currently connected sensors, load rate, or remaining access capacity, another score is obtained through normalization processing. The two scores are then weighted and fused according to preset weights to calculate a performance score characterizing the overall access suitability of the gateways. Finally, the priority order is determined based on the score ranking. This embodiment, through flexible weight configuration, can adapt to the differentiated emphasis on wireless link stability or load balancing requirements in different scenarios.

[0044] In step S4, the sensor initiates registration attempts to the gateways in the priority list sequentially. During the registration attempt, unicast registration requests can be used to reduce network overhead. Furthermore, the sensor can make dynamic decisions based on the gateway's real-time response, such as successful or unsuccessful registration.

[0045] In summary, in this embodiment, the sensor can autonomously perform the entire process of gateway discovery, evaluation, and registration without manual configuration or external network setup. Based on the gateway's signal and load information, the sensor selects a gateway with superior signal quality and optimal load conditions for connection, thereby improving the overall load uniformity and communication stability of the network. Ordered priority registration attempts reduce blind broadcasting and duplicate registrations, lowering network signaling overhead and sensor power consumption, while simultaneously enhancing the success rate of sensor registration in dynamic industrial networks.

[0046] As the method and steps for hierarchical sorting, refer to Figure 4 S3: Based on the signal and load information of each gateway, perform a comprehensive evaluation of each gateway and determine the priority order of all gateways, including: S30A: Performs the first round of sorting on all gateways based on signal information; S31A: Perform a second round of sorting on at least a portion of the gateways after the first round of sorting based on load information to determine the priority order of all gateways.

[0047] In the above steps, the sensor first sorts the gateways based on signal information, selecting the candidate set with the best wireless link quality from all discovered gateways. This ensures that any subsequent registration attempts are established on a reliable physical connection. Then, in a second round of sorting based on load information, the sensor further identifies the gateway with the lightest processing load and most abundant resources among those with favorable signal quality. This distribution mechanism allows the sensor to intelligently avoid gateways with strong signals but near-saturation, proactively directing newly connected traffic to less busy gateways. This promotes balanced utilization of network resources at the system level and improves overall stability.

[0048] In some examples, the sensor detected gateways A, B, and C, whose signal strength decreased sequentially but were all excellent, and their loads varied. First, the sensor ranked the gateways by signal strength as [A, B, C]. Next, the sensor found that gateways A and B had similar signal strengths, but gateway A had a significantly higher load than gateway B. Therefore, in the final priority ranking, the gateway with the lighter load was moved before gateway A, while gateway C, with a significantly weaker signal, was ranked last. The final ranking of the gateways was [B, A, C]. Thus, the sensor preferentially attempted to register with gateway B, which had a better signal and lighter load, rather than simply gateway A, which had the strongest signal. This process demonstrates the sensor's logic of considering both signal strength and load in its decision-making.

[0049] Furthermore, the signal information includes signal strength, reference... Figure 5 S30A: Performs the first round of sorting on all gateways based on signal information, including: S300A: Based on signal strength, perform the first round of sorting for all gateways from high to low.

[0050] Furthermore, the load information includes the number of active connections to the gateway, for reference... Figure 6 S31A: Perform a second round of sorting on at least a portion of the gateways after the first round of sorting based on load information, including: S310A: Based on the number of active connections of a gateway, a second round of sorting is performed on multiple gateways with similar signal strengths, from smallest to largest. The number of active connections of a gateway refers to the total number of sensors that the gateway has successfully registered and is maintaining a communication connection with.

[0051] In the above steps, by globally sorting based on signal strength, the sensor first filters out all gateways with acceptable link quality, eliminating nodes with weak signals that could lead to communication instability, thus laying the physical foundation for the entire network deployment process. When sorting based on the number of active connections, the sensor does not simply rearrange all gateways by load, as this would disrupt the signal priority principle. Instead, it only sorts gateways in a "similar group" with similar signal strength. In this way, the sensor makes its final selection among gateways with comparable communication quality based on their current busy levels. This hierarchical sorting mechanism balances the sometimes conflicting optimization goals of signal strength and load. It avoids connecting a sensor to a gateway with a strong but overloaded signal, and also prevents a sensor from connecting to a gateway with a significantly weak signal in pursuit of the lightest possible load, thereby achieving the optimal trade-off between overall network performance and stability.

[0052] In some examples, the sensors detected four gateways, A, B, C, and D, and the signal strength and number of active connections for the four gateways are as follows: Gateway A: RSSI = -60dBm, active connections = 18; Gateway B: RSSI=-58dBm, active connections=5; Gateway C: RSSI = -61dBm, active connections = 8; Gateway D: RSSI = -70dBm, active connections = 2; First, the sensors are sorted by signal strength, resulting in B > A > C > D. Next, the sensors are sorted by the number of active connections under a preset condition of similar signal strength. Let the condition of similar signal strength be an RSSI difference ≤ 3dBm. Gateways B, A, and C are considered a similar group. Within this group, they are sorted by the number of active connections from smallest to largest, resulting in B > C > A. Combining the above results, the final priority for sensor registration attempts is gateway B, gateway C, gateway A, and gateway D.

[0053] Thus, gateway A, which originally had the strongest signal but also the heaviest load, has its priority adjusted to after gateways B and C, which have slightly weaker signals but much lighter loads, after the introduction of load-based sorting. The sensor will then prioritize registering with gateway B, thereby intelligently obtaining both a high-quality signal and a light load.

[0054] As a methodological step for comprehensive scoring, refer to Figure 7 S3: Based on the signal and load information of each gateway, perform a comprehensive evaluation of each gateway and determine the priority order of all gateways, including: S30B: Calculates the performance score of each gateway based on its signal and load information; S31B: Based on performance scores, all gateways are sorted from highest to lowest to determine their priority order.

[0055] In the steps described above, two types of heterogeneous information—signal information and load information—are transformed into a performance score characterizing the overall access suitability of the gateway. This ranking based on explicit scores makes the sensor's decision-making process clearer and easier to optimize, ensuring that the sensor selects the optimal access point in a dynamic network.

[0056] Furthermore, signal information includes signal strength, and load information includes the gateway's load rate, reference... Figure 8 S30B: Based on the signal and load information of each gateway, calculate the performance score of each gateway, including: S300B: Performs a forward normalization calculation on the signal strength to determine the gateway's signal strength score; S301B: Performs reverse normalization calculation on the load rate to determine the gateway's load rate score; S302B: Performs a weighted summation of the signal strength score and load rate score to determine the gateway's performance score.

[0057] In some examples, the sensor calculates a quantified performance score for each gateway and determines the registration priority based on this score. The specific calculation process is as follows: Step 1, Parameter Definition The key parameters involved in the calculation and their physical meanings are shown in the table below: The second step is normalization. For signal strength scoring, positive normalization is used, so that the stronger the signal, the higher the score. The calculation formula is as follows: S_i=(RSSI_i-RSSI_min) / (RSSI_max-RSSI_min) For example, if RSSI_min = -120dBm and RSSI_max = -20dBm, and RSSI_i = -50dBm for a certain gateway, then its signal strength score Si = 0.7.

[0058] For load factor scoring, inverse normalization is used, so that the lower the load, the higher the score. The calculation formula is as follows: L_i=1-Loda_i For example, if a gateway has a load rate of Load_i=30%, then its load rate score is Li=0.7.

[0059] The third step is to calculate the overall score. The two normalized scores are weighted and fused to obtain the gateway's overall performance score (Score_i). Score_i = α × S_i + β × L_i Here, α and β are preset weighting coefficients, and they satisfy α + β = 1. The magnitude of the weighting coefficients reflects the emphasis of the network strategy. For example, increasing the value of α indicates a greater emphasis on the quality of the wireless link, while increasing the value of β indicates a greater emphasis on network load balancing.

[0060] Step 4: Decision-making and Registration After calculating the overall performance score of all responding gateways, the sensor sorts all gateways in descending order of score, generating a final priority list. The sensor first initiates a registration attempt to the gateway with the highest overall score.

[0061] By using the above comprehensive scoring method, the strategy for selecting a sensor gateway is adjustable, which can flexibly adapt to the different network performance requirements in different scenarios.

[0062] Further, refer to Figure 9 The methods also include: S5: Based on the gateway response received after initiating the registration attempt, decide whether to complete the registration or reselect a gateway.

[0063] In existing technologies, gateways typically only return a negative response when they refuse access. After being rejected, sensors often have to rely on timeout retries or a complete restart of the discovery process, which leads to a large number of invalid attempts and significant delays in dynamically changing industrial networks. This embodiment, through the steps described above, enables sensors to respond to and process the gateway's feedback immediately, thereby interrupting invalid waiting on the current gateway and immediately moving to the next candidate in the list. This shortens the decision cycle from rejection to attempting a new path, improving networking speed and success rate.

[0064] Further, refer to Figure 10 S5: Based on the gateway response received after initiating the registration attempt, decide whether to complete the registration or reselect a gateway, including: S50: If a registration success response is received from the current gateway, then registration with the current gateway is confirmed to be complete; or, S51: If the current gateway receives a response suggesting that it register with other gateways, then the current gateway is marked as busy, and the next-level gateway is selected to initiate a registration attempt according to priority.

[0065] In step S50, registration is completed immediately when the sensor receives a successful registration response from the gateway. This step ensures that the optimal gateway selected after multi-dimensional comprehensive evaluation and ranking can be bound without delay when it is confirmed to be available in real-time interaction. This directly translates the decision into an available network connection, avoiding the success confirmation delay or secondary negotiation overhead that may exist in existing methods.

[0066] In step S51, the state marking operation locally records the temporary state of the current gateway in the sensor's decision context, enabling it to proactively avoid known overloaded gateway nodes in subsequent decisions. Then, based on the existing priority order list, the sensor immediately moves on to the next candidate gateway.

[0067] In summary, this step improves the first-time success rate and overall efficiency of registration attempts in dynamically changing industrial network environments. At the same time, by avoiding continuous impacts on busy gateways, it reduces invalid signaling in the network and the energy consumption of the sensors themselves, ensuring the overall stability and efficiency of the network.

[0068] Further, refer to Figure 11 The methods also include: S6: If registration attempts to all gateways in priority order fail to complete, a new round of registration attempts will be initiated.

[0069] In the above steps, when all initial priority attempts fail, the sensor can initiate a targeted second attempt with minimal overhead based on previously obtained network status information, such as marked busy gateways. This addresses the dynamic fluctuations in gateway load in industrial environments, avoids costly full-process restarts, improves the final registration success rate, and ensures high energy efficiency in the networking process.

[0070] Example 2 The sensor network networking system provided in this embodiment two is based on... Figure 12 The system includes: The search unit is used to search for multiple gateways within the communication range; A response receiving unit is configured to receive responses from the plurality of gateways, wherein the responses include at least the signal information and load information of the corresponding gateway; The processing unit is used to comprehensively evaluate each gateway and determine the priority order of all gateways based on the signal information and load information of each gateway. The registration unit is used to select the gateways in sequence according to the priority order to initiate registration attempts.

[0071] In this embodiment, the sensor can autonomously perform the entire process of gateway discovery, evaluation, and registration without manual configuration or external network setup. Based on the gateway's signal and load information, the sensor selects a gateway with superior signal quality and optimal load conditions for connection, thereby improving the overall load uniformity and communication stability of the network. Ordered priority registration attempts reduce blind broadcasting and duplicate registrations, lowering network signaling overhead and sensor power consumption, while simultaneously enhancing the success rate of sensor registration in dynamic industrial networks.

[0072] Example 3 This embodiment three provides a computer device, including a memory and a processor; the memory stores a computer program that can run on the processor, and when the computer program is executed by the processor, it executes the sensor network networking method provided in embodiment one above.

[0073] Among them, reference Figure 13 The computer device of this embodiment is illustrated by way of example. Specifically, it may include a processor 1510, a video display adapter 1511, a disk drive 1512, an input / output interface 1513, a network interface 1514, and a memory 1520. The processor 1510, video display adapter 1511, disk drive 1512, input / output interface 1513, network interface 1514, and memory 1520 can be communicatively connected via a communication bus 1530.

[0074] The processor 1510 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solution provided in this application.

[0075] The memory 1520 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1520 can store the operating system 1521 for controlling the operation of the computer device, and the basic input / output system 1522 for controlling the low-level operations of the computer device. Additionally, it can store a web browser 1523, a data storage management system 1524, and a device identification information processing system 1525, etc. The aforementioned device identification information processing system 1525 can be the application program that specifically implements the aforementioned steps in this embodiment. In summary, when implementing the technical solution provided in this application through software or firmware, the relevant program code is stored in the memory 1520 and is called and executed by the processor 1510.

[0076] Input / output interface 1513 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touch screens, microphones, various sensors, etc., and output devices may include displays, speakers, vibrators, indicator lights, etc.

[0077] Network interface 1514 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0078] The communication bus 1530 includes a pathway for transmitting information between various components of the device, such as processor 1510, video display adapter 1511, disk drive 1512, input / output interface 1513, network interface 1514, and memory 1520.

[0079] In addition, the device can also obtain information on specific claim conditions from the virtual resource object claim condition information database for condition judgment, and so on.

[0080] It should be noted that although the above-described device only shows the processor 1510, video display adapter 1511, disk drive 1512, input / output interface 1513, network interface 1514, memory 1520, communication bus 1530, etc., in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the solution of this application, and does not necessarily include all the components shown in the figures.

[0081] Example 4 This fourth embodiment provides a computer-readable storage medium storing a computer program. When the computer program is executed, it implements the sensor network networking method provided in the first embodiment above.

[0082] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of various embodiments or some parts of the embodiments of this application.

[0083] The sensor network networking method, system, device, and medium provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only for the purpose of helping to understand the method and its core ideas. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A sensor network networking method, characterized in that, Applied to the sensor side, the method includes: Search for multiple gateways within the communication range; Receive responses from the plurality of gateways, wherein the responses include at least the signal information and load information of the corresponding gateway; Based on the signal and load information of each gateway, a comprehensive evaluation is performed on each gateway and the priority order of all gateways is determined; Registration attempts are initiated by selecting the gateways in sequence according to the aforementioned priority order.

2. The sensor network networking method according to claim 1, characterized in that, The step of comprehensively evaluating each gateway and determining the priority order of all gateways based on the signal and load information of each gateway includes: Based on the aforementioned signal information, perform the first round of sorting for all gateways; Based on the load information, a second round of sorting is performed on at least some of the gateways after the first round of sorting to determine the priority order of all gateways.

3. The sensor network networking method according to claim 2, characterized in that, The signal information includes signal strength; The first round of sorting of all gateways based on the signal information includes: Based on the signal strength, all gateways are sorted in the first round from high to low.

4. The sensor network networking method according to claim 3, characterized in that, The load information includes the number of active connections to the gateway; The second round of sorting based on the load information for at least a portion of the gateways after the first round of sorting includes: Based on the number of active connections of the gateway, a second round of sorting is performed on multiple gateways whose signal strength meets the preset similarity condition from smallest to largest.

5. The sensor network networking method according to claim 1, characterized in that, The step of comprehensively evaluating each gateway and determining the priority order of all gateways based on the signal and load information of each gateway includes: Based on the signal and load information of each gateway, calculate the performance score of each gateway; Based on the performance scores, all gateways are sorted from highest to lowest to determine their priority order.

6. The sensor network networking method according to claim 5, characterized in that, The signal information includes signal strength, and the load information includes the load rate of the gateway; The calculation of a performance score for each gateway based on its signal and load information includes: Perform a forward normalization calculation on the signal strength to determine the signal strength score of the gateway; Perform inverse normalization calculation on the load rate to determine the load rate score of the gateway; A weighted summation is performed on the signal strength score and the load rate score to determine the performance score of the gateway.

7. The sensor network networking method according to claim 1, characterized in that, The method further includes: Based on the gateway response received after initiating the registration attempt, a decision is made as to whether to complete the registration or reselect a gateway, including: If a registration success response is received from the current gateway, then registration with the current gateway is confirmed to be complete. or, If the current gateway receives a response suggesting registration with another gateway, then the current gateway is marked as busy, and a registration attempt is initiated with the next-level gateway according to the priority order.

8. A sensor network networking system, characterized in that, The system includes: The search unit is used to search for multiple gateways within the communication range; A response receiving unit is configured to receive responses from the plurality of gateways, wherein the responses include at least the signal information and load information of the corresponding gateway; The processing unit is used to comprehensively evaluate each gateway and determine the priority order of all gateways based on the signal information and load information of each gateway. The registration unit is used to select the gateways in sequence according to the priority order to initiate registration attempts.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method described in any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method described in any one of claims 1 to 7.