Frequency selection method, device, equipment and storage medium

By collecting interference signals in the Bluetooth working band during the period when data packets are not sent, determining the frequency points with less interference and updating the transmission frequency points, the problem of inaccurate selection of Bluetooth devices in the 2.4GHz ISM band is solved, and communication quality is improved.

CN114629576BActive Publication Date: 2025-06-06SPREADTRUM COMMUNICATION (SHANGHAI) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210260306.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-16
Publication Date
2025-06-06
Estimated Expiration
2042-03-16

AI Technical Summary

Technical Problem

In the 2.4GHz ISM band, Bluetooth devices are susceptible to interference from other radio devices when selecting frequency points, resulting in a degradation of communication quality. When collecting frequency point data, the prior art contains interference signals related to the data packet and requires filtering processing, which may affect the accuracy of frequency point determination.

Method used

By collecting interference signals in the Bluetooth operating frequency band during a period when the packet is not sent, at least two Bluetooth frequency points with less interference are determined and the frequency points of the packets are updated. This method avoids filtering of collected data and improves the accuracy of frequency point determination.

Benefits of technology

Improve the accuracy of selecting frequency points with less interference in the 2.4GHz ISM band, ensuring the stability and accuracy of communication quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114629576B_ABST
    Figure CN114629576B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a frequency selection method, device, equipment and storage medium, the method comprising: determining a sampling period according to the sending time and sending duration of a data packet, the sampling period being a period when no data packet is sent; collecting interference signals of the Bluetooth working frequency band within the sampling period; determining at least two first Bluetooth frequency points according to the interference signals, the at least two first Bluetooth frequency points being used to send data packets. The accuracy of Bluetooth frequency point determination is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Bluetooth communication technology, and in particular to a frequency selection method, device, equipment and storage medium. Background Art

[0002] All Bluetooth devices operate in the universal 2.4 GHz Industrial Scientific Medical (ISM) band. Since this band is open to all radio devices free of charge, Bluetooth devices are prone to conflict and interference with other radio devices, affecting communication quality.

[0003] In the related art, when sending a data packet, a Bluetooth device usually collects data of nearby frequencies with the frequency at which the data packet is sent as the center frequency, and selects a frequency with less interference from the collected data for frequency hopping to ensure communication quality.

[0004] Since the data collected when sending data packets contains some interference signals related to the data packets, the collected data needs to be filtered before use. The difference between the filtered data and the real data may affect the accuracy of the Bluetooth frequency determination. Summary of the invention

[0005] The present application relates to a frequency selection method, device, equipment and storage medium, which improves the accuracy of selecting a frequency point with less interference in the 2.4 GHz ISM band and ensures the communication quality.

[0006] In a first aspect, an embodiment of the present application provides a frequency selection method, including:

[0007] Determine a sampling period according to the sending time and sending duration of the data packet, wherein the sampling period is a period during which the data packet is not sent;

[0008] Collecting interference signals in the Bluetooth operating frequency band during the sampling period;

[0009] At least two first Bluetooth frequency points are determined according to the interference signal; the at least two first Bluetooth frequency points are used to send the data packet.

[0010] In a possible implementation, determining at least two first Bluetooth frequency points according to the interference signal includes:

[0011] Convert the interference signal into digital signals corresponding to multiple second Bluetooth frequency points;

[0012] At least two first Bluetooth frequency points are determined from the plurality of second Bluetooth frequency points according to the digital signals corresponding to the plurality of second Bluetooth frequency points.

[0013] In a possible implementation, the method further includes:

[0014] Generate a first message, wherein the first message includes sequence information of the at least two first Bluetooth frequency points;

[0015] The first message is sent to the Bluetooth device, where the first message is used to instruct the Bluetooth device to update a frequency for sending data packets.

[0016] In a possible implementation manner, the first message is a Link Management Protocol LMP message.

[0017] In a possible implementation manner, determining the sampling period according to the sending time and sending duration of the data packet includes:

[0018] Determine an idle period between two adjacent data packets according to the sending time and sending duration of the data packets, wherein the idle period is a period during which the data packets are not sent;

[0019] A sampling period is determined according to the idle period, and the sampling period is smaller than the idle period.

[0020] In a second aspect, an embodiment of the present application provides a frequency selection device, including a first determination module, a collection module, and a second determination module, wherein:

[0021] The first determination module is used to determine a sampling period according to the sending time and sending duration of the data packet, and the sampling period is a period during which the data packet is not sent;

[0022] The acquisition module is used to collect interference signals in the Bluetooth working frequency band within the sampling period;

[0023] The second determination module is used to determine at least two first Bluetooth frequency points according to the interference signal; the at least two first Bluetooth frequency points are used to send the data packet.

[0024] In a possible implementation manner, the second determining module is specifically configured to:

[0025] Convert the interference signal into digital signals corresponding to multiple second Bluetooth frequency points;

[0026] At least two first Bluetooth frequency points are determined from the plurality of second Bluetooth frequency points according to the digital signals corresponding to the plurality of second Bluetooth frequency points.

[0027] In a possible implementation manner, the second determining module is specifically configured to:

[0028] Obtaining signal values ​​of digital signals corresponding to the plurality of second Bluetooth frequency points;

[0029] Among the multiple second Bluetooth frequency points, a second Bluetooth frequency point at which the signal value of the digital signal is less than or equal to a preset threshold is determined as the at least two first Bluetooth frequency points.

[0030] In a possible implementation, the device further includes a generating module and a sending module, wherein:

[0031] The generating module is used to generate a first message, wherein the first message includes sequence information of the at least two first Bluetooth frequency points;

[0032] The sending module is used to send the first message to the Bluetooth device, where the first message is used to instruct the Bluetooth device to update the frequency of sending data packets.

[0033] In a possible implementation manner, the first message is a Link Management Protocol LMP message.

[0034] In a possible implementation manner, the first determining module is specifically configured to:

[0035] Determine an idle period between two adjacent data packets according to the sending time and sending duration of the data packets, wherein the idle period is a period during which the data packets are not sent;

[0036] A sampling period is determined according to the idle period, and the sampling period is smaller than the idle period.

[0037] In a third aspect, an embodiment of the present application provides a frequency selection device, including: a processor, a memory;

[0038] The memory stores computer-executable instructions;

[0039] The processor executes the computer-executable instructions stored in the memory, so that the processor performs the frequency selection method as described in the first aspect.

[0040] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the frequency selection method described in the first aspect.

[0041] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the frequency selection method described in the first aspect when executed by a processor.

[0042] The embodiment of the present application provides a frequency selection method, device, equipment and storage medium. The method first determines a sampling period according to the sending time and sending duration of a data packet, and the sampling period is a period when no data packet is sent; then collects interference signals of the Bluetooth working frequency band during the sampling period; and then determines at least two first Bluetooth frequency points according to the interference signals, and at least two first Bluetooth frequency points are used to send data packets. The frequency selection method of the present application can correctly select a frequency point with less interference in the 2.4GHz ISM band, thereby ensuring communication quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0044] Figure 2 A flowchart of a frequency selection method provided in an embodiment of the present application;

[0045] Figure 3 A schematic diagram of the sending time and sending duration of a data packet provided in an embodiment of the present application;

[0046] Figure 4 A schematic diagram of a sampling period provided in an embodiment of the present application;

[0047] Figure 5 A flowchart of another frequency selection method provided in an embodiment of the present application;

[0048] Figure 6 A schematic diagram of an idle period provided in an embodiment of the present application;

[0049] Figure 7 A schematic diagram of another sampling period provided in an embodiment of the present application;

[0050] Figure 8 A schematic diagram of the structure of a frequency selection device provided in an embodiment of the present application;

[0051] Fig. 9 A schematic diagram of the structure of a frequency selection device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0053] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first" and "second" are used to distinguish the same items or similar items with basically the same functions and effects. For example, the first chip and the second chip are only used to distinguish different chips, and their order is not limited. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not necessarily limit them to be different.

[0054] In the embodiments of the present application, "at least two" means two or more than two.

[0055] For ease of understanding, the following Figure 1 , the application scenarios to which the embodiments of the present application are applicable are described.

[0056] Figure 1 This is a schematic diagram of an application scenario provided by the embodiment of this application. Figure 1 , including a Bluetooth device 1 and a Bluetooth device 2. The Bluetooth device 1 and the Bluetooth device 2 can perform data transmission via Bluetooth.

[0057] A Bluetooth device refers to a device that supports Bluetooth wireless communication function. The Bluetooth device involved in the embodiments of the present application may be a mobile phone, a tablet computer, a laptop computer, a PDA, a mobile internet device (MID), an external audio playback device, a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, a personal digital assistant (PDA), etc., and the embodiments of the present application are not limited to this.

[0058] Bluetooth wireless communication is an open global specification for wireless data and voice communications. It is a special short-range wireless technology connection based on low-cost short-range wireless connection to establish a communication environment for fixed and mobile devices. Bluetooth can enable some current portable mobile devices and computer devices to connect to the Internet without cables and can access the Internet wirelessly.

[0059] The frequency band for data transmission between Bluetooth devices is the 2.4 GHz ISM band. Since this band is open to all radio devices, Bluetooth devices are prone to conflict and interference with other radio devices, which in turn affects the communication quality of Bluetooth devices.

[0060] In order to avoid conflicts and interference with other radio devices in the 2.4GHz ISM band, Bluetooth devices usually collect data in nearby frequency bands with the frequency at which the data packet is sent as the center frequency when sending data packets, and select the frequency with less interference from the collected data for frequency hopping to ensure communication quality.

[0061] The above frequency hopping method has the following two problems:

[0062] 1. Since the data collected when sending data packets contain some interference signals related to the data packets, the collected data needs to be filtered before use; and the filtered data is different from the real data, which may affect the accuracy of the final frequency determination and affect the communication quality.

[0063] 2. Collecting data with the frequency at which the data packet is sent as the central frequency may result in data being collected on non-Bluetooth working frequency bands, causing the final determined frequency to be a non-Bluetooth frequency. That is, the accuracy of determining the Bluetooth frequency is low, affecting the communication quality.

[0064] In view of this, the present application collects data of the Bluetooth operating frequency band during the period when no data packets are sent, determines the Bluetooth frequency with the least interference through the data, and selects the Bluetooth frequency with the least interference for data transmission. Since the collected data does not include interference signals related to the data packets, there is no need to filter the collected data, which will not affect the authenticity of the data, and can improve the accuracy of the Bluetooth frequency determination, thereby ensuring the communication quality. On the other hand, the collected data are all data on the Bluetooth operating frequency band, which further improves the accuracy of the Bluetooth frequency determination and ensures the communication quality.

[0065] The technical solution shown in the present application is described in detail below through specific embodiments. It should be noted that the following embodiments can exist independently or in combination with each other, and the same or displayed content will not be repeatedly described in different embodiments.

[0066] Figure 2A flowchart of a frequency selection method provided in an embodiment of the present application. Figure 2 , the method comprising:

[0067] S201. Determine a sampling period according to the sending time and sending duration of a data packet.

[0068] The execution subject of the embodiment of the present application can be a Bluetooth device such as a mobile phone, or a frequency selection device set in the Bluetooth device. The frequency selection device can be implemented by software or by a combination of software and hardware.

[0069] When data is transmitted between Bluetooth devices, one Bluetooth device sends a data packet while another Bluetooth device receives the data packet.

[0070] For ease of understanding, below, combined Figure 3 The sending time and sending duration of the data packet are described in detail.

[0071] Figure 3 A schematic diagram of the sending time and sending duration of a data packet provided in an embodiment of the present application. Figure 3 , including data packet 301 and data packet 302. The sending time of data packet 301 is t1, and the sending duration is t2-t1; the sending time of data packet 302 is t3, and the sending duration is t4-t3. Data packet 301 can be a data packet sent by Bluetooth device 1 at time t1 and received by Bluetooth device 2 at time t1; data packet 302 can be a data packet sent by Bluetooth device 2 at time t3 and received by Bluetooth device 1 at time t3.

[0072] The sampling period is the period when no data packets are sent.

[0073] For ease of understanding, below, combined Figure 4 The sampling period is described.

[0074] Figure 4 A schematic diagram of a sampling period provided in an embodiment of the present application. Figure 4 , including data packet 401 and data packet 402. The sending time of data packet 401 is t1, and the sending duration is t2-t1; the sending time of data packet 402 is t3, and the sending duration is t4-t3. The sampling period is ta-tb, and ta is greater than t2, and tb is less than t3.

[0075] The sampling period can be determined according to actual conditions. For example, the sampling period can be 5 to 15 microseconds, and this application does not make any specific limitation on this.

[0076] S202: Collect interference signals in the Bluetooth operating frequency band during a sampling period.

[0077] The interference signal may be a frequency domain signal.

[0078] S203: Determine at least two first Bluetooth frequency points according to the interference signal.

[0079] At least two first Bluetooth frequency points are used to send data packets.

[0080] The Bluetooth frequency point refers to a frequency point within the Bluetooth operating frequency band. For example, the Bluetooth frequency point may be a frequency point within the 2402 MHz-2480 MHz frequency band, and the specific Bluetooth frequency point may be 2402 MHz, 2403 MHz, 2404 MHz, ..., 2479 MHz, 2480 MHz.

[0081] The interference signal on the Bluetooth working frequency band can be transformed into the energy value of each frequency point on the frequency band through fast Fourier transform, and the interference size corresponding to each frequency point can be determined according to the energy value. The number of first Bluetooth frequency points cannot be less than the number required by the Bluetooth protocol.

[0082] When the Bluetooth device is a multi-link device, the determined at least two first Bluetooth frequency points may be applied to other multiple devices connected to the Bluetooth device.

[0083] exist Figure 2 In the embodiment shown, the sampling period is determined according to the sending time and sending duration of the data packet, and the sampling period is the period when the data packet is not sent; then the interference signal of the Bluetooth working frequency band is collected during the sampling period; then according to the interference signal, at least two first Bluetooth frequency points are determined, and at least two first Bluetooth frequency points are used to send the data packet. Since the collected data does not include the interference signal related to the data packet, there is no need to filter the collected data, which will not affect the authenticity of the data, and the accuracy of the Bluetooth frequency point determination can be improved, thereby ensuring the communication quality. On the other hand, the collected data are all data on the Bluetooth working frequency band, which further improves the accuracy of the Bluetooth frequency point determination and ensures the communication quality.

[0084] Based on any of the above embodiments, Figure 4 The embodiment shown is used to explain the above frequency selection method in detail.

[0085] Figure 5 A flowchart of another frequency selection method provided in an embodiment of the present application. Figure 4 , the method may include:

[0086] S501. Determine an idle period between two adjacent data packets according to the sending time and sending duration of the data packets.

[0087] The idle period is a period during which no data packets are sent, and may also be referred to as an interval period between sending data packets.

[0088] For ease of understanding, the following Figure 6 Describe the idle time period.

[0089] Figure 6 A schematic diagram of an idle period provided in an embodiment of the present application. Figure 6 , take 4 data packets as an example. The sending time of data packet 1 is t1, and the sending duration is t2-t1; the sending time of data packet 2 is t3, and the sending duration is t4-t3; the sending time of data packet 3 is t5, and the sending duration is t6-t5; the sending time of data packet 4 is t7, and the sending duration is t8-t7. Through the sending time and sending duration of the four data packets, the idle periods can be determined to be T1, T2 and T3, where T1 = t3-t2, T2 = t5-t4, and T3 = t7-t6.

[0090] The specific interval period for sending data packets can be determined according to actual conditions.

[0091] S502: Determine a sampling period according to the idle period, where the sampling period is smaller than the idle period.

[0092] like Figure 6 As shown, it can be a period shorter than the idle period.

[0093] The time interval between two sampling periods can be determined according to actual conditions. For example, the time interval between two sampling periods can be 1 second, 25 seconds, etc., which is not specifically limited in this application.

[0094] For ease of understanding, below, combined Figure 7 The sampling period is described.

[0095] Figure 7 A schematic diagram of another sampling period provided in an embodiment of the present application. Figure 7, take 8 data packets as an example. Data packet 1 is sent at t1, and the sending duration is t2-t1; data packet 2 is sent at t3, and the sending duration is t4-t3; data packet 3 is sent at t5, and the sending duration is t6-t5; data packet 4 is sent at t7, and the sending duration is t8-t7; data packet 5 is sent at t9, and the sending duration is t10-t9; data packet 6 is sent at t11, and the sending duration is t12-t11; data packet 7 is sent at t13, and the sending duration is t14-t13; data packet 8 is sent at t15, and the sending duration is t16-t15. The idle periods T1, T2, T3, T4, T5, T6 and T7 can be determined by the sending time and duration of the eight data packets, where T1 = t3-t2, T2 = t5-t4, T3 = t7-t6, T4 = t9-t8, T5 = t11-t10, T6 = t13-t12, and T7 = t15-t14. Two sampling periods Ta and Tb can be determined based on the time interval (T) between the idle period and the sampling period.

[0096] S503: Collect interference signals in the Bluetooth operating frequency band during a sampling period.

[0097] It should be noted that the execution process of S403 can refer to the execution process of S202, which will not be described in detail here.

[0098] S504: Convert the interference signal into digital signals corresponding to multiple second Bluetooth frequency points.

[0099] The interference signal may be converted into digital signals corresponding to multiple second Bluetooth frequency points through Fast Fourier Transform (FFT).

[0100] For example, the interference signal on the Bluetooth working frequency band of 2402 MHz -2480 MHz is collected and converted into a digital signal corresponding to 79 second Bluetooth frequency points through FFT.

[0101] The converted digital signal is stored in a fixed position of the Bluetooth device or the frequency selection device. Each time the interference signal is collected, the interference signal is converted into a digital signal, and the new digital signal is used to replace the previous digital signal.

[0102] S505: Obtain signal values ​​of digital signals corresponding to multiple second Bluetooth frequency points.

[0103] The signal values ​​of the digital signals corresponding to the plurality of second Bluetooth frequency points may be obtained at the locations where the digital signals are stored in the Bluetooth device or the frequency selection device.

[0104] At regular intervals, the Bluetooth device or the frequency selection device reads the signal values ​​of the digital signals corresponding to the plurality of second Bluetooth frequency points from the location where the digital signals are stored.

[0105] S506: Determine, among the multiple second Bluetooth frequency points, second Bluetooth frequency points whose digital signal values ​​are less than or equal to a preset threshold as at least two first Bluetooth frequency points.

[0106] For example, in the classic Bluetooth usage scenario, if there are 79 second Bluetooth frequency points, at least 20 first Bluetooth frequency points are determined based on the signal values ​​of the digital signals corresponding to the 79 second Bluetooth frequency points and the preset threshold value.

[0107] The number of the first Bluetooth frequency points cannot be less than the number required by the Bluetooth protocol. If the number of the first Bluetooth frequency points determined according to the preset threshold is less than the number required by the Bluetooth protocol, the frequency point with the smallest signal value is selected from the second frequency points greater than the preset threshold as the first frequency point to make up for the number required by the Bluetooth protocol.

[0108] For example, the classic Bluetooth protocol requires 20 frequency points for frequency hopping, and there are a total of 79 second Bluetooth frequency points, of which 15 Bluetooth frequency points have corresponding digital signal values ​​less than or equal to a preset threshold and can be used as the first Bluetooth frequency point; then 5 second Bluetooth frequency points are selected from the remaining 64 second Bluetooth frequency points whose signal values ​​are greater than the preset threshold as the first Bluetooth frequency points, and the signal values ​​of the digital signals corresponding to these 5 second Bluetooth frequency points are the smallest 5 among the remaining 64 signal values.

[0109] S507: Generate a first message, where the first message includes sequence information of at least two first Bluetooth frequency points.

[0110] The first message may be a Link Manager Protocol (LMP) message.

[0111] The first message may include quality information and sequence information of at least two first Bluetooth frequency points.

[0112] The quality information may refer to the interference level of a frequency point.

[0113] The sequence information refers to the frequency hopping sequence of at least two first Bluetooth frequency points and the time interval of the frequency hopping. The sequence information can be determined according to the quality information.

[0114] S508: Send a first message to the Bluetooth device, where the first message is used to instruct the Bluetooth device to update a frequency for sending data packets.

[0115] In a possible implementation, if the Bluetooth device that collects the interference signal is a master device, the Bluetooth master device sends a first message to the Bluetooth slave device. After receiving the first message, the Bluetooth slave device updates the frequency of sending data packets according to the first message.

[0116] In another possible implementation, if the Bluetooth device that collects the interference signal is a slave device, the Bluetooth master device is required to send an LMP frequency category request (lmp channel classification req) message to the Bluetooth slave device, the Bluetooth slave device receives the LMP frequency category request message and reports a first message to the Bluetooth master device. After receiving the first message, the Bluetooth master device updates the frequency of sending data packets according to the first message.

[0117] exist Figure 5 In the embodiment shown, the Bluetooth device 1 first determines the idle period between two adjacent data packets according to the sending time and sending duration of the data packet; determines the sampling period in the idle period; collects the interference signal of the Bluetooth working frequency band in the sampling period; converts the interference signal into a digital signal corresponding to a plurality of second Bluetooth frequency points; obtains the signal value of the digital signal corresponding to the plurality of second Bluetooth frequency points; determines the second Bluetooth frequency points whose signal value of the digital signal is less than or equal to the preset threshold value among the plurality of second Bluetooth frequency points as at least two first Bluetooth frequency points; generates a first message, and sends the first message to the Bluetooth device 2, the first message is used to instruct the Bluetooth device to update the frequency point of sending the data packet. Since the collected data does not include the interference signal related to the data packet, there is no need to filter the collected data, which will not affect the authenticity of the data, can improve the accuracy of the Bluetooth frequency point determination, and thus ensure the communication quality. On the other hand, the collected data are all data on the Bluetooth working frequency band, which further improves the accuracy of the Bluetooth frequency point determination and ensures the communication quality.

[0118] Figure 8 This is a schematic diagram of the structure of a frequency selection device provided in an embodiment of the present application. Figure 8 The frequency selection device 10 includes: a first determination module 11, a collection module 12 and a second determination module 13, wherein:

[0119] The first determining module 11 is used to determine a sampling period according to the sending time and sending duration of the data packet, and the sampling period is a period during which the data packet is not sent;

[0120] The collection module 12 is used to collect interference signals in the Bluetooth working frequency band during the sampling period;

[0121] The second determination module 13 is used to determine at least two first Bluetooth frequency points according to the interference signal; the at least two first Bluetooth frequency points are used to send the data packet.

[0122] In a possible implementation manner, the second determining module 13 is specifically configured to:

[0123] Convert the interference signal into digital signals corresponding to multiple second Bluetooth frequency points;

[0124] At least two first Bluetooth frequency points are determined from the plurality of second Bluetooth frequency points according to the digital signals corresponding to the plurality of second Bluetooth frequency points.

[0125] In a possible implementation manner, the second determining module 13 is specifically configured to:

[0126] Obtaining signal values ​​of digital signals corresponding to the plurality of second Bluetooth frequency points;

[0127] Among the multiple second Bluetooth frequency points, a second Bluetooth frequency point at which the signal value of the digital signal is less than or equal to a preset threshold is determined as the at least two first Bluetooth frequency points.

[0128] In a possible implementation, the device 10 further includes a generating module and a sending module, wherein:

[0129] The generating module is used to generate a first message, wherein the first message includes sequence information of the at least two first Bluetooth frequency points;

[0130] The sending module is used to send the first message to the Bluetooth device, where the first message is used to instruct the Bluetooth device to update the frequency of sending data packets.

[0131] In a possible implementation manner, the first message is a Link Management Protocol LMP message.

[0132] In a possible implementation manner, the first determining module 11 is specifically configured to:

[0133] Determine an idle period between two adjacent data packets according to the sending time and sending duration of the data packets, wherein the idle period is a period during which the data packets are not sent;

[0134] A sampling period is determined according to the idle period, and the sampling period is less than or equal to the idle period.

[0135] The frequency selection device 10 provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0136] Fig. 9 This is a schematic diagram of the structure of a frequency selection device provided in an embodiment of the present application. Fig. 9The frequency selection device 20 may include: a memory 22 and a processor 23. Exemplarily, the memory 22 and the processor 23 are interconnected via a bus 24.

[0137] The memory 22 is used to store program instructions;

[0138] The processor 23 is used to execute the program instructions stored in the memory, so as to enable the frequency selection device 20 to perform the above-mentioned frequency selection method.

[0139] Fig. 9 The frequency selection device shown in the embodiment can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0140] An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the above-mentioned frequency selection method is implemented.

[0141] The embodiment of the present application may also provide a computer program product, including a computer program, which can implement the above-mentioned frequency selection method when executed by a processor.

[0142] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

[0143] In addition, although each operation is described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or to be performed in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the application. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0144] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A frequency selection method, It is characterized in that include: Determine an idle period between two adjacent data packets according to the sending time and sending duration of the data packets, wherein the idle period is a period during which the data packets are not sent; Determine a sampling period according to the idle period; Collecting interference signals in the Bluetooth operating frequency band during the sampling period; Determine at least two first Bluetooth frequency points according to the interference signal; The at least two first Bluetooth frequency points are used to send the data packet.

2. The method according to claim 1, It is characterized in that Determining at least two first Bluetooth frequency points according to the interference signal includes: Convert the interference signal into digital signals corresponding to multiple second Bluetooth frequency points; At least two first Bluetooth frequency points are determined from the plurality of second Bluetooth frequency points according to the digital signals corresponding to the plurality of second Bluetooth frequency points.

3. The method according to claim 2, It is characterized in that Determining at least two first Bluetooth frequency points from the plurality of second Bluetooth frequency points according to the digital signals corresponding to the plurality of second Bluetooth frequency points includes: Obtaining signal values ​​of digital signals corresponding to the plurality of second Bluetooth frequency points; Among the multiple second Bluetooth frequency points, a second Bluetooth frequency point at which the signal value of the digital signal is less than or equal to a preset threshold is determined as the at least two first Bluetooth frequency points.

4. The method according to claim 1, It is characterized in that The method further comprises: Generate a first message, wherein the first message includes sequence information of the at least two first Bluetooth frequency points; The first message is sent to the Bluetooth device, where the first message is used to instruct the Bluetooth device to update a frequency for sending data packets.

5. The method according to claim 4, It is characterized in that The first message is a Link Management Protocol LMP message.

6. The method according to any one of claims 1 to 5, It is characterized in that The sampling period is smaller than the idle period.

7. A frequency selection device, It is characterized in that It includes a first determination module, a collection module and a second determination module, wherein: The first determination module is used to determine an idle period between two adjacent data packets according to the sending time and sending duration of the data packets, wherein the idle period is a period during which the data packets are not sent; and determine a sampling period according to the idle period; The acquisition module is used to collect interference signals in the Bluetooth working frequency band within the sampling period; The second determination module is used to determine at least two first Bluetooth frequency points according to the interference signal; the at least two first Bluetooth frequency points are used to send the data packet.

8. A frequency selection device, It is characterized in that include: Processor, memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor executes the frequency selection method according to any one of claims 1 to 6.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the frequency selection method according to any one of claims 1 to 6 when executed by a processor.

10. A computer program product, It is characterized in that A computer program is stored, and when the computer program is executed by a processor, the frequency selection method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Signal sampling method, terminal device and network device

    CN112585875A

  • Signal interference processing method and device, storage medium and electronic equipment

    CN114079478A