A cross-device wireless peripheral frequency point allocation method, device, equipment and medium

By allocating non-overlapping frequency groups to wireless peripheral devices within a local area network, the signal interference problem between devices of the same brand or manufacturer is solved, achieving efficient anti-interference avoidance and improving frequency hopping efficiency.

CN120980694BActive Publication Date: 2026-02-03SHENZHEN RAPOO TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511517785.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-10-23
Publication Date
2026-02-03
Estimated Expiration
2045-10-23

AI Technical Summary

Technical Problem

In scenarios with multiple terminal devices, especially when wireless peripheral devices of the same brand or manufacturer are deployed, interference can easily occur within the communication frequency range after frequency hopping, affecting frequency hopping efficiency.

Method used

By acquiring neighboring terminal devices in the local area network where the terminal device is located, the interfering peripheral devices are identified. Based on the preset frequency point information and the first frequency point group, a non-overlapping second frequency point group is assigned to the peripheral devices to ensure that the frequency point groups of the peripheral devices in the local area network do not overlap, thus avoiding multiple devices from jumping to the same frequency point.

Benefits of technology

It achieves efficient anti-interference avoidance among multiple peripheral devices within the same local area network, ensuring that there is no signal interference when peripheral devices hop frequencies, thus improving frequency hopping efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120980694B_ABST
    Figure CN120980694B_ABST
Patent Text Reader

Abstract

The application discloses a wireless peripheral frequency point allocation method and device across devices, equipment and medium, the method comprises when terminal equipment accesses peripheral equipment, obtains the neighbor terminal equipment in the local area network where the terminal equipment is located;According to the neighbor terminal equipment determines the interference peripheral equipment;Obtain the preset frequency point information of the peripheral equipment and the first frequency point group used by the interference peripheral equipment;According to the preset frequency point information and the first frequency point group, the second frequency point group is allocated for the peripheral equipment.The application detects the frequency point grouping condition of the local area network where the terminal accessed by the peripheral equipment is located in real time, ensures that the frequency point grouping of the peripheral equipment and other peripheral equipment in the corresponding local area network does not appear overlapping frequency point, especially for the same manufacturer or the same brand of peripheral equipment, guarantees that the peripheral equipment is not interfered and implements frequency hopping, so that two or more peripheral equipment do not jump to the same frequency point, realizes the efficient anti-interference avoidance between the peripheral equipment in the local area network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer peripheral technology, and in particular to a method, apparatus, device and medium for cross-device wireless peripheral frequency allocation. Background Technology

[0002] With the widespread adoption of terminal devices and wireless communication technologies, wireless peripherals have become commonplace for computer users; for example, wireless mice are used as input devices. During use, wireless peripherals select a frequency from their supported signal frequencies for sequential communication. In practical applications, interference can occur due to multiple connected wireless peripherals within the communication frequency range (e.g., different peripherals simultaneously occupying the same frequency, or interference from other peripherals). In such cases, the affected peripheral will switch frequencies via frequency hopping to avoid communication interference.

[0003] However, in scenarios involving peripheral devices (such as schools and internet cafes), where multiple terminal devices are deployed, especially when multiple terminal devices are configured with peripheral devices of the same brand or manufacturer, interference will inevitably occur within the communication frequency range after the peripheral devices switch frequencies via frequency hopping, affecting the frequency hopping efficiency.

[0004] Therefore, existing technologies still need to be improved and enhanced. Summary of the Invention

[0005] The technical problem to be solved by this application is to provide a method, apparatus, device and medium for cross-device wireless peripheral frequency allocation, which addresses the shortcomings of the prior art.

[0006] To address the aforementioned technical problems, the first aspect of this application provides a method for cross-device wireless peripheral frequency allocation, wherein the method specifically includes:

[0007] When a terminal device connects to a peripheral device, it obtains neighboring terminal devices in the local area network where the terminal device is located, wherein the local area network includes at least two terminal devices.

[0008] The interfering peripheral device corresponding to the peripheral device is determined based on the neighboring terminal device;

[0009] Obtain the preset frequency information of the peripheral device and the first frequency grouping used by the interfering peripheral device;

[0010] A second frequency group is allocated to the peripheral device based on the preset frequency point information and the first frequency point group, wherein the second frequency point group does not overlap with the first frequency point group;

[0011] The second frequency group is configured in the peripheral device such that the peripheral device uses a second frequency point in the second frequency group as a communication frequency point.

[0012] The cross-device wireless peripheral frequency allocation method, wherein obtaining neighboring terminal devices in the local area network where the terminal device is located specifically includes:

[0013] Obtain the first device location of the terminal device and the second device locations of other terminal devices in the local area network where the terminal device is located, excluding the terminal device itself;

[0014] Calculate the device distance between the terminal device and other terminal devices based on the first device location and the second setting location;

[0015] Based on the distance between the devices, neighboring terminal devices are selected for the terminal device from among other terminal devices.

[0016] The cross-device wireless peripheral frequency allocation method, wherein determining the interfering peripheral device corresponding to the peripheral device based on the neighboring terminal device specifically includes:

[0017] Obtain the device information of the peripheral device, wherein the device information includes one or more information items such as device type, device manufacturer, and device brand;

[0018] Based on the device information, an interfering peripheral device corresponding to the peripheral device is selected from the connected peripheral devices of the neighboring terminal, wherein at least one information item of the device information of the interfering peripheral device matches the device information of the peripheral device.

[0019] The cross-device wireless peripheral frequency allocation method, wherein determining the interfering peripheral device corresponding to the peripheral device based on the neighboring terminal device specifically includes:

[0020] Read all connected peripheral devices of the neighboring terminal device;

[0021] All connected peripheral devices read are designated as interference peripheral devices corresponding to the peripheral devices.

[0022] The cross-device wireless peripheral frequency allocation method, wherein, after determining the interfering peripheral device corresponding to the peripheral device based on the neighboring terminal device, the method further includes:

[0023] The system acquires the connected peripheral devices in the terminal device other than the peripheral device itself, and uses these other connected peripheral devices as interfering peripheral devices of the peripheral device to update the interfering peripheral device corresponding to the peripheral device.

[0024] The cross-device wireless peripheral frequency point allocation method, wherein the frequency point information includes several preset frequency point groups; the step of allocating a second frequency point group to the peripheral device based on the preset frequency point information and the first frequency point group specifically includes:

[0025] Select a candidate frequency point group from the plurality of preset frequency point groups that does not overlap with the first frequency point group;

[0026] When a candidate frequency point group is selected, one group of candidate frequency point groups from the selected candidate frequency point group is used as the second frequency point group of the peripheral device.

[0027] The cross-device wireless peripheral frequency point allocation method further includes, in part, allocating a second frequency point group to the peripheral device based on the preset frequency point information and the first frequency point group:

[0028] When no candidate frequency group is selected, a new frequency group is created for the peripheral device with the constraint that it does not overlap with the first frequency group;

[0029] The newly created frequency point group is written into the peripheral device to allocate a second frequency point group to the peripheral device.

[0030] The cross-device wireless peripheral frequency point allocation method, wherein the step of using a group of candidate frequency point groups as the second frequency point group of the peripheral device includes:

[0031] Obtain the interval frequency band between each preset frequency point in the selected candidate frequency point group and each first frequency point in the first frequency point group, so as to determine the interval frequency band between the candidate frequency point group and the first frequency point group;

[0032] Based on the frequency band interval, a second frequency group is selected for the peripheral devices from the selected candidate frequency group.

[0033] The cross-device wireless peripheral frequency point allocation method, wherein the frequency point information includes multiple preset frequency points, and the step of allocating a second frequency point group to the peripheral device according to the preset frequency point information and the first frequency point group specifically includes:

[0034] Select candidate preset frequency points that are not included in the first frequency point group from multiple preset frequency points;

[0035] A second frequency group is constructed for the peripheral device based on the selected candidate preset frequency points.

[0036] The cross-device wireless peripheral frequency allocation method, wherein the step of constructing a second frequency group for the peripheral device based on the selected candidate preset frequency points specifically includes:

[0037] Verify whether the selected candidate preset frequency points meet the preset grouping rules;

[0038] If the verification passes, a second frequency group is constructed based on the preset grouping rules and the selected candidate preset frequency points;

[0039] If the verification fails, a new frequency group is created for the peripheral device with the constraint that it does not overlap with the first frequency group, and the new frequency group is written into the peripheral device to construct a second frequency group for the peripheral device.

[0040] The cross-device wireless peripheral frequency allocation method further includes:

[0041] Continuously monitor the frequency usage of connected peripheral devices of terminal devices within the local area network;

[0042] Preset interference frequencies are marked based on the frequency usage, indicating frequencies where the number of times interference occurs reaches a preset threshold.

[0043] The cross-device wireless peripheral frequency point allocation method, wherein, before configuring the second frequency point group in the peripheral device so that the peripheral device uses a second frequency point in the second frequency point group as a communication frequency point, the method further includes:

[0044] Detect whether the second frequency group contains a preset interference frequency;

[0045] If the second frequency group contains a preset interference frequency, then the allocation of the second frequency group to the peripheral device is re-executed based on the preset frequency information and the first frequency group, so as to reallocate the second frequency group to the peripheral device.

[0046] The cross-device wireless peripheral frequency point allocation method, wherein after configuring the second frequency point group in the peripheral device so that the peripheral device uses a second frequency point in the second frequency point group as a communication frequency point, the method further includes:

[0047] When interference occurs in the peripheral device, the communication frequency used by the peripheral device is read;

[0048] Calculate the frequency band spacing between the communication frequency point and other frequency points in the frequency point group it uses;

[0049] Based on the frequency band interval, a backup frequency point is selected from other frequency points, and the peripheral device is controlled to hop to the backup frequency point.

[0050] The cross-device wireless peripheral frequency allocation method, wherein selecting a spare frequency point from other frequency points according to the frequency band interval and controlling the peripheral device to hop to the spare frequency point specifically includes:

[0051] Select candidate frequency points from other frequency points whose frequency band spacing is greater than the preset frequency band spacing threshold;

[0052] Select backup frequencies from the candidate frequencies that have not been used by peripheral devices as communication frequencies;

[0053] If a backup frequency is selected, the peripheral device will be controlled to hop to the backup frequency.

[0054] If no backup frequency point is selected, the process of allocating a second frequency point group to the peripheral device based on the preset frequency point information and the first frequency point group is repeated to reallocate the second frequency point group to the peripheral device.

[0055] A second aspect of this application provides a cross-device wireless peripheral frequency allocation device, wherein the cross-device wireless peripheral frequency allocation device specifically includes:

[0056] The first acquisition module is used to acquire neighboring terminal devices in the local area network where the terminal device is located when the terminal device connects to the peripheral device, wherein the local area network includes at least two terminal devices.

[0057] The determination module is used to determine the interfering peripheral device corresponding to the peripheral device based on the neighboring terminal device;

[0058] The second acquisition module is used to acquire the preset frequency point information of the peripheral device and the first frequency point grouping used by the interfering peripheral device;

[0059] The allocation module is used to allocate a second frequency group to the peripheral device according to the preset frequency point information and the first frequency point group, wherein the second frequency point group does not overlap with the first frequency point group;

[0060] The configuration module is used to configure the second frequency point group in the peripheral device, so that the peripheral device uses a second frequency point in the second frequency point group as a communication frequency point.

[0061] A third aspect of this application provides a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the steps in the cross-device wireless peripheral frequency allocation method as described above.

[0062] A fourth aspect of this application provides a terminal device, which includes: a processor and a memory;

[0063] The memory stores a computer-readable program that can be executed by the processor;

[0064] When the processor executes the computer-readable program, it implements the steps in any of the above-described cross-device wireless peripheral frequency allocation methods.

[0065] Beneficial Effects: Compared with the prior art, this application provides a method, apparatus, device, and medium for cross-device wireless peripheral frequency allocation. The method includes: when a terminal device accesses a peripheral device, obtaining neighboring terminal devices in the local area network where the terminal device is located; determining the interfering peripheral device corresponding to the peripheral device based on the neighboring terminal devices; obtaining preset frequency point information of the peripheral device and a first frequency point group used by the interfering peripheral device; allocating a second frequency point group to the peripheral device based on the preset frequency point information and the first frequency point group; configuring the second frequency point group to the peripheral device so that the peripheral device uses a second frequency point in the second frequency point group as a communication frequency point. This application monitors the frequency grouping of the local area network (LAN) where the peripheral device is connected in real time and performs unified frequency grouping management. This ensures that the frequency grouping of the peripheral device does not overlap with that of other peripheral devices in the LAN. In particular, for peripheral devices from the same manufacturer or brand, it ensures that when the peripheral device is interfered with and frequency hopping is implemented, two or more peripheral devices will not jump to the same frequency. This achieves efficient anti-interference avoidance among multiple peripheral devices in the same LAN. Attached Figure Description

[0066] To more clearly illustrate the technical solutions in the embodiments of this application, 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 this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0067] Figure 1 A flowchart illustrating a cross-device wireless peripheral frequency allocation method provided in an embodiment of this application.

[0068] Figure 2 A schematic diagram of a cross-device wireless peripheral frequency allocation device provided in an embodiment of this application.

[0069] Figure 3 A schematic block diagram of the terminal device provided in the embodiments of this application. Detailed Implementation

[0070] This application provides a method, apparatus, device, and medium for cross-device wireless peripheral frequency allocation. To make the objectives, technical solutions, and effects of this application clearer and more explicit, the following detailed description is provided with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only for explaining this application and are not intended to limit this application.

[0071] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the term “comprising” as used in this application means the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we say an element is “connected” or “coupled” to another element, it can be directly connected or coupled to the other element, or there may be intermediate elements. Furthermore, “connected” or “coupled” as used herein can include wireless connections or wireless coupling. The term “and / or” as used herein includes all or any units and all combinations of one or more associated listed items.

[0072] It will be understood by those skilled in the art that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have the same meaning as in the context of the prior art, and should not be interpreted in an idealized or overly formal sense unless specifically defined as herein.

[0073] It should be understood that the sequence number and size of each step in this embodiment do not imply the order of execution. The execution order of each process is determined by its function and internal logic, and should not constitute any limitation on the implementation process of this application embodiment.

[0074] Research has shown that with the widespread adoption of terminal devices and wireless communication technology, wireless peripherals have become commonplace for computer users; for example, wireless mice are used as input devices. During the use of wireless peripherals, each device selects a frequency from its supported signal frequencies for sequential communication. In practical applications, interference can occur within the communication frequency range due to multiple connected wireless peripherals (e.g., different peripherals simultaneously occupying the same frequency, or interference from other peripherals). For example, the 2.4GHz band is a commonly used signal band in wireless communication (its core frequency range is approximately 2.4GHz to 2.4835GHz). This band contains over 80 frequencies—from 2.4GHz to 2.4835GHz—each corresponding to a specific signal frequency. Many peripheral devices use frequencies within this 2.4GHz band for signal communication, such as Wi-Fi, Bluetooth, and microwave ovens. Due to the limited number of frequency points in the 2.4 GHz band and the increasing number of peripheral devices using the 2.4 GHz band, interference occurs within the communication frequency range used by peripheral devices, leading to signal interference.

[0075] Furthermore, in various work and life scenarios (such as schools, internet cafes, and offices), multiple terminal devices are often deployed, each connecting to various peripheral devices. This results in a large number of wireless peripheral devices crowding the same environment. Moreover, these peripheral devices often contain many of the same brand and manufacturer, as users typically purchase peripherals in bulk. Peripherals from the same brand and manufacturer often have the same default frequency range. Therefore, when these peripheral devices hop frequencies within their default range, interference will inevitably occur within the communication frequency ranges after the frequency hopping, leading to signal conflicts and making it difficult to quickly resolve the interference problem.

[0076] To address the aforementioned issues, in this embodiment, when a terminal device connects to a peripheral device, the system acquires neighboring terminal devices in the local area network (LAN) where the terminal device is located; determines the interfering peripheral device corresponding to the peripheral device based on the neighboring terminal devices; acquires the preset frequency point information of the peripheral device and the first frequency point group used by the interfering peripheral device; allocates a second frequency point group to the peripheral device based on the preset frequency point information and the first frequency point group; and configures the second frequency point group on the peripheral device so that the peripheral device uses a second frequency point from the second frequency point group as its communication frequency. This application monitors the frequency point grouping of the LAN where the peripheral device is connected in real time and performs unified frequency point grouping management, thereby ensuring that the frequency point groups of the peripheral device and other peripheral devices in the corresponding LAN do not overlap. Especially for peripheral devices from the same manufacturer or brand, this ensures that when a peripheral device is interfered with and performs frequency hopping, two or more peripheral devices will not hop to the same frequency point, achieving efficient anti-interference avoidance among multiple peripheral devices in the same LAN.

[0077] The application content will be further explained below with reference to the accompanying drawings and the description of the embodiments.

[0078] This embodiment provides a method for allocating wireless peripheral frequencies across devices, such as... Figure 1 As shown, the cross-device wireless peripheral frequency allocation method specifically includes:

[0079] S10. When a terminal device connects to a peripheral device, it obtains neighboring terminal devices in the local area network where the terminal device is located, wherein the local area network includes at least two terminal devices.

[0080] Specifically, peripheral devices connect to terminal devices (such as PCs, tablets, etc.) wirelessly. For example, peripheral devices connect to terminal devices through communication protocols such as 2.4G, 5.8G, SUB1G (frequency bands less than 1G, such as 433 band, 868 band), and UWB technology.

[0081] A local area network (LAN) can be constructed using networking communication methods, and includes multiple terminal devices (e.g., 20, 30, etc.). The terminal devices within the same LAN can be of the same brand or manufacturer, or they can be from different brands or manufacturers. Each terminal device within the LAN connects to peripheral devices wirelessly, or some terminal devices connect wirelessly while others connect via wired connections.

[0082] Based on this, when acquiring neighboring terminal devices in the local area network (LAN) of a terminal device, one can acquire all other terminal devices besides the current terminal device and treat them as the current terminal device's neighbors; or, one can acquire other terminal devices in the LAN that have connected to peripheral devices besides the current terminal device and treat them as the current terminal device's neighbors, etc. However, in practical applications, due to the different geographical areas corresponding to LANs, the distances between different terminal devices within the same LAN vary, and the possibility of signal interference between terminal devices at different distances is low. Therefore, when acquiring neighboring terminal devices, in addition to constraints such as being located in the same LAN, or being located in the same LAN and having connected to peripheral devices, constraints can also be based on being located in the same LAN and distance, or being located in the same LAN, distance, and having connected to peripheral devices, etc.

[0083] In one embodiment, obtaining neighboring terminal devices in the local area network where the terminal device is located specifically includes:

[0084] Obtain the first device location of the terminal device and the second device locations of other terminal devices in the local area network where the terminal device is located, excluding the terminal device itself;

[0085] Calculate the device distance between the terminal device and other terminal devices based on the first device location and the second setting location;

[0086] Based on the distance between the devices, neighboring terminal devices are selected for the terminal device from among other terminal devices.

[0087] Specifically, the first device location is the location information of the terminal device, and the second device location is the location information of other terminal devices within the local area network (LAN). Both the first and second device locations can be stored on the corresponding server within the LAN. In other words, when a terminal device connects to the LAN, the LAN obtains the location information of the terminal device and the device data of the peripheral devices connected to the terminal device. The device data includes the frequency bands used by the peripheral devices and other device information.

[0088] After obtaining the first and second device locations, the device distances between the terminal device and other terminal devices are calculated based on these locations. These device distances can be Euclidean distances, etc. Then, neighboring terminal devices can be selected from among the other terminal devices based on these device distances. For example, the device distances can be compared with a preset distance threshold to select other terminal devices whose distances are greater than the preset threshold as neighboring terminal devices; alternatively, a preset number of other terminal devices can be selected as neighboring terminal devices in descending order of device distance.

[0089] It should be noted that after selecting neighboring terminal devices for the terminal device from other terminal devices based on the device distance, the selected neighboring terminal devices are detected as invalid neighboring terminal devices that access peripheral devices wirelessly, and the invalid neighboring terminal devices are filtered out from the selected neighboring terminal devices. This is to obtain neighboring terminal devices that are more likely to interfere with the peripheral devices accessed by the terminal device, and can reduce the number of first frequency point groups that need to be considered when allocating second frequency point groups for peripheral devices, thereby reducing the complexity of second frequency point groups.

[0090] S20. Determine the interfering peripheral device corresponding to the peripheral device based on the neighboring terminal device.

[0091] Specifically, interfering peripheral devices are peripheral devices that may cause signal interference with other peripheral devices. Interfering peripheral devices can include all connected peripheral devices of a neighboring terminal device, or some connected peripheral devices of a neighboring terminal device. That is, after obtaining information about a neighboring terminal device, all connected peripheral devices that the neighboring terminal device has joined wirelessly are directly used as interfering peripheral devices for that peripheral device; or, a portion of the connected peripheral devices that the neighboring terminal device has joined wirelessly are selected as interfering peripheral devices for that peripheral device.

[0092] In one embodiment, determining the interfering peripheral device corresponding to the peripheral device based on the neighboring terminal device specifically includes:

[0093] Read all connected peripheral devices of the neighboring terminal device;

[0094] All connected peripheral devices read are designated as interference peripheral devices corresponding to the peripheral devices.

[0095] Specifically, "connected peripheral devices" refers to devices that have connected to neighboring terminal devices wirelessly, and the connection time of the connected peripheral device to the neighboring terminal device is earlier than the connection time of the peripheral device to the terminal device. The list of connected peripheral devices can be read through the local area network (LAN) driver, meaning it can read all the connected peripheral devices that the neighboring terminal device has already connected to.

[0096] In another embodiment, determining the interfering peripheral device corresponding to the peripheral device based on the neighboring terminal device specifically includes:

[0097] Obtain the device information of the peripheral device;

[0098] Based on the device information, an interfering peripheral device corresponding to the peripheral device is selected from the connected peripheral devices of the neighboring terminal, wherein at least one information item of the device information of the interfering peripheral device matches the device information of the peripheral device.

[0099] Specifically, device information can be obtained through a local area network (LAN) driver. This information may include one or more items such as device type, manufacturer, and brand. For example, the device information may include device type, manufacturer, and brand information. Of course, in practical applications, other information items can be added to the device information based on implementation requirements, such as the device's operating frequency or the signal frequency bands it supports.

[0100] It should be noted that the information items included in the device data of different peripheral devices may be different. For example, the device data of some peripheral devices includes device type information, while the device data of others includes device manufacturer and device type, etc.

[0101] Selecting interfering peripheral devices based on device information involves comparing each information item in the device information of a peripheral device with each information item in the device information of connected peripheral devices on a neighboring terminal. If at least one information item matches the device information of the connected peripheral device, the connected peripheral device is determined to be an interfering peripheral device. Since the information items included in the device information of different peripheral devices may differ, before selecting the corresponding interfering peripheral device from the connected peripheral devices on the neighboring terminal based on the device information, the method further includes: checking whether the device information of the connected peripheral devices on the neighboring terminal includes all information items from the device information of the peripheral device; if not, the connected peripheral device is considered an interfering peripheral device; if it is, the step of selecting the corresponding interfering peripheral device from the connected peripheral devices on the neighboring terminal based on the device information is performed. This ensures the accuracy and comprehensiveness of the selection of interfering peripheral devices.

[0102] Of course, in practical applications, you can also check whether the device information of the connected peripheral devices of the neighboring terminal includes at least one information item in the device information of the peripheral device.

[0103] After selecting an interfering peripheral device from the connected peripheral devices of a neighboring terminal device, a second frequency group can be assigned to that peripheral device based on the selected interfering peripheral device. However, in practical applications, interference can occur not only between peripheral devices connected to terminal devices in a local area network, but also between multiple peripheral devices connected to the same terminal device. Therefore, in determining the interfering peripheral device corresponding to the peripheral device based on the neighboring terminal device, the method further includes:

[0104] The system acquires the connected peripheral devices in the terminal device other than the peripheral device itself, and uses these other connected peripheral devices as interfering peripheral devices of the peripheral device to update the interfering peripheral device corresponding to the peripheral device.

[0105] Specifically, other connected peripheral devices are peripheral devices that are connected to the same terminal device as this peripheral device, and these other connected peripheral devices have already been allocated frequency point groups, meaning their frequency point group configuration time is earlier than that of this peripheral device. For example, when connecting peripheral devices, peripheral devices A, B, and C are also connected to the terminal device to which this peripheral device is connected, and peripheral devices A, B, and C have all been configured with frequency point groups, then peripheral devices A, B, and C are the other connected peripheral devices corresponding to this peripheral device.

[0106] S30. Obtain the preset frequency information of the peripheral device and the first frequency grouping used by the interfering peripheral device.

[0107] Specifically, the preset frequency point information can be obtained through the LAN driver, that is, the LAN driver reads the preset frequency point information configured in the peripheral device. This preset frequency point information is pre-configured by the peripheral device manufacturer before the peripheral device leaves the factory, and is used as the preferred communication frequency point for the peripheral device. In one embodiment, the preset frequency point information can be a number of preset frequency point groups, each group including a preset number of preset frequency points. The preset frequency points in each group are different from each other and have a certain interval. That is, for any two preset frequency points in the preset frequency point group, the interval frequency band length between the two preset frequency points is greater than a preset frequency band length threshold to ensure that there is no interference between the preset frequency points in the preset frequency point group. In addition, the preset frequency point groups do not overlap, that is, for any two groups of preset frequency point groups, the preset frequency points in the two groups are different from each other. The configuration of several preset frequency point groups can be as follows: divide the available frequency points in the target frequency band used by the peripheral device according to a preset number to obtain several preset frequency point groups containing different available frequency points, and finally select several preset frequency point groups from the preset frequency point groups as the preset frequency point groups of the peripheral device.

[0108] For example, if the target frequency band is 2.4 GHz and the preset number is 4, then the 80 available frequency points in the 2.4 GHz band are divided into 20 preset frequency point groups. Four preset frequency point groups are then selected from these 20 groups and configured in peripheral devices. For example, the four preset frequency point groups could be {2.406, 2.426, 2.446, 2.476}, {2.407, 2.427, 2.447, 2.477}, {2.408, 2.428, 2.448, 2.478}, and {2.409, 2.429, 2.449, 2.479}. Of course, in practical applications, the preset number can be determined according to the actual situation. For example, if the preset number is 3, then the 80 available frequency points in the 2.4 GHz band are divided into 26 preset frequency point groups.

[0109] In another embodiment, the preset frequency point information can be multiple preset frequency points, each of which is different from the others, and there are multiple pairs of preset frequency points. The interval frequency band length between the two preset frequency points in each pair is greater than a preset frequency band length threshold. For example, the preset frequency point information is 2.406, 2.407, 2.408, 2.409, 2.426, 2.427, 2.428, 2.429, 2.446, 2.447, 2.448, 2.449, 2.476, 2.477, 2.478, and 2.479. By configuring multiple preset frequency points for peripheral devices, this application can avoid the same default frequency point grouping for the same peripheral device or peripheral devices from the same manufacturer, thereby reducing mutual interference caused by identical frequency points.

[0110] Furthermore, when acquiring the first frequency group, the first frequency group of all interfering peripheral devices is acquired. However, in practical applications, multiple frequency bands can be used for wireless connections, such as the 2.4GHz band, the 433GHz band, the 5.8GHz band, and the frequency range of UWB technology from 3.1GHz to 10.6GHz. Terminal devices accessing peripheral devices can support several of these frequency bands. This allows peripheral devices supporting different frequency bands to connect to the terminal device. While peripheral devices using different frequency bands generally do not cause signal interference when communicating wirelessly with the terminal device, signal interference is more common between peripheral devices communicating on the same frequency band.

[0111] Based on this, in one embodiment, after obtaining the first frequency grouping used by the interfering peripheral device, the method further includes:

[0112] Read the target frequency band corresponding to the preset frequency point information of the peripheral device;

[0113] Obtain the first frequency group for each interfering peripheral device;

[0114] Filter the first frequency point groups that belong to the target frequency point from all the acquired first frequency point groups.

[0115] Specifically, the target frequency band is the signal frequency band where the preset frequency point information is located. For example, if all preset frequency points in the preset frequency point information belong to 2.4 GHz, then the target frequency band is 2.4 GHz. If some preset frequency points in the preset frequency point information belong to 2.4 GHz and some belong to 5.8 GHz, then the target frequency band includes both 2.4 GHz and 5.8 GHz. The target frequency point and the first frequency point grouping of other peripheral devices can be obtained by driving the connected receiver to perform frequency band detection on the peripheral devices.

[0116] The first frequency group that interferes with the peripheral device may or may not belong to the target frequency band. When it belongs to the target frequency band, the first frequency group should be retained; otherwise, when it does not belong to the target frequency band, the first frequency group should be deleted.

[0117] It should be noted that in practical applications, the interfering peripheral devices can be further filtered based on the target frequency, and then the first frequency group of the filtered interfering peripheral devices can be obtained. Specifically, after obtaining the target frequency band, the communication frequency band used by the interfering peripheral devices can be detected first, and then the target frequency band can be compared with the communication frequency band of each interfering peripheral device to select the interfering peripheral devices whose communication frequency band is the same as the target frequency band. The frequency group configured for each selected interfering peripheral device is then read to obtain the first frequency group.

[0118] S40. Allocate a second frequency group to the peripheral device according to the preset frequency information and the first frequency group, wherein the second frequency group does not overlap with the first frequency group.

[0119] Specifically, the second frequency group is constructed with the first frequency group as a constraint, so that the second frequency group does not overlap with the first frequency group. Here, non-overlap means that the frequency points in the second frequency group are different from the frequency points in the first frequency group. Furthermore, when there are multiple first frequency groups, the second frequency group does not overlap with any of the multiple first frequency groups.

[0120] The preset frequency information can be grouped into several preset frequency points or include multiple preset frequency points. The following describes the construction process of the second frequency point group using examples of preset frequency information being grouped into several preset frequency points and preset frequency information being multiple preset frequency points.

[0121] Example 1: The preset frequency information is grouped into several preset frequency points.

[0122] The step of allocating a second frequency group to the peripheral device based on the preset frequency information and the first frequency group specifically includes:

[0123] Select a candidate frequency point group from the plurality of preset frequency point groups that does not overlap with the first frequency point group;

[0124] When a candidate frequency point group is selected, one group of candidate frequency point groups from the selected candidate frequency point group is used as the second frequency point group of the peripheral device.

[0125] Specifically, the selection of non-overlapping candidate frequency point groups can be achieved by comparing the preset frequency points in the preset frequency point group with the first frequency points in the first frequency point group one by one, to select candidate frequency point groups from the preset frequency point group that are not included in the first frequency point group, thereby maximizing frequency hopping efficiency. Then, one set of candidate frequency point groups from the selected candidate frequency point groups is used as the second frequency point group of the peripheral device to ensure that the second frequency point group does not overlap with the first frequency point group. That is, a set of candidate frequency point groups is selected from the selected candidate frequency point groups as the second frequency point group of the peripheral device. When selecting a set of candidate frequency point groups from the selected candidate frequency point groups, a random selection method can be used, that is, randomly selecting a set of candidate frequency point groups from the selected candidate frequency point groups as the second frequency point group of the peripheral device. In this way, the selectable frequency points in each selected candidate frequency point group are different from the selectable frequency points in the first frequency point group, thus ensuring that each set of candidate frequency point groups satisfies the constraint that the first frequency point group and the second frequency point group are different.

[0126] However, in practical applications, besides interference caused by identical frequency points, interference can also occur due to excessively small frequency band spacing. Therefore, when selecting a second frequency group for peripheral devices from the chosen candidate frequency groupings, the selection can be based on the frequency band spacing between the candidate frequency group and the first frequency group. This minimizes interference between peripheral devices using the first frequency group and those using the second frequency group, ensuring no communication interference between peripheral devices connected to different terminal devices within the same local area network, and between peripheral devices connected to the same terminal device. This achieves efficient anti-interference among multiple wireless peripheral devices within the same local area network.

[0127] For example, the step of using a group of candidate frequency points from the selected candidate frequency point groups as the second frequency point group of the peripheral device includes:

[0128] Obtain the interval frequency band between each preset frequency point in the selected candidate frequency point group and each first frequency point in the first frequency point group, so as to determine the interval frequency band between the candidate frequency point group and the first frequency point group;

[0129] Based on the frequency band interval, a second frequency group is selected for the peripheral devices from the selected candidate frequency group.

[0130] Specifically, for each preset frequency point in the candidate frequency point group, the interval frequency bands between the preset frequency point and each first frequency point in the first frequency point group are obtained to obtain the interval frequency band group corresponding to the preset frequency point. Then, the interval frequency band groups corresponding to all preset frequency points are combined to obtain the interval frequency band set, and the interval frequency band between the candidate frequency point group and the first frequency point group is determined according to the interval frequency band set. For example, the smallest interval frequency point in the interval frequency band set is used as the interval frequency band between the candidate frequency point group and the first frequency point group, or the largest interval frequency point in the interval frequency band set is used as the interval frequency band between the candidate frequency point group and the first frequency point group, or the mean of the interval frequency band set is used as the interval frequency band between the candidate frequency point group and the first frequency point group, etc.

[0131] In this application, the minimum interval frequency point of the interval frequency band is used as the interval frequency band between the candidate frequency point group and the first frequency point group. This can minimize the interval frequency points between the candidate frequency point group and the frequency points in the first frequency point group, thereby minimizing the interference between peripheral devices using the first frequency point group and peripheral devices using the second frequency point group, and ensuring that there is no communication interference between peripheral devices connected to the same local area network.

[0132] For example, the first frequency group is {2.407, 2.427, 2.447, 2.477}, and the candidate frequency groups include candidate frequency group 1, candidate frequency group 2, and candidate frequency group 3, which are {2.406, 2.426, 2.446, 2.476}, {2.408, 2.428, 2.448, 2.478}, and {2.409, 2.429, 2.449, 2.479}, respectively. Then, the frequency band interval between candidate frequency group 1 and the first frequency group is 0.001, the frequency band interval between candidate frequency group 2 and the first frequency group is 0.001, and the frequency band interval between candidate frequency group 3 and the first frequency group is 0.002.

[0133] Furthermore, after determining the interval frequency band between the candidate frequency point group and the first frequency point group, a second frequency point group is selected for the peripheral device based on the interval frequency band from the selected candidate frequency point group. Specifically, the candidate frequency point group with the largest interval frequency band can be selected as the second frequency point group for the peripheral device, or one can be randomly selected from the candidate frequency point groups whose interval frequency band length is greater than a preset length. This ensures the frequency band spacing between the second frequency point in the second frequency point group and the first frequency point in the first frequency point group, thereby avoiding signal interference caused by frequency interference between peripheral devices within the same local area network.

[0134] In one embodiment, when selecting candidate frequency groups from preset frequency groups based on a first frequency group, there may be cases where no candidate frequency group is selected. For example, if the preset frequency information includes a set of preset frequency groups that are the same as the first frequency group, then no candidate frequency group can be selected from the preset frequency groups. This can lead to frequency allocation failure or allocation to the same frequency group as an already connected peripheral device. Consequently, when frequency hopping is performed due to interference, the frequency group may be the same, resulting in repeated frequency hopping and affecting the efficiency of frequency hopping adjustment.

[0135] Based on this, the step of allocating a second frequency group to the peripheral device according to the preset frequency information and the first frequency group further includes:

[0136] When no candidate frequency group is selected, a new frequency group is created for the peripheral device with the constraint that it does not overlap with the first frequency group;

[0137] The newly created frequency point group is written into the peripheral device to allocate a second frequency point group to the peripheral device.

[0138] Specifically, the newly created frequency point group does not overlap with the first frequency point group, and the newly created frequency point group meets the requirements of the preset frequency point group, that is, each newly created frequency point in the newly created frequency point group is different from the others, and there is a certain frequency band interval between any two newly created frequency points. The newly created frequency point group can be located in the signal frequency band used by the peripheral device, or it can be located in a different signal frequency band than the signal frequency band used by the peripheral device (i.e., cross-signal frequency band hopping). Cross-signal frequency band hopping is used for peripheral devices configured with multi-RF antenna chips. The terminal device connected to the peripheral device has the processing capability of multi-signal frequency band switching. The peripheral device transmits and receives different frequency band information through its configured multi-RF antenna chip. The terminal device switches signal frequency bands according to the signal frequency band used by the peripheral device to communicate with the peripheral device. This allows the signal frequency band to which the frequency point group used by the peripheral device belongs to to be determined based on the usage of the signal frequency band and / or user needs, thereby optimizing the transmission and reception performance of the peripheral device. Furthermore, it allows the selection of signal frequency bands with a low probability of occurrence to construct the new frequency point group, better avoiding interference between peripheral devices.

[0139] For example, a peripheral device might be equipped with a multi-RF antenna chip that supports both 2.4GHz and 5.8GHz. The terminal device connected to this peripheral device might have the capability to switch between 2.4GHz and 5.8GHz. If the peripheral device uses the 2.4GHz signal band, then a new frequency band can be created within either the 2.4GHz or 5.8GHz band. In other words, when creating a new frequency band for a peripheral device, the new frequency can be selected from either the signal band it uses or from a different signal band supported by the peripheral device.

[0140] Furthermore, after the newly constructed frequency point group is obtained, it can be written into the peripheral device. For example, the driver of the terminal device updates the peripheral device through the connected receiver to write the newly constructed frequency point group into the peripheral device, and uses the written newly constructed frequency point group as the second frequency point group of the peripheral device to ensure that all peripheral devices in the same local area network use different frequency point groups, so as to avoid affecting the frequency hopping efficiency due to the same frequency point group during frequency hopping.

[0141] It should be noted that since the newly created frequency point groups are written to peripheral devices to allow them to use different frequency point groups within the same local area network, these newly created frequency point groups can be deleted from the peripheral devices when the terminal devices are no longer using them. The criteria for determining whether a terminal device is no longer using a peripheral device can include the peripheral device not being added to the network within a preset time period (e.g., 3 months, 6 months, etc.).

[0142] Example 2: The preset frequency information can be multiple preset frequency points.

[0143] The step of allocating a second frequency point group to the peripheral device based on the preset frequency point information and the first frequency point group specifically includes:

[0144] Select candidate preset frequency points that are not included in the first frequency point group from multiple preset frequency points;

[0145] A second frequency group is constructed for the peripheral device based on the selected candidate preset frequency points.

[0146] Specifically, the candidate preset frequency points are preset frequency points not included in the first frequency point group. After obtaining the candidate preset frequency points, a preset number of candidate preset frequency points can be selected from the candidate preset frequency points to construct the second frequency point group. The preset number is pre-set and is used to limit the number of frequency points in the second frequency point group.

[0147] When selecting a preset number of candidate preset frequency points from the candidate preset frequency points to construct a second frequency point group, the preset number of preset frequency points can be randomly selected, or a preset frequency point grouping rule can be obtained. Then, candidate frequency points that conform to the preset frequency point grouping rule are selected from the candidate preset frequency points to construct the second frequency point group. The preset grouping rule is the basis for selecting the second frequency point group from the candidate preset frequency points. The preset grouping rule may include: the interval frequency band between each selected second frequency point and each first frequency point in the first frequency point group is greater than a first preset interval frequency point; or, the interval frequency band between each selected second frequency point and each first frequency point in the first frequency point group is greater than the first preset interval frequency point, and the frequency point interval between each selected candidate frequency point is greater than the second preset interval frequency point; or, the frequency point interval between each selected second frequency point is greater than the second preset interval frequency point, etc. Both the first and second preset interval frequency points are preset, and their specific values ​​are not restricted here; they can be selected according to the actual situation.

[0148] Furthermore, in practical applications, the preset grouping rules can also include quantity constraints, limiting the number of second frequency points selected from the candidate preset frequency points through data constraints. For example, if the quantity constraint is 4, then 4 second frequency points will be selected from the candidate preset frequency points.

[0149] Of course, in practical applications, the candidate preset frequencies selected from multiple preset frequencies may not be able to construct a second frequency group. That is, the frequency group constructed by the selected candidate preset frequencies may not meet the preset grouping rules. For example, the number of selected candidate preset frequencies may be less than the number of frequencies required for the second frequency group (i.e., the quantity constraint is not met), or the interval frequency band between any two second frequencies may not be greater than the second preset interval frequency band. Therefore, when constructing a second frequency group for the peripheral device based on the selected candidate preset frequencies, the selected candidate preset frequencies can be verified based on the preset grouping rules. If the verification passes, a second frequency group is constructed for the peripheral device based on the selected candidate preset frequencies. If the verification fails, and no candidate preset frequencies suitable for constructing a second frequency group can be selected from the candidate preset frequencies, a new frequency group will be constructed for the peripheral device.

[0150] Based on this, the step of constructing a second frequency group for the peripheral device according to the selected candidate preset frequency points specifically includes:

[0151] Verify whether the selected candidate preset frequency points meet the preset grouping rules;

[0152] If the verification passes, a second frequency group is constructed based on the preset grouping rules and the selected candidate preset frequency points;

[0153] If the verification fails, a new frequency group is created for the peripheral device with the constraint that it does not overlap with the first frequency group, and the new frequency group is written into the peripheral device to construct a second frequency group for the peripheral device.

[0154] Specifically, when the verification passes, candidate preset frequency points are selected from the candidate preset frequency points according to the preset grouping rules to construct a second frequency point group. When the verification fails, a new frequency point group is created according to the preset grouping rules, ensuring that the new frequency point group satisfies the constraints of the first frequency point group, i.e., the new frequency point group does not overlap with the first frequency point group. The method of creating the new frequency point group and writing it to the peripheral device can be referred to the description in Example 1, and will not be repeated here.

[0155] The above describes the process of constructing a second frequency group based on at least one preset frequency group or multiple preset frequency group information.

[0156] In practical applications, peripheral devices are typically configured with default frequency point groups before leaving the factory, and these devices generally use the default frequencies within these groups as their communication bands. In other words, when configuring preset frequency point information for peripheral devices, manufacturers also configure default frequency point groups (e.g., using pairing tools). In this application scenario, when a peripheral device connects to a terminal device, it first checks whether the default frequency point group configured on the peripheral device overlaps with the first frequency point group. If they overlap, a second frequency point group is reassigned to the peripheral device; otherwise, the default frequency point group is used as the second frequency point group for the peripheral device, and no new frequency point group is reassigned.

[0157] For example, such as Figure 2 As shown, before allocating a second frequency group to the peripheral device based on the preset frequency information and the first frequency group, the method further includes:

[0158] Detect whether the peripheral device is configured with a default frequency group;

[0159] When a default frequency group is configured, check whether the default frequency group overlaps with the first frequency group.

[0160] If there is no overlap, the default frequency grouping will be used as the second frequency grouping adopted by the peripheral device.

[0161] If there is overlap or the peripheral device is not configured with a default frequency group, then the step of assigning a second frequency group to the peripheral device according to the preset frequency information and the first frequency group is executed.

[0162] Specifically, the default frequency group is the frequency group configured by the manufacturer for the peripheral device before it leaves the factory. When the peripheral device is configured with a default frequency group, the default frequency group is compared with the first frequency group to detect whether the first frequency group and the default frequency group overlap.

[0163] When there is no overlap, it indicates that there is no need to reallocate frequency point groups for the peripheral device, and the default frequency point group is used as the second frequency point group adopted by the peripheral device. When there is overlap or the peripheral device is not configured with a default frequency point group, it indicates that a second frequency point group needs to be configured for the peripheral device, and the step of allocating a second frequency point group for the peripheral device according to the preset frequency point information and the first frequency point group is executed. For example, one terminal device in a local area network is connected to peripheral device A, and another terminal device is connected to peripheral device B. Both peripheral device A and peripheral device B use 2.4G. The 80 available frequency points included in 2.4G are divided into 10 frequency point groups. Peripheral device A is configured with frequency point groups 1 to 8, and uses frequency point group 6 as the default frequency point group; peripheral device B is configured with frequency point group 6 and frequency point group 10, and uses frequency point group 6 as the default frequency point group. When peripheral device A is connected to the terminal device, peripheral device B is an interfering peripheral device corresponding to peripheral device A. Since peripheral device A has a default frequency group and the default frequency group of peripheral device A overlaps with the first frequency group of peripheral device B, a second frequency group will be reassigned to peripheral device A. For example, frequency group 8 will be reassigned as the second frequency group of peripheral device A.

[0164] S50. Configure the second frequency point group in the peripheral device so that the peripheral device uses a second frequency point in the second frequency point group as a communication frequency point.

[0165] Specifically, after configuring the second frequency group to the peripheral device, a frequency point can be selected from the second frequency group as the communication frequency point of the peripheral device to complete the frequency point allocation of the peripheral device. Configuring the second frequency group to the peripheral device can allow the LAN driver to reselect the second frequency group of the receiver. The receiver will synchronously notify its associated peripheral device to switch to this second frequency group, thus configuring the second frequency group to the peripheral device, making it the communication frequency group used for communication between the peripheral device and the terminal device. For example, the second frequency group of the peripheral device includes 2.413, 2.440, 2.460, and 2.470. After the terminal device and the peripheral device complete the pairing connection, 2.440 is used as the communication frequency point.

[0166] In one embodiment, to further avoid interference caused by multiple peripheral devices using the same or similar frequency points, this application configures different frequency point groups for each peripheral device and also utilizes historical interference information between the terminal device and the peripheral devices. This historical interference information is used as a constraint condition for the peripheral devices to select frequency point groups, thereby preventing peripheral devices from selecting communication frequencies that are prone to interference in the past. In other words, this application uses historical interference information as prior knowledge for frequency point allocation to minimize signal interference between multiple peripheral devices connected to the same local area network.

[0167] For example, before configuring the second frequency group in the peripheral device such that the peripheral device uses a second frequency point in the second frequency group as a communication frequency point, the method further includes:

[0168] Detect whether the second frequency group contains a preset interference frequency;

[0169] If the second frequency group contains a preset interference frequency, then the allocation of the second frequency group to the peripheral device is re-executed based on the preset frequency information and the first frequency group, so as to reallocate the second frequency group to the peripheral device.

[0170] Specifically, the preset interference frequency points are determined based on the frequency usage (i.e., historical information) of peripheral devices within the local area network (LAN), and incorporate the frequency points where signal interference occurs. In other words, the LAN continuously monitors the frequency usage of connected peripheral devices on terminal devices within the LAN, and marks preset interference frequency points where the number of interference occurrences reaches a preset threshold based on this frequency usage data. Specifically, when a terminal device within the LAN experiences external firmware signal interference, the communication frequency point generating the interference is read, and the number of times interference occurs at that communication frequency point is recorded; then, when the number of interference occurrences reaches the preset threshold, that communication frequency point is marked as a preset interference frequency point.

[0171] When the second frequency group contains a preset interference frequency, it indicates a high probability of signal interference when using the second frequency group as the communication frequency group for the peripheral device. In this case, the process of re-allocating the second frequency group to the peripheral device based on the preset frequency information and the first frequency group will be repeated. Conversely, when the second frequency group does not contain a preset interference frequency, the step of configuring the second frequency group to the peripheral device, allowing the peripheral device to use one of the second frequency groups as its communication frequency, can be executed.

[0172] In one embodiment, after configuring the second frequency group in the peripheral device such that the peripheral device uses a second frequency point in the second frequency group as a communication frequency point, the method further includes:

[0173] When interference occurs in the peripheral device, the communication frequency used by the peripheral device is read;

[0174] Calculate the frequency band spacing between the communication frequency point and other frequency points in the frequency point group it uses;

[0175] Based on the frequency band interval, a backup frequency point is selected from other frequency points, and the peripheral device is controlled to hop to the backup frequency point.

[0176] Specifically, peripheral device interference refers to the interference between the communication frequencies used by one peripheral device and those used by other peripheral devices. For example, a peripheral device 'a' connected to a terminal device in a local area network (LAN) uses a communication frequency of 2.440 MHz, while a peripheral device 'b' connected to the same terminal device in the LAN uses a communication frequency of 2.437 MHz. Interference exists in the 2.437-2.450 MHz frequency band, meaning that peripheral device 'b' (communication frequency 2.437 MHz) interferes with peripheral device 'a' (communication frequency 2.440 MHz), causing peripheral device 'a' (communication frequency 2.440 MHz) to hop to 2.413 MHz.

[0177] Because the second frequency grouping is different from the frequency grouping used by other peripheral devices, when interference occurs in the peripheral devices, frequency hopping can be performed directly in the communication frequency grouping of the peripheral devices. This avoids the situation where the frequency point overlaps with the communication frequency point of other peripheral devices after frequency hopping, thereby achieving efficient frequency adjustment and quickly avoiding signal interference.

[0178] When performing frequency hopping in a communication frequency group of a peripheral device, a frequency point farther from the communication frequency can be selected as a backup frequency point, and the peripheral device can be controlled to hop to the backup frequency point. However, in practical applications, other frequencies in the communication frequency group may also be used as over-communication frequencies and subject to frequency hopping due to interference. Therefore, in one embodiment, selecting a backup frequency point from other frequencies according to the frequency band interval and controlling the peripheral device to hop to the backup frequency point specifically includes:

[0179] Select candidate frequency points from other frequency points whose frequency band spacing is greater than the preset frequency band spacing threshold;

[0180] Select backup frequencies from the candidate frequencies that have not been used by peripheral devices as communication frequencies;

[0181] If a backup frequency is selected, the peripheral device will be controlled to hop to the backup frequency.

[0182] If no backup frequency point is selected, the process of allocating a second frequency point group to the peripheral device based on the preset frequency point information and the first frequency point group is repeated to reallocate the second frequency point group to the peripheral device.

[0183] Specifically, the preset frequency band interval threshold is pre-selected and used to perform frequency hopping operations to ensure a certain frequency band interval between the backup frequency point after frequency hopping and the communication frequency point before frequency hopping. Therefore, after calculating the frequency band interval between the communication frequency point and other frequency points, each frequency band interval can be compared with the preset frequency band interval threshold to select candidate frequency points from the other frequency points whose frequency band interval is greater than the preset frequency band interval threshold. Then, a backup frequency point not used as a communication frequency point by the peripheral device is selected from the candidate frequency points. If a backup frequency point is selected, it indicates that the peripheral device's communication frequency point group has a frequency band that can be used as a communication frequency point. If no backup frequency point is selected, it indicates that the peripheral device's communication frequency point group does not have a frequency band that can be used as a communication frequency point. In this case, the allocation of a second frequency point group to the peripheral device based on the preset frequency point information and the first frequency point group is re-executed to reallocate the second frequency point group to the peripheral device. Here, "used as a communication frequency point" refers to the peripheral device being used as a communication frequency point during its function as a peripheral device of the terminal device.

[0184] In this embodiment, backup frequencies are selected from the communication frequency group of peripheral devices based on the frequency band spacing and the fact that they have not been used as communication frequencies. This ensures the frequency band spacing between the backup frequencies and the current communication frequencies, avoiding interference caused by the small frequency band spacing. It also prevents frequencies that have experienced interference from being used as communication frequencies again.

[0185] In summary, this embodiment provides a cross-device wireless peripheral frequency allocation method. The method includes: when a terminal device connects to a peripheral device, obtaining neighboring terminal devices in the local area network where the terminal device is located; determining the interfering peripheral device corresponding to the peripheral device based on the neighboring terminal devices; obtaining preset frequency point information of the peripheral device and a first frequency point group used by the interfering peripheral device; allocating a second frequency point group to the peripheral device based on the preset frequency point information and the first frequency point group; configuring the second frequency point group to the peripheral device so that the peripheral device uses a second frequency point in the second frequency point group as a communication frequency point. This application monitors the frequency grouping of the local area network (LAN) where the peripheral device is connected in real time and performs unified frequency grouping management. This ensures that the frequency grouping of the peripheral device does not overlap with that of other peripheral devices in the LAN. In particular, for peripheral devices from the same manufacturer or brand, it ensures that when the peripheral device is interfered with and frequency hopping is implemented, two or more peripheral devices will not jump to the same frequency. This achieves efficient anti-interference avoidance among multiple peripheral devices in the same LAN.

[0186] Based on the above-described cross-device wireless peripheral frequency allocation method, this embodiment provides a cross-device wireless peripheral frequency allocation device, such as... Figure 2As shown, the cross-device wireless peripheral frequency allocation device specifically includes:

[0187] The first acquisition module 100 is used to acquire neighboring terminal devices in the local area network where the terminal device is located when the terminal device connects to the peripheral device, wherein the local area network includes at least two terminal devices.

[0188] The determination module 200 is used to determine the interfering peripheral device corresponding to the peripheral device based on the neighboring terminal device;

[0189] The second acquisition module 300 is used to acquire the preset frequency information of the peripheral device and the first frequency grouping used by the interfering peripheral device;

[0190] The allocation module 400 is used to allocate a second frequency point group to the peripheral device according to the preset frequency point information and the first frequency point group, wherein the second frequency point group does not overlap with the first frequency point group;

[0191] The configuration module 500 is used to configure the second frequency point group in the peripheral device, so that the peripheral device uses a second frequency point in the second frequency point group as a communication frequency point.

[0192] Based on the above-described cross-device wireless peripheral frequency allocation method, this embodiment provides a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the steps in the cross-device wireless peripheral frequency allocation method described in the above embodiment.

[0193] Based on the above-described cross-device wireless peripheral frequency allocation method, this application also provides a terminal device, such as... Figure 3 As shown, it includes at least one processor 20; a display screen 21; and a memory 22, and may also include a communications interface 23 and a bus 24. The processor 20, display screen 21, memory 22, and communications interface 23 can communicate with each other via the bus 24. The display screen 21 is configured to display a preset user guide interface in the initial setup mode. The communications interface 23 can transmit information. The processor 20 can invoke logical instructions in the memory 22 to execute the methods described in the above embodiments.

[0194] Furthermore, the logical instructions in the aforementioned memory 22 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.

[0195] The memory 22, as a computer-readable storage medium, can be configured to store software programs, computer-executable programs, such as program instructions or modules corresponding to the methods in the embodiments of this disclosure. The processor 20 executes functional applications and data processing by running the software programs, instructions, or modules stored in the memory 22, thereby implementing the methods in the above embodiments.

[0196] The memory 22 may include a program storage area and a data storage area. The program storage area may store the operating system and application programs required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 22 may include high-speed random access memory (RAM) and non-volatile memory. Examples include various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, as well as transient storage media.

[0197] Furthermore, the specific process of loading and executing multiple instruction processors in the aforementioned storage medium and terminal device has been described in detail in the above method, and will not be repeated here.

[0198] 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 of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for allocating wireless peripheral frequencies across devices, characterized in that, The cross-device wireless peripheral frequency allocation method specifically includes: When a terminal device connects to a peripheral device, it obtains neighboring terminal devices in the local area network where the terminal device is located, wherein the local area network includes at least two terminal devices. The interfering peripheral device corresponding to the peripheral device is determined based on the neighboring terminal device; Obtain the preset frequency information of the peripheral device and the first frequency grouping used by the interfering peripheral device; A second frequency group is allocated to the peripheral device based on the preset frequency point information and the first frequency point group, wherein the second frequency point group does not overlap with the first frequency point group; The second frequency group is configured in the peripheral device such that the peripheral device uses a second frequency point in the second frequency group as a communication frequency point.

2. The cross-device wireless peripheral frequency allocation method according to claim 1, characterized in that, The specific components of obtaining neighboring terminal devices in the local area network where the terminal device is located include: Obtain the first device location of the terminal device and the second device locations of other terminal devices in the local area network where the terminal device is located, excluding the terminal device itself; Calculate the device distance between the terminal device and other terminal devices based on the first device location and the second setting location; Based on the distance between the devices, neighboring terminal devices are selected for the terminal device from among other terminal devices.

3. The cross-device wireless peripheral frequency allocation method according to claim 1, characterized in that, The step of determining the interfering peripheral device corresponding to the peripheral device based on the neighboring terminal device specifically includes: Obtain the device information of the peripheral device, wherein the device information includes one or more information items such as device type, device manufacturer, and device brand; Based on the device information, an interfering peripheral device corresponding to the peripheral device is selected from the connected peripheral devices of the neighboring terminal, wherein at least one information item of the device information of the interfering peripheral device matches the device information of the peripheral device.

4. The cross-device wireless peripheral frequency allocation method according to claim 1, characterized in that, The step of determining the interfering peripheral device corresponding to the peripheral device based on the neighboring terminal device specifically includes: Read all connected peripheral devices of the neighboring terminal device; All connected peripheral devices read are designated as interference peripheral devices corresponding to the peripheral devices.

5. The cross-device wireless peripheral frequency allocation method according to claim 1, 3, or 4, characterized in that, After determining the interfering peripheral device corresponding to the peripheral device based on the neighboring terminal device, the method further includes: The system acquires the connected peripheral devices in the terminal device other than the peripheral device itself, and uses these other connected peripheral devices as interfering peripheral devices of the peripheral device to update the interfering peripheral device corresponding to the peripheral device.

6. The cross-device wireless peripheral frequency allocation method according to claim 1, characterized in that, The frequency point information includes several preset frequency point groups; the step of allocating a second frequency point group to the peripheral device based on the preset frequency point information and the first frequency point group specifically includes: Select a candidate frequency point group from the plurality of preset frequency point groups that does not overlap with the first frequency point group; When a candidate frequency point group is selected, one group of candidate frequency point groups from the selected candidate frequency point group is used as the second frequency point group of the peripheral device.

7. The cross-device wireless peripheral frequency allocation method according to claim 6, characterized in that, The step of allocating a second frequency point group to the peripheral device based on the preset frequency point information and the first frequency point group further includes: When no candidate frequency group is selected, a new frequency group is created for the peripheral device with the constraint that it does not overlap with the first frequency group; The newly created frequency point group is written into the peripheral device to allocate a second frequency point group to the peripheral device.

8. The cross-device wireless peripheral frequency allocation method according to claim 6, characterized in that, The step of using a group of candidate frequency points from the selected candidate frequency point groups as the second frequency point group of the peripheral device includes: Obtain the interval frequency band between each preset frequency point in the selected candidate frequency point group and each first frequency point in the first frequency point group, so as to determine the interval frequency band between the candidate frequency point group and the first frequency point group; Based on the frequency band interval, a second frequency group is selected for the peripheral devices from the selected candidate frequency group.

9. The cross-device wireless peripheral frequency allocation method according to claim 6, characterized in that, The frequency point information includes multiple preset frequency points, and the step of allocating a second frequency point group to the peripheral device according to the preset frequency point information and the first frequency point group specifically includes: Select candidate preset frequency points that are not included in the first frequency point group from multiple preset frequency points; A second frequency group is constructed for the peripheral device based on the selected candidate preset frequency points.

10. The cross-device wireless peripheral frequency allocation method according to claim 9, characterized in that, The step of constructing a second frequency group for the peripheral device based on the selected candidate preset frequency points specifically includes: Verify whether the selected candidate preset frequency points meet the preset grouping rules; If the verification passes, a second frequency group is constructed based on the preset grouping rules and the selected candidate preset frequency points; If the verification fails, a new frequency group is created for the peripheral device with the constraint that it does not overlap with the first frequency group, and the new frequency group is written into the peripheral device to construct a second frequency group for the peripheral device.

11. The cross-device wireless peripheral frequency allocation method according to claim 1, characterized in that, The method further includes: Continuously monitor the frequency usage of connected peripheral devices of terminal devices within the local area network; Preset interference frequencies are marked based on the frequency usage, indicating frequencies where the number of times interference occurs reaches a preset threshold.

12. The cross-device wireless peripheral frequency allocation method according to claim 11, characterized in that, Before configuring the second frequency group in the peripheral device so that the peripheral device uses a second frequency point in the second frequency group as a communication frequency point, the method further includes: Detect whether the second frequency group contains a preset interference frequency; If the second frequency group contains a preset interference frequency, then the allocation of the second frequency group to the peripheral device is re-executed based on the preset frequency information and the first frequency group, so as to reallocate the second frequency group to the peripheral device.

13. The cross-device wireless peripheral frequency allocation method according to claim 1, characterized in that, After configuring the second frequency point group in the peripheral device so that the peripheral device uses a second frequency point in the second frequency point group as a communication frequency point, the method further includes: When interference occurs in the peripheral device, the communication frequency used by the peripheral device is read; Calculate the frequency band spacing between the communication frequency point and other frequency points in the frequency point group it uses; Based on the frequency band interval, a backup frequency point is selected from other frequency points, and the peripheral device is controlled to hop to the backup frequency point.

14. The cross-device wireless peripheral frequency allocation method according to claim 13, characterized in that, The step of selecting a backup frequency point from other frequency points according to the frequency band interval and controlling the peripheral device to hop to the backup frequency point specifically includes: Select candidate frequency points from other frequency points whose frequency band spacing is greater than the preset frequency band spacing threshold; Select backup frequencies from the candidate frequencies that have not been used by peripheral devices as communication frequencies; If a backup frequency is selected, the peripheral device will be controlled to hop to the backup frequency. If no backup frequency point is selected, the process of allocating a second frequency point group to the peripheral device based on the preset frequency point information and the first frequency point group is repeated to reallocate the second frequency point group to the peripheral device.

15. A cross-device wireless peripheral frequency allocation device, characterized in that, The aforementioned cross-device wireless peripheral frequency allocation device specifically includes: The first acquisition module is used to acquire neighboring terminal devices in the local area network where the terminal device is located when the terminal device connects to the peripheral device, wherein the local area network includes at least two terminal devices. The determination module is used to determine the interfering peripheral device corresponding to the peripheral device based on the neighboring terminal device; The second acquisition module is used to acquire the preset frequency point information of the peripheral device and the first frequency point grouping used by the interfering peripheral device; The allocation module is used to allocate a second frequency group to the peripheral device according to the preset frequency point information and the first frequency point group, wherein the second frequency point group does not overlap with the first frequency point group; The configuration module is used to configure the second frequency point group in the peripheral device, so that the peripheral device uses a second frequency point in the second frequency point group as a communication frequency point.

16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs that can be executed by one or more processors to implement the steps in the cross-device wireless peripheral frequency allocation method as described in any one of claims 1-14.

17. A terminal device, characterized in that, include: Processor and memory; The memory stores a computer-readable program that can be executed by the processor; When the processor executes the computer-readable program, it implements the steps of the cross-device wireless peripheral frequency allocation method as described in any one of claims 1-14.

Citation Information

Patent Citations

  • Method for automatically searching best frequency modulation transmission frequency point

    CN101150325A

  • Wireless keyboard mouse and frequency hopping RF (Radio Frequency) communication transmitting and receiving method and device thereof

    CN103391113A