A wireless peripheral frequency division method, device, equipment and medium
By acquiring and allocating non-overlapping frequency groups, the signal interference problem caused by frequency overlap in wireless peripheral devices is solved, and efficient anti-interference avoidance between multiple peripheral devices is achieved.
Patent Information
- Application Number
- CN202511517786.9
- 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
When multiple devices are connected to existing wireless peripherals, signal conflicts occur due to frequency overlap and interference, making it impossible to quickly resolve the interference problem.
It acquires the preset frequency information of peripheral devices and the frequency groups of other connected devices, allocates non-overlapping second frequency groups, and monitors and manages the frequency groups in real time to avoid frequency overlap and interference.
It effectively avoids mutual interference caused by overlapping frequencies of peripheral devices, ensuring efficient anti-interference avoidance between multiple peripheral devices under the same electronic device.
Smart Images

Figure CN121001190B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer peripheral technology, and in particular to a wireless peripheral frequency division method, apparatus, device and medium. Background Technology
[0002] With the widespread adoption of electronic 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, peripheral devices are generally configured with several default frequencies, and devices of the same brand or manufacturer typically share the same default frequencies. Since peripheral devices randomly hop within their configured default frequency range, when multiple peripheral devices (especially those of the same brand or manufacturer) hop frequencies simultaneously, interference will inevitably occur within the communication frequency range after the hopping, leading to signal conflicts and making it difficult to quickly resolve the interference problem.
[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 wireless peripheral frequency division method, device, equipment and medium to address the shortcomings of the prior art.
[0006] To address the aforementioned technical problems, the first aspect of this application provides a wireless peripheral frequency division method, wherein the wireless peripheral frequency division method specifically includes:
[0007] When a peripheral device is connected, the preset frequency information of the peripheral device is obtained, and the first frequency grouping used by other connected peripheral devices besides the peripheral device is obtained.
[0008] 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;
[0009] 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.
[0010] The aforementioned wireless peripheral frequency division 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:
[0011] Detect the degree of overlap between each preset frequency group and the first frequency group;
[0012] Candidate frequency point groups are selected from several preset frequency point groups based on the degree of overlap.
[0013] 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.
[0014] The wireless peripheral frequency division method further includes, in part, allocating a second frequency group to the peripheral device based on the preset frequency information and the first frequency group:
[0015] When no candidate frequency group is selected, a new frequency group is created for the peripheral device with the degree of overlap with the first frequency group as a constraint.
[0016] The newly created frequency group is written into the peripheral device so that the newly created frequency group is used as the second frequency group of the peripheral device.
[0017] The aforementioned wireless peripheral frequency division method, wherein 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 specifically includes:
[0018] Randomly select one candidate frequency group from the selected candidate frequency group as the second frequency group of the peripheral device.
[0019] The aforementioned wireless peripheral frequency division method, wherein selecting a group of candidate frequency points from the chosen candidate frequency point groups as the second frequency point group of the peripheral device includes:
[0020] 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;
[0021] Based on the frequency band interval, a second frequency group is selected for the peripheral devices from the selected candidate frequency group.
[0022] The wireless peripheral frequency division 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:
[0023] Select candidate preset frequency points that are not included in the first frequency point group from multiple preset frequency points;
[0024] A second frequency group is constructed for the peripheral device based on the selected candidate preset frequency points.
[0025] The aforementioned wireless peripheral frequency division method, wherein the step of constructing a second frequency group for the peripheral device based on the selected candidate preset frequency points specifically includes:
[0026] Verify whether the selected candidate preset frequency points meet the preset grouping rules;
[0027] If the verification passes, then select candidate preset frequency points from the selected candidate preset frequency points to construct the second frequency point group;
[0028] If the verification fails, a new frequency group is created for the peripheral device with the first frequency group as a constraint, and the new frequency group is written into the peripheral device to serve as the second frequency group of the peripheral device.
[0029] In the aforementioned wireless peripheral frequency division method, the newly created frequency point group is located in the signal frequency band used by the peripheral device, or in a different signal frequency band than the signal frequency band used by the peripheral device.
[0030] The wireless peripheral frequency division method, wherein, before allocating a second frequency group to the peripheral device based on the preset frequency point information and the first frequency point group, the method further includes:
[0031] Detect whether the peripheral device is configured with a default frequency group;
[0032] When a default frequency group is configured, the overlap between the default frequency group and the first frequency group is detected.
[0033] If the degree of overlap meets the requirements, the default frequency grouping will be used as the second frequency grouping adopted by the peripheral device.
[0034] If the overlap does not meet the requirements 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 based on the preset frequency information and the first frequency group is executed.
[0035] The aforementioned wireless peripheral frequency division method further includes:
[0036] Continuously monitor the frequency usage of connected peripheral devices;
[0037] Preset interference frequencies are marked based on the frequency usage, indicating frequencies where the number of times interference occurs reaches a preset threshold.
[0038] The wireless peripheral frequency division method, wherein before configuring the second frequency point group in the peripheral device so that the peripheral device uses one of the second frequency points in the second frequency point group as a communication frequency point, the method further includes:
[0039] Detect whether the second frequency group contains a preset interference frequency;
[0040] 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.
[0041] The wireless peripheral frequency division method, wherein after configuring the second frequency point group in the peripheral device so that the peripheral device uses one of the second frequency points in the second frequency point group as a communication frequency point, the method further includes:
[0042] When interference occurs in the peripheral device, the communication frequency used by the peripheral device is read;
[0043] Calculate the frequency band spacing between the communication frequency point and other frequency points in the frequency point group it uses;
[0044] 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.
[0045] The aforementioned wireless peripheral frequency division method, wherein 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:
[0046] Select candidate frequency points from other frequency points whose frequency band spacing is greater than the preset frequency band spacing threshold;
[0047] Select backup frequencies from the candidate frequencies that have not been used by peripheral devices as communication frequencies;
[0048] If a backup frequency is selected, the peripheral device will be controlled to hop to the backup frequency.
[0049] 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.
[0050] A second aspect of this application provides a wireless peripheral frequency division device, wherein the wireless peripheral frequency division device specifically includes:
[0051] The acquisition module is used to acquire the preset frequency point information of the peripheral device when the peripheral device is connected, and to acquire the first frequency point group used by other connected peripheral devices besides the peripheral device.
[0052] The construction 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;
[0053] 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.
[0054] 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 any of the wireless peripheral frequency division methods described above.
[0055] A fourth aspect of this application provides an electronic device comprising: a processor and a memory;
[0056] The memory stores a computer-readable program that can be executed by the processor;
[0057] When the processor executes the computer-readable program, it implements the steps in any of the wireless peripheral frequency division methods described above.
[0058] Beneficial Effects: Compared with the prior art, this application provides a wireless peripheral frequency division method, apparatus, device, and medium. The method includes, when a peripheral device is connected, obtaining preset frequency point information of the peripheral device and obtaining a first frequency point group used by other connected peripheral devices besides the peripheral device; allocating 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; configuring the second frequency point group on 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 point group status of all connected peripheral devices in real time and performs unified frequency point group management, thereby ensuring that there are no overlapping frequency points between the frequency point groups of each peripheral device, thus avoiding mutual interference caused by peripheral devices using the same frequency point, and also ensuring that when a peripheral device is interfered with and performs frequency hopping, two or more peripheral devices will not jump to the same frequency point, achieving efficient anti-interference avoidance among multiple peripheral devices under the same electronic device. Attached Figure Description
[0059] 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.
[0060] Figure 1 A flowchart of a wireless peripheral frequency division method provided in an embodiment of this application.
[0061] Figure 2 This is a flowchart illustrating a specific example of the frequency division method for wireless peripherals provided in the embodiments of this application.
[0062] Figure 3 A schematic block diagram of a wireless peripheral frequency division device provided in an embodiment of this application.
[0063] Figure 4 A schematic block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0064] This application provides a method, apparatus, device, and medium for frequency division of wireless peripherals. 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.
[0065] 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.
[0066] 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.
[0067] 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.
[0068] Research has shown that with the widespread adoption of electronic devices and wireless communication technologies, 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 instance, 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 peripherals 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.
[0069] When peripheral devices experience signal interference due to interference within their communication frequency range, the affected devices will switch frequencies randomly within their default frequency range to avoid interference. However, since peripheral devices generally switch randomly within their default frequency range, when multiple peripheral devices (especially the same device from the same brand or manufacturer) perform frequency hopping simultaneously, interference will inevitably occur within the communication frequency range after the frequency hopping, leading to signal conflicts and making it difficult to quickly resolve the interference problem.
[0070] To address the aforementioned issues, in this embodiment, when a peripheral device is connected, preset frequency point information of the peripheral device is obtained, and a first frequency point group used by other connected peripheral devices (excluding the peripheral device itself) is also obtained. A second frequency point 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 point group is configured 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 all connected peripheral devices in real time and performs unified frequency point grouping management, thereby ensuring that there are no overlapping frequency points between the frequency point groups of each peripheral device. This avoids mutual interference caused by peripheral devices using the same frequency point and also ensures that when a peripheral device is interfered with and frequency hopping is implemented, two or more peripheral devices will not hop to the same frequency point, achieving efficient anti-interference avoidance among multiple peripheral devices under the same electronic device.
[0071] The application content will be further explained below with reference to the accompanying drawings and the description of the embodiments.
[0072] This embodiment provides a frequency division method for wireless peripherals, such as... Figure 1 and Figure 2 As shown, the method includes:
[0073] S10. When a peripheral device is connected, obtain the preset frequency information of the peripheral device, and obtain the first frequency grouping used by other connected peripheral devices besides the peripheral device.
[0074] Specifically, peripheral devices connect to electronic devices (such as PCs, tablets, etc.) wirelessly. For example, peripheral devices connect to electronic devices through communication protocols such as 2.4G, 5.8G, SUB1G (frequency bands less than 1G, such as 433 and 868 bands), and UWB technology.
[0075] It should be noted that electronic devices can connect to one peripheral device at a time, or multiple peripheral devices at once. When an electronic device connects to one peripheral device at a time, it can directly obtain the preset frequency information of the peripheral device and the first frequency group used by the connected peripheral device. When multiple peripheral devices are connected at once, frequency groupings can be configured for each electronic device sequentially, and the peripheral device listed earlier in the configuration order will be considered as a connected peripheral device for the subsequent peripheral devices. For ease of explanation, the following explanation will use the case of connecting to only one peripheral device (i.e., the electronic device connects to one peripheral device at a time) as an example.
[0076] The preset frequency information can be obtained through the driver in the electronic device to which the peripheral device is connected. This driver is the driver program corresponding to the peripheral device; that is, the driver in the electronic device reads the preset frequency information configured in the peripheral device. This preset frequency information is pre-configured by the peripheral device manufacturer for the peripheral device before it leaves the factory and is used as the preferred communication frequency for the peripheral device. In one embodiment, the preset frequency information can be a group of preset frequency points. Each group of preset frequency points includes 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 a 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 points in each group do not overlap; that is, for any two groups of preset frequency points, 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.
[0077] 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.
[0078] 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.
[0079] Other connected peripheral devices are those connected to the same electronic device as this peripheral device, and these other connected peripheral devices have already been assigned 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 electronic device to which this peripheral device is connected, and peripheral devices A, B, and C have all been configured with frequency point groups. Therefore, peripheral devices A, B, and C are considered other connected peripheral devices corresponding to this peripheral device. The first frequency point group is the frequency point group assigned to these other connected peripheral devices.
[0080] Furthermore, when acquiring the first frequency point group, all other connected peripheral devices whose frequency point group configuration time is earlier than the peripheral device can be considered as the connected peripheral devices corresponding to the peripheral device, and the first frequency point group of each connected peripheral device can be acquired. However, in practical applications, wireless connections can use multiple frequency bands, 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. Electronic devices that connect to peripheral devices can support several of these frequency bands. This allows peripheral devices supporting different frequency bands to connect to electronic devices. When peripheral devices using different frequency bands communicate wirelessly with electronic devices, signal interference generally does not occur. Signal interference is common between peripheral devices communicating on the same frequency band.
[0081] Based on this, in one embodiment, after obtaining the first frequency grouping used by other connected peripheral devices besides the aforementioned peripheral device, the method further includes:
[0082] Read the target frequency band corresponding to the preset frequency point information of the peripheral device;
[0083] Filter the first frequency point groups that belong to the target frequency point from all the acquired first frequency point groups.
[0084] 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.
[0085] The first frequency group of other connected peripheral devices 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.
[0086] It should be noted that in practical applications, other connected peripheral devices can be filtered based on the target frequency first, and then the first frequency group of the filtered other connected peripheral devices can be obtained. Specifically, after obtaining the target frequency band, the communication frequency bands used by other connected peripheral devices can be detected first, and then the target frequency band can be compared with the communication frequency bands of each other connected peripheral device to select other connected peripheral devices whose communication frequency band is the same as the target frequency band. The frequency group configured for each selected other connected peripheral device is then read to obtain the first frequency group.
[0087] S20. Assign a second frequency group to the peripheral device according to the preset frequency information and the first frequency group.
[0088] 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.
[0089] 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.
[0090] Example 1: The preset frequency information is grouped into several preset frequency points.
[0091] 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:
[0092] Detect the degree of overlap between each preset frequency group and the first frequency group;
[0093] Candidate frequency point groups are selected from several preset frequency point groups based on the degree of overlap.
[0094] 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.
[0095] Specifically, the degree of overlap can be determined by comparing the preset frequency points in a preset frequency point group with the first frequency points in the first frequency point group one by one to select the number of overlapping preset frequency points contained in the first frequency point group in the preset frequency point group. The degree of overlap is calculated based on the number of overlapping preset frequency points and the number of preset frequency points in the preset frequency point group. For example, the degree of overlap = number of overlapping preset frequency points / number of preset frequency points * 100%, etc.
[0096] After obtaining the overlap degree of each preset frequency point group, candidate frequency point groups are selected from several preset frequency point groups based on the overlap degree. The overlap degree of the selected candidate frequency point groups is less than a preset overlap degree threshold (e.g., 0%, 5%, 10%). In this embodiment, the preset overlap degree threshold is 0 to maximize 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. Specifically, 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, a random selection method can be used. That is, a set of candidate frequency point groups is randomly selected from the selected candidate frequency point groups as the second frequency point group of the peripheral device. This ensures that the selectable frequencies in each selected candidate frequency point group are different from the selectable frequencies in the first frequency point group, thus satisfying the constraint that the first and second frequency point groups are different.
[0097] 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 occurs between peripheral devices connected to the same electronic device and achieving efficient anti-interference among multiple wireless peripheral devices on the same electronic device.
[0098] 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:
[0099] 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;
[0100] Based on the frequency band interval, a second frequency group is selected for the peripheral devices from the selected candidate frequency group.
[0101] 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.
[0102] 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 electronic device.
[0103] 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.
[0104] 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 connected to the same electronic device.
[0105] 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.
[0106] 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:
[0107] When no candidate frequency group is selected, a new frequency group is created for the peripheral device with the degree of overlap with the first frequency group as a constraint.
[0108] The newly created frequency group is written into the peripheral device so that the newly created frequency group is used as the second frequency group of the peripheral device.
[0109] 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, and the electronic devices connected to the peripheral devices have multi-signal frequency band switching capabilities. The peripheral devices transmit and receive different frequency band information through their configured multi-RF antenna chips, and the electronic devices switch signal frequency bands according to the signal frequency band used by the peripheral devices to communicate with them. 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 devices. 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.
[0110] For example, a peripheral device might be equipped with a multi-RF antenna chip that supports both 2.4GHz and 5.8GHz. The electronic devices connected to this peripheral device 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 group can be created within either the 2.4GHz or 5.8GHz band. In other words, when creating a new frequency group for a peripheral device, the new frequency can be selected from the signal band it uses, or it can be selected from other signal bands supported by the peripheral device that differ from its used signal band.
[0111] Furthermore, after the newly constructed frequency point group is obtained, it can be written into the peripheral device. For example, the driver of the electronic 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 the frequency point groups used by all peripheral devices connected to the electronic device are different, so as to avoid affecting the frequency hopping efficiency due to the same frequency point group during frequency hopping.
[0112] It should be noted that since the newly created frequency point groups are written to peripheral devices to ensure that the peripheral devices connected to the electronic device use different frequency point groups, the newly created frequency point groups written to the peripheral device can be deleted when the electronic device is no longer using the peripheral device. The criterion for determining whether the electronic device is no longer using the peripheral device can be that no electronic device has been added to the peripheral device within a preset time (such as 3 months, 6 months, etc.).
[0113] Example 2: The preset frequency information can be multiple preset frequency points.
[0114] 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:
[0115] Select candidate preset frequency points that are not included in the first frequency point group from multiple preset frequency points;
[0116] A second frequency group is constructed for the peripheral device based on the selected candidate preset frequency points.
[0117] 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.
[0118] 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.
[0119] 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.
[0120] 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.
[0121] 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:
[0122] Verify whether the selected candidate preset frequency points meet the preset grouping rules;
[0123] If the verification passes, then select candidate preset frequency points from the selected candidate preset frequency points to construct the second frequency point group;
[0124] If the verification fails, a new frequency group is created for the peripheral device with the first frequency group as a constraint, and the new frequency group is written into the peripheral device to serve as the second frequency group of the peripheral device.
[0125] 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.
[0126] 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.
[0127] In practical applications, peripheral devices are typically configured with default frequency groupings before leaving the factory, and these devices generally use the default frequencies within that grouping as their communication bands. In other words, when configuring preset frequency information for peripheral devices, manufacturers also configure default frequency groupings (e.g., using pairing tools). In this application scenario, when a peripheral device connects to an electronic device, it first checks whether the default frequency grouping configured on the peripheral device overlaps with the first frequency grouping. If they overlap, a second frequency grouping is reassigned to the peripheral device; otherwise, the default frequency grouping is used as the second frequency grouping for the peripheral device, and no new frequency grouping is reassigned.
[0128] 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:
[0129] Detect whether the peripheral device is configured with a default frequency group;
[0130] When a default frequency group is configured, the overlap between the default frequency group and the first frequency group is detected.
[0131] If the degree of overlap meets the requirements, the default frequency grouping will be used as the second frequency grouping adopted by the peripheral device.
[0132] If the overlap does not meet the requirements 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 based on the preset frequency information and the first frequency group is executed.
[0133] Specifically, the default frequency group is a 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 overlap between the default frequency group and the first frequency group is detected to determine whether the first frequency group overlaps with the default frequency group. Meeting the overlap requirement means that the first frequency group and the default frequency group do not overlap, while failing to meet the overlap requirement means that the first frequency group overlaps with the default frequency group.
[0134] When the overlap requirement is met, it indicates that there is no need to reallocate frequency groupings for the peripheral device, and the default frequency grouping is used as the second frequency grouping for the peripheral device. When the overlap requirement is not met or the peripheral device is not configured with a default frequency grouping, it indicates that a second frequency grouping needs to be configured for the peripheral device, and the step of allocating a second frequency grouping for the peripheral device according to the preset frequency information and the first frequency grouping is executed. For example, an electronic device is connected to peripheral device A and 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 groupings. Peripheral device A is configured with frequency groupings 1 to 8, and uses frequency grouping 6 as the default frequency grouping; peripheral device B is configured with frequency groupings 6 and 10, and uses frequency grouping 6 as the default frequency grouping. When peripheral device A is connected to an electronic device, peripheral device B is the connected 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.
[0135] S30. Configure the second frequency point group in the peripheral device so that the peripheral device uses one of the second frequency points in the second frequency point group as a communication frequency point.
[0136] 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 allows the electronic device 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 electronic device. For example, the second frequency group of the peripheral device includes 2.413, 2.440, 2.460, and 2.470. After the electronic device and the peripheral device complete the pairing connection, 2.440 is used as the communication frequency point.
[0137] In one embodiment, to further avoid interference caused by multiple peripheral devices connected to an electronic device 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 electronic 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 electronic device.
[0138] 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:
[0139] Detect whether the second frequency group contains a preset interference frequency;
[0140] 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.
[0141] Specifically, the preset interference frequency points are determined based on the frequency usage (i.e., historical information) of the peripheral devices connected to the electronic device, and incorporate the frequency points where signal interference occurs. In other words, the electronic device continuously monitors the frequency usage of the connected peripheral devices during operation and marks preset interference frequency points where the number of interference occurrences reaches a preset threshold based on the frequency usage data. Specifically, when external firmware signal interference occurs in the electronic device, 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 the preset interference frequency point.
[0142] 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, so that the peripheral device uses one of the second frequency groups as its communication frequency, can be executed.
[0143] In one embodiment, such as Figure 2As shown, after configuring the second frequency group in the peripheral device so that the peripheral device uses one of the second frequency points in the second frequency group as a communication frequency point, the method further includes:
[0144] When interference occurs in the peripheral device, the communication frequency used by the peripheral device is read;
[0145] Calculate the frequency band spacing between the communication frequency point and other frequency points in the frequency point group it uses;
[0146] 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.
[0147] 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, if one peripheral device connected to an electronic device communicates at a frequency of 2.440, and another peripheral device connected to the same electronic device communicates at a frequency of 2.437, and there is interference in the 2.437-2.450 frequency band, then the peripheral device communicating at a frequency of 2.437 interferes with the peripheral device communicating at a frequency of 2.440. In such cases, the peripheral device communicating at a frequency of 2.440 may need to hop its frequency to 2.413.
[0148] 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.
[0149] 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:
[0150] Select candidate frequency points from other frequency points whose frequency band spacing is greater than the preset frequency band spacing threshold;
[0151] Select backup frequencies from the candidate frequencies that have not been used by peripheral devices as communication frequencies;
[0152] If a backup frequency is selected, the peripheral device will be controlled to hop to the backup frequency.
[0153] 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.
[0154] 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 that has not been 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 electronic device.
[0155] 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.
[0156] In summary, this embodiment provides a wireless peripheral frequency division method. The method includes, when a peripheral device is connected, obtaining preset frequency point information of the peripheral device and obtaining a first frequency point group used by other connected peripheral devices besides the peripheral device; allocating 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; configuring the second frequency point group on 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 point grouping of all connected peripheral devices in real time and performs unified frequency point grouping management, thereby ensuring that there are no overlapping frequency points between the frequency point groups of each peripheral device, thus avoiding mutual interference caused by peripheral devices using the same frequency point, and also ensuring that when a peripheral device is interfered with and performs frequency hopping, two or more peripheral devices will not jump to the same frequency point, achieving efficient anti-interference avoidance among multiple peripheral devices under the same electronic device.
[0157] Based on the above-described wireless peripheral frequency division method, this embodiment provides a wireless peripheral frequency division device, such as... Figure 3 As shown, the wireless peripheral frequency division device specifically includes:
[0158] The acquisition module 100 is used to acquire the preset frequency point information of the peripheral device when the peripheral device is connected, and to acquire the first frequency point group used by other connected peripheral devices besides the peripheral device.
[0159] The construction module 200 is configured to 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;
[0160] The configuration module 300 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.
[0161] Based on the above-described wireless peripheral frequency division 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 wireless peripheral frequency division method described in the above embodiment.
[0162] Based on the above-mentioned frequency division method for wireless peripherals, this application also provides an electronic device, such as... Figure 4 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.
[0163] 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.
[0164] 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.
[0165] 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 electronic 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.
[0166] Furthermore, the specific process of loading and executing multiple instructions in the aforementioned storage medium and electronic device has been described in detail in the above method, and will not be repeated here.
[0167] 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 frequency division method for wireless peripherals, characterized in that, The aforementioned wireless peripheral frequency division method specifically includes: When a peripheral device is connected, the preset frequency information of the peripheral device is obtained, and the first frequency grouping used by other connected peripheral devices besides the peripheral device is obtained. 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; Configure the second frequency point group in the peripheral device so that the peripheral device uses one of the second frequency points in the second frequency point group as a communication frequency point; 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: Detect the degree of overlap between each preset frequency group and the first frequency group; Candidate frequency point groups are selected from several preset frequency point groups based on the degree of overlap. 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.
2. The wireless peripheral frequency division method according to claim 1, 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 degree of overlap with the first frequency group as a constraint. The newly created frequency group is written into the peripheral device so that the newly created frequency group is used as the second frequency group of the peripheral device.
3. The wireless peripheral frequency division method according to claim 1, 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 specifically includes: Randomly select one candidate frequency group from the selected candidate frequency group as the second frequency group of the peripheral device.
4. The wireless peripheral frequency division method according to claim 1, 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.
5. The wireless peripheral frequency division method according to claim 1, 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.
6. The wireless peripheral frequency division method according to claim 5, 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, then select candidate preset frequency points from the selected candidate preset frequency points to construct the second frequency point group; If the verification fails, a new frequency group is created for the peripheral device with the first frequency group as a constraint, and the new frequency group is written into the peripheral device to serve as the second frequency group of the peripheral device.
7. The wireless peripheral frequency division method according to claim 2 or 6, characterized in that, The newly created frequency group is located in the signal frequency band used by the peripheral device, or in a different signal frequency band than the signal frequency band used by the peripheral device.
8. The wireless peripheral frequency division method according to claim 1, characterized in that, 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: Detect whether the peripheral device is configured with a default frequency group; When a default frequency group is configured, the overlap between the default frequency group and the first frequency group is detected. If the degree of overlap meets the requirements, the default frequency grouping will be used as the second frequency grouping adopted by the peripheral device. If the overlap does not meet the requirements 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 based on the preset frequency information and the first frequency group is executed.
9. The wireless peripheral frequency division method according to claim 1, characterized in that, The method further includes: Continuously monitor the frequency usage of connected peripheral devices; Preset interference frequencies are marked based on the frequency usage, indicating frequencies where the number of times interference occurs reaches a preset threshold.
10. The wireless peripheral frequency division method according to claim 9, characterized in that, Before configuring the second frequency group in the peripheral device so that the peripheral device uses one of the second frequency points 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.
11. The wireless peripheral frequency division 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 one of the second frequency points 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.
12. The wireless peripheral frequency division method according to claim 11, 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.
13. A wireless peripheral frequency division device, characterized in that, The aforementioned wireless peripheral frequency division device specifically includes: The acquisition module is used to acquire the preset frequency point information of the peripheral device when the peripheral device is connected, and to acquire the first frequency point group used by other connected peripheral devices besides the peripheral device. The construction 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; A 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; 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: Detect the degree of overlap between each preset frequency group and the first frequency group; Candidate frequency point groups are selected from several preset frequency point groups based on the degree of overlap. 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.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs, which can be executed by one or more processors to implement the steps in the wireless peripheral frequency division method as described in any one of claims 1-12.
15. An electronic 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 in the wireless peripheral frequency division method as described in any one of claims 1-12.
Citation Information
Patent Citations
Communication method, medium, module, photovoltaic cleaning equipment and networking system
CN118234032A