A smart home device association access management method and system
By tracking the broadcast packet transmission process and dynamically adjusting device access parameters, the problem of low access efficiency and poor stability caused by broadcast packet conflicts in smart home environments is solved, achieving more efficient and reliable device access management.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HAIKAI WISDOM (BEIJING) TECHNOLOGY SERVICES CO LTD
- Filing Date
- 2025-12-08
- Publication Date
- 2026-06-09
Smart Images

Figure CN121284674B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication management technology, and in particular to a device association access management method and system for smart homes. Background Technology
[0002] In modern smart homes, various smart devices (such as smart lights, thermostats, security cameras, door locks, etc.) are interconnected through Internet of Things (IoT) technology to form a highly integrated smart environment. Among them, the device association and access management method of smart homes is a core technology to ensure that various smart devices can be connected and work together efficiently and securely.
[0003] Modern smart home device association and access management typically includes the following key processes: First, the smart home gateway identifies surrounding smart devices through network scanning or proactive requests. It then identifies the device type and manufacturer information based on the device's identifier (such as device ID). Accessed devices must first undergo security authentication to ensure their legitimacy. This typically includes encrypted communication and authentication between the device and server (such as authentication mechanisms based on certificates, tokens, or usernames and passwords) to prevent malicious devices from accessing the network. Once a device successfully connects, the next step is device configuration and integration. The device initializes its settings according to user needs or preset parameters. The device gains access to the home network (or local subnet), and its gateway address, network parameters, etc., are configured. A secure communication channel is established (e.g., through encrypted key negotiation) to ensure the confidentiality and integrity of subsequent data transmission. Subsequently, the device is registered or bound to the user account or control center, and permissions are assigned.
[0004] For example, Chinese invention patent CN110351130B discloses a method, apparatus, and system for managing device information, including: a first storage area and a second storage area; wherein, the first storage area is used to store identification information of one or more devices that are communicatively connected to the management device, and the one or more devices are not associated with a tenant, and the second storage area is used to store tenant information, the method including: the management device determining that the managed device among the one or more devices is associated with a tenant; the management device migrating the identification information of the managed device from the first storage area to the second storage area, and the identification information of the managed device being associated with the tenant in the second storage area.
[0005] For example, Chinese invention patent CN113556227B discloses a network connection management method, apparatus, computer-readable medium, and electronic device, which includes: obtaining the physical address of a device to be accessed; generating an access key corresponding to the physical address of each device to be accessed; generating an association relationship between the physical address and the access key based on the access key corresponding to the physical address of each device to be accessed; sending the association relationship to an access point device and pushing the access key to the corresponding device to be accessed, so that the access point device can verify the access request initiated by the device to be accessed based on the access key based on the association relationship.
[0006] The above-mentioned technology has at least the following technical problems:
[0007] In smart home environments, devices typically need to broadcast to discover and connect to the network. Devices introduce themselves via broadcast packets during pairing, and gateways or other devices identify devices by scanning these broadcast packets. However, because the wireless spectrum is shared, broadcast packet collisions and scanning misjudgments are common problems. Specifically, during device association and access processes, if pairing or access fails, the device may broadcast multiple times, increasing signal repetition. If the device sends broadcast packets too frequently, or sends too many broadcast packets in a short period, it may lead to spectrum resource contention, affecting the device's access success rate. Furthermore, since scanners (such as gateways, mobile phones, and controllers) identify devices by listening to broadcast packets, and the scanning process relies on radio wave propagation, device scanning misjudgments are also common. If the scanner's own time slot structure does not match the broadcast period of the target access device, the scanning device may miss the target access device's broadcast packets, resulting in access failure or delay, further reducing the stability and reliability of device access. Summary of the Invention
[0008] To address the technical problem of low access efficiency in smart home devices due to insufficient consideration of broadcast packet interference during device access in existing technologies, this invention provides a smart home device association access management method and system, the technical solution of which is as follows:
[0009] On the one hand, a device association access management method for smart homes is provided. The method includes: S1, tracking the transmission process of broadcast packets of the device to be accessed, determining the degree of broadcast conflict interference during the access process of the device to be accessed to obtain broadcast packet transmission tracking results, and determining whether to adopt a device access optimization management strategy to reduce broadcast conflict interference based on the obtained broadcast packet transmission tracking results; S2, if adopted, sending an instruction to initialize the access scanning process and perform broadcast packet reception tracking after adopting the device access optimization management strategy; if not adopted, directly performing broadcast packet reception tracking to obtain broadcast packet reception tracking results used to characterize the effectiveness of broadcast packet reception during the access scanning process; S3, determining whether to perform device access verification configuration based on the obtained broadcast packet reception tracking results to verify the access request of the device to be accessed; if the verification is successful, allowing the access of the device to be accessed; otherwise, rejecting the access of the device to be accessed.
[0010] On the other hand, a smart home device association access management system is provided, including: a broadcast conflict interference determination module, a device access optimization management module, and a device access request verification module; the broadcast conflict interference determination module is used to track the transmission process of broadcast packets of the device to be accessed, determine the degree of broadcast conflict interference in the access process of the device to be accessed to obtain broadcast packet transmission tracking results, and determine whether to adopt a device access optimization management strategy to reduce broadcast conflict interference based on the obtained broadcast packet transmission tracking results; the device access optimization management module is used to send instructions to initialize the access scanning process and perform broadcast packet reception tracking after adopting the device access optimization management strategy if adopted, and if not adopted, directly perform broadcast packet reception tracking to obtain broadcast packet reception tracking results used to characterize the effectiveness of broadcast packet reception in the access scanning process; the device access request verification module is used to determine whether to perform device access verification configuration based on the obtained broadcast packet reception tracking results to realize the verification of the access request of the device to be accessed. If the verification is successful, the access of the device to be accessed is allowed; otherwise, the access of the device to be accessed is rejected.
[0011] The beneficial effects of the technical solutions provided in the embodiments of the present invention include at least the following:
[0012] 1. This invention first determines whether broadcast packet interference exists by tracking the broadcast packet transmission process of the device to be accessed. This helps identify potential communication bottlenecks, ensures smooth device access, and provides a more effective management strategy. Existing technologies mostly perform simple access detection without in-depth analysis of the broadcast packet transmission process and interference, leading to access delays and error handling. Furthermore, after obtaining the broadcast packet transmission tracking results, it determines whether to adopt a device access optimization management strategy. If adopted, an instruction is sent to initialize the access scanning process and track broadcast packet reception after adopting the strategy. If not adopted, broadcast packet reception tracking is performed directly, significantly improving the stability and reliability of device access. Through this step, signal loss and communication conflicts between devices are effectively reduced during access, greatly increasing the device access success rate. Existing technologies often use carrier sensing and random backoff mechanisms to mitigate conflicts between nodes. This invention introduces a higher-level judgment and optimization mechanism in the access phase, relying not only on the underlying channel access mechanism but also introducing sender detection and condition-triggered optimization into the overall device access process, thereby intervening earlier in the access phase and reducing the occurrence of conflicts. Furthermore, based on the acquired broadcast packet reception tracking results, it is determined whether to perform device access verification configuration to verify the access request of the device to be accessed. If the verification is successful, the device to be accessed is allowed; otherwise, the access is rejected. Traditional device access management usually relies on static judgment standards such as device authentication and permission review, lacking dynamic evaluation of the actual communication quality of the device. This approach may result in some devices with unstable signals and poor communication links being allowed to access the network, thus affecting the stability and performance of the device access process. In contrast, this method evaluates the communication quality of the device through broadcast packet reception tracking results and determines whether to perform access verification based on this. In this way, unnecessary interference and resource waste caused by devices with poor link quality are effectively avoided, improving the reliability and efficiency of the access process.
[0013] 2. During the transmission of broadcast packets by devices waiting to be connected, monitoring the broadcast frequency can effectively identify devices that broadcast frequently. These devices may be due to malfunctions, attacks, or malicious behavior. Timely detection and warnings can prevent them from affecting the normal operation of the network. Many existing technologies rely on simple signal strength or broadcast packet count detection without considering the dynamic adjustment of device broadcast frequencies. By dynamically tracking device broadcast frequencies and setting reasonable frequency limits, abnormal broadcast behavior can be proactively identified, network traffic can be precisely controlled, and the performance of the access process can be optimized. The probability of collisions that may occur during the broadcast process of devices waiting to be connected is evaluated using a Poisson distribution to determine whether the probability exceeds a predetermined maximum threshold. If it exceeds, a high risk of collision interference is considered to exist during the broadcast process, and this result is recorded as a failure in collision interference tracking, prompting optimization management strategies. Otherwise, the broadcast behavior is considered normal, and the system enters the broadcast packet reception tracking stage. Evaluating the collision probability using a Poisson distribution can scientifically predict the possibility of broadcast collisions, providing data support for subsequent optimization decisions. This is more accurate and objective than purely empirical or intuitive judgments. When the number of connected devices exceeds a preset limit, the system introduces a time slot efficiency factor to dynamically adjust the broadcast time slot allocation. Based on the Poisson distribution and time slot efficiency factor, this invention corrects the judgment result of broadcast collision probability, thereby optimizing time slot allocation and reducing broadcast collisions. In most existing solutions, time slot allocation in device access management is typically static and cannot be dynamically adjusted according to real-time device numbers and environmental changes. The introduction of the time slot efficiency factor can more accurately reflect the actual network access situation, especially when device density is high. The corrected collision probability is more realistic, helping to improve the accuracy of decision-making and system efficiency during the access process. Furthermore, through refined correction and judgment, it can automatically select whether to adopt optimized management strategies for complex scenarios with multiple device accesses. This flexible response helps ensure smooth network access under high concurrency, reduces system load, and improves access quality. In addition, existing technologies typically do not optimize for high-density access during device access. Collisions during device access can lead to excessive system load and affect network performance. This invention, by precisely controlling the broadcast frequency and collision probability, combined with dynamically adjusting the time slot efficiency factor, can improve the overall stability of the device access process in high-density device access scenarios.
[0014] 3. By dynamically adjusting device access parameters through multiple data sources such as broadcast collision probability and time slot efficiency factor, the system can flexibly optimize strategies based on the real-time status of device access, rather than using static preset schemes. This allows the system to adapt to different access environments, avoiding over-intervention or insufficient adjustment. Specifically, dynamically adjusting the broadcast packet byte count effectively controls the size of broadcast packets, avoiding frequent retransmissions due to excessively large packets, improving access efficiency, and reducing collision interference. Simultaneously, adjusting the retry interval avoids network congestion caused by frequent retries, reducing system load and improving the stability and success rate of the access process. Precise adjustment of multiple access process parameters such as broadcast packet byte count, retry interval, and scan interval effectively reduces invalid broadcasts and collision interference, improves device access quality, and reduces network resource waste. Furthermore, in high-density device access scenarios, existing technologies may not be able to effectively avoid broadcast collisions and network congestion. This invention, through dynamically adjusting time slots and scan frequencies, optimizes resource allocation while avoiding interference, effectively improving the overall performance of the device access process. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 A flowchart illustrating a smart home device association and access management method provided in an embodiment of the present invention;
[0017] Figure 2 A flowchart illustrating the broadcast packet reception and tracking process of a smart home device association access management method provided in this embodiment of the invention;
[0018] Figure 3 A flowchart illustrating the scanning access optimization management strategy of a smart home device association access management method provided in this embodiment of the invention;
[0019] Figure 4 This is a schematic diagram of a smart home device association access management system provided in an embodiment of the present invention. Detailed Implementation
[0020] The technical solution of the present invention will now be described with reference to the accompanying drawings.
[0021] To make the technical problems, technical solutions and advantages of the present invention clearer, a detailed description will be given below in conjunction with the accompanying drawings and specific embodiments.
[0022] In a smart home environment, various smart devices (such as lights, air conditioners, and cameras) often need to connect to the home gateway or control center during the "pairing or association" phase. Since most devices do not have network credentials or user configuration at the factory, a "broadcast and scan" mechanism is often used. This involves the device periodically broadcasting its own identifier and connection intention, while the gateway or controller passively listens for these broadcasts within a certain listening window to identify the new device and initiate subsequent authentication and gateway access processes. However, this broadcast-scanning mechanism faces many serious challenges in actual deployment, significantly reducing the stability, efficiency, and reliability of the device pairing and association phase. Based on these challenges, analyzing and optimizing the association and access management methods for smart home devices can effectively address the current technological challenges and improve the overall performance and reliability of device access in a smart home environment.
[0023] like Figure 1 The diagram shows a flowchart of a smart home device association access management method provided by an embodiment of the present invention. The method includes the following steps: broadcast conflict interference determination, device access optimization management, and device access request verification.
[0024] refer to Figure 1 The first and second steps of a smart home device association access management method are broadcast conflict interference determination and device access optimization management, respectively. Specifically: S1, the transmission process of broadcast packets of the device to be accessed is tracked, the degree of broadcast conflict interference in the access process of the device to be accessed is determined to obtain the broadcast packet transmission tracking result, and based on the obtained broadcast packet transmission tracking result, it is determined whether to adopt a device access optimization management strategy to improve the communication efficiency and reduce broadcast conflict interference in the access process; S2, if adopted, after adopting the device access optimization management strategy, an instruction is sent to initialize the access scanning process and perform broadcast packet reception tracking; if not adopted, broadcast packet reception tracking is performed directly to obtain broadcast packet reception tracking result used to characterize the effectiveness of broadcast packet reception in the access scanning process.
[0025] The process of tracking the transmission of broadcast packets by the device to be accessed involves the following steps:
[0026] S11. During the transmission of broadcast packets by the devices to be accessed, the device broadcast frequency within the broadcast packet tracking time interval is obtained through a wireless sniffing monitoring tool (such as Kismet). It is then determined whether the obtained device broadcast frequency is greater than the maximum broadcast frequency limit. The maximum broadcast frequency limit is obtained from the device access management database. The device access management database is a database specifically created when designing a smart home device association access management method to store core configuration information. This database stores various settings and mapping sets necessary for the operation of the method, such as the maximum broadcast frequency limit. The initial settings of these settings are not arbitrarily specified. Technicians can manually set, adjust, or fine-tune them at any time according to the specific performance of the method in actual testing, thereby ensuring that the method can be continuously optimized to achieve the best working state.
[0027] S12, if yes, it is considered an abnormal broadcast behavior, and a broadcast frequency limit warning is sent to the corresponding device to be accessed. By monitoring the device's broadcast frequency, it is possible to detect in real time whether the device is over-broadcasting. If the device's broadcast frequency exceeds the set maximum limit, it can be identified and warned in a timely manner, which helps to prevent the device from excessively occupying spectrum resources during the access process and reduces the probability of spectrum conflicts. This early warning mechanism can effectively avoid access failures or interference between devices due to excessively high broadcast frequencies.
[0028] S13, if not, the broadcast behavior is considered normal, and the judgment of broadcast conflict interference during the access process of the device to be accessed is carried out; reasonable control of the broadcast frequency can effectively avoid signal conflicts caused by excessive transmission of broadcast packets. If the device broadcast frequency is within a reasonable range, it helps to more accurately determine whether the device is in a normal access state, reduce unnecessary retries or interference, improve the stability and success rate of device access, effectively avoid the excessive occupation of wireless spectrum by devices with abnormal broadcast frequencies, and enable other devices to access smoothly, thereby improving the overall access efficiency of the smart home environment.
[0029] In one embodiment of the first aspect, the determination of broadcast conflict interference during the access process of the device to be accessed is carried out through the following specific process:
[0030] M1, based on the Poisson distribution, obtains the broadcast collision probability to reflect broadcast collision interference during the access process. Specifically, In the formula, P represents the broadcast collision probability, A represents the number of devices to be accessed, and e represents the natural constant; it is determined whether the obtained broadcast collision probability is greater than the maximum value set for the broadcast collision probability; the maximum value set for the broadcast collision probability is obtained from the device access management database and set to the maximum value of the broadcast collision probability allowed in the device access database.
[0031] If M2 is greater than 2, the broadcast packet transmission tracking result is recorded as unqualified for conflict and interference tracking, and the device access optimization management strategy is adopted. If M2 is not greater than 2, the broadcast packet transmission tracking result is recorded as qualified for conflict and interference tracking, and broadcast packet reception tracking is performed and the broadcast packet reception tracking result is obtained.
[0032] By using the Poisson distribution to estimate the probability of broadcast collisions, the judgment of whether a collision or interference has occurred can be upgraded from empirical judgment to probability threshold judgment. This quantitative method avoids the crude strategy of simply relying on the number of retries or signal strength, thereby making the control more precise and the intervention more targeted, and providing scientific data support for equipment access management.
[0033] As an embodiment of the second aspect, during the device association access phase, if the number of devices to be accessed is small, simply using fixed time slots or fixed broadcast rhythms for conflict determination and intervention may be sufficient. However, when the number of devices to be accessed increases significantly, the possibility of overlapping broadcasts from multiple devices and channel contention rises sharply. At this point, if a static determination method that does not consider the number of devices is still used, the probability of conflict may be underestimated, the environment may be misjudged as favorable, and optimization strategies may not be implemented in time, leading to a large number of failures or retries. Therefore, it is necessary to introduce a time slot efficiency factor, which corrects for the efficiency loss of time slot allocation and broadcast strategies based on the current access device density and device contention intensity. By introducing a time slot efficiency factor, the reality of decreased time slot utilization efficiency and increased collision probability in high-density environments can be more accurately reflected. Specifically, the process for determining broadcast conflict interference during the access process of devices to be accessed is as follows:
[0034] N1, if the number of devices to be accessed exceeds the reference limit for the number of access devices (set by professionals according to industry standards), a time slot efficiency factor is introduced to dynamically adjust broadcast time slots. This time slot efficiency factor can be obtained through a network simulation model (such as OMNeT++). Based on the Poisson distribution and the obtained time slot efficiency factor, the broadcast collision probability is obtained to correct the impact of time slot allocation on broadcast collision interference judgment. Specifically, In the formula, Y represents the time slot efficiency factor. Compared to simply using an uncorrected model to determine the probability of conflict, this corrected determination better reflects the efficiency loss caused by actual equipment density and time slot competition, thereby reducing false positives and false negatives.
[0035] N2 determines whether the broadcast conflict probability after time slot efficiency factor correction is greater than the maximum set value for broadcast conflict probability.
[0036] If N3 is greater than 3, the broadcast packet transmission tracking result is recorded as unqualified for conflict and interference tracking, and the device access optimization management strategy is adopted. If N3 is not greater than 3, the broadcast packet transmission tracking result is recorded as qualified for conflict and interference tracking, and broadcast packet reception tracking is performed and the broadcast packet reception tracking result is obtained.
[0037] Based on the first aspect of the embodiment, it should be noted that the device access optimization management strategy is adopted, and the specific process is as follows:
[0038] First, the obtained broadcast collision probability is input into the broadcast packet byte count mapping table, which outputs a broadcast packet byte count reduction amount. Based on the obtained broadcast packet byte count reduction amount, a prompt is sent to adjust the initial broadcast packet byte count of the device to be accessed; that is, the initial broadcast packet byte count is reduced by a step size corresponding to the broadcast packet byte count reduction amount. The broadcast packet byte count mapping table is pre-trained using historical broadcast collision probabilities and broadcast packet byte count reduction amounts set by professionals based on empirical rules. It describes the mapping relationship between broadcast collision probabilities and broadcast packet byte count reduction amounts. When the collision probability is high, reducing the broadcast packet byte count shortens the time each broadcast packet stays on the channel, thereby reducing the probability of overlap or interference with broadcast packets from other devices. In addition, when multiple devices are broadcasting simultaneously on the same channel, shorter broadcast packets cause less channel interference, helping coexisting devices maintain normal communication.
[0039] Secondly, the broadcast packet retry interval adjustment amount is obtained. This adjustment amount is the output result corresponding to the broadcast packet retry interval mapping table, which is input to the broadcast collision probability. Based on the obtained adjustment amount, a prompt is sent to adjust the initial broadcast packet retry interval of the devices to be accessed. Specifically, the initial broadcast packet retry interval is increased by a step size corresponding to the adjustment amount, and the access scanning process is initialized. The broadcast packet retry interval mapping table is pre-trained using historical broadcast collision probabilities and adjustment amounts set by professionals based on empirical rules. It describes the mapping relationship between broadcast collision probabilities and the adjustment amount. By adjusting the retry interval, multiple devices are prevented from retrying broadcasts almost simultaneously, mitigating the retry flood and significantly reducing the risk of retry collisions. In high-collision-risk environments, short retry intervals lead to highly concentrated retry behavior, easily causing collisions. Increasing the retry interval allows retry behavior between devices to be more dispersed in time, thus reducing simultaneous retries.
[0040] The initialization settings for the access scanning process specifically involve inputting the broadcast collision probability into the corresponding output scan cycle mapping step size of the scan cycle mapping model, and then tracking broadcast packet reception based on the obtained scan cycle mapping step size. Even if the device broadcasts normally and the collision probability is controllable, if the scanner's listening period, time slot structure, and broadcast time are not synchronized, missed detections may still occur. By adjusting the scan cycle to make the listening window more closely match the broadcast cycle, the capture rate can be significantly improved.
[0041] Based on the second aspect embodiment, the method for obtaining the reduction in broadcast packet byte count further includes: if the difference between the broadcast conflict probabilities before and after the time slot efficiency factor correction is within a set conflict probability deviation range, then the result of the arithmetic average of the broadcast conflict probabilities before and after the time slot efficiency factor correction is input into the broadcast packet byte count mapping table to obtain the reduction in broadcast packet byte count; otherwise, the obtained broadcast conflict probabilities are input into the corresponding output of the broadcast packet byte count mapping table to obtain the reduction in broadcast packet byte count. The conflict probability deviation range is set by professionals according to industry standards. The broadcast packet byte count mapping table is pre-trained using the result of the arithmetic average of the broadcast conflict probabilities before and after historical correction, and the reduction in broadcast packet byte count set by professionals according to empirical rules. It is used to describe the mapping relationship between the result of the arithmetic average of the broadcast conflict probabilities before and after correction and the reduction in broadcast packet byte count.
[0042] The specific method for obtaining the broadcast packet retry interval increase includes: if the difference between the broadcast conflict probabilities before and after the time slot efficiency factor correction is within the set conflict probability deviation range, then the arithmetic mean of the broadcast conflict probabilities before and after the time slot efficiency factor correction is input into the broadcast packet retry interval mapping table to obtain the broadcast packet retry interval increase; otherwise, the obtained broadcast conflict probabilities are input into the broadcast packet retry interval mapping table to output the corresponding broadcast packet retry interval increase. The broadcast packet retry interval mapping table is pre-trained using the arithmetic mean of the broadcast conflict probabilities before and after historical correction, and the broadcast packet retry interval increase set by professionals based on empirical rules. It is used to describe the mapping relationship between the arithmetic mean of the broadcast conflict probabilities before and after correction and the broadcast packet retry interval increase.
[0043] Furthermore, it should be noted that, such as Figure 2 The diagram shown is a flowchart of a broadcast packet reception tracking method for a smart home device association access management method provided by an embodiment of the present invention. The corresponding logic is as follows: It is determined whether the average reception delay of the acquired broadcast packets is greater than the maximum set reception delay value. If so, the broadcast packet reception tracking result is recorded as reception tracking unqualified; otherwise, reception tracking parameters are acquired, including received signal strength and received packet loss rate. Based on the reception tracking parameters, a broadcast packet reception tracking coefficient is obtained. The acquired broadcast packet reception tracking coefficient is compared with a set reference value for broadcast packet reception. If the broadcast packet reception tracking coefficient is greater than the set reference value for broadcast packet reception, the broadcast packet reception tracking result is recorded as reception tracking qualified; otherwise, the broadcast packet reception tracking result is recorded as reception tracking unqualified. Figure 2 To perform broadcast packet reception tracking, the specific steps are as follows:
[0044] First, determine whether the average reception delay of broadcast packets obtained by network packet capture tools such as Wireshark is greater than the maximum set reception delay. If so, record the broadcast packet reception tracking result as unqualified. Otherwise, obtain the reception tracking parameters that reflect the quality of broadcast packet reception using network packet capture tools such as Wireshark. The reception tracking parameters include the received signal strength and the reception packet loss rate.
[0045] Next, the result of the deviation processing of the received signal strength and the result of the relative deviation processing of the received packet loss rate are arithmetically averaged to obtain the broadcast packet reception tracking coefficient, which characterizes the effectiveness of broadcast packet reception during the access scanning process. The result of the deviation processing of the received signal strength is the result of taking the absolute value of the difference between the reference maximum received signal strength and the received signal strength, plus one and taking the reciprocal. The result of the relative deviation processing of the received packet loss rate is the result of the ratio of the difference between the reference maximum received packet loss rate and the received packet loss rate to the reference maximum received packet loss rate.
[0046] The obtained broadcast packet reception tracking coefficient is compared with the broadcast packet reception setting reference value. If the broadcast packet reception tracking coefficient is greater than the broadcast packet reception setting reference value, the broadcast packet reception tracking result is recorded as reception tracking qualified; otherwise, the broadcast packet reception tracking result is recorded as reception tracking unqualified.
[0047] Unlike simply judging whether a broadcast packet has been received, this mechanism also takes into account latency, reception strength, and packet loss rate to more comprehensively measure the reception quality of the receiver. This reduces the coarse error of judging based on only one dimension (such as whether a packet has been received). Using a comprehensive reception tracking coefficient instead of a single signal indicator can effectively reduce misjudgments and missed judgments.
[0048] The third step of a smart home device association access management method is device access request verification. Specifically: S3, based on the obtained broadcast packet reception tracking results, it is determined whether to perform device access verification configuration to verify the access request of the device to be accessed. If the verification is successful, the access of the device to be accessed is allowed; otherwise, the access of the device to be accessed is rejected. The specific steps are as follows:
[0049] S31. If the obtained broadcast packet reception tracking result is qualified, then perform device access verification configuration and continuously monitor the average delay of broadcast packet reception and the broadcast packet reception tracking coefficient.
[0050] S32, if the obtained broadcast packet reception tracking result is unqualified, then determine whether the average reception delay of the broadcast packet is greater than the maximum set reception delay value.
[0051] S33, if so, then the scanning gap length reduction amount is obtained based on the deviation between the average reception delay of the broadcast packet and the maximum set reception delay. The deviation between the average reception delay of the broadcast packet and the maximum set reception delay is the ratio of the absolute value of the difference between the average reception delay of the broadcast packet and the maximum set reception delay to the maximum set reception delay.
[0052] The initial scan gap is adjusted based on the acquired scan gap reduction amount. Specifically, the initial scan gap is reduced by a step size corresponding to the scan gap reduction amount. The scan gap length reduction amount is the output result of the scan gap length adjustment mapping set, which is the deviation between the average broadcast packet reception delay and the maximum set reception delay. The scan gap length adjustment mapping set is pre-trained using historical deviations between the average broadcast packet reception delay and the maximum set reception delay, as well as scan gap length reduction amounts set by professionals based on empirical rules. It describes the mapping relationship between the deviations between the average broadcast packet reception delay and the maximum set reception delay and the scan gap length reduction amount. In cases of high receiver latency and potentially unstable links, shortening the scan gap can reduce response time and accelerate broadcast acquisition frequency, thereby preventing access latency deterioration. Through dynamic adjustment of the scan gap, the system can more accurately control device access timing, avoiding excessively long scan gaps that increase device access latency, thus improving scanning efficiency and access speed. Simultaneously, adjusting the scan gap reduces device access failures caused by excessively long or mismatched latency, improving device access stability and success rate.
[0053] S34, if not, then adopt a scan access optimization management strategy to improve device access quality by adjusting scan parameters, such as... Figure 3 The diagram shows a flowchart of a scanning access optimization management strategy for a smart home device association access management method provided in an embodiment of the present invention. The corresponding logic is as follows: It is determined whether the obtained scanning monitoring window adjustment frequency is less than the maximum frequency of the monitoring window. If so, the initial scanning monitoring window is adjusted according to the upward adjustment value of the scanning monitoring window; otherwise, the initial scanning frequency is adjusted within the initial scanning monitoring window based on the obtained upward adjustment amount of the scanning frequency. (Refer to...) Figure 3 A scanning access optimization management strategy is adopted, specifically:
[0054] S341, obtain the step size difference results corresponding to the maximum scan monitoring window limit and the scan listening window adjustment value, and the result of the percentage calculation of the step size corresponding to the scan listening window adjustment value. The maximum scan monitoring window limit is obtained from the device access management database. Based on the obtained data, the scan listening window adjustment frequency is obtained. The scan listening window adjustment frequency is the result of the percentage calculation of the step size difference results corresponding to the maximum scan monitoring window limit and the scan listening window adjustment value (i.e., the absolute value of the difference between the step size corresponding to the maximum scan monitoring window limit and the scan listening window adjustment value) and the step size corresponding to the scan listening window adjustment value, and then rounded up. The scan listening window adjustment value represents the output result corresponding to the input of the broadcast packet reception tracking coefficient to the listening window adjustment mapping set. The listening window adjustment mapping set is obtained by pre-training using historical broadcast packet reception tracking coefficients and scan listening window adjustment values set by professionals according to experience rules. It is used to describe the mapping relationship between the broadcast packet reception tracking coefficients and the scan listening window adjustment value. When the broadcaster sends data at a lower frequency or with longer intervals, the listening end has a greater chance of capturing the broadcast packets if it can appropriately expand its listening window or increase its scanning frequency, thereby improving the access success rate. At the same time, expanding the listening window or increasing the scanning frequency essentially enhances the receiving end's ability to cover broadcast packets, thus enabling it to successfully capture broadcast packets in more cases and reducing missed detections.
[0055] S342, if the frequency of the scan monitoring window adjustment is less than the maximum frequency of the monitoring window, the initial scan monitoring window is adjusted according to the upward adjustment value of the scan monitoring window, that is, the initial scan monitoring window is increased by the step size corresponding to the upward adjustment value of the scan monitoring window. Monitoring window adjustment is prioritized (as it directly improves monitoring coverage), and if the frequency limit is reached, scanning frequency adjustment is then considered. This layered strategy reduces the aggressive impact on system resources and power consumption, making it more robust and controllable.
[0056] S343, otherwise, adjust the initial scan frequency within the initial scan monitoring window. Specifically, input the broadcast packet reception tracking coefficient to the corresponding output of the scan frequency upscaling mapping set, which is used to adjust the initial scan frequency. That is, increase the initial scan frequency based on the step size corresponding to the scan frequency upscaling amount. The scan frequency upscaling mapping set is pre-trained using historical broadcast packet reception tracking coefficients and scan frequency upscaling amounts set by professionals according to empirical rules. It is used to describe the mapping relationship between the broadcast packet reception tracking coefficients and the scan frequency upscaling amount. In complex environments, where broadcast signals may be unstable or interference is severe, dynamically adjusting the monitoring window and scan frequency can reduce the probability of packet loss and broadcast loss rate, and reduce access failures caused by not receiving broadcasts.
[0057] like Figure 4The diagram shown is a structural schematic of a smart home device association access management system provided in an embodiment of the present invention. The smart home device association access management system provided in an embodiment of the present invention includes: a broadcast conflict interference determination module, a device access optimization management module, and a device access request verification module.
[0058] The broadcast collision interference determination module is used to track the transmission process of broadcast packets of the device to be accessed, determine the degree of broadcast collision interference during the access process of the device to be accessed, obtain the broadcast packet transmission tracking results, and determine whether to adopt the device access optimization management strategy to improve the communication efficiency and reduce broadcast collision interference during the access process based on the obtained broadcast packet transmission tracking results.
[0059] The device access optimization management module is used to send instructions to initialize the access scanning process and perform broadcast packet reception tracking after adopting the device access optimization management strategy if it is adopted. If it is not adopted, it directly performs broadcast packet reception tracking to obtain broadcast packet reception tracking results that characterize the effectiveness of broadcast packet reception in the access scanning process.
[0060] The device access request verification module is used to determine whether to perform device access verification configuration based on the obtained broadcast packet reception tracking results in order to verify the access request of the device to be accessed. If the verification is successful, the access of the device to be accessed is allowed; otherwise, the access of the device to be accessed is rejected.
[0061] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0062] This invention is described with reference to flowchart illustrations and / or block diagrams of systems, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0063] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0064] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0065] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the invention.
[0066] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.
[0067] The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for managing device association and access in a smart home, characterized in that, Includes the following steps: S1. Track the broadcast packet transmission process of the device to be accessed, determine the degree of broadcast conflict interference during the access process of the device to be accessed, obtain the broadcast packet transmission tracking result, and determine whether to adopt the device access optimization management strategy to reduce broadcast conflict interference based on the obtained broadcast packet transmission tracking result. S2, if adopted, then after adopting the device access optimization management strategy, an instruction is sent to initialize the access scanning process and perform broadcast packet reception tracking; if not adopted, then broadcast packet reception tracking is performed directly to obtain broadcast packet reception tracking results used to characterize the effectiveness of broadcast packet reception in the access scanning process. S3. Based on the obtained broadcast packet reception tracking results, determine whether to perform device access verification configuration to verify the access request of the device to be accessed. If the verification is successful, allow the device to access; otherwise, refuse the device to access. The process of tracking the transmission of broadcast packets by the device to be accessed involves the following steps: During the transmission of broadcast packets by the device to be connected, the device broadcast frequency within the broadcast packet tracking time interval is obtained, and it is determined whether the obtained device broadcast frequency is greater than the maximum broadcast frequency limit. If so, it is considered an abnormal broadcast behavior, and a broadcast frequency restriction warning is sent to the corresponding device to be connected; If not, the broadcast behavior is considered normal, and the broadcast conflict interference during the access process of the device to be accessed is determined. The specific process for determining broadcast conflict interference during the access process of the device to be accessed is as follows: The broadcast collision probability is obtained based on the Poisson distribution to reflect the broadcast collision interference during the access process, and it is determined whether the obtained broadcast collision probability is greater than the maximum value set for the broadcast collision probability. If the value is greater than 1, the broadcast packet transmission tracking result is recorded as unqualified for conflict and interference tracking, and the device access optimization management strategy is adopted. If the value is not greater than 1, the broadcast packet transmission tracking result is recorded as qualified for conflict and interference tracking, and broadcast packet reception tracking is performed and the broadcast packet reception tracking result is obtained. The specific process for adopting the device access optimization management strategy is as follows: The obtained broadcast collision probability is input into the broadcast packet byte count mapping table and the corresponding output broadcast packet byte count reduction amount is output. Based on the obtained broadcast packet byte count reduction amount, a prompt is sent to adjust the initial broadcast packet byte count of the device to be accessed. The broadcast packet retry interval adjustment amount is obtained. The broadcast packet retry interval adjustment amount is the output result corresponding to the broadcast packet retry interval mapping table input to the broadcast collision probability. Based on the obtained broadcast packet retry interval adjustment amount, a prompt is sent to adjust the initial broadcast packet retry interval of the device to be accessed, and the access scanning process is initialized. The initialization settings for the access scanning process are as follows: input the broadcast collision probability into the corresponding output scanning cycle mapping step size of the scanning cycle mapping model, and perform broadcast packet reception tracking based on the obtained scanning cycle mapping step size; The specific steps for performing broadcast packet reception tracking are as follows: Determine whether the average reception delay of the acquired broadcast packet is greater than the maximum set reception delay. If so, record the broadcast packet reception tracking result as unqualified. Otherwise, acquire the reception tracking parameters that reflect the quality of broadcast packet reception. The reception tracking parameters include the received signal strength and the reception packet loss rate. The arithmetic mean of the result of deviation processing of received signal strength and the result of relative deviation processing of received packet loss rate is used to obtain the broadcast packet reception tracking coefficient, which characterizes the effectiveness of broadcast packet reception during the access scanning process. The obtained broadcast packet reception tracking coefficient is compared with the broadcast packet reception setting reference value. If the broadcast packet reception tracking coefficient is greater than the broadcast packet reception setting reference value, the broadcast packet reception tracking result is recorded as reception tracking qualified; otherwise, the broadcast packet reception tracking result is recorded as reception tracking unqualified. The specific steps for determining whether to perform device access verification configuration based on the acquired broadcast packet reception tracking results are as follows: If the obtained broadcast packet reception tracking result is qualified, then the device access verification configuration is performed, and the average latency of broadcast packet reception and the broadcast packet reception tracking coefficient are continuously monitored. If the obtained broadcast packet reception tracking result is unsuccessful, then determine whether the average reception delay of the broadcast packet is greater than the maximum set reception delay value: If not, then a scanning access optimization management strategy will be adopted to improve the quality of device access; If so, the scanning gap length reduction amount is obtained based on the deviation between the average delay of broadcast packet reception and the maximum value of the reception delay setting, and the initial scanning gap is adjusted according to the obtained scanning gap reduction amount.
2. The smart home device association access management method according to claim 1, characterized in that, The specific process for determining broadcast conflict interference during the access process of the device to be accessed is as follows: If the number of devices to be accessed exceeds the reference limit for the number of accessed devices, a time slot efficiency factor is introduced to dynamically adjust the broadcast time slots. The broadcast collision probability is obtained based on the Poisson distribution and the obtained time slot efficiency factor to correct the degree of influence of time slot allocation on the judgment of broadcast collision interference. Determine whether the broadcast collision probability after time slot efficiency factor correction is greater than the maximum set value for broadcast collision probability; If the value is greater than 1, the broadcast packet transmission tracking result is recorded as unqualified due to conflict and interference tracking, and the device access optimization management strategy is adopted. If the value is not greater than 1, the broadcast packet transmission tracking result is recorded as qualified due to conflict and interference tracking, and broadcast packet reception tracking is performed and the broadcast packet reception tracking result is obtained.
3. The smart home device association access management method according to claim 2, characterized in that, The specific methods for obtaining the reduction in the number of bytes in the broadcast packet also include: If the difference between the broadcast conflict probabilities before and after the time slot efficiency factor correction is within the set conflict probability deviation range, then the result of the arithmetic average of the broadcast conflict probabilities before and after the time slot efficiency factor correction is input into the broadcast packet byte number mapping table to obtain the broadcast packet byte number reduction amount. The method for obtaining the broadcast packet retry interval adjustment amount also includes: If the difference between the broadcast collision probabilities before and after the time slot efficiency factor correction is within the set collision probability deviation range, then the result of the arithmetic mean of the broadcast collision probabilities before and after the time slot efficiency factor correction is input into the broadcast packet retry interval mapping table to obtain the broadcast packet retry interval adjustment amount.
4. The device association and access management method for smart homes according to claim 1, characterized in that, The aforementioned scanning access optimization management strategy specifically includes: The results of the step size difference between the maximum scan monitoring window limit and the scan listening window adjustment value are obtained, as well as the result of the step size ratio calculation corresponding to the scan listening window adjustment value. Based on the obtained data, the scan listening window adjustment frequency is obtained. The scan listening window adjustment value represents the output result corresponding to the listening window adjustment mapping set when the broadcast packet receiving tracking coefficient is input to the listening window adjustment mapping set. If the frequency of adjustment of the scan listening window is less than the maximum frequency of the listening window, the initial scan listening window will be adjusted according to the upward adjustment value of the scan listening window. Otherwise, the initial scan frequency is adjusted within the initial scan monitoring window. Specifically, the broadcast packet reception tracking coefficient is input to the scan frequency up-adjustment amount output by the scan frequency up-adjustment mapping set to adjust the initial scan frequency.
5. A smart home device association access management system, employing the smart home device association access management method as described in any one of claims 1-4, characterized in that, include: The module includes a broadcast conflict and interference determination module, a device access optimization management module, and a device access request verification module. The broadcast conflict interference determination module is used to track the transmission process of broadcast packets of the device to be accessed, determine the degree of broadcast conflict interference during the access process of the device to be accessed to obtain broadcast packet transmission tracking results, and determine whether to adopt device access optimization management strategy to reduce broadcast conflict interference based on the obtained broadcast packet transmission tracking results. The device access optimization management module is used to send an instruction to initialize the access scanning process and perform broadcast packet reception tracking after adopting the device access optimization management strategy if the strategy is adopted; otherwise, it directly performs broadcast packet reception tracking to obtain broadcast packet reception tracking results that characterize the effectiveness of broadcast packet reception in the access scanning process. The device access request verification module is used to determine whether to perform device access verification configuration based on the obtained broadcast packet reception tracking results in order to verify the access request of the device to be accessed. If the verification is successful, the access of the device to be accessed is allowed; otherwise, the access of the device to be accessed is rejected.
Citation Information
Patent Citations
A method, apparatus and system for managing equipment information
CN110351130B
Network connection management method, device, computer readable medium and electronic device
CN113556227B
Method, machine-type-communications (MTC) device and communication system triggering MTC devices to attach to a wireless communications network
CN104365159A
Gateway protocol for smart home
CN106657093A