Equipment spacing detection method and device, equipment, medium and product
By acquiring and calculating the identification information and wireless power data of the master and slave gateways in FTTR networking, forming device pairs and comparing them with preset thresholds, the problem of co-channel interference caused by the close proximity of devices in FTTR networking is solved, thereby improving detection efficiency and network performance.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHINA UNITED NETWORK COMM GRP CO LTD
- Filing Date
- 2026-02-13
- Publication Date
- 2026-05-01
AI Technical Summary
In Fiber to the Room (FTTR) networking, excessively close proximity between the master gateway and slave gateways or between slave gateways can cause co-channel interference, resulting in reduced network throughput, increased latency and jitter. Existing technologies are inefficient for troubleshooting and cannot detect problems in a timely manner.
By performing a wireless neighbor scan in advance through the main gateway and the slave gateway, identification information and wireless power data are obtained, device pairs are formed and a wireless power data set is generated. The average wireless power value is calculated and compared with the preset power threshold to determine whether the device spacing meets the requirements.
It enables efficient and accurate detection of device spacing, avoids the risk of co-channel interference, improves network performance and user experience, and prevents waste of network resources.
Smart Images

Figure CN121966708A_ABST
Abstract
Description
A method, apparatus, equipment, medium, and product for detecting equipment spacing. Technical Field
[0001] This application relates to the field of communication technology, and in particular to a method, apparatus, device, medium and product for detecting device spacing. Background Technology
[0002] Currently, Fiber to the Room (FTTR) networking, as an important application form of wireless mesh networking, is widely promoted due to its ability to achieve whole-house wireless network coverage. More and more users are choosing this networking solution, and network service providers have correspondingly launched corresponding network packages and services. However, in practical applications, if the distance between the master gateway and slave gateways, or between slave gateways, in an FTTR network is too close, it will cause serious co-channel interference. This not only fails to improve wireless network performance but also leads to reduced network throughput, increased latency, and jitter, wasting network resources and severely impacting user experience. Regarding the issue of excessively close device spacing, network service providers can only troubleshoot through user complaints or by sending personnel for spot checks. This method is inefficient, failing to identify problems in time during the installation phase to achieve a closed-loop installation and maintenance acceptance process, and also making it difficult to conduct a comprehensive assessment of existing network equipment, thus failing to address the network performance risks caused by improper installation at the source. Summary of the Invention
[0003] This application provides a method, apparatus, equipment, medium, and product for detecting device spacing, in order to solve the problems existing in the prior art.
[0004] In a first aspect, this application provides a method for detecting device spacing, comprising:
[0005] In a fiber-to-the-room (FTTH) network, identification information and wireless power data sent by the main gateway and at least one secondary gateway are obtained. The main gateway and the secondary gateway have both performed wireless neighbor scanning operations in advance, and the secondary gateway sends the recorded identification information and wireless power data to the main gateway. The main gateway records the identification information and wireless power data obtained by its own scanning.
[0006] Multiple device pairs are formed based on the identification information, and a wireless power data set corresponding to each device pair is generated.
[0007] Based on the wireless power data set, the average wireless power value between each pair of devices is determined;
[0008] Each of the average wireless power values is compared with a preset power threshold. If any of the average wireless power values exceeds the preset power threshold, it is determined that the spacing between the two devices in the device pair corresponding to any of the average wireless power values does not meet the requirements.
[0009] In one possible design, the wireless power data set includes first wireless power data obtained by the first device scanning the second device in the device pair, and second wireless power data obtained by the second device scanning the first device.
[0010] Determining the average wireless power value among each pair of devices based on the wireless power data set includes:
[0011] Based on the first wireless power data and the second wireless power data, the average wireless power value between the device pair is calculated; wherein the first device and the second device are respectively the master gateway and the slave gateway, or the first device and the second device are two slave gateways.
[0012] In one possible design, the wireless neighbor scanning operation is performed on a specified frequency band, which includes at least one of a first frequency band and a second frequency band; the main gateway and the slave gateway scan the fiber optic cable to other devices in the room network under the specified frequency band, record the wireless power data of the corresponding frequency band, and store it in the wireless power data set.
[0013] In one possible design, determining the average wireless power value between each pair of devices based on the wireless power data set includes: when the specified frequency band includes both the first frequency band and the second frequency band, calculating the average wireless power value between the pair of devices by weighted summation based on the wireless power data of the first frequency band and the wireless power data of the second frequency band and a preset weighting coefficient.
[0014] In one possible design, the identification information includes a basic service set identifier for uniquely identifying the device, and the service set identifiers are consistent across all devices within the fiber-to-the-room network.
[0015] In one possible design, after determining that the spacing between the two devices in the device pair corresponding to any of the average wireless power values does not meet the requirements, the method further includes:
[0016] A prompt message indicating that the spacing is too close is generated. This prompt message is used to trigger an adjustment of the wireless transmission power of devices whose spacing does not meet the requirements, or to notify maintenance personnel to optimize the installation location of the devices.
[0017] In one possible design, after acquiring the identification information and radio power data sent by the main gateway and at least one secondary gateway, the method further includes:
[0018] Obtain the device type information of the main gateway and the slave gateway;
[0019] The wireless power data is compensated and corrected based on the device type information.
[0020] Secondly, this application provides a device for detecting device spacing, comprising:
[0021] The acquisition module is used to acquire identification information and wireless power data sent by the main gateway and at least one slave gateway in a fiber-to-the-room network. The main gateway and the slave gateway have both performed wireless neighbor scanning operations in advance, and the slave gateway sends the recorded identification information and wireless power data to the main gateway. The main gateway records the identification information and wireless power data acquired by itself during scanning.
[0022] The generation module is used to match and form multiple device pairs according to the identification information, and generate a wireless power data set corresponding to each of the device pairs;
[0023] The determining module is used to determine the average wireless power value among the various device pairs based on the wireless power data set.
[0024] The judgment module is used to compare each of the average wireless power values with a preset power threshold, and if any of the average wireless power values exceeds the preset power threshold, it determines that the spacing between the two devices in the device pair corresponding to any of the average wireless power values does not meet the requirements.
[0025] Thirdly, this application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;
[0026] The memory stores computer-executed instructions;
[0027] The processor executes computer execution instructions stored in the memory to implement the method as described in any of the first aspects.
[0028] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any of the first aspects.
[0029] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the method described in any of the first aspects.
[0030] This application provides a method, apparatus, device, medium, and product for detecting device spacing. The method acquires identification information and wireless power data pre-scanned and recorded by the main and secondary gateways in a fiber-to-the-room (FTTH) network. These are then matched to form device pairs and generate corresponding wireless power data sets. The average wireless power value of each device pair is determined and compared with a preset power threshold. This method efficiently and accurately detects whether the device spacing in a FTTH network meets requirements, effectively avoiding the inefficiency of existing methods for troubleshooting excessively close device spacing. It can promptly avoid the risk of co-channel interference caused by excessively close device spacing, prevent reduced network throughput, increased latency and jitter, prevent waste of network resources, improve user network experience, and enhance network service quality and reliability. Attached Figure Description
[0031] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0032] Figure 1 is an application scenario diagram corresponding to a device spacing detection method provided in an embodiment of this application;
[0033] Figure 2 is a flowchart illustrating a device spacing detection method according to an embodiment of this application;
[0034] Figure 3 is a schematic diagram of the structure of a device spacing detection device provided in an embodiment of this application;
[0035] Figure 4 is a structural example diagram of an electronic device provided in an embodiment of this application.
[0036] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concepts of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0037] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0038] To clearly understand the technical solution of this application, the solutions of the prior art will be described in detail first.
[0039] Fiber to the Room (FTTR) networking, as an important application of wireless mesh networking, has been widely promoted because it can achieve whole-house wireless network coverage. More and more users are choosing this type of networking solution, and network service providers have also launched corresponding network packages and services. However, in actual applications, if the distance between the master gateway and slave gateways, or between slave gateways, in FTTR networking is too close, it will cause serious co-channel interference. This will not only fail to improve the performance of the wireless network, but will also lead to a decrease in network throughput, an increase in latency and jitter, which will waste network resources and seriously affect the user experience.
[0040] Regarding the issue of devices being too close together, network service providers can only investigate through user complaints or by sending personnel to conduct spot checks. This approach is inefficient, as it cannot detect problems in time during the installation phase to achieve a closed loop for installation, maintenance, and acceptance, nor can it conduct a comprehensive survey of the devices already deployed on the network. It also fails to address the network performance risks caused by non-standard installations at the source.
[0041] Therefore, there is an urgent need for an efficient and accurate device spacing detection solution to quickly identify whether the device spacing in an FTTR network meets the requirements, thereby avoiding the risk of co-channel interference and improving the network user experience.
[0042] Figure 1 shows an application scenario of a device spacing detection method provided in an embodiment of this application. As shown in Figure 1, the application scenario provided in this embodiment includes an FTTR networking device 10, a network management platform 11, and an installation and maintenance terminal 12 (such as an engineer's mobile phone or tablet computer). The FTTR networking device 10 includes a main gateway and at least one slave gateway. The main gateway and the slave gateway form a whole-house wireless network through a wireless mesh link. The main gateway establishes a communication connection with the network management platform 11 through a broadband fiber optic link. The installation and maintenance terminal 12 and the network management platform 11 realize data interaction through a mobile network or Wi-Fi, jointly supporting the automated detection of device spacing in the FTTR network and the closed loop of installation and maintenance acceptance and operation and maintenance troubleshooting.
[0043] Optionally, both the main gateway and the slave gateway are pre-enabled with wireless neighbor scanning function, and the scanning frequency and scanning duration are configured according to the networking specifications to ensure accurate capture of wireless signals from surrounding devices in the same network. Both the main and slave gateways have preset unique identification information for device identification and pairing. The network management platform 11 has a preset power threshold, which is set based on the critical test data of co-channel interference of FTTR devices. The installation and maintenance terminal 12 has a pre-installed maintenance APP that is compatible with the network management platform 11, which supports receiving test results and alarm information.
[0044] Optionally, when an installation and maintenance engineer deploys an FTTR network for a user (such as a home user), after completing the physical installation, power connection, and basic network configuration of the main gateway and slave gateways, the device spacing detection process is triggered. Specifically, the main gateway scans the wireless signals of surrounding slave gateways, records the identification information and corresponding wireless power data (such as real-time received power value and signal strength fluctuation data) of each slave gateway; each slave gateway synchronously scans surrounding devices in the same network (the main gateway and other slave gateways), records the identification information and wireless power data of the corresponding devices, and uploads the recorded data to the main gateway in real time through the wireless mesh link. The main gateway summarizes the data it has scanned and the data uploaded by each slave gateway to form a complete raw data set, and then sends the raw data set to the network management platform 11 through the broadband link. After receiving the data, the network management platform 11 performs device pairing based on the identification information, matching the main gateway with each slave gateway, and each slave gateway with itself to form device pairs, and extracts all wireless power data corresponding to each device pair to generate a dedicated wireless power data set. The network management platform 11 calculates the average wireless power value between each wireless power dataset, removes outliers, and then compares the average wireless power value with a preset power threshold. If the average wireless power value of all device pairs does not exceed the preset power threshold, the device spacing is deemed to meet the requirements, and the network management platform 11 sends an acceptance notification to the installation and maintenance terminal 12, allowing the installation and maintenance engineer to directly complete the installation and maintenance loop. If the average wireless power value of any device pair exceeds the preset power threshold, the spacing of that device pair is deemed to not meet the requirements, the platform generates an alarm message and pushes it to the installation and maintenance terminal 12, and the installation and maintenance engineer adjusts the installation position of the corresponding device according to the prompts, re-triggering the detection process until the spacing of all device pairs meets the requirements, ensuring that the risk of co-channel interference is avoided during the installation phase.
[0045] Optionally, for users who have deployed FTTR networks, the network management platform 11 can trigger the device spacing detection process according to a preset cycle (such as during the low-load period of the user's network in the early morning every day), or proactively initiate the detection after receiving a user's network quality complaint. If an out-of-range device pair is found (such as when the user moves from the gateway location later, causing the spacing to be too close), the network management platform 11 will push a notification message to the user's network terminal and synchronize the alarm information to the operation and maintenance management system, arranging for operation and maintenance personnel to proactively contact the user and provide remote guidance or on-site adjustment services, achieving accurate problem location and rapid handling without relying on user complaints.
[0046] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0047] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or modules, and may be electrical, mechanical, or other forms.
[0048] Figure 2 is a flowchart illustrating a device spacing detection method according to an embodiment of this application. As shown in Figure 2, the executing entity of this embodiment is a device spacing detection device. This device can be implemented by a computer program, or by a medium storing the relevant computer program, such as a USB flash drive and / or optical disc; or it can be implemented by a physical device integrating or installing the relevant computer program, such as a chip or electronic device. The electronic device may be a computer or a server, etc. The device spacing detection method provided in this embodiment includes the following steps:
[0049] S201. In a fiber-to-the-room network, acquire identification information and wireless power data sent by the main gateway and at least one secondary gateway; wherein, both the main gateway and the secondary gateway have pre-executed a wireless neighbor scan operation, and the secondary gateway sends the recorded identification information and wireless power data to the main gateway, and the main gateway records the identification information and wireless power data acquired by its own scan.
[0050] It should be noted that in FTTR networking, the networking equipment includes one master gateway and at least one slave gateway. All devices support wireless neighbor scanning, and the Service Set Identifier (SSID) of all devices in the network is consistent. This feature is used to filter the signals of devices in the network and eliminate external wireless signal interference.
[0051] Optionally, the master gateway and each slave gateway pre-start a wireless neighbor scan operation, covering the wireless environment where the FTTR network is located, and scanning all other devices within the network. The scan is performed on a specified frequency band, which includes a first frequency band and a second frequency band (corresponding to two commonly used wireless communication frequency bands in FTTR networking, such as the 2.4GHz and 5GHz bands in existing technologies). The master gateway and slave gateways can choose to scan only on either frequency band or scan on both frequency bands simultaneously to adapt to the signal transmission characteristics of different networking environments.
[0052] Optionally, during the scanning process, each device simultaneously records two types of data: its own identification information and the identification information and corresponding wireless power data of other scanned devices. The identification information is a Basic Service Set Identifier (BSSID) used to uniquely identify the device, such as the device's MAC (Media Access Control) address, ensuring accurate device identification. The wireless power data is a quantified value of the wireless signal strength received by the device from other devices, such as a Received Signal Strength Indicator (RSSI). Wireless power data directly reflects the degree of wireless signal attenuation between devices and is negatively correlated with the distance between devices; that is, the closer the devices are, the smaller the wireless signal attenuation and the higher the wireless power data.
[0053] Optionally, after completing data recording at the gateway, the recorded identification information and wireless power data are sent to the main gateway via the wireless mesh link of the FTTR network. In addition to receiving all data uploaded from the gateway, the main gateway also records the identification information and wireless power data obtained by its own scanning, realizing the centralized aggregation of scanning data from all devices in the network and providing a complete data foundation for subsequent analysis.
[0054] S202. Match multiple device pairs based on the identification information and generate a set of wireless power data corresponding to each device pair.
[0055] Optionally, after acquiring the scan data of all devices, the main gateway constructs device pair combinations among all devices in the network based on the identification information. Specifically, device pairs include two types of combinations: device pairs consisting of the main gateway and each slave gateway, and device pairs consisting of any two slave gateways. For example, if an FTTR network includes one main gateway M and three slave gateways S1, S2, and S3, then the matched device pairs are (M, S1), (M, S2), (M, S3), (S1, S2), (S1, S3), and (S2, S3).
[0056] Optionally, for each device pair, the main gateway extracts the wireless power data obtained by the two devices scanning each other from the aggregated data, and integrates them to form the wireless power data set corresponding to that device pair. For example, for device pair (A, B), the wireless power data set includes the wireless power data obtained by device A scanning device B, and the wireless power data obtained by device B scanning device A, ensuring that the data set can comprehensively reflect the signal transmission strength between the two devices.
[0057] S203. Based on the wireless power data set, determine the average wireless power value between each pair of devices.
[0058] It should be noted that, in order to improve the accuracy of wireless power data and avoid errors caused by scanning a single device, this embodiment uses the average wireless power value of the device pair as the basis for judgment.
[0059] Optionally, in the device pair (A,B), the wireless power data obtained by device A scanning device B is P_B, and the wireless power data obtained by device B scanning device A is P_A. Then, the average wireless power value Pg of the device pair is calculated according to the following formula: Pg=(P_A+P_B) / 2.
[0060] Optionally, if the wireless power data set of the device pair contains wireless power data from multiple frequency bands, two calculation methods can be used: First, select the wireless power data from any frequency band and calculate the average wireless power value according to the formula mentioned above; second, based on the application scenario characteristics of FTTR networking, such as wall obstruction in a home environment and device deployment density, set corresponding weighting coefficients for the two frequency bands, and calculate the average wireless power value by weighted summation. The weighted calculation method can combine the signal characteristics of different frequency bands to further improve the reliability of the average wireless power value.
[0061] S204. Compare each average wireless power value with a preset power threshold, and if any average wireless power value exceeds the preset power threshold, determine that the distance between the two devices in the device pair corresponding to any average wireless power value does not meet the requirements.
[0062] Setting the preset power threshold: The preset power threshold serves as a benchmark for determining whether the device spacing meets the requirements. This preset power threshold is determined based on the interference protection needs of FTTR networking, through extensive experimental data or engineering experience. For example, experimental verification has shown that when the spacing between FTTR devices is less than a preset reasonable distance (e.g., 1 meter), the average wireless power value between devices is usually higher than -60dBm, which will generate significant co-channel interference. Therefore, the preset power threshold can be set to -60dBm. This value is only an example and can be adjusted according to the actual networking scenario.
[0063] Optionally, the main gateway compares the average wireless power value of each device pair with a preset power threshold one by one. If the average wireless power value of a device pair exceeds the preset power threshold, i.e., the average wireless power value is greater than the preset power threshold (e.g., if the average wireless power value is -55dBm and the preset power threshold is -60dBm, -55dBm>-60dBm), it indicates that the wireless signal attenuation of the two devices in the pair is small and the distance between them is too close, and the distance between the device pairs is determined to be unacceptable. If the average wireless power value does not exceed the preset power threshold, the distance between the devices is determined to be acceptable and there will be no significant co-channel interference.
[0064] Optionally, for simplified FTTR networking scenarios with 1 master and 1 slave or 1 master and 2 slaves, to further simplify the detection process and improve detection efficiency, the scanning and data uploading steps of the slave gateways can be omitted. Only the master gateway performs the wireless neighbor scanning operation, records the identification information of each scanned slave gateway and the corresponding wireless power data, and directly compares the wireless power data with a preset power threshold. If the threshold is exceeded, it is determined that the distance between the master and slave devices does not meet the requirements, thereby reducing the system's computational overhead while ensuring detection accuracy.
[0065] This application provides a device spacing detection method that obtains identification information and wireless power data pre-scanned and recorded by the main gateway and slave gateway in a fiber-to-the-room network. This data is then matched to form device pairs and generate corresponding wireless power data sets. The average wireless power value of each device pair is determined and compared with a preset power threshold. This method can efficiently and accurately detect whether the device spacing in a fiber-to-the-room network meets the requirements, effectively avoiding the inefficiency of existing methods for checking for excessively close device spacing. It can promptly avoid the risk of co-channel interference caused by excessively close device spacing, prevent reduced network throughput, increased latency and jitter, prevent waste of network resources, improve user network experience, and enhance network service quality and reliability.
[0066] As an optional implementation, based on any of the above embodiments, the wireless power data set includes first wireless power data obtained by the first device scanning the second device in the device pair, and second wireless power data obtained by the second device scanning the first device.
[0067] The average wireless power value between each pair of devices is determined based on the wireless power data set, including: calculating the average wireless power value between the pair of devices based on the first wireless power data and the second wireless power data; wherein the first device and the second device are the master gateway and the slave gateway, respectively, or the first device and the second device are two slave gateways.
[0068] In this context, "first device" and "second device" are relative designations of two devices in a device pair. They have no fixed meaning and are only used to distinguish the subject and object of bidirectional scanning. When the device pair is a combination of a master gateway and a slave gateway, the first device can be the master gateway and the second device can be the slave gateway, or the first device can be the slave gateway and the second device can be the master gateway. When the device pair is a combination of two slave gateways, the first device can be any one of the slave gateways and the second device can be the other slave gateway.
[0069] Optionally, when calculating the average wireless power value based on the wireless power data set, firstly, first wireless power data (denoted as P1) and second wireless power data (denoted as P2) are extracted from the data set. Here, P1 is the quantized value of the wireless signal strength recorded when the first device acts as the scanner and the second device acts as the scanned device, and P2 is the quantized value of the wireless signal strength recorded when the second device acts as the scanner and the first device acts as the scanned device. Then, the average value of the two is calculated using an arithmetic mean algorithm, i.e., the average wireless power value Pg = (P1 + P2) / 2. This average wireless power value will be used as the basis for subsequent comparison with a preset power threshold.
[0070] It should be noted that this bidirectional data averaging calculation logic applies regardless of whether the wireless neighbor scanning operation in FTTR networking targets only the first frequency band, only the second frequency band, or both frequency bands simultaneously. If the scan targets a single frequency band, then P1 and P2 are both wireless power data under that frequency band, and can be calculated directly according to the above formula. If the scan targets two frequency bands simultaneously, the average value of the bidirectional wireless power data for each frequency band can be calculated first, and then the average values of the two frequency bands can be weighted and fused according to the characteristics of the networking scenario to finally obtain the comprehensive average wireless power value of the device pair, or the bidirectional average data of any one frequency band can be directly selected as the judgment basis.
[0071] In the same wireless environment of FTTR networking, the wireless signal transmission path between the first and second devices is fixed (that is, the physical distance between them, the distribution of obstructions, and other factors affecting signal attenuation are the same). Therefore, the wireless power data obtained by bidirectional scanning essentially reflects the signal strength characteristics under the same physical distance. If there are no differences in device hardware and instantaneous environmental interference, P1 and P2 should be consistent, and their average value can more accurately correspond to the actual distance between the devices.
[0072] This application provides a device spacing detection method that includes first wireless power data of the first device scanning the second device and second wireless power data of the second device scanning the first device in a device pair in a wireless power data set. Based on these two sets of data, the average wireless power value between the device pairs is calculated, making the detection of device spacing more comprehensive and accurate. This avoids the errors that may occur when judging based on scanning data in only one direction, and can more realistically reflect the actual wireless signal interaction between devices. As a result, it can more reliably determine whether the device spacing meets the requirements, effectively improving the accuracy and stability of device spacing detection. This helps to more effectively avoid the risk of co-channel interference, ensure the network performance of FTTR networking, and provide users with a better and more stable wireless network experience.
[0073] As an optional implementation, based on any of the above embodiments, the wireless neighbor scanning operation is performed on a specified frequency band, which includes at least one of a first frequency band and a second frequency band; the main gateway and the slave gateway scan the fiber optic cable to other devices in the room network under the specified frequency band, record the wireless power data of the corresponding frequency band and store it in the wireless power data set.
[0074] Optionally, in this embodiment, the wireless neighbor scanning operation performed by the main gateway and all slave gateways in the FTTR network does not cover all wireless frequency bands indiscriminately, but is performed on preset designated frequency bands. The designated frequency bands include the first frequency band and the second frequency band, and support two scanning modes: scanning only the first frequency band, scanning only the second frequency band, or scanning both the first and second frequency bands simultaneously (i.e., dual-band joint scanning). Network service providers or users can flexibly choose according to the actual application environment of the FTTR network (such as the number of rooms, wall material, device deployment density, etc.).
[0075] The first and second frequency bands are two commonly used wireless communication frequency bands in FTTR networking, possessing different signal transmission characteristics. For example, the first frequency band has strong signal penetration and excellent anti-interference performance, while the second frequency band has high signal transmission rate and good signal stability. Both are natively supported wireless frequency bands in existing FTTR gateway devices, requiring no additional hardware expansion. When performing scans, the main and secondary gateways must strictly limit their search for wireless signals to the specified frequency bands and only scan other devices within the FTTR network (identified by filtering based on the consistent SSID of all devices within the network) to avoid scanning signals in unrelated external frequency bands, which could lead to data redundancy or interference.
[0076] Optionally, in the data acquisition and storage phase, after the main gateway and slave gateway scan for other devices within the network in a specified frequency band, they will synchronously record the wireless power data of the corresponding frequency band. That is, the frequency band where the scanning operation takes place is bound to the wireless power data one by one. For example, when device A is scanned in the first frequency band, "First Frequency Band - Device A - Wireless Power Data P" is recorded; when device A is scanned in the second frequency band, "Second Frequency Band - Device A - Wireless Power Data P'" is recorded. All wireless power data bound to the frequency band identifier will be included in the wireless power data set along with the device's identifier information to ensure that the data of the corresponding frequency band can be retrieved when calculating the average wireless power value, avoiding confusion between data of different frequency bands.
[0077] It should be noted that the selection of a specified frequency band does not affect the normal communication functions of devices within the FTTR network. Scanning operations can be performed during device idle periods or in a time-sharing scanning mode, where scanning and data transmission are performed at different times to avoid consuming communication bandwidth during the scanning process and ensure uninterrupted normal network use for users. Simultaneously, the frequency band selection rules for the master gateway and slave gateways remain consistent. If the master gateway selects dual-band scanning, all slave gateways will also perform dual-band scanning synchronously; if the master gateway selects single-band scanning, the slave gateways will follow suit and perform scanning on the same frequency band, ensuring the uniformity of the scan data frequency band within the network and avoiding data mismatches due to inconsistent frequency bands.
[0078] This application provides a device spacing detection method that limits the wireless neighbor scanning operation to a specified frequency band including at least one of a first frequency band and a second frequency band. The main gateway and slave gateways scan other devices within the room network via fiber optic cable under the specific frequency band and record the corresponding frequency band wireless power data, storing it in a set. This allows for precise focusing on key frequency bands that may cause co-channel interference, avoiding the data processing complexity and resource waste associated with full-band scanning. Targeted acquisition of key frequency band information makes subsequent device spacing judgments based on this data more accurate to actual interference conditions, improving the efficiency and accuracy of device spacing detection, ensuring stable and efficient operation of FTTR networks, and enhancing the user's network experience.
[0079] As an optional implementation, based on any of the above embodiments, the average wireless power value between each pair of devices is determined based on the wireless power data set, including: when the specified frequency band includes both a first frequency band and a second frequency band, the average wireless power value between the pair of devices is calculated by weighted summation based on the wireless power data of the first frequency band and the wireless power data of the second frequency band and a preset weighting coefficient.
[0080] Optionally, the wireless power data subsets for the first frequency band and the second frequency band are first split from the corresponding wireless power data set of the device pair according to the frequency band identifier. Each frequency band's wireless power data subset includes "the first device scanning the wireless power data of the second device" and "the second device scanning the wireless power data of the first device" under that frequency band.
[0081] Optionally, the preset weighting coefficients are pre-set based on the application environment characteristics, equipment hardware parameters, or network performance requirements of the FTTR network. These coefficients quantify the contribution of the two frequency bands to the final judgment result, including the weighting coefficient w1 corresponding to the first frequency band and the weighting coefficient w2 corresponding to the second frequency band, satisfying w1 + w2 = 1. Optionally, the weighting coefficients can be preset to fixed values by the network service provider based on extensive experimental data. For example, in environments with dense walls, the weighting coefficient w1 for the first frequency band is 0.6, and the weighting coefficient w2 for the second frequency band is 0.4; in open environments, w1 = 0.3, and w2 = 0.7. The weighting coefficients can also be dynamically adjusted according to the real-time environmental parameters of the FTTR network.
[0082] Optionally, a two-step calculation method of "bidirectional averaging followed by band weighting" is adopted to ensure data accuracy. First, the bidirectional average wireless power value for each frequency band is calculated separately: the bidirectional average value of the first frequency band is P1_avg; the bidirectional average value of the second frequency band is P2_avg. Second, the bidirectional average values of the two frequency bands are weighted and summed based on preset weighting coefficients to obtain the final average wireless power value of the device pair. The calculation formula is: P_total = P1_avg × w1 + P2_avg × w2.
[0083] It should be noted that the dual-band weighted calculation process is performed by the main gateway. The secondary gateway only needs to upload the wireless power data and frequency band identifiers of the two bands as required, without participating in complex calculations, thus avoiding increasing the hardware load on the secondary gateway. In addition, the weighting coefficients can be stored in the main gateway's configuration file, which can be updated uniformly by network service providers through a remote management platform, or manually adjusted by users according to their actual usage experience, making the operation convenient and flexible.
[0084] As an optional implementation, based on any of the above embodiments, the identification information includes a basic service set identifier for uniquely identifying the device, and the service set identifiers of all devices within the fiber-to-the-room network are consistent.
[0085] Specifically, the parameter used to uniquely identify FTTR devices in the identification information is the Basic Service Set Identifier, which is usually the Media Access Control (MAC) address of the device's wireless access point network card. The MAC address is a unique physical address pre-programmed into the device's network interface card at the factory, possessing the characteristic of being globally unique. Each master gateway and slave gateway corresponds to a unique MAC address, which cannot be tampered with. In the device spacing detection process, the MAC address serves to uniquely identify the device. When the master and slave gateways perform wireless neighbor scanning, they synchronously record the MAC address of the scanned object. This unique identifier can accurately distinguish different devices within the network, such as "MAC-M corresponds to master gateway M" and "MAC-S1 corresponds to slave gateway S1," avoiding pairing errors caused by ambiguous device identities.
[0086] Specifically, all devices within the network share the same Service Set Identifier (SSID), meaning the main gateway and all slave gateways broadcast the same wireless network name. This is the default configuration when deploying an FTTR network. In this implementation, the SSID is used for rapid target signal filtering. The wireless environment where the FTTR network is located contains numerous external interference signals (such as neighboring routers, smart home appliances, and public Wi-Fi devices). When the main and slave gateways scan, they use the SSID consistency filtering condition to filter out all irrelevant external signals with SSIDs inconsistent with their own, retaining only signals with the same SSID (i.e., signals emitted by other devices within the FTTR network). This ensures that the subsequently collected wireless power data all originates from target devices within the network, avoiding data redundancy or judgment bias caused by external signal interference.
[0087] As an optional implementation, based on any of the above embodiments, after determining that the distance between the two devices in a device pair corresponding to any average wireless power value does not meet the requirements, the method further includes:
[0088] Generate a prompt message indicating that the spacing is too close. This prompt message is used to trigger adjustments to the wireless transmission power of devices whose spacing does not meet the requirements, or to notify maintenance personnel to optimize the device installation location.
[0089] Optionally, the prompt message is generated by the main gateway of the FTTR network. After the main gateway completes the spacing determination of all device pairs, it will integrate the information of all device pairs whose spacing does not meet the requirements and generate a unified prompt message for too close spacing, or generate a corresponding prompt message for each pair of devices that does not meet the requirements. The specific generation method can be flexibly configured according to the network management requirements.
[0090] Optionally, the prompt information may include at least: the identity of the device pair whose spacing does not meet the requirements; and a comparison of the average wireless power value of the device pair with a preset power threshold. Additionally, as needed, coarse location information of the device's current installation location may be added, such as auxiliary information like the room number based on network deployment records.
[0091] Optionally, after generating the prompt message, if the main gateway determines that the devices are too close but not beyond the power adjustment compensation range (e.g., the average wireless power value is between -50dBm and -60dBm, and the corresponding devices are slightly close but have no physical movement conditions), it will directly send a power adjustment command to one or both devices in the pair via the Mesh management link of the FTTR network. After adjustment, the main gateway will re-execute the wireless neighbor scan and distance determination. If the adjusted average wireless power value drops below the preset power threshold, the optimization is considered complete.
[0092] Optionally, after generating a prompt message, if the main gateway determines that the devices are too close together and exceed the compensation range for power adjustment (e.g., the average wireless power value is higher than -50dBm, corresponding to extremely close device spacing, where simply lowering the power might affect network coverage), or if the automatic power adjustment still fails to meet the standard, it can upload the prompt message to the network service provider's operation and maintenance management platform. The operation and maintenance management platform will then assign the work order to the maintenance personnel in the corresponding area. Upon receiving the notification, the maintenance personnel will verify the device location and make adjustments. After the adjustments are completed, they will report the optimization results through the operation and maintenance platform, and the main gateway will simultaneously re-detect and confirm.
[0093] As an optional implementation, based on any of the above embodiments, after obtaining the identification information and wireless power data sent by the main gateway and at least one slave gateway, the following steps are further included:
[0094] Obtain device type information for the primary and secondary gateways; compensate and correct the wireless power data based on the device type information.
[0095] Optionally, after the main gateway aggregates the identification information and wireless power data sent by all main gateways and slave gateways, it synchronously obtains the device type information of each device. The device type information is a parameter used to characterize the hardware features of the device, including at least the device model (such as the main gateway model MG-100, the slave gateway model SG-200), wireless transmission module specifications, and receiver sensitivity parameters. This information is either pre-stored in the local storage module of each device or actively reported to the main gateway by the device during the FTTR network initialization phase. The main gateway can quickly match the type information of each device through the association mapping relationship between BSSID and device type (established and stored during network formation).
[0096] Optionally, the main gateway has a built-in preset mapping table of device types and compensation coefficients. This mapping table is built based on a large amount of experimental data. By placing different types of FTTR gateway devices in a standard test environment, allowing the devices to scan each other to obtain wireless power data, and comparing the deviation between the theoretical wireless power value and the actual collected value, the compensation coefficient corresponding to each type of device is determined. For example, if the receiving sensitivity of the main gateway model MG-100 is 2dBm lower than that of the standard device, the wireless power data it obtains from scanning other devices will be 2dBm lower than the true value. Therefore, a compensation coefficient of +2dBm is set for MG-100.
[0097] Optionally, the compensation coefficient can be positive or negative. A positive number indicates that the actual data is too small and needs to be corrected by adding a correction, while a negative number indicates that the actual data is too large and needs to be corrected by subtracting a correction. The mapping table can be updated through a remote management platform to adapt to new device types or optimize correction accuracy.
[0098] Optionally, the main gateway performs compensation correction for each piece of wireless power data based on both the scanning device type and the scanned device type. Specifically, let the compensation coefficient of scanning device A be K_A, the compensation coefficient of scanned device B be K_B, and the original wireless power data obtained by device A scanning device B be P_original; the corrected wireless power data P_corrected = P_original + K_A + K_B; all original wireless power data are corrected according to the above formula before being included in the wireless power data set for subsequent device pairing and average wireless power value calculation.
[0099] It should be noted that the compensation and correction process is performed by the main gateway. Slave gateways only need to provide their own device type information, which will not increase the hardware load of the slave gateways. In addition, if all devices in the FTTR network are of the same type and the compensation coefficient is 0, the correction process can be automatically skipped without affecting the original process.
[0100] This application provides a device spacing detection method that acquires device type information and compensates and corrects wireless power data based on the device type information. By compensating and correcting based on device type information, the deviation of wireless power data caused by different device hardware characteristics can be eliminated, making the subsequent device spacing judgment based on the corrected data more accurate and reliable, and effectively avoiding misjudgment caused by data errors.
[0101] Figure 3 is a schematic diagram of a device spacing detection device according to an embodiment of this application. As shown in Figure 3, the device spacing detection device provided in this embodiment is located in an electronic device. The device spacing detection device 30 provided in this embodiment includes: an acquisition module 31, a generation module 32, a determination module 33, and a judgment module 34.
[0102] Specifically, the acquisition module 31 is used to acquire identification information and wireless power data sent by the main gateway and at least one slave gateway in the fiber-to-the-room networking. Both the main gateway and slave gateways have pre-performed wireless neighbor scanning operations, and the slave gateway sends the recorded identification information and wireless power data to the main gateway. The main gateway records the identification information and wireless power data acquired during its own scanning. The generation module 32 is used to match and form multiple device pairs based on the identification information and generate a wireless power data set corresponding to each device pair. The determination module 33 is used to determine the average wireless power value between each device pair based on the wireless power data set. The judgment module 34 is used to compare each average wireless power value with a preset power threshold, and if any average wireless power value exceeds the preset power threshold, it determines that the distance between the two devices in the device pair corresponding to any average wireless power value does not meet the requirements.
[0103] Optionally, the wireless power data set includes first wireless power data obtained by the first device scanning the second device in the device pair, and second wireless power data obtained by the second device scanning the first device. Optionally, when determining the average wireless power value between each device pair based on the wireless power data set, the determining module 33 is specifically used to: calculate the average wireless power value between the device pairs based on the first wireless power data and the second wireless power data; wherein the first device and the second device are respectively the master gateway and the slave gateway, or the first device and the second device are two slave gateways.
[0104] Optionally, the wireless neighbor scanning operation is performed on a specified frequency band, which includes at least one of a first frequency band and a second frequency band; the main gateway and the slave gateway scan other devices in the room network through the fiber optic cable under the specified frequency band, record the wireless power data of the corresponding frequency band and store it in the wireless power data set.
[0105] Optionally, when determining the average wireless power value between each pair of devices based on the wireless power data set, the determining module 33 is specifically used to: when the specified frequency band includes both the first frequency band and the second frequency band, calculate the average wireless power value between the pair of devices by weighted summation based on the wireless power data of the first frequency band and the wireless power data of the second frequency band and the preset weighting coefficient.
[0106] Optionally, the identification information includes a basic service set identifier used to uniquely identify the device, and the service set identifier is consistent for all devices within the fiber-to-the-room network.
[0107] Optionally, after determining that the spacing between two devices in a device pair corresponding to any average wireless power value does not meet the requirements, the generation module 32 is further configured to: generate a prompt message indicating that the spacing is too close, which is used to trigger the adjustment of the wireless transmission power of the device whose spacing does not meet the requirements, or to notify maintenance personnel to optimize the device installation position.
[0108] Optionally, the device spacing detection apparatus provided in this application embodiment further includes a correction module. Optionally, after acquiring the identification information and wireless power data sent by the main gateway and at least one slave gateway, the correction module is used to: acquire device type information of the main gateway and slave gateway; and compensate and correct the wireless power data according to the device type information.
[0109] Figure 4 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. As shown in Figure 4, the electronic device 40 provided in this embodiment includes: a processor 41 and a memory 42 that is communicatively connected to the processor 41.
[0110] The memory 42 stores computer execution instructions; the processor 41 executes the computer execution instructions stored in the memory 42 to implement the device spacing detection method provided in any of the above embodiments.
[0111] The program may include program code, which includes computer-executable instructions. Memory 42 may include high-speed RAM, and may also include non-volatile memory, such as at least one disk storage device.
[0112] In this embodiment, the memory 42 and the processor 41 are connected via a bus. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, Figure 4 uses only a single straight line, but this does not imply that there is only one bus or one type of bus.
[0113] This application also provides a computer-readable storage medium, which stores computer-executable instructions. When executed by a processor, the computer-executable instructions are used to implement a device spacing detection method provided in any of the above embodiments.
[0114] This application also provides a computer program product, including a computer program that, when executed by a processor, implements a device spacing detection method provided in any of the above embodiments.
[0115] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to implement the solution of this embodiment according to actual needs.
[0116] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The unit composed of the above modules can be implemented in hardware or in the form of hardware plus software functional units.
[0117] The integrated modules described above, implemented as software functional modules, can be stored in a computer-readable storage medium. These software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods of the various embodiments of this application.
[0118] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly manifested as execution by a hardware processor, or execution by a combination of hardware and software modules within the processor.
[0119] The memory may include high-speed RAM, and may also include non-volatile storage (NVM), such as at least one disk storage device, and may also be a USB flash drive, external hard drive, read-only memory, disk or optical disc, etc.
[0120] The aforementioned storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0121] An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Alternatively, the storage medium can be an integral part of the processor. The processor and storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and storage medium can exist as discrete components in an electronic control unit or main control device.
[0122] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0123] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A method for detecting equipment spacing, characterized in that, include: In a fiber-to-the-room (FTTH) network, identification information and wireless power data sent by a primary gateway and at least one secondary gateway are acquired. Both the primary and secondary gateways have pre-performed wireless neighbor scanning operations, and the secondary gateway sends its recorded identification information and wireless power data to the primary gateway. The primary gateway records the identification information and wireless power data acquired during its own scanning. Multiple device pairs are formed based on the identification information, and a wireless power data set corresponding to each device pair is generated. Based on the wireless power data set, the average wireless power value between each device pair is determined. Each average wireless power value is compared with a preset power threshold, and if any average wireless power value exceeds the preset power threshold, it is determined that the distance between the two devices in the device pair corresponding to any average wireless power value does not meet the requirements.
2. The method according to claim 1, characterized in that, The wireless power data set includes first wireless power data obtained by the first device scanning the second device in the device pair, and second wireless power data obtained by the second device scanning the first device; Determining the average wireless power value between each pair of devices based on the wireless power data set includes: calculating the average wireless power value between the pair of devices based on the first wireless power data and the second wireless power data; wherein the first device and the second device are the master gateway and the slave gateway, respectively, or the first device and the second device are two slave gateways.
3. The method according to claim 1, characterized in that, The wireless neighbor scanning operation is performed on a specified frequency band, which includes at least one of a first frequency band and a second frequency band. The main gateway and the slave gateway scan the fiber optic cable to other devices in the room network under the specified frequency band, record the wireless power data of the corresponding frequency band, and store it in the wireless power data set.
4. The method according to claim 3, characterized in that, Determining the average wireless power value between each pair of devices based on the wireless power data set includes: when the specified frequency band includes both the first frequency band and the second frequency band, calculating the average wireless power value between the pair of devices by weighted summation based on the wireless power data of the first frequency band and the wireless power data of the second frequency band and a preset weighting coefficient.
5. The method according to claim 1, characterized in that, The identification information includes a basic service set identifier used to uniquely identify the device, and the service set identifiers of all devices in the fiber-to-the-room network are consistent.
6. The method according to any one of claims 1-5, characterized in that, After determining that the distance between the two devices in the device pair corresponding to any of the average wireless power values does not meet the requirements, the method further includes: generating a prompt message indicating that the distance is too close, wherein the prompt message is used to trigger the adjustment of the wireless transmission power of the device whose distance does not meet the requirements, or to notify maintenance personnel to optimize the device installation position.
7. The method according to any one of claims 1-5, characterized in that, After obtaining the identification information and wireless power data sent by the main gateway and at least one slave gateway, the method further includes: obtaining the device type information of the main gateway and the slave gateway; and compensating and correcting the wireless power data according to the device type information.
8. A device for detecting equipment spacing, characterized in that, include: The acquisition module is used to acquire identification information and wireless power data sent by the main gateway and at least one slave gateway in a fiber-to-the-room network. The main gateway and the slave gateway have both performed wireless neighbor scanning operations in advance, and the slave gateway sends the recorded identification information and wireless power data to the main gateway. The main gateway records the identification information and wireless power data acquired by itself during scanning. A generation module is used to match and form multiple device pairs according to the identification information, and generate a wireless power data set corresponding to each device pair; a determination module is used to determine the average wireless power value between each device pair based on the wireless power data set; a judgment module is used to compare each average wireless power value with a preset power threshold, and if any average wireless power value exceeds the preset power threshold, determine that the spacing between the two devices in the device pair corresponding to any average wireless power value does not meet the requirements.
9. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-7.
11. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method of any one of claims 1-7.